Get file properties
A request to get file properties.
POST /api/v1/files/{fileId}/properties HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
fileId | The ID of the file. |
- Response structure
| Path | Type | Description |
|---|---|---|
[] | Array | Array of property objects. |
[].links | Array | Array of links to file object. See File Links |
[].property.id | String | The file’s property id. |
[].property.key | String | The file’s property key. |
[].property.value | String | The file’s property value. |
[].links[].rel | String | Link type |
[].links[].href | String | Link reference |
- Example request
curl 'http://localhost:8080/api/v1/files/189389946/properties' -i -X GET \
-H 'X-co-auth-token: bcb087a6aa8b63844aaee7b0b4bda9b4'
- 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"
}
]
}
]