Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/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:

FieldDescriptionType
pcr_form_idUnique identifier for the PCR formnumber
pcr_form_nameName of the PCR formstring
active1 if PCR form is active; 0 otherwisenumber

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 TypeDescriptionStatus Code
access_deniedAccess token is invalid or expired401
scope_invalidClient app does not have the required OAuth scope403