---
title: "Update an Allocation Window"
method: POST
path: "/allocationwindow/{uuid}.json"
tags: ["Allocation Windows"]
---

# Update an Allocation Window

`POST /allocationwindow/{uuid}.json`

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

## Path parameters

- `uuid` string, uuid, required

## Request body

- AllocationWindowCreate
  - `name` string — Name of the allocation window that defines a time period for job scheduling. Common examples include 'Morning', 'Afternoon', 'Business Hours', etc.
  - `start_time` integer — Start time of the allocation window measured in minutes from midnight. For example, 800 AM would be represented as 480 (8 hours × 60 minutes).
  - `end_time` integer — End time of the allocation window measured in minutes from midnight. For example, 1700 (500 PM) would be represented as 1020 (17 hours × 60 minutes).
  - `sort_priority` integer — Numeric value determining the display order of allocation windows. Lower values indicate higher priority. System automatically sets this to match the start_time in minutes, unless it's an urgent priority window which gets priority 0.
  - `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

## Changes

- **2025-09-12** `638a8df09bf4` — 1 warning
  - removed the request property `active`
- **2025-08-14** `ca9b053c4373` — 5 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the non-success response with the status `429`
  - …1 more
- **2025-08-13** `e859f8c27a21` — 1 info
  - the security scope `manage_schedule` was added to the endpoint's security scheme `oauth2`

[Change history](https://skmtc.dev/servicem8/apis/servicem8-api/changes/allocationwindow/:uuid.json/post.md)

---

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