> ## Documentation Index
> Fetch the complete documentation index at: https://yn-c9bb3266.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Entity

> Update an existing BaaS entity's details

## Path parameters

<ParamField path="entity_id" type="string" required>
  The unique identifier of the entity to update.
</ParamField>

## Body

All fields are optional. Only include the fields you want to update.

<ParamField body="phone" type="object">
  Updated phone details with `country_code` and `number`.
</ParamField>

<ParamField body="address" type="object">
  Updated address details.
</ParamField>

<ParamField body="entity_detail" type="object">
  Updated individual or business details.
</ParamField>

## Response

Returns the updated entity object with the same schema as [Get Entity](/api-reference/baas/get-entity).

<ResponseExample>
  ```json 200 OK theme={"theme":{"light":"github-dark","dark":"github-dark"}}
  {
    "id": "ent_660e8400-e29b-41d4-a716-446655440000",
    "account_id": "550e8400-e29b-41d4-a716-446655440000",
    "merchant_entity_id": "merchant_user_12345",
    "national_entity": "INDIVIDUAL",
    "phone": {
      "country_code": "+1",
      "number": "2025559999"
    },
    "address": {
      "address_line_1": "456 Oak Ave",
      "city": "San Francisco",
      "state": "CA",
      "zip_code": "94103",
      "country": "US"
    },
    "entity_detail": {
      "individual": {
        "first_name": "Dee",
        "last_name": "Hock",
        "email": "john.updated@example.com",
        "date_of_birth": "1990-01-15"
      }
    },
    "created_at": "2026-02-01T10:00:00Z",
    "updated_at": "2026-02-01T12:30:00Z"
  }
  ```

  ```json 404 Not Found theme={"theme":{"light":"github-dark","dark":"github-dark"}}
  {
    "code": "ENTITY_NOT_FOUND",
    "messages": ["Entity not found"],
    "http_code": 404
  }
  ```
</ResponseExample>
