Entity properties are custom key-value pairs attached to files or folders.
The following paths are relative to /api/v1 and require authentication.
| Method | Path | Description |
|---|---|---|
GET |
/properties/{entity_type}/{entity_id} |
List entity properties |
PUT |
/properties/{entity_type}/{entity_id} |
Create or update a property |
DELETE |
/properties/{entity_type}/{entity_id}/{namespace}/{name} |
Delete a property |
entity_type can only be:
filefolder
Returns all properties attached to that entity.
Request body:
{
"namespace": "custom",
"name": "color",
"value": "blue"
}value may be null.
Deletes the specified property.
The REST API does not allow modifying the DAV: namespace.
In practice:
namespace = "DAV:"cannot bePUTnamespace = "DAV:"cannot beDELETE
This keeps the REST API from breaking WebDAV protocol properties.