Skip to main content
PUT
/
v1
/
tenant
Update clinic info
curl --request PUT \
  --url https://dev.flextell.ai/api/v1/tenant \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant: <x-tenant>' \
  --data '
{
  "phone_number": "<string>",
  "address": "<string>",
  "knowledge_base": "<string>",
  "services": [
    "<string>"
  ],
  "location": {
    "latitude": 0,
    "longitude": 0
  },
  "work_hours": [
    {
      "enabled": true,
      "open": "<string>",
      "close": "<string>"
    }
  ]
}
'
{
  "success": "<string>",
  "data": {
    "id": 123,
    "name": "<string>",
    "avatar_url": "<string>",
    "phone_number": "<string>",
    "address": "<string>",
    "location": {
      "latitude": "<string>",
      "longitude": "<string>"
    },
    "services": [
      "<unknown>"
    ],
    "knowledge_base": [
      "<unknown>"
    ],
    "work_hours": [
      {}
    ],
    "city_id": 123,
    "district_id": 123,
    "country_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "city": {
      "id": 123,
      "name": "<string>"
    },
    "district": {
      "id": 123,
      "name": "<string>"
    },
    "country": {
      "id": 123,
      "name": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Body

application/json
phone_number
string | null

Primary public-facing phone number.

Maximum string length: 32
address
string

Clinic street address.

Maximum string length: 500
knowledge_base
string | null

Free-form knowledge base text used by the AI assistant.

Maximum string length: 5000
services
(string | null)[] | null

List of clinic services (e.g. "Parking", "Wi-Fi").

A services value.

Maximum string length: 120
location
object

Geographic coordinates.

work_hours
object[] | null

Weekly work hours, one entry per day of the week.

Required array length: 7 elements

Response

success
string
required
data
TenantResource · object
required