---
title: "Update an existing HRIS Org Structure by external ID"
method: PATCH
path: "/hris/organization_structures/external/{external_id}"
tags: ["organizationStructure"]
---

# Update an existing HRIS Org Structure by external ID

`PATCH /hris/organization_structures/external/{external_id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/hris/organization_structures/external/{external_id}`
- Auth: HTTP bearer

Avoid this endpoint for team changes. Use the single-team endpoints instead: POST /hris/organization-structures/{hris_org_structure_id}/teams, PATCH or DELETE /hris/organization-structures/teams/{team_id}. Here a team sent with only its id is deleted, and one call can rename, move or delete many teams. Use this only for the structure name or settings, or a deliberate bulk change to the whole hierarchy. Fields left out of the body keep their current values.

 **Token scopes**: `organizations:write`

## Path parameters

- `external_id` string, required

## Request body

- object
  - `data` HrisOrganizationStructuresExternalExternalIdPatchRequestBodyContentApplicationJsonSchemaData
    - `name` string: Name of the organization
    - `teams` HrisOrganizationStructuresExternalExternalIdPatchRequestBodyContentApplicationJsonSchemaDataTeamsItems[], required
    - `external_id` string: External ID
    - `enable_roles` boolean: Enable roles
    - `is_multiselect` boolean: Is multiselect

## Response `200`

Successful operation

- OrganizationStructureUpdateOrganizationStructureByExternalIdResponse200: Empty response body

## Other responses

- `400`: Bad request - The request body is invalid or missing required fields.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Not found - No organization structure exists for the provided externalId.
- `500`: Operation failed.

---

[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)
