---
title: "Update a Job Allocation"
method: POST
path: "/joballocation/{uuid}.json"
tags: ["Job Allocations"]
---

# Update a Job Allocation

`POST /joballocation/{uuid}.json`

#### OAuth Scope
This endpoint requires the following OAuth scope **manage_schedule**.

## Path parameters

- `uuid` string, uuid, required

## Request body

- JobAllocationCreate
  - `job_uuid` string, uuid — The UUID of the job that this allocation relates to.
  - `queue_uuid` unknown
  - `staff_uuid` string, uuid — The UUID of the staff member this job is allocated to.
  - `allocation_date` string — The minimum start date for a job allocation to be completed by a staff member. Setting this date will ensure the job allocation appears in the future on staff schedules.
  - `allocation_window_uuid` string, uuid — The UUID of the allocation window that defines when the job should be completed (e.g. Urgent, Early Morning, During Business Hours).
  - `allocated_by_staff_uuid` string, uuid — The UUID of the staff member who allocated the job.
  - `allocated_timestamp` string — The timestamp when the job was allocated.
  - `expiry_timestamp` string — The timestamp when the job allocation expires.
  - `read_timestamp` string — The timestamp when the job allocation was read by the staff member.
  - `completion_timestamp` string — The timestamp when the job allocation was marked as completed.
  - `estimated_duration` unknown
  - `revised_duration` unknown
  - `sort_priority` string — The sort priority for displaying this job allocation.
  - `requires_acceptance` unknown
  - `acceptance_status` unknown
  - `acceptance_timestamp` unknown
  - `uuid` string, uuid — Unique identifier for this record

## Response `200`

Success - The record was updated successfully

- Result
  - `errorCode` number
  - `message` string

## Other responses

- `400` — Bad Request - The request is malformed or contains invalid parameters
- `401` — Unauthorized - Authentication credentials are missing or invalid
- `403` — Forbidden - You don't have permission to update this resource
- `404` — Not Found - The record to update does not exist or has been deleted
- `429` — Too Many Requests - You have exceeded the rate limit
- `500` — Internal Server Error - An unexpected error occurred on the server

---

[API](https://skmtc.net/servicem8/apis/servicem8-api.md) · [All operations](https://skmtc.net/servicem8/apis/servicem8-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/servicem8/servicem8-api/versions/53ede60e3653/schema)
