Documents

Upload asset file to document

POST
/organizations/{organizationId}/documents/{documentId}/assets/upload

Uploads a file as a new asset for a document. The file is stored in S3 and the asset metadata is created automatically.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

organizationId*string
Formatuuid
documentId*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08/assets/upload"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "format": "html",  "language": "string",  "body": "string",  "file": {    "bucket": "string",    "key": "string",    "size": 0,    "fileName": "string",    "contentType": "string",    "etag": "string",    "sha256": "string"  },  "version": 0,  "dateCreated": 0,  "dateUpdated": 0}