Skip to main content
PUT
/
v1
/
settings
/
chat
Update chat settings
curl --request PUT \
  --url https://dev.flextell.ai/api/v1/settings/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant: <x-tenant>' \
  --data '
{
  "password": "<string>",
  "pre_booking_requirements": {
    "enabled": true
  },
  "customer_forms": {
    "default_template_id": 123
  },
  "ai_reply_windows": [
    {
      "start_time": "<string>",
      "end_time": "<string>"
    }
  ]
}
'
{
  "success": "<string>",
  "data": {
    "prefix": "<string>",
    "settings": [
      "<unknown>"
    ]
  }
}

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
password
string
required

The password.

pre_booking_requirements
object

The pre booking requirements.

customer_forms
object

The customer forms.

ai_reply_windows
object[] | null

The ai reply windows.

Minimum array length: 1

Response

success
string
required
data
object
required