Create a new Job Allocation
Changed onOAuth Scope
This endpoint requires the following OAuth scope manage_schedule.
Record UUID
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the x-record-uuid response header.
Request
- Base URLhttps://api.servicem8.com/api_1.0
- URLhttps://api.servicem8.com/api_1.0/joballocation.json
- Auth
- API key in header X-Api-Key
- or OAuth 2Authorization code: https://api.servicem8.com/oauth/authorizeToken URL: https://api.servicem8.com/oauth/access_token scopes: manage_schedule
Request body
Example request
{
"job_uuid": "123e4567-740c-4fa5-bf5e-23f94609a4bb",
"staff_uuid": "123e4567-a785-42a0-a73f-23f948f854fb",
"allocation_date": "2026-03-01 12:00:00",
"allocation_window_uuid": "123e4567-6550-4c79-a464-23f946c4a94b",
"allocated_by_staff_uuid": "123e4567-97e7-40aa-94e3-23f94ca2c33b",
"allocated_timestamp": "2026-03-01 12:00:00",
"expiry_timestamp": "2026-03-01 12:00:00",
"read_timestamp": "2026-03-01 12:00:00",
"completion_timestamp": "2026-03-01 12:00:00",
"uuid": "123e4567-2d60-4e31-9315-23f94dd3f31b"
}Response
Success
Example response
{
"message": "OK"
}Changes
- breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type, and format fromuuidto no format - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - warning
removed the request property
- breaking
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info