Skip to main content
PATCH
/
issuers
/
{issuer_id}
/
establishments
/
{establishment_id}
Update Establishment
curl --request PATCH \
  --url http://localhost:8000/issuers/{issuer_id}/establishments/{establishment_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "Nueva Dirección 456, Quito, Ecuador",
  "is_active": false,
  "name": "Sucursal Norte"
}
'
{
  "address": "Av. Principal 123, Quito, Ecuador",
  "code": "001",
  "created_at": "2024-01-01T00:00:00Z",
  "id": "770e8400-e29b-41d4-a716-446655440000",
  "is_active": true,
  "issuer_id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Matriz",
  "tenant_id": "660e8400-e29b-41d4-a716-446655440000",
  "updated_at": "2024-01-01T00:00:00Z"
}

Headers

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

Path Parameters

issuer_id
string<uuid>
required
establishment_id
string<uuid>
required

Cookies

factio_access_token
string | null

Body

application/json

Schema for updating an Establishment (partial update).

name
string | null

Display name for the establishment

Required string length: 1 - 255
address
string | null

Physical address of the establishment

Minimum string length: 1
is_active
boolean | null

Whether the establishment is active

Response

Successful Response

Schema for Establishment response.

id
string<uuid>
required
tenant_id
string<uuid>
required
issuer_id
string<uuid>
required
code
string
required
name
string | null
required
address
string
required
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required