Skip to main content

Post new media file to opened document

A request to put new media file to be bundled in already opened document.

POST /api/v1/documents/{docId}/media HTTP/1.1
  1. Path parameters
ParameterDescription
docIdThe ID of the file
  1. Request multipart form data
PartDescription
fileThe file to be uploaded.
  1. Example request
curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@image.png" 'http://localhost:9094/api/v1/documents/O3232hs18Aav0CUzW1X/media' -H 'X-co-auth-token: 8705adfeb88111b472e089a6af6aa929'
  1. Example response
HTTP/1.1 204 No content
Content-Length: 0