Skip to main content
PATCH
/
tenant
Update Tenant
curl --request PATCH \
  --url http://localhost:8000/tenant \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Nuevo Nombre S.A.",
  "slug": "nuevo-nombre"
}
'
{
  "created_at": "2024-01-01T00:00:00Z",
  "id": "660e8400-e29b-41d4-a716-446655440000",
  "name": "Empresa Ejemplo S.A.",
  "slug": "empresa-ejemplo",
  "status": "active",
  "updated_at": "2024-01-01T00:00:00Z"
}

Headers

authorization
string | null
x-api-key
string | null
x-tenant-id
string | null

Cookies

factio_access_token
string | null

Body

application/json

Schema for updating a Tenant (partial update).

name
string | null

Display name of the tenant

Maximum string length: 255
slug
string | null

URL-friendly unique identifier (lowercase letters, digits, hyphens)

Required string length: 3 - 100
Pattern: ^[a-z0-9-]+$

Response

Successful Response

Schema for Tenant response.

id
string<uuid>
required
name
string
required
slug
string
required
status
enum<string>
required
Available options:
active,
inactive
created_at
string<date-time>
required
updated_at
string<date-time>
required