Docs
Create Asset
POST /documents/{documentId}/assets
POST
/documents/{documentId}/assetsRegisters an uploaded file (such as an image) for a document and returns its id and a write-only upload URL to PUT the file to. Counts against the organization's storage allowance. Requires the EventDocumentsEdit permission or a share on the document.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| documentId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| fileName | string | Optional | |
| contentType | string | Optional | |
| size | integer | Optional |
Response
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| sasUri | uri| null |