Update Schedule
Updates schedule by work order id.
URLS
Environment | Method | URL |
---|---|---|
Sandbox | https://api-sandbox.fndev.net/api/rest/v2/workorders/work_order_id/schedule | |
Production | https://api.fieldnation.com/api/rest/v2/workorders/work_order_id/schedule |
Path Parameters
Parameter | Type | Example | Notes |
---|---|---|---|
work_order_id | integer | 1753 | Work Order ID. |
Query Parameters
Parameter | Type | Example | Notes |
---|---|---|---|
access_token | string | abc123defg459hijk786lmn45 | Required. |
async | boolean | &async=true | Optional. Make an asynchronous request. |
Body Parameters
Body parameters will vary depending on your schedule mode. Refer to Schedules for additional examples.
Note: Make sure to pass the start and end objects to clear out any existing schedule options.
Update Schedule Examples
Response
Returns the Work Order Schedule Response (without the “schedule”: label). Refer to Schedules for parameter details and examples.
Errors
400 Bad Request: Invalid Work Order ID.
{
"status_code": 400,
"message": "(401) You are not (or are no longer) authorized to view work order by id #{:work_order_id}."
}