Get access token by link
note
[Since 2021.03]
A request to get access token by the public link.
POST /api/v1/public/{linkUid}/access HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
linkUid | The UID of the link for the file. |
- Request parameters
| Path | Type | Description |
|---|---|---|
password | String | Password for the public link |
- Example request
curl 'http://localhost:8080/api/v1/public/afd6fec0-8647-4fb3-89e4-82116edc1822/access' -i -X POST \
-H 'Content-Type: application/json' \
-H 'X-co-auth-token: 17281326cbce235f64eaccfd5486ab60' \
-d '{
"password" : "AcsdH76-n"
}'
- Example response
HTTP/1.1 200 OK
X-co-request-id: 45755458425a714d474877374c4a7778
Content-Type: application/vnd.ncloudtech.cloudoffice.file+json;v=1;charset=UTF-8
Content-Length: 56
{
"accessToken": "oksepzuxmjlmldnkkwauegjcemyxcekn"
}