Job

Operations on the job level

Apply changes to statuses of jobs

Updates the status of one of more jobs, so that these changes can be reflected upon the tour instantly. This is only an auxiliary way for providing Bettermile with job updates, while the main job updates are still to be transmitted over the connector.

SecurityApiKeyAuth
Request
path Parameters
tourId
required
string <uuid>

Unique tour identifier (generated by Better Route backend)

Request Body schema: application/json
Array of objects (JobStatusChange) [ 1 .. 150 ] items

List of job status changes to be applied (only 1 status change per job is allowed)

Responses
200

Changes to statuses of jobs have been successfully applied

400

Error response returned when the request is invalid. In most cases this implies that some data in the request is either missing or has incorrect format.

401

Error response returned when the provided API key is missing or invalid

404

Error response returned in cases the requested endpoint or data can't be found

500

Error response returned whenever the server fails to process the request

post/v1/tours/{tourId}/jobs/statuses
Request samples
application/json
{
  • "statusChanges": [
    ]
}
Response samples
application/json
{
  • "data": { }
}