Job Allocations

Create a new Job Allocation

OAuth 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.

post/joballocation.json

Request body

uuidstring uuid

Unique identifier for this record

active0 | 1

Record active/deleted flag. Valid values are [0,1]

edit_datestring

Timestamp at which record was last modified

job_uuidstring uuid
queue_uuidstring uuid
staff_uuidstring uuid
allocation_datestring
allocation_window_uuidstring uuid
allocated_by_staff_uuidstring uuid
allocated_timestampstring
expiry_timestampstring
read_timestampstring
completion_timestampstring
estimated_durationstring
revised_durationstring
sort_prioritystring
requires_acceptancestring
acceptance_statusstring
acceptance_timestampstring

Example request

{
  "uuid": "123e4567-4da3-49b2-a38b-230b7e53d0ab",
  "edit_date": "2025-07-01 12:00:00",
  "job_uuid": "123e4567-69c3-4190-8761-230b7e8ea55b",
  "queue_uuid": "123e4567-6b28-4ac8-8105-230b7b57298b",
  "staff_uuid": "123e4567-b2d3-4275-9399-230b7c0df37b",
  "allocation_date": "2025-07-01 12:00:00",
  "allocation_window_uuid": "123e4567-2298-48d8-9384-230b7fe2cc7b",
  "allocated_by_staff_uuid": "123e4567-8a5e-47bf-9b94-230b74d8e62b",
  "allocated_timestamp": "2025-07-01 12:00:00",
  "expiry_timestamp": "2025-07-01 12:00:00",
  "read_timestamp": "2025-07-01 12:00:00",
  "completion_timestamp": "2025-07-01 12:00:00",
  "acceptance_timestamp": "2025-07-01 12:00:00"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes