Get file public links
Заметка
[Since 2021.03]
A request to get a list of the existing public links to an object.
POST /api/v1/files/{fileId}/public HTTP/1.1
- Response structure
| Path | Type | Description |
|---|---|---|
[].url | String | The URL of the public link |
[].startTime | Date | The time of creation of the public link |
[].endTime | Date | The time of ending life of the public link |
[].uid | String | The UID of the public link |
[].password | String | Password of the public link |
[].unlockingTime | Date | The time of ending lock of the public link |
[].type | PublicLinkType | Type of public link main or mail |
[].authorFirstName | String | First name of public link’s creator |
[].authorLastName | String | Last name of public link’s creator |
[].authorMiddleName | String | Middle name of public link’s creator |
- Example request
curl 'http://localhost:8080/api/v1/files/189366484/public' -i -X GET \
-H 'X-co-auth-token: 287e2c9b5ad3f9325238a96b63733af2'
- Example response
HTTP/1.1 200 OK
X-co-request-id: 6f79454d37466b687a6b38584e4c4631
Content-Type: application/vnd.ncloudtech.cloudoffice.publiclinklist+json;v=1;charset=UTF-8
Content-Length: 298
[
{
"url": "http://localhost:8080/public/77435ff8-d307-4efb-a4f7-a09b2ef12039",
"uid": "77435ff8-d307-4efb-a4f7-a09b2ef12039",
"startTime": "2022-04-06T15:58:15.000Z",
"type": "main",
"authorFirstName": "a",
"authorLastName": "s",
"authorMiddleName": "d"
}
]