/workorder/pcr/detach
This action detaches a PCR from from a work order.
Request
| Field | Description | Required |
|---|---|---|
report_id | Unique identifier for the work order | Yes |
pcr_form_id | Unique identifier for the PCR form | Yes |
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
| Field | Description | Type |
|---|---|---|
result | PCR form detach result | string |
Example successful response:
{
"result": "PCR detached"
}
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 |
wo_invalid | Work order invalid | 400 |
pcr_form_id_invalid | PCR Form Id invalid | 400 |
pcr_not_attached | PCR form not attached to work order | 400 |