/pcr/list
This action lists all PCR forms.
Request
Example:
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
https://ppw.web/svc/pcr/list
Response
A successful response returns a list of PCR form objects. Each object has the following fields:
| Field | Description | Type |
|---|---|---|
pcr_form_id | Unique identifier for the PCR form | number |
pcr_form_name | Name of the PCR form | string |
active | 1 if PCR form is active; 0 otherwise | number |
Example successful response:
[{
"pcr_form_id": 28,
"pcr_form_name": "1- Exterior Inspection",
"active": 1
},
{
"pcr_form_id": 24,
"pcr_form_name": "2 - Utilities Inspection",
"active": 1
},
{
"pcr_form_id": 25,
"pcr_form_name": "3 - Interior Inspection",
"active": 1
},
.
.
.
]
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 |