Update CES settings
curl --request PATCH \
--url http://localhost:8080/ces/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"web_enabled": true,
"email_enabled": true,
"phone_enabled": true,
"whatsapp_enabled": true,
"sms_enabled": true,
"slack_enabled": true,
"api_enabled": true,
"web_voice_enabled": true,
"instagram_enabled": true,
"messenger_enabled": true,
"custom_message": "<string>",
"auto_send_on_close": true,
"send_delay_minutes": 123,
"resend_after_days": 4503599627370496,
"rescore_window_hours": 4503599627370495,
"channel_config": {},
"web_template_html": "<string>",
"email_template_html": "<string>",
"email_template_subject": "<string>"
}
'import requests
url = "http://localhost:8080/ces/settings"
payload = {
"web_enabled": True,
"email_enabled": True,
"phone_enabled": True,
"whatsapp_enabled": True,
"sms_enabled": True,
"slack_enabled": True,
"api_enabled": True,
"web_voice_enabled": True,
"instagram_enabled": True,
"messenger_enabled": True,
"custom_message": "<string>",
"auto_send_on_close": True,
"send_delay_minutes": 123,
"resend_after_days": 4503599627370496,
"rescore_window_hours": 4503599627370495,
"channel_config": {},
"web_template_html": "<string>",
"email_template_html": "<string>",
"email_template_subject": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
web_enabled: true,
email_enabled: true,
phone_enabled: true,
whatsapp_enabled: true,
sms_enabled: true,
slack_enabled: true,
api_enabled: true,
web_voice_enabled: true,
instagram_enabled: true,
messenger_enabled: true,
custom_message: '<string>',
auto_send_on_close: true,
send_delay_minutes: 123,
resend_after_days: 4503599627370496,
rescore_window_hours: 4503599627370495,
channel_config: {},
web_template_html: '<string>',
email_template_html: '<string>',
email_template_subject: '<string>'
})
};
fetch('http://localhost:8080/ces/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/ces/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'web_enabled' => true,
'email_enabled' => true,
'phone_enabled' => true,
'whatsapp_enabled' => true,
'sms_enabled' => true,
'slack_enabled' => true,
'api_enabled' => true,
'web_voice_enabled' => true,
'instagram_enabled' => true,
'messenger_enabled' => true,
'custom_message' => '<string>',
'auto_send_on_close' => true,
'send_delay_minutes' => 123,
'resend_after_days' => 4503599627370496,
'rescore_window_hours' => 4503599627370495,
'channel_config' => [
],
'web_template_html' => '<string>',
'email_template_html' => '<string>',
'email_template_subject' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/ces/settings"
payload := strings.NewReader("{\n \"web_enabled\": true,\n \"email_enabled\": true,\n \"phone_enabled\": true,\n \"whatsapp_enabled\": true,\n \"sms_enabled\": true,\n \"slack_enabled\": true,\n \"api_enabled\": true,\n \"web_voice_enabled\": true,\n \"instagram_enabled\": true,\n \"messenger_enabled\": true,\n \"custom_message\": \"<string>\",\n \"auto_send_on_close\": true,\n \"send_delay_minutes\": 123,\n \"resend_after_days\": 4503599627370496,\n \"rescore_window_hours\": 4503599627370495,\n \"channel_config\": {},\n \"web_template_html\": \"<string>\",\n \"email_template_html\": \"<string>\",\n \"email_template_subject\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8080/ces/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"web_enabled\": true,\n \"email_enabled\": true,\n \"phone_enabled\": true,\n \"whatsapp_enabled\": true,\n \"sms_enabled\": true,\n \"slack_enabled\": true,\n \"api_enabled\": true,\n \"web_voice_enabled\": true,\n \"instagram_enabled\": true,\n \"messenger_enabled\": true,\n \"custom_message\": \"<string>\",\n \"auto_send_on_close\": true,\n \"send_delay_minutes\": 123,\n \"resend_after_days\": 4503599627370496,\n \"rescore_window_hours\": 4503599627370495,\n \"channel_config\": {},\n \"web_template_html\": \"<string>\",\n \"email_template_html\": \"<string>\",\n \"email_template_subject\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/ces/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"web_enabled\": true,\n \"email_enabled\": true,\n \"phone_enabled\": true,\n \"whatsapp_enabled\": true,\n \"sms_enabled\": true,\n \"slack_enabled\": true,\n \"api_enabled\": true,\n \"web_voice_enabled\": true,\n \"instagram_enabled\": true,\n \"messenger_enabled\": true,\n \"custom_message\": \"<string>\",\n \"auto_send_on_close\": true,\n \"send_delay_minutes\": 123,\n \"resend_after_days\": 4503599627370496,\n \"rescore_window_hours\": 4503599627370495,\n \"channel_config\": {},\n \"web_template_html\": \"<string>\",\n \"email_template_html\": \"<string>\",\n \"email_template_subject\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"survey_type": "csat",
"organization_id": "<string>",
"web_enabled": true,
"email_enabled": true,
"phone_enabled": true,
"whatsapp_enabled": true,
"sms_enabled": true,
"slack_enabled": true,
"api_enabled": true,
"web_voice_enabled": true,
"instagram_enabled": true,
"messenger_enabled": true,
"custom_message": "<string>",
"auto_send_on_close": true,
"send_delay_minutes": 123,
"resend_policy": "always",
"resend_after_days": 0,
"rescore_window_hours": 4503599627370495,
"channel_config": {},
"web_template_html": "<string>",
"email_template_html": "<string>",
"email_template_subject": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}CES
Update CES settings
Update your CES settings — customize the feedback-page and request-email templates. Omitted keys are preserved; null clears a template back to the default design.
PATCH
/
ces
/
settings
Update CES settings
curl --request PATCH \
--url http://localhost:8080/ces/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"web_enabled": true,
"email_enabled": true,
"phone_enabled": true,
"whatsapp_enabled": true,
"sms_enabled": true,
"slack_enabled": true,
"api_enabled": true,
"web_voice_enabled": true,
"instagram_enabled": true,
"messenger_enabled": true,
"custom_message": "<string>",
"auto_send_on_close": true,
"send_delay_minutes": 123,
"resend_after_days": 4503599627370496,
"rescore_window_hours": 4503599627370495,
"channel_config": {},
"web_template_html": "<string>",
"email_template_html": "<string>",
"email_template_subject": "<string>"
}
'import requests
url = "http://localhost:8080/ces/settings"
payload = {
"web_enabled": True,
"email_enabled": True,
"phone_enabled": True,
"whatsapp_enabled": True,
"sms_enabled": True,
"slack_enabled": True,
"api_enabled": True,
"web_voice_enabled": True,
"instagram_enabled": True,
"messenger_enabled": True,
"custom_message": "<string>",
"auto_send_on_close": True,
"send_delay_minutes": 123,
"resend_after_days": 4503599627370496,
"rescore_window_hours": 4503599627370495,
"channel_config": {},
"web_template_html": "<string>",
"email_template_html": "<string>",
"email_template_subject": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
web_enabled: true,
email_enabled: true,
phone_enabled: true,
whatsapp_enabled: true,
sms_enabled: true,
slack_enabled: true,
api_enabled: true,
web_voice_enabled: true,
instagram_enabled: true,
messenger_enabled: true,
custom_message: '<string>',
auto_send_on_close: true,
send_delay_minutes: 123,
resend_after_days: 4503599627370496,
rescore_window_hours: 4503599627370495,
channel_config: {},
web_template_html: '<string>',
email_template_html: '<string>',
email_template_subject: '<string>'
})
};
fetch('http://localhost:8080/ces/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/ces/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'web_enabled' => true,
'email_enabled' => true,
'phone_enabled' => true,
'whatsapp_enabled' => true,
'sms_enabled' => true,
'slack_enabled' => true,
'api_enabled' => true,
'web_voice_enabled' => true,
'instagram_enabled' => true,
'messenger_enabled' => true,
'custom_message' => '<string>',
'auto_send_on_close' => true,
'send_delay_minutes' => 123,
'resend_after_days' => 4503599627370496,
'rescore_window_hours' => 4503599627370495,
'channel_config' => [
],
'web_template_html' => '<string>',
'email_template_html' => '<string>',
'email_template_subject' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/ces/settings"
payload := strings.NewReader("{\n \"web_enabled\": true,\n \"email_enabled\": true,\n \"phone_enabled\": true,\n \"whatsapp_enabled\": true,\n \"sms_enabled\": true,\n \"slack_enabled\": true,\n \"api_enabled\": true,\n \"web_voice_enabled\": true,\n \"instagram_enabled\": true,\n \"messenger_enabled\": true,\n \"custom_message\": \"<string>\",\n \"auto_send_on_close\": true,\n \"send_delay_minutes\": 123,\n \"resend_after_days\": 4503599627370496,\n \"rescore_window_hours\": 4503599627370495,\n \"channel_config\": {},\n \"web_template_html\": \"<string>\",\n \"email_template_html\": \"<string>\",\n \"email_template_subject\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8080/ces/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"web_enabled\": true,\n \"email_enabled\": true,\n \"phone_enabled\": true,\n \"whatsapp_enabled\": true,\n \"sms_enabled\": true,\n \"slack_enabled\": true,\n \"api_enabled\": true,\n \"web_voice_enabled\": true,\n \"instagram_enabled\": true,\n \"messenger_enabled\": true,\n \"custom_message\": \"<string>\",\n \"auto_send_on_close\": true,\n \"send_delay_minutes\": 123,\n \"resend_after_days\": 4503599627370496,\n \"rescore_window_hours\": 4503599627370495,\n \"channel_config\": {},\n \"web_template_html\": \"<string>\",\n \"email_template_html\": \"<string>\",\n \"email_template_subject\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/ces/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"web_enabled\": true,\n \"email_enabled\": true,\n \"phone_enabled\": true,\n \"whatsapp_enabled\": true,\n \"sms_enabled\": true,\n \"slack_enabled\": true,\n \"api_enabled\": true,\n \"web_voice_enabled\": true,\n \"instagram_enabled\": true,\n \"messenger_enabled\": true,\n \"custom_message\": \"<string>\",\n \"auto_send_on_close\": true,\n \"send_delay_minutes\": 123,\n \"resend_after_days\": 4503599627370496,\n \"rescore_window_hours\": 4503599627370495,\n \"channel_config\": {},\n \"web_template_html\": \"<string>\",\n \"email_template_html\": \"<string>\",\n \"email_template_subject\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"survey_type": "csat",
"organization_id": "<string>",
"web_enabled": true,
"email_enabled": true,
"phone_enabled": true,
"whatsapp_enabled": true,
"sms_enabled": true,
"slack_enabled": true,
"api_enabled": true,
"web_voice_enabled": true,
"instagram_enabled": true,
"messenger_enabled": true,
"custom_message": "<string>",
"auto_send_on_close": true,
"send_delay_minutes": 123,
"resend_policy": "always",
"resend_after_days": 0,
"rescore_window_hours": 4503599627370495,
"channel_config": {},
"web_template_html": "<string>",
"email_template_html": "<string>",
"email_template_subject": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Body
application/json
How often the same session may be surveyed: once_per_session (default, one survey ever), once_per_close (one per closure, so a reopened session can be surveyed again), once_until_answered (re-ask after resend_after_days until the customer scores it), or always (survey every close, even one the customer already rated)
Available options:
always, once_per_close, once_per_session, once_until_answered Response
Default Response
Was this page helpful?