Skip to main content

Change direct link access role for file

note

[Since 3.6]

Change direct link access role for file

PUT /api/v1/files/{fileId}/directLink HTTP/1.1
  1. Path parameters
ParameterDescription
fileIdThe ID of the file.
  1. Example request
$ curl 'http://localhost:8080/api/v1/files/b53b321c-6f0c-48bf-bd50-602061cad758/directLink' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'X-co-auth-token: 6a1306c1f9909b64eebe186ff5700131'
  1. Example response headers
HTTP/1.1 204 204 NO_CONTENT
X-co-request-id: u2VrvypI4tYLnYKEmHmLkelBll4JSraB
[ content of the response is skipped ]
  1. Example response
HTTP/1.1 204 No Content
X-co-request-id: u2VrvypI4tYLnYKEmHmLkelBll4JSraB