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

# Update Tenant

## Overview

Update tenant information such as name and settings. Only ADMIN users can update tenant details.

## Authorization

* User must be authenticated with a valid Bearer token
* User must have ADMIN role in the tenant

## Example Usage

```bash theme={null}
curl -X POST \
  https://faisalshop.mvp-apps.ae/api/v2/admin/tenants/123 \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Updated Store Name"
  }'
```

```javascript theme={null}
await axios.post(
  `/api/v2/admin/tenants/${tenantId}`,
  {
    name: 'Updated Store Name'
  },
  {
    headers: {
      Authorization: `Bearer ${token}`
    }
  }
);
```


## OpenAPI

````yaml POST /api/v2/admin/tenants/{id}
openapi: 3.1.0
info:
  title: Urban Things API
  description: Multi-tenant e-commerce platform API
  version: 2.0.0
  contact:
    email: info@faisalkc.com
servers:
  - url: https://faisalshop.mvp-apps.ae
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /api/v2/admin/tenants/{id}:
    post:
      tags:
        - Tenants
      summary: Update tenant
      parameters:
        - $ref: '#/components/parameters/TenantIdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
      responses:
        '200':
          description: Tenant updated
components:
  parameters:
    TenantIdPath:
      name: tenantId
      in: path
      required: true
      schema:
        type: integer
      description: Tenant ID
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````