List File Categories
GET/api/files/categories
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| type | String | optional Optional category type filter. The shipped schema only defines "project". |
| limit | Number | optional Optional page size, 1 to 200.
|
| offset | Number | optional Optional number of rows to skip.
|
curl -X GET "https://yoursite.com/api/files/categories" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
[
{ "id": "2", "name": "Contracts", "type": "project" }
] Error-Response:
HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }