Docs
Add Document Image
POST /documents/{documentId}/images
POST
/documents/{documentId}/imagesCreates the "Document images" folder in the doc's own drive (its event drive, or the organization drive) when it is missing, adds the image file there with the caller as creator, and returns the file id and a write URL to PUT the image to. The file name's extension must be an image format (png, jpg, jpeg, gif, webp, svg, bmp) and the size above zero; counts against the organization's storage allowance. Needs Edit on the doc's file. Reference the returned file id in the doc's content.
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 |
|---|---|---|
| fileId | uuid | |
| uploadUri | uri| null |