List File Categories

GET/api/files/categories

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
type String optional Optional category type filter. The shipped schema only defines "project".
limit Number optional Optional page size, 1 to 200.

default: 50

offset Number optional Optional number of rows to skip.

default: 0

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" } }
MethodGET
Path/api/files/categories
GroupFiles
Sincev1.0.0
Defined inRestApi/Controllers/FilesController.php