Save skill
curl --request PATCH \
--url https://api.sidenet.ai/v1/skills/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds\n\n1. Full refund within 14 days of purchase…"
}
'import requests
url = "https://api.sidenet.ai/v1/skills/{id}"
payload = {
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds
1. Full refund within 14 days of purchase…"
}
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({
name: 'refund-policy',
description: 'How refunds are decided and worded. Load before answering any refund or cancellation question.',
instructions: '## Refunds\n\n1. Full refund within 14 days of purchase…'
})
};
fetch('https://api.sidenet.ai/v1/skills/{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/skills/{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([
'name' => 'refund-policy',
'description' => 'How refunds are decided and worded. Load before answering any refund or cancellation question.',
'instructions' => '## Refunds
1. Full refund within 14 days of purchase…'
]),
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/skills/{id}"
payload := strings.NewReader("{\n \"name\": \"refund-policy\",\n \"description\": \"How refunds are decided and worded. Load before answering any refund or cancellation question.\",\n \"instructions\": \"## Refunds\\n\\n1. Full refund within 14 days of purchase…\"\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/skills/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"refund-policy\",\n \"description\": \"How refunds are decided and worded. Load before answering any refund or cancellation question.\",\n \"instructions\": \"## Refunds\\n\\n1. Full refund within 14 days of purchase…\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/skills/{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 \"name\": \"refund-policy\",\n \"description\": \"How refunds are decided and worded. Load before answering any refund or cancellation question.\",\n \"instructions\": \"## Refunds\\n\\n1. Full refund within 14 days of purchase…\"\n}"
response = http.request(request)
puts response.read_body{
"skill": {
"id": "9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23",
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"status": "published",
"active_version_id": "3c8f1d26-7e94-4a05-b2d7-6f0a9c5e8b41",
"latest_version_id": "f4a1b7c3-9d26-4e58-8b0a-2c7e5d1f9a63",
"dirty": true,
"created_at": "2026-10-01T09:12:44.881Z",
"updated_at": "2026-10-14T08:30:20.517Z"
},
"latest": {
"id": "f4a1b7c3-9d26-4e58-8b0a-2c7e5d1f9a63",
"skill_id": "9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23",
"version_number": 3,
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds\n\n1. Full refund within 14 days of purchase…",
"change_message": "Updated instructions",
"changed_fields": [
"instructions"
],
"created_at": "2026-10-14T08:30:20.517Z",
"active": false
},
"active": {
"id": "3c8f1d26-7e94-4a05-b2d7-6f0a9c5e8b41",
"skill_id": "9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23",
"version_number": 2,
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds\n\n1. Full refund within 14 days of purchase…",
"change_message": "Updated instructions",
"changed_fields": [
"instructions"
],
"created_at": "2026-10-14T08:30:20.517Z",
"active": true
}
}Skills
Save skill
Partial update of name, description, instructions. A change creates a new version (the new working copy); agents keep getting the active version until you publish. Sending the same text again creates nothing.
PATCH
/
v1
/
skills
/
{id}
Save skill
curl --request PATCH \
--url https://api.sidenet.ai/v1/skills/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds\n\n1. Full refund within 14 days of purchase…"
}
'import requests
url = "https://api.sidenet.ai/v1/skills/{id}"
payload = {
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds
1. Full refund within 14 days of purchase…"
}
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({
name: 'refund-policy',
description: 'How refunds are decided and worded. Load before answering any refund or cancellation question.',
instructions: '## Refunds\n\n1. Full refund within 14 days of purchase…'
})
};
fetch('https://api.sidenet.ai/v1/skills/{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/skills/{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([
'name' => 'refund-policy',
'description' => 'How refunds are decided and worded. Load before answering any refund or cancellation question.',
'instructions' => '## Refunds
1. Full refund within 14 days of purchase…'
]),
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/skills/{id}"
payload := strings.NewReader("{\n \"name\": \"refund-policy\",\n \"description\": \"How refunds are decided and worded. Load before answering any refund or cancellation question.\",\n \"instructions\": \"## Refunds\\n\\n1. Full refund within 14 days of purchase…\"\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/skills/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"refund-policy\",\n \"description\": \"How refunds are decided and worded. Load before answering any refund or cancellation question.\",\n \"instructions\": \"## Refunds\\n\\n1. Full refund within 14 days of purchase…\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/skills/{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 \"name\": \"refund-policy\",\n \"description\": \"How refunds are decided and worded. Load before answering any refund or cancellation question.\",\n \"instructions\": \"## Refunds\\n\\n1. Full refund within 14 days of purchase…\"\n}"
response = http.request(request)
puts response.read_body{
"skill": {
"id": "9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23",
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"status": "published",
"active_version_id": "3c8f1d26-7e94-4a05-b2d7-6f0a9c5e8b41",
"latest_version_id": "f4a1b7c3-9d26-4e58-8b0a-2c7e5d1f9a63",
"dirty": true,
"created_at": "2026-10-01T09:12:44.881Z",
"updated_at": "2026-10-14T08:30:20.517Z"
},
"latest": {
"id": "f4a1b7c3-9d26-4e58-8b0a-2c7e5d1f9a63",
"skill_id": "9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23",
"version_number": 3,
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds\n\n1. Full refund within 14 days of purchase…",
"change_message": "Updated instructions",
"changed_fields": [
"instructions"
],
"created_at": "2026-10-14T08:30:20.517Z",
"active": false
},
"active": {
"id": "3c8f1d26-7e94-4a05-b2d7-6f0a9c5e8b41",
"skill_id": "9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23",
"version_number": 2,
"name": "refund-policy",
"description": "How refunds are decided and worded. Load before answering any refund or cancellation question.",
"instructions": "## Refunds\n\n1. Full refund within 14 days of purchase…",
"change_message": "Updated instructions",
"changed_fields": [
"instructions"
],
"created_at": "2026-10-14T08:30:20.517Z",
"active": true
}
}Authorizations
Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.
Path Parameters
Example:
"9a4e2c71-5b08-4f3d-a6c2-1e7d8b0f4c23"
Body
application/json