# Create a factory inside an organization (Xentr staff only) (/docs/api-reference/organizations/OrganizationsController_createFactory)

`POST /api/organizations/{orgId}/factories`

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

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

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `orgId` | path | yes | string | Organization ID |

## Request body

Required.

Content type: `application/json`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Factory name",
      "example": "[factory-name]"
    },
    "slug": {
      "type": "string",
      "description": "URL-friendly slug. Auto-generated from the name when omitted. Used in API routes and TV kiosk URLs — pick carefully, slugs cannot be renamed."
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone, e.g. Asia/Kuala_Lumpur"
    },
    "location": {
      "type": "string",
      "description": "Free-text physical location (address / building / floor)."
    }
  },
  "required": [
    "name"
  ]
}
```

## Responses

### 201: Factory created

### 403: Not assigned to this organization

### 409: Slug already taken