Patch Widget Config
curl --request PATCH \
--url https://api.example.com/api/dashboard/integrations/zunkiree/widget-config \
--header 'Content-Type: application/json' \
--data '
{
"brand_name": "<string>",
"tone": "<string>",
"primary_color": "<string>",
"placeholder_text": "<string>",
"welcome_message": "<string>",
"quick_actions": [
"<string>"
],
"lead_intents": [
"<string>"
],
"confidence_threshold": 0.5,
"contact_email": "jsmith@example.com",
"contact_phone": "<string>"
}
'import requests
url = "https://api.example.com/api/dashboard/integrations/zunkiree/widget-config"
payload = {
"brand_name": "<string>",
"tone": "<string>",
"primary_color": "<string>",
"placeholder_text": "<string>",
"welcome_message": "<string>",
"quick_actions": ["<string>"],
"lead_intents": ["<string>"],
"confidence_threshold": 0.5,
"contact_email": "jsmith@example.com",
"contact_phone": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
brand_name: '<string>',
tone: '<string>',
primary_color: '<string>',
placeholder_text: '<string>',
welcome_message: '<string>',
quick_actions: ['<string>'],
lead_intents: ['<string>'],
confidence_threshold: 0.5,
contact_email: 'jsmith@example.com',
contact_phone: '<string>'
})
};
fetch('https://api.example.com/api/dashboard/integrations/zunkiree/widget-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/dashboard/integrations/zunkiree/widget-config",
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([
'brand_name' => '<string>',
'tone' => '<string>',
'primary_color' => '<string>',
'placeholder_text' => '<string>',
'welcome_message' => '<string>',
'quick_actions' => [
'<string>'
],
'lead_intents' => [
'<string>'
],
'confidence_threshold' => 0.5,
'contact_email' => 'jsmith@example.com',
'contact_phone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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 := "https://api.example.com/api/dashboard/integrations/zunkiree/widget-config"
payload := strings.NewReader("{\n \"brand_name\": \"<string>\",\n \"tone\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"placeholder_text\": \"<string>\",\n \"welcome_message\": \"<string>\",\n \"quick_actions\": [\n \"<string>\"\n ],\n \"lead_intents\": [\n \"<string>\"\n ],\n \"confidence_threshold\": 0.5,\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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("https://api.example.com/api/dashboard/integrations/zunkiree/widget-config")
.header("Content-Type", "application/json")
.body("{\n \"brand_name\": \"<string>\",\n \"tone\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"placeholder_text\": \"<string>\",\n \"welcome_message\": \"<string>\",\n \"quick_actions\": [\n \"<string>\"\n ],\n \"lead_intents\": [\n \"<string>\"\n ],\n \"confidence_threshold\": 0.5,\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/dashboard/integrations/zunkiree/widget-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"brand_name\": \"<string>\",\n \"tone\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"placeholder_text\": \"<string>\",\n \"welcome_message\": \"<string>\",\n \"quick_actions\": [\n \"<string>\"\n ],\n \"lead_intents\": [\n \"<string>\"\n ],\n \"confidence_threshold\": 0.5,\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Dashboard
Patch Widget Config
Forward the patch payload to Zunkiree. Only fields the merchant
explicitly set are forwarded — Pydantic’s exclude_unset=True
strips defaults so PATCH semantics are preserved (None = “don’t
touch this field”).
PATCH
/
api
/
dashboard
/
integrations
/
zunkiree
/
widget-config
Patch Widget Config
curl --request PATCH \
--url https://api.example.com/api/dashboard/integrations/zunkiree/widget-config \
--header 'Content-Type: application/json' \
--data '
{
"brand_name": "<string>",
"tone": "<string>",
"primary_color": "<string>",
"placeholder_text": "<string>",
"welcome_message": "<string>",
"quick_actions": [
"<string>"
],
"lead_intents": [
"<string>"
],
"confidence_threshold": 0.5,
"contact_email": "jsmith@example.com",
"contact_phone": "<string>"
}
'import requests
url = "https://api.example.com/api/dashboard/integrations/zunkiree/widget-config"
payload = {
"brand_name": "<string>",
"tone": "<string>",
"primary_color": "<string>",
"placeholder_text": "<string>",
"welcome_message": "<string>",
"quick_actions": ["<string>"],
"lead_intents": ["<string>"],
"confidence_threshold": 0.5,
"contact_email": "jsmith@example.com",
"contact_phone": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
brand_name: '<string>',
tone: '<string>',
primary_color: '<string>',
placeholder_text: '<string>',
welcome_message: '<string>',
quick_actions: ['<string>'],
lead_intents: ['<string>'],
confidence_threshold: 0.5,
contact_email: 'jsmith@example.com',
contact_phone: '<string>'
})
};
fetch('https://api.example.com/api/dashboard/integrations/zunkiree/widget-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/dashboard/integrations/zunkiree/widget-config",
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([
'brand_name' => '<string>',
'tone' => '<string>',
'primary_color' => '<string>',
'placeholder_text' => '<string>',
'welcome_message' => '<string>',
'quick_actions' => [
'<string>'
],
'lead_intents' => [
'<string>'
],
'confidence_threshold' => 0.5,
'contact_email' => 'jsmith@example.com',
'contact_phone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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 := "https://api.example.com/api/dashboard/integrations/zunkiree/widget-config"
payload := strings.NewReader("{\n \"brand_name\": \"<string>\",\n \"tone\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"placeholder_text\": \"<string>\",\n \"welcome_message\": \"<string>\",\n \"quick_actions\": [\n \"<string>\"\n ],\n \"lead_intents\": [\n \"<string>\"\n ],\n \"confidence_threshold\": 0.5,\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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("https://api.example.com/api/dashboard/integrations/zunkiree/widget-config")
.header("Content-Type", "application/json")
.body("{\n \"brand_name\": \"<string>\",\n \"tone\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"placeholder_text\": \"<string>\",\n \"welcome_message\": \"<string>\",\n \"quick_actions\": [\n \"<string>\"\n ],\n \"lead_intents\": [\n \"<string>\"\n ],\n \"confidence_threshold\": 0.5,\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/dashboard/integrations/zunkiree/widget-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"brand_name\": \"<string>\",\n \"tone\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"placeholder_text\": \"<string>\",\n \"welcome_message\": \"<string>\",\n \"quick_actions\": [\n \"<string>\"\n ],\n \"lead_intents\": [\n \"<string>\"\n ],\n \"confidence_threshold\": 0.5,\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Body for PATCH /widget-config. Every field is optional; only
non-None fields are forwarded to Z6 (PATCH semantics — explicit
None means "don't touch"). Field set mirrors SHARED-CONTRACT §12.4.
Maximum string length:
120Maximum string length:
32CSS color string, e.g. '#2563eb' or 'rgb(37,99,235)'.
Maximum string length:
16Maximum string length:
200Maximum string length:
500Required range:
0 <= x <= 1Maximum string length:
40Response
Successful Response
The response is of type Response Patch Widget Config Api Dashboard Integrations Zunkiree Widget Config Patch · object.