Skip to main content
POST
Upload a private asset by bytes

Authorizations

Authorization
string
header
required

API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

Body

multipart/form-data
file
file
required

The file bytes. Max 50MB. Allowed content types: application/pdf, Office documents (application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint and the openxmlformats-officedocument variants), text/plain, text/csv, image/png, image/jpeg, image/webp, image/gif. The bytes are checked against the declared type for pdf, png and jpeg.

file_name
string

Override the file name. Defaults to the upload's filename.

Maximum string length: 500
description
string

Description of the asset

Maximum string length: 2000
partnership_uuid
string<uuid>

Attach the asset to this partnership as a private partner file. The partnership must belong to the caller's company and not be archived.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

201 - application/json

Default Response

uuid
string
required
file_name
string | null
required
file_url
string | null
required
mime_type
string | null
required
size
number | null
required
width
number | null
required
height
number | null
required
category
enum<string> | null
required

Asset category

Available options:
resource,
room
resource_type
string | null
required
description
string | null
required
created_at
string
required
updated_at
string
required