---
title: "Update organization structure"
method: PUT
path: "/people/{id}/department"
tags: ["organizationStructure"]
---

# Update organization structure

`PUT /people/{id}/department`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/people/{id}/department`
- Auth: HTTP bearer

Assigns a worker to a department by their HRIS profile ID. By default the new assignment appends to existing positions; set `replace_other_positions` to true to replace all current positions instead.

 **Token scopes**: `people:write`

## Path parameters

- `id` string, required

## Query parameters

- `replace_other_positions` boolean

## Request body

- object
  - `data` PeopleIdDepartmentPutRequestBodyContentApplicationJsonSchemaData, required
    - `department_id` string, uuid, required: Unique identifier of this resource.
    - `effective_date` string, date: Effective date in YYYY-MM-DD format.

## Response `200`

Successful operation.

- OrganizationStructureUpdatePersonDepartmentResponse200
  - `data` PeopleIdDepartmentPutResponsesContentApplicationJsonSchemaData, required
    - `updated` boolean, required: Indicates if the resource was updated successfully.

## Other responses

- `400`: Validation failed
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

## Changes

- **2026-11-10** `d64c39e522ac`: 2 warning, 1 info
  - removed the optional property `errors/items/path` from the response with the `400` status
  - removed the optional property `request` from the response with the `400` status
  - added the optional property `errors/items/code` to the response with the `400` status

[Operation history](https://skmtc.dev/deel/apis/hris-endpoints/changes/people/:id/department/put.md)

---

[API](https://skmtc.dev/deel/apis/hris-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/hris-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/hris-endpoints/revisions/b7b456c45a40?raw)
