> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update branch

> Update the data of an existing branch.

You only need to send the fields you want to update.

<ParamField path="app_id" type="string" required>
  Your store ID in Jelou Shop.
</ParamField>

<ParamField path="branch_id" type="string" required>
  The ID of the branch to update.
</ParamField>

<Note>
  To assign or change the branch language, send `properties.language`. It is a validated field: it only accepts `es`, `en`, or `pt`. Note that sending `properties` replaces the whole object, so include any other keys you want to keep as well.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/branches/{branch_id}" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Renovated Downtown Branch",
      "address": "456 Main Ave, Quito"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "9e3f2c1a-8b7d-4e6f-a5c4-d3b2a1e0f9c8",
      "name": "Renovated Downtown Branch",
      "code": "BRANCH-DOWNTOWN",
      "address": "456 Main Ave, Quito",
      "phone": "+593991234567",
      "status": true,
      "properties": {
        "schedule": "09:00 - 18:00",
        "zone": "north"
      },
      "created_at": "2026-02-19T15:30:00.000000Z",
      "updated_at": "2026-02-19T16:00:00.000000Z"
    }
  }
  ```
</ResponseExample>
