Skip to main content

Put new media file to opened document by downloading it from external URL

note

[Since 2018.02]

A request to put new media (downloading it by URL) to be bundled in already opened document.

PUT /api/v1/documents/{docId}/media HTTP/1.1
  1. Path parameters
ParameterDescription
docIdThe ID of the file.
  1. Request parameters
ParameterDescription
mediaIdThe ID of the media file.
urlThe URL to external resource with media.
  1. Example request
curl -i -X PUT 'http://localhost:9094/api/v1/documents/O3232hs18Aav0CUzW1X/media?url=http://example.com/test.jpg&mediaId=imageId' -H 'X-co-auth-token: 8705adfeb88111b472e089a6af6aa929'
  1. Example response
HTTP/1.1 204 No content
Content-Length: 0