Skip to main content
PATCH
Update settings

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Scopes

settings:write

Path Parameters

chatbotId
string
required

Chatbot ID.

Body

application/json

Partial safe chatbot settings patch: one key per section, each with that section's fields (camelCase section names such as chatMode are accepted too). Only public dashboard settings accepted by API v2 can be changed. You can send back a section as you read it with one field changed: a field sent as read is never refused, and a setting the chatbot owner’s plan does not include stays as saved. A field GET returns only for reading is never saved; a warning says so when the value sent differs. A write that changes nothing that is saved saves nothing and returns a warning.

general
object

The general settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/general): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

appearance
object

The appearance settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/appearance): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

chat-mode
object

The chat-mode settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/chat-mode): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

localization
object

The localization settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/localization): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

user-data
object

The user-data settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/user-data): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

lead-form
object

The lead-form settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/lead-form): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

human-support
object

The human-support settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/human-support): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

webhooks
object

The webhooks settings section as a PATCH sends it (/api/v2/chatbots/{chatbotId}/settings/webhooks): any of these fields, each a new value or the value exactly as GET returned it. A field that GET returns only for reading is accepted and not saved, with a warning; any other field is refused with 400 VALIDATION_FAILED.

Response

Successful SiteGPT API v2 response.

ok
boolean
required
data
object
required
meta
object
required