Set direct link access enabled for file
Заметка
[Since 3.6]
Set direct link access enabled for file
POST /api/v1/files/{fileId}/directLink HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
fileId | The ID of the file. |
- Example request
curl 'http://localhost:8080/api/v1/files/919b83ea-286c-457d-909b-94a6e53b16c9/directLink' -i -X POST \
-H 'Content-Type: application/json' \
-H 'X-co-auth-token: 6a1306c1f9909b64eebe186ff5700131'
- Example response headers
HTTP/1.1 204 204 NO_CONTENT
X-co-request-id: xcOYd2vJJ1jGo2Lh5vHI0zpgICzMOKAI
[ content of the response is skipped ]
- Example response
HTTP/1.1 204 No Content
X-co-request-id: xcOYd2vJJ1jGo2Lh5vHI0zpgICzMOKAI
[ content of the response is skipped ]