---
title: "Edit a legal entity"
method: PATCH
path: "/legal-entities/{id}"
tags: ["legalEntities"]
---

# Edit a legal entity

`PATCH /legal-entities/{id}`

## Request

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

Applies a partial update to an existing legal entity identified by id; only fields included in the request body are modified.

 **Token scopes**: `legal-entity:write`

## Path parameters

- `id` string, required

## Request body

- object
  - `data` LegalEntitiesIdPatchRequestBodyContentApplicationJsonSchemaData
    - `name` string: The name of the legal entity.
    - `phone` string: The phone number of the legal entity.
    - `address` LegalEntitiesIdPatchRequestBodyContentApplicationJsonSchemaDataAddress
      - `city` string: The city.
      - `state` string: The state.
      - `street` string: The street address.
      - `country` string: The ISO 2-letter country code.
    - `sic_number` string: The SIC number of the legal entity.
    - `entity_type` string: The type of the legal entity.
    - `industry_name` string: The industry name of the legal entity.
    - `company_identifiers` LegalEntitiesIdPatchRequestBodyContentApplicationJsonSchemaDataCompanyIdentifiers: Identifiers associated with the legal entity.
      - `tax_number` string: The tax identification number of the legal entity.
      - `registration_number` string: The registration number of the legal entity.
    - `deel_industry_subcategory_id` string: Reference to the Deel Industry Code (NAICS).

## Response `200`

Successfully updated the legal entity.

- LegalEntitiesUpdateLegalEntityResponse200
  - `data` LegalEntitiesIdPatchResponsesContentApplicationJsonSchemaData
    - `id` string: The unique identifier of the legal entity.
    - `name` string: The name of the legal entity.
    - `phone` string: The phone number of the legal entity.
    - `address` LegalEntitiesIdPatchResponsesContentApplicationJsonSchemaDataAddress
      - `city` string: The city.
      - `state` string: The state.
      - `street` string: The street address.
      - `country` string: The ISO 2-letter country code.
    - `sic_number` string: The SIC number of the legal entity.
    - `entity_type` string: The type of the legal entity.
    - `industry_name` string: The industry name of the legal entity.
    - `company_identifiers` LegalEntitiesIdPatchResponsesContentApplicationJsonSchemaDataCompanyIdentifiers
      - `tax_number` string: The tax identification number of the legal entity.
      - `registration_number` string: The registration number of the legal entity.

## Other responses

- `400`: Invalid request parameters.
- `401`: Operation failed.
- `403`: Permission denied.
- `404`: Operation failed.
- `500`: Operation failed.

---

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