Skip to main content

Get file properties

A request to get file properties.

POST /api/v1/files/{fileId}/properties HTTP/1.1
  1. Path parameters
ParameterDescription
fileIdThe ID of the file.
  1. Response structure
PathTypeDescription
[]ArrayArray of property objects.
[].linksArrayArray of links to file object. See File Links
[].property.idStringThe file’s property id.
[].property.keyStringThe file’s property key.
[].property.valueStringThe file’s property value.
[].links[].relStringLink type
[].links[].hrefStringLink reference
  1. Example request
curl 'http://localhost:8080/api/v1/files/189389946/properties' -i -X GET \
-H 'X-co-auth-token: bcb087a6aa8b63844aaee7b0b4bda9b4'
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: 4875416f5a49597858684a3934674d38
Content-Type: application/vnd.ncloudtech.cloudoffice.propertylist+json;v=1;charset=UTF-8
Content-Length: 411
[
{
"property": {
"id": "flagged",
"key": "flagged",
"value": "true"
},
"links": [
{
"rel": "self",
"href": "http://localhost:8080/api/v1/files/flagged"
}
]
},
{
"property": {
"id": "custom_my_1",
"key": "custom_my_1",
"value": "my custom value"
},
"links": [
{
"rel": "self",
"href": "http://localhost:8080/api/v1/files/custom_my_1"
}
]
}
]