Skip to main content

Get file public links

note

[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
  1. Response structure
PathTypeDescription
[].urlStringThe URL of the public link
[].startTimeDateThe time of creation of the public link
[].endTimeDateThe time of ending life of the public link
[].uidStringThe UID of the public link
[].passwordStringPassword of the public link
[].unlockingTimeDateThe time of ending lock of the public link
[].typePublicLinkTypeType of public link main or mail
[].authorFirstNameStringFirst name of public link’s creator
[].authorLastNameStringLast name of public link’s creator
[].authorMiddleNameStringMiddle name of public link’s creator
  1. Example request
curl 'http://localhost:8080/api/v1/files/189366484/public' -i -X GET \
-H 'X-co-auth-token: 287e2c9b5ad3f9325238a96b63733af2'
  1. 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"
}
]