Update dataset
curl --request PATCH \
--url https://api.sidenet.ai/v1/datasets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Refund questions (EU)",
"description": "<string>",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"<string>"
],
"metadata": {}
}
'import requests
url = "https://api.sidenet.ai/v1/datasets/{id}"
payload = {
"name": "Refund questions (EU)",
"description": "<string>",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": ["<string>"],
"metadata": {}
}
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 questions (EU)',
description: '<string>',
agentId: '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
tags: ['<string>'],
metadata: {}
})
};
fetch('https://api.sidenet.ai/v1/datasets/{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/datasets/{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 questions (EU)',
'description' => '<string>',
'agentId' => '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
'tags' => [
'<string>'
],
'metadata' => [
]
]),
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/datasets/{id}"
payload := strings.NewReader("{\n \"name\": \"Refund questions (EU)\",\n \"description\": \"<string>\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"<string>\"\n ],\n \"metadata\": {}\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/datasets/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Refund questions (EU)\",\n \"description\": \"<string>\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/datasets/{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 questions (EU)\",\n \"description\": \"<string>\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"dataset": {
"id": "ds_orders_v3",
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"support",
"refunds"
],
"metadata": {},
"version": 2,
"itemCount": 12,
"createdAt": "2026-08-04T10:22:05.117Z",
"updatedAt": "2026-08-04T10:31:48.006Z"
}
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Datasets
Update dataset
Renames or relabels a dataset. metadata is merged over the existing keys; send null for agentId, description or tags to clear them. Items are edited through their own endpoints.
PATCH
/
v1
/
datasets
/
{id}
Update dataset
curl --request PATCH \
--url https://api.sidenet.ai/v1/datasets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Refund questions (EU)",
"description": "<string>",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"<string>"
],
"metadata": {}
}
'import requests
url = "https://api.sidenet.ai/v1/datasets/{id}"
payload = {
"name": "Refund questions (EU)",
"description": "<string>",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": ["<string>"],
"metadata": {}
}
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 questions (EU)',
description: '<string>',
agentId: '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
tags: ['<string>'],
metadata: {}
})
};
fetch('https://api.sidenet.ai/v1/datasets/{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/datasets/{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 questions (EU)',
'description' => '<string>',
'agentId' => '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
'tags' => [
'<string>'
],
'metadata' => [
]
]),
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/datasets/{id}"
payload := strings.NewReader("{\n \"name\": \"Refund questions (EU)\",\n \"description\": \"<string>\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"<string>\"\n ],\n \"metadata\": {}\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/datasets/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Refund questions (EU)\",\n \"description\": \"<string>\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/datasets/{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 questions (EU)\",\n \"description\": \"<string>\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"dataset": {
"id": "ds_orders_v3",
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"support",
"refunds"
],
"metadata": {},
"version": 2,
"itemCount": 12,
"createdAt": "2026-08-04T10:22:05.117Z",
"updatedAt": "2026-08-04T10:31:48.006Z"
}
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Authorizations
Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.
Path Parameters
Dataset id.
Example:
"ds_orders_v3"
Body
application/json
Response
The updated dataset
Show child attributes
Show child attributes