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

/workorder/pcr/list

This action lists PCR forms attached to a work order.

Request

FieldDescriptionRequired
report_idUnique identifier for the work orderYes

Example:

{
  "report_id": 18851
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":18851}' \
     https://ppw.web/svc/workorder/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
versionPCR form version numbernumber
requiredtrue if PCR form is required; false otherwiseboolean
has_errorstrue if PCR form has errors; false otherwiseboolean

Example successful response:

FORMATTED_RESPONSE
[{
  "pcr_form_id": 28,
  "pcr_form_name": "1- Exterior Inspection",
  "version": 2,
  "required": false,
  "has_errors": true
}, {
  "pcr_form_id": 25,
  "pcr_form_name": "3 - Interior Inspection",
  "version": 1,
  "required": false,
  "has_errors": false
}]

Errors

Error TypeDescriptionStatus Code
access_deniedAccess token is invalid or expired401
scope_invalidClient app does not have the required OAuth scope403
wo_invalidWork order is invalid400