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
- Path parameters
| Parameter | Description |
|---|---|
docId | The ID of the file. |
- Request parameters
| Parameter | Description |
|---|---|
mediaId | The ID of the media file. |
url | The URL to external resource with media. |
- 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'
- Example response
HTTP/1.1 204 No content
Content-Length: 0