Update web widget
curl --request PATCH \
--url https://app.famulor.io/api/v1/widget-connectors/{id} \
--header 'Content-Type: application/json' \
--data '
{
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"allowed_origins": [
"<string>"
],
"voice_enabled": true,
"chat_enabled": true,
"is_active": true,
"theme": {
"launcher_label": "none",
"primary_color": "<string>",
"title": "<string>",
"greeting_text": "<string>",
"logo_url": "<string>",
"launcher_text": "<string>"
}
}
'import requests
url = "https://app.famulor.io/api/v1/widget-connectors/{id}"
payload = {
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"allowed_origins": ["<string>"],
"voice_enabled": True,
"chat_enabled": True,
"is_active": True,
"theme": {
"launcher_label": "none",
"primary_color": "<string>",
"title": "<string>",
"greeting_text": "<string>",
"logo_url": "<string>",
"launcher_text": "<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({
assistant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
allowed_origins: ['<string>'],
voice_enabled: true,
chat_enabled: true,
is_active: true,
theme: {
launcher_label: 'none',
primary_color: '<string>',
title: '<string>',
greeting_text: '<string>',
logo_url: '<string>',
launcher_text: '<string>'
}
})
};
fetch('https://app.famulor.io/api/v1/widget-connectors/{id}', 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://app.famulor.io/api/v1/widget-connectors/{id}",
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([
'assistant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'allowed_origins' => [
'<string>'
],
'voice_enabled' => true,
'chat_enabled' => true,
'is_active' => true,
'theme' => [
'launcher_label' => 'none',
'primary_color' => '<string>',
'title' => '<string>',
'greeting_text' => '<string>',
'logo_url' => '<string>',
'launcher_text' => '<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://app.famulor.io/api/v1/widget-connectors/{id}"
payload := strings.NewReader("{\n \"assistant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"voice_enabled\": true,\n \"chat_enabled\": true,\n \"is_active\": true,\n \"theme\": {\n \"launcher_label\": \"none\",\n \"primary_color\": \"<string>\",\n \"title\": \"<string>\",\n \"greeting_text\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"launcher_text\": \"<string>\"\n }\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://app.famulor.io/api/v1/widget-connectors/{id}")
.header("Content-Type", "application/json")
.body("{\n \"assistant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"voice_enabled\": true,\n \"chat_enabled\": true,\n \"is_active\": true,\n \"theme\": {\n \"launcher_label\": \"none\",\n \"primary_color\": \"<string>\",\n \"title\": \"<string>\",\n \"greeting_text\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"launcher_text\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/widget-connectors/{id}")
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 \"assistant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"voice_enabled\": true,\n \"chat_enabled\": true,\n \"is_active\": true,\n \"theme\": {\n \"launcher_label\": \"none\",\n \"primary_color\": \"<string>\",\n \"title\": \"<string>\",\n \"greeting_text\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"launcher_text\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_key": "<string>",
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"allowed_origins": [
"<string>"
],
"voice_enabled": true,
"chat_enabled": true,
"is_active": true,
"theme": {
"launcher_icon": "milian",
"launcher_label": "none",
"launcher_label_i18n": {},
"primary_color": "<string>",
"title": "<string>",
"greeting_text": "<string>",
"position": "bottom-right",
"display_mode": "floating",
"logo_url": "<string>",
"launcher_text": "<string>",
"presence_mode": "visualizer"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Widgets
Update web widget
Required scope: assistants:write. You can change assistant_id to point the widget at another assistant in the same workspace.
PATCH
/
widget-connectors
/
{id}
Update web widget
curl --request PATCH \
--url https://app.famulor.io/api/v1/widget-connectors/{id} \
--header 'Content-Type: application/json' \
--data '
{
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"allowed_origins": [
"<string>"
],
"voice_enabled": true,
"chat_enabled": true,
"is_active": true,
"theme": {
"launcher_label": "none",
"primary_color": "<string>",
"title": "<string>",
"greeting_text": "<string>",
"logo_url": "<string>",
"launcher_text": "<string>"
}
}
'import requests
url = "https://app.famulor.io/api/v1/widget-connectors/{id}"
payload = {
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"allowed_origins": ["<string>"],
"voice_enabled": True,
"chat_enabled": True,
"is_active": True,
"theme": {
"launcher_label": "none",
"primary_color": "<string>",
"title": "<string>",
"greeting_text": "<string>",
"logo_url": "<string>",
"launcher_text": "<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({
assistant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
allowed_origins: ['<string>'],
voice_enabled: true,
chat_enabled: true,
is_active: true,
theme: {
launcher_label: 'none',
primary_color: '<string>',
title: '<string>',
greeting_text: '<string>',
logo_url: '<string>',
launcher_text: '<string>'
}
})
};
fetch('https://app.famulor.io/api/v1/widget-connectors/{id}', 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://app.famulor.io/api/v1/widget-connectors/{id}",
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([
'assistant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'allowed_origins' => [
'<string>'
],
'voice_enabled' => true,
'chat_enabled' => true,
'is_active' => true,
'theme' => [
'launcher_label' => 'none',
'primary_color' => '<string>',
'title' => '<string>',
'greeting_text' => '<string>',
'logo_url' => '<string>',
'launcher_text' => '<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://app.famulor.io/api/v1/widget-connectors/{id}"
payload := strings.NewReader("{\n \"assistant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"voice_enabled\": true,\n \"chat_enabled\": true,\n \"is_active\": true,\n \"theme\": {\n \"launcher_label\": \"none\",\n \"primary_color\": \"<string>\",\n \"title\": \"<string>\",\n \"greeting_text\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"launcher_text\": \"<string>\"\n }\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://app.famulor.io/api/v1/widget-connectors/{id}")
.header("Content-Type", "application/json")
.body("{\n \"assistant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"voice_enabled\": true,\n \"chat_enabled\": true,\n \"is_active\": true,\n \"theme\": {\n \"launcher_label\": \"none\",\n \"primary_color\": \"<string>\",\n \"title\": \"<string>\",\n \"greeting_text\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"launcher_text\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/widget-connectors/{id}")
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 \"assistant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"voice_enabled\": true,\n \"chat_enabled\": true,\n \"is_active\": true,\n \"theme\": {\n \"launcher_label\": \"none\",\n \"primary_color\": \"<string>\",\n \"title\": \"<string>\",\n \"greeting_text\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"launcher_text\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_key": "<string>",
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"allowed_origins": [
"<string>"
],
"voice_enabled": true,
"chat_enabled": true,
"is_active": true,
"theme": {
"launcher_icon": "milian",
"launcher_label": "none",
"launcher_label_i18n": {},
"primary_color": "<string>",
"title": "<string>",
"greeting_text": "<string>",
"position": "bottom-right",
"display_mode": "floating",
"logo_url": "<string>",
"launcher_text": "<string>",
"presence_mode": "visualizer"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Path Parameters
Body
application/json
Assistant that answers voice and chat from this widget.
Replaces the allowlist. Empty array blocks third-party hosts.
Widget appearance. launcher_label_i18n is derived from launcher_label and is read-only — never persist client-supplied maps.
Show child attributes
Show child attributes
Response
200 - application/json
Updated widget.
Show child attributes
Show child attributes
⌘I