/workorder/rfo
The action marks/unmarks the work order ready for office.
Request
| Field | Description | Required |
|---|---|---|
report_id | Unique identifier for the work order | Yes |
ready | 1 to mark the work order ready for office; 0 otherwise | Yes |
Example:
{
"report_id": 18848,
"ready": 1
}
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{"report_id":18848,"ready":1}' \
https://ppw.web/svc/workorder/rfo
Response
| Field | Description | Type |
|---|---|---|
result | RFO result | string |
Example successful response:
{
"result": "Marked Ready for Office"
}
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 |
invalid_report_id | Unique work order identifier is invalid | 400 |
ready_required | ready field is not in request | 400 |
ready_invalid | ready field is invalid | 400 |
photo_count_error | Work order photo count error | 400 |
photo_flag_error | Work order’s photos are not flagged | 400 |
office_locked | Office Lock set for the work order | 400 |
pcr_error | PCR attached to the work order has errors | 400 |