Update a network (agents, workflows, sdk_ui)
curl --request PATCH \
--url https://api.sidenet.ai/v1/copilots/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agents": [
{
"agentId": "<string>"
}
],
"workflows": [
{
"workflowId": "<string>"
}
],
"sdk_ui": "<unknown>",
"handoff_prompt": "<string>"
}
'import requests
url = "https://api.sidenet.ai/v1/copilots/{id}"
payload = {
"agents": [{ "agentId": "<string>" }],
"workflows": [{ "workflowId": "<string>" }],
"sdk_ui": "<unknown>",
"handoff_prompt": "<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({
agents: [{agentId: '<string>'}],
workflows: [{workflowId: '<string>'}],
sdk_ui: '<unknown>',
handoff_prompt: '<string>'
})
};
fetch('https://api.sidenet.ai/v1/copilots/{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.sidenet.ai/v1/copilots/{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([
'agents' => [
[
'agentId' => '<string>'
]
],
'workflows' => [
[
'workflowId' => '<string>'
]
],
'sdk_ui' => '<unknown>',
'handoff_prompt' => '<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 := "https://api.sidenet.ai/v1/copilots/{id}"
payload := strings.NewReader("{\n \"agents\": [\n {\n \"agentId\": \"<string>\"\n }\n ],\n \"workflows\": [\n {\n \"workflowId\": \"<string>\"\n }\n ],\n \"sdk_ui\": \"<unknown>\",\n \"handoff_prompt\": \"<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("https://api.sidenet.ai/v1/copilots/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agents\": [\n {\n \"agentId\": \"<string>\"\n }\n ],\n \"workflows\": [\n {\n \"workflowId\": \"<string>\"\n }\n ],\n \"sdk_ui\": \"<unknown>\",\n \"handoff_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/copilots/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agents\": [\n {\n \"agentId\": \"<string>\"\n }\n ],\n \"workflows\": [\n {\n \"workflowId\": \"<string>\"\n }\n ],\n \"sdk_ui\": \"<unknown>\",\n \"handoff_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyNetworks
Update a network (agents, workflows, sdk_ui)
Replaces whichever of agents ([]), workflows ([]), or sdk_ui is provided. Validates that every referenced agent/workflow belongs to the caller’s org.
PATCH
/
v1
/
copilots
/
{id}
Update a network (agents, workflows, sdk_ui)
curl --request PATCH \
--url https://api.sidenet.ai/v1/copilots/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agents": [
{
"agentId": "<string>"
}
],
"workflows": [
{
"workflowId": "<string>"
}
],
"sdk_ui": "<unknown>",
"handoff_prompt": "<string>"
}
'import requests
url = "https://api.sidenet.ai/v1/copilots/{id}"
payload = {
"agents": [{ "agentId": "<string>" }],
"workflows": [{ "workflowId": "<string>" }],
"sdk_ui": "<unknown>",
"handoff_prompt": "<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({
agents: [{agentId: '<string>'}],
workflows: [{workflowId: '<string>'}],
sdk_ui: '<unknown>',
handoff_prompt: '<string>'
})
};
fetch('https://api.sidenet.ai/v1/copilots/{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.sidenet.ai/v1/copilots/{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([
'agents' => [
[
'agentId' => '<string>'
]
],
'workflows' => [
[
'workflowId' => '<string>'
]
],
'sdk_ui' => '<unknown>',
'handoff_prompt' => '<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 := "https://api.sidenet.ai/v1/copilots/{id}"
payload := strings.NewReader("{\n \"agents\": [\n {\n \"agentId\": \"<string>\"\n }\n ],\n \"workflows\": [\n {\n \"workflowId\": \"<string>\"\n }\n ],\n \"sdk_ui\": \"<unknown>\",\n \"handoff_prompt\": \"<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("https://api.sidenet.ai/v1/copilots/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agents\": [\n {\n \"agentId\": \"<string>\"\n }\n ],\n \"workflows\": [\n {\n \"workflowId\": \"<string>\"\n }\n ],\n \"sdk_ui\": \"<unknown>\",\n \"handoff_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/copilots/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agents\": [\n {\n \"agentId\": \"<string>\"\n }\n ],\n \"workflows\": [\n {\n \"workflowId\": \"<string>\"\n }\n ],\n \"sdk_ui\": \"<unknown>\",\n \"handoff_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
API key generated in studio.sidenet.ai. Scopes the request to its organization.
Headers
Organization to scope the request to.
End-user identity for the request. Required by endpoints that read or write user-scoped resources (threads, messages, memory). A userId query param (or body field, where documented) is accepted as a fallback.
Path Parameters
Body
application/json
Response
Updated
⌘I