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

This action detaches a PCR from from a work order.

Request

FieldDescriptionRequired
report_idUnique identifier for the work orderYes
pcr_form_idUnique identifier for the PCR formYes

Example:

{
  "report_id": 18851,
  "pcr_form_id": 26
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":18851,"pcr_form_id":26}' \
     https://ppw.web/svc/workorder/pcr/detach

Response

FieldDescriptionType
resultPCR form detach resultstring

Example successful response:

{
  "result": "PCR detached"
}

Errors

Error TypeDescriptionStatus Code
access_deniedAccess token is invalid or expired401
scope_invalidClient app does not have the required OAuth scope403
wo_invalidWork order invalid400
pcr_form_id_invalidPCR Form Id invalid400
pcr_not_attachedPCR form not attached to work order400