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-2205-4a05-8980-23184693df9b",
  "edit_date": "2025-08-01 12:00:00",
  "job_uuid": "123e4567-ee46-4d28-8f9d-231849c8c11b",
  "queue_uuid": "123e4567-7b1f-4245-9c32-231845b10e4b",
  "staff_uuid": "123e4567-46ec-40a2-bf8d-23184f87cc0b",
  "allocation_date": "2025-08-01 12:00:00",
  "allocation_window_uuid": "123e4567-dbfa-48d0-bc0e-231842ca1ffb",
  "allocated_by_staff_uuid": "123e4567-3f08-48dd-8203-23184a4c213b",
  "allocated_timestamp": "2025-08-01 12:00:00",
  "expiry_timestamp": "2025-08-01 12:00:00",
  "read_timestamp": "2025-08-01 12:00:00",
  "completion_timestamp": "2025-08-01 12:00:00",
  "acceptance_timestamp": "2025-08-01 12:00:00"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes