Skip to main content
POST
Go (SDK)

Authorizations

Authorization
string
header
required

You can generate an Organization Access Token from your organization's settings.

Body

application/json

Schema to create a file to be associated with the downloadables benefit.

name
string
required
mime_type
string
required
size
integer
required
upload
S3FileCreateMultipart · object
required
service
string
required
Allowed value: "downloadable"
organization_id
string<uuid4> | null

The organization ID.

Example:

"1dbfc517-0bbf-4301-9ba8-555ca42b9737"

checksum_sha256_base64
string | null
version
string | null

Response

File created.

id
string<uuid4>
required

The ID of the object.

organization_id
string<uuid4>
required
name
string
required
path
string
required
mime_type
string
required
size
integer
required
storage_version
string | null
required
checksum_etag
string | null
required
checksum_sha256_base64
string | null
required
checksum_sha256_hex
string | null
required
last_modified_at
string<date-time> | null
required
upload
S3FileUploadMultipart · object
required
version
string | null
required
service
enum<string>
required
Available options:
downloadable,
product_media,
organization_avatar
size_readable
string
required
is_uploaded
boolean
default:false