Write a channel's design
Send only the fields you are changing. Anything you leave out keeps the value it had.
Answers the whole channel, the same as GET.
autosave decides which copy you write. Leave it out and you write the live channel, and
it is copied to the test one. Send true and you write only the test copy; the live channel
then answers merged: false, meaning the two no longer match.
Needs the permission to create channels — not the one to edit bots.
Path Parameters
- Type: integerchannel
_id requiredThe channel's integer id, which
GET /v2/channels/carries beside its uuid.
Body·
What you may write. Every field is optional; only the ones you send are written. A field not listed here is ignored rather than refused.
- Type: booleanautosave
Write the test side alone instead of the live channel. Left out, the write lands on the live channel and is copied to the test one.
- Type: stringbrand
_name - Type: booleanbranding
- Properties: 1Type: objectconditional
_proactives - Properties: 1Type: objectdesign
- Type: stringfavicon
- Type: stringfb
_pixel _id - Type: stringfoot
- Type: stringformat
- Type: stringgoogle
_analytics _id - Type: stringhead
- Properties: 1Type: object
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://api.landbot.io/v1/channels/1/ \
--request PATCH \
--header 'Content-Type: application/json' \
--cookie 'sessionid=YOUR_SECRET_TOKEN' \
--data '{
"autosave": true,
"name": "",
"brand_name": "",
"status": "",
"logo": "",
"favicon": "",
"tagline": "",
"design": {
"additionalProperty": "anything"
},
"style": "",
"head": "",
"foot": "",
"text": {
"additionalProperty": "anything"
},
"welcome": [
{
"additionalProperty": "anything"
}
],
"persistent_menu": [
{
"additionalProperty": "anything"
}
],
"conditional_proactives": {
"additionalProperty": "anything"
},
"typing_options": {
"additionalProperty": "anything"
},
"hidden_fields": {
"additionalProperty": "anything"
},
"launcher_config": {
"additionalProperty": "anything"
},
"revisit": [
{
"additionalProperty": "anything"
}
],
"revisit_off": true,
"storage_off": true,
"branding": true,
"is_legal_consent_enabled": true,
"privacy_policy_link": "",
"privacy_policy_link_text": "",
"privacy_policy_text": "",
"meta_title": "",
"meta_image": "",
"fb_pixel_id": "",
"google_analytics_id": "",
"widget_height": "",
"format": "",
"version": ""
}'
{
"success": true,
"channel": {
"id": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"type": "string",
"merged": true,
"token": "string",
"config_url": "string",
"design": {
"additionalProperty": "anything"
},
"style": "string",
"head": "string",
"foot": "string",
"logo": "string",
"favicon": "string",
"brand_name": "string",
"status": "string",
"tagline": "string",
"url": "string",
"welcome": [
{
"additionalProperty": "anything"
}
],
"persistent_menu": [
{
"additionalProperty": "anything"
}
],
"conditional_proactives": {
"additionalProperty": "anything"
},
"launcher_config": {
"additionalProperty": "anything"
},
"typing_options": {
"additionalProperty": "anything"
},
"hidden_fields": {
"additionalProperty": "anything"
},
"text": {
"additionalProperty": "anything"
},
"version": "3.0.0",
"additionalProperty": "anything"
}
}