curl --request PATCH \
--url https://api.sidenet.ai/v1/tool-providers/{id}/tools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tools": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"path": "<string>",
"input_schema": {},
"output_schema": {},
"timeout_ms": 60500,
"is_enabled": true,
"operation_id": "<string>",
"tags": [
"<string>"
],
"deprecated": true
}
]
}
'import requests
url = "https://api.sidenet.ai/v1/tool-providers/{id}/tools"
payload = { "tools": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"path": "<string>",
"input_schema": {},
"output_schema": {},
"timeout_ms": 60500,
"is_enabled": True,
"operation_id": "<string>",
"tags": ["<string>"],
"deprecated": True
}
] }
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({
tools: [
{
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
description: '<string>',
path: '<string>',
input_schema: {},
output_schema: {},
timeout_ms: 60500,
is_enabled: true,
operation_id: '<string>',
tags: ['<string>'],
deprecated: true
}
]
})
};
fetch('https://api.sidenet.ai/v1/tool-providers/{id}/tools', 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/tool-providers/{id}/tools",
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([
'tools' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'description' => '<string>',
'path' => '<string>',
'input_schema' => [
],
'output_schema' => [
],
'timeout_ms' => 60500,
'is_enabled' => true,
'operation_id' => '<string>',
'tags' => [
'<string>'
],
'deprecated' => true
]
]
]),
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/tool-providers/{id}/tools"
payload := strings.NewReader("{\n \"tools\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"path\": \"<string>\",\n \"input_schema\": {},\n \"output_schema\": {},\n \"timeout_ms\": 60500,\n \"is_enabled\": true,\n \"operation_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"deprecated\": true\n }\n ]\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/tool-providers/{id}/tools")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tools\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"path\": \"<string>\",\n \"input_schema\": {},\n \"output_schema\": {},\n \"timeout_ms\": 60500,\n \"is_enabled\": true,\n \"operation_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"deprecated\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/tool-providers/{id}/tools")
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 \"tools\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"path\": \"<string>\",\n \"input_schema\": {},\n \"output_schema\": {},\n \"timeout_ms\": 60500,\n \"is_enabled\": true,\n \"operation_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"deprecated\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_bodySave many of a provider's tools in one request
Creates and updates a provider’s tools in a single call. An entry with an id updates that tool, an entry without one creates it (nothing is deleted — use DELETE /v1/tools/:id). Names are made unique across the whole provider, so the saved name may differ from the one sent; the response lists every saved row so the client can reconcile. Exists because saving a provider one PATCH per tool reloaded the org tool registry and rebuilt dependent agents once per tool — here that happens ONCE, after every row is written. A row that fails is reported in errors and does not abort the rest.
curl --request PATCH \
--url https://api.sidenet.ai/v1/tool-providers/{id}/tools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tools": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"path": "<string>",
"input_schema": {},
"output_schema": {},
"timeout_ms": 60500,
"is_enabled": true,
"operation_id": "<string>",
"tags": [
"<string>"
],
"deprecated": true
}
]
}
'import requests
url = "https://api.sidenet.ai/v1/tool-providers/{id}/tools"
payload = { "tools": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"path": "<string>",
"input_schema": {},
"output_schema": {},
"timeout_ms": 60500,
"is_enabled": True,
"operation_id": "<string>",
"tags": ["<string>"],
"deprecated": True
}
] }
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({
tools: [
{
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
description: '<string>',
path: '<string>',
input_schema: {},
output_schema: {},
timeout_ms: 60500,
is_enabled: true,
operation_id: '<string>',
tags: ['<string>'],
deprecated: true
}
]
})
};
fetch('https://api.sidenet.ai/v1/tool-providers/{id}/tools', 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/tool-providers/{id}/tools",
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([
'tools' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'description' => '<string>',
'path' => '<string>',
'input_schema' => [
],
'output_schema' => [
],
'timeout_ms' => 60500,
'is_enabled' => true,
'operation_id' => '<string>',
'tags' => [
'<string>'
],
'deprecated' => true
]
]
]),
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/tool-providers/{id}/tools"
payload := strings.NewReader("{\n \"tools\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"path\": \"<string>\",\n \"input_schema\": {},\n \"output_schema\": {},\n \"timeout_ms\": 60500,\n \"is_enabled\": true,\n \"operation_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"deprecated\": true\n }\n ]\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/tool-providers/{id}/tools")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tools\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"path\": \"<string>\",\n \"input_schema\": {},\n \"output_schema\": {},\n \"timeout_ms\": 60500,\n \"is_enabled\": true,\n \"operation_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"deprecated\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/tool-providers/{id}/tools")
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 \"tools\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"path\": \"<string>\",\n \"input_schema\": {},\n \"output_schema\": {},\n \"timeout_ms\": 60500,\n \"is_enabled\": true,\n \"operation_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"deprecated\": true\n }\n ]\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
1 - 2000 elementsShow child attributes
Show child attributes
Response
Saved (check errors for rows that did not apply)