# Update a factory (name + timezone — slug locked) (/docs/api-reference/organizations/OrganizationsController_updateFactory)

`PATCH /api/organizations/{orgId}/factories/{factoryRecordId}`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `orgId` | path | yes | string | Organization ID |
| `factoryRecordId` | path | yes | string | Factory UUID (not the factory slug) |

## Request body

Required.

Content type: `application/json`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Factory name"
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone"
    },
    "location": {
      "type": "string",
      "description": "Free-text physical location (address / building / floor)."
    },
    "mapPin": {
      "nullable": true,
      "description": "Verified map coordinates; null removes the saved pin.",
      "type": "object",
      "allOf": [
        {
          "type": "object",
          "properties": {
            "latitude": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            },
            "longitude": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            }
          },
          "required": [
            "latitude",
            "longitude"
          ]
        }
      ]
    }
  }
}
```

## Responses

### 200: Factory updated

### 404: Factory not found