---
title: "Update Assignment"
method: PUT
path: "/resource-planner/assignments/{assignment_id}"
tags: ["Schedule"]
---

# Update Assignment

`PUT /resource-planner/assignments/{assignment_id}`

Update an existing schedule assignment.

## Path parameters

- `assignment_id` number, required

## Request body

- AssignmentRequestUpdateRequest
  - `user` integer
  - `project` string — Project encoded ID
  - `task` string — Task encoded ID
  - `client` integer — Client ID
  - `type` 'project' | 'client' | 'task' | 'time-off'
  - `startDate` string — Format: Y-m-d
  - `endDate` string — Format: Y-m-d
  - `time` integer — Scheduled time in seconds
  - `note` string — Max 1000 chars
  - `includeWeekends` boolean
  - `color` string — Hex color #rrggbb
  - `sendNotification` boolean
  - `forceOverride` boolean
  - `timeOffType` string — Time-off type (only when type is `time-off`).
  - `timeOffPeriod` 'full-day' | 'half-of-day' | 'quarter-of-day' | 'half-and-quarter-of-day' — Time-off period (only when type is `time-off`).
  - `status` 'pending' | 'approved' — Time-off approval status (only when type is `time-off`).

## Response `200`

OK

- Assignment
  - `days` number — Number of workdays
  - `endDate` string
  - `id` number
  - `project` string
  - `startDate` string
  - `time` number — Scheduled time in seconds
  - `type` 'project' | 'time-off'
  - `user` number

## Other responses

- `401` — Unauthorized

---

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