/file/document/types
This action returns a list of document types.
Request
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
https://ppw.web/svc/file/document/types
Response
| Field | Description | Type |
|---|---|---|
document_types | Document types | object |
The value of the document_types field is a JSON object containing
all the document types. In this JSON object, the key is the canonical
name for the document type and value is the human readable name for
the document type.
Example successful response:
{
"document_types": {
"1": "PDF",
"2": "Photo"
}
}
Errors
| Error Type | Description | Status Code |
|---|---|---|
access_denied | Access token is invalid or expired | 401 |
scope_invalid | Client app does not have the required OAuth scope | 403 |