curl --request PATCH \
--url https://api.b-bot.space/api/v2/distribution-channels/{channel_id} \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--data '
{
"graph_id": "<string>",
"config": {},
"context": {},
"metadata": {},
"name": "<string>",
"description": "<string>"
}
'import requests
url = "https://api.b-bot.space/api/v2/distribution-channels/{channel_id}"
payload = {
"graph_id": "<string>",
"config": {},
"context": {},
"metadata": {},
"name": "<string>",
"description": "<string>"
}
headers = {
"bbot-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'bbot-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
graph_id: '<string>',
config: {},
context: {},
metadata: {},
name: '<string>',
description: '<string>'
})
};
fetch('https://api.b-bot.space/api/v2/distribution-channels/{channel_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://api.b-bot.space/api/v2/distribution-channels/{channel_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([
'graph_id' => '<string>',
'config' => [
],
'context' => [
],
'metadata' => [
],
'name' => '<string>',
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"bbot-api-key: <api-key>"
],
]);
$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.b-bot.space/api/v2/distribution-channels/{channel_id}"
payload := strings.NewReader("{\n \"graph_id\": \"<string>\",\n \"config\": {},\n \"context\": {},\n \"metadata\": {},\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("bbot-api-key", "<api-key>")
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.b-bot.space/api/v2/distribution-channels/{channel_id}")
.header("bbot-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"graph_id\": \"<string>\",\n \"config\": {},\n \"context\": {},\n \"metadata\": {},\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.b-bot.space/api/v2/distribution-channels/{channel_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["bbot-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"graph_id\": \"<string>\",\n \"config\": {},\n \"context\": {},\n \"metadata\": {},\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"graph_id": "<string>",
"config": {
"tags": [
"<string>"
],
"recursion_limit": 123,
"configurable": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {},
"context": {},
"version": 123,
"name": "<string>",
"description": "<string>"
}"<string>""<string>"Patch Distribution Channel
Update a distribution channel.
curl --request PATCH \
--url https://api.b-bot.space/api/v2/distribution-channels/{channel_id} \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--data '
{
"graph_id": "<string>",
"config": {},
"context": {},
"metadata": {},
"name": "<string>",
"description": "<string>"
}
'import requests
url = "https://api.b-bot.space/api/v2/distribution-channels/{channel_id}"
payload = {
"graph_id": "<string>",
"config": {},
"context": {},
"metadata": {},
"name": "<string>",
"description": "<string>"
}
headers = {
"bbot-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'bbot-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
graph_id: '<string>',
config: {},
context: {},
metadata: {},
name: '<string>',
description: '<string>'
})
};
fetch('https://api.b-bot.space/api/v2/distribution-channels/{channel_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://api.b-bot.space/api/v2/distribution-channels/{channel_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([
'graph_id' => '<string>',
'config' => [
],
'context' => [
],
'metadata' => [
],
'name' => '<string>',
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"bbot-api-key: <api-key>"
],
]);
$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.b-bot.space/api/v2/distribution-channels/{channel_id}"
payload := strings.NewReader("{\n \"graph_id\": \"<string>\",\n \"config\": {},\n \"context\": {},\n \"metadata\": {},\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("bbot-api-key", "<api-key>")
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.b-bot.space/api/v2/distribution-channels/{channel_id}")
.header("bbot-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"graph_id\": \"<string>\",\n \"config\": {},\n \"context\": {},\n \"metadata\": {},\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.b-bot.space/api/v2/distribution-channels/{channel_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["bbot-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"graph_id\": \"<string>\",\n \"config\": {},\n \"context\": {},\n \"metadata\": {},\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"graph_id": "<string>",
"config": {
"tags": [
"<string>"
],
"recursion_limit": 123,
"configurable": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {},
"context": {},
"version": 123,
"name": "<string>",
"description": "<string>"
}"<string>""<string>"Authorizations
API key for authentication
Path Parameters
The ID of the distribution channel.
Body
Payload for updating an assistant.
The ID of the graph the distribution channel should use. The graph ID is normally set in your langgraph.json configuration. If not provided, the distribution channel will keep pointing to same graph.
Configuration to use for the graph. Useful when graph is configurable and you want to update the assistant's configuration.
Static context added to the assistant.
Metadata to merge with existing assistant metadata.
The new name for the assistant. If not provided, assistant will keep its current name.
The new description for the assistant. If not provided, assistant will keep its current description.
Response
Success
The ID of the distribution channel.
The ID of the graph.
The assistant config.
Show child attributes
Show child attributes
The time the assistant was created.
The last time the assistant was updated.
The assistant metadata.
Static context added to the assistant.
The version of the assistant
The name of the assistant
The description of the assistant