curl --request POST \
--url https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agentIds": [
"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10"
],
"activate": true
}
'import requests
url = "https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout"
payload = {
"agentIds": ["6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10"],
"activate": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agentIds: ['6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10'], activate: true})
};
fetch('https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout', 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/prompt-blocks/{id}/rollout",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agentIds' => [
'6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10'
],
'activate' => 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/prompt-blocks/{id}/rollout"
payload := strings.NewReader("{\n \"agentIds\": [\n \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\"\n ],\n \"activate\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agentIds\": [\n \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\"\n ],\n \"activate\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentIds\": [\n \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\"\n ],\n \"activate\": true\n}"
response = http.request(request)
puts response.read_body{
"rolledOut": [
{
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"versionNumber": 4
}
],
"skipped": [
{
"agentId": "9b2e7d41-3c68-4a05-8f19-d0c5a2e63b78",
"reason": "draft has unpublished changes"
}
],
"failed": []
}Roll out block version
For every agent whose ACTIVE version pins an older version of this block, publishes a new agent version (re-pinning the block) and activates it. An agent is SKIPPED, with a reason, when its draft differs from its active version — publishing ships the whole draft, and a prompt rollout must never quietly release someone’s unfinished model or tool edits. Partial success is a 200 carrying rolledOut, skipped and failed. Pass agentIds to limit the scope, or activate: false to publish without moving the pointers.
curl --request POST \
--url https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agentIds": [
"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10"
],
"activate": true
}
'import requests
url = "https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout"
payload = {
"agentIds": ["6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10"],
"activate": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agentIds: ['6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10'], activate: true})
};
fetch('https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout', 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/prompt-blocks/{id}/rollout",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agentIds' => [
'6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10'
],
'activate' => 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/prompt-blocks/{id}/rollout"
payload := strings.NewReader("{\n \"agentIds\": [\n \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\"\n ],\n \"activate\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agentIds\": [\n \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\"\n ],\n \"activate\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/prompt-blocks/{id}/rollout")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentIds\": [\n \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\"\n ],\n \"activate\": true\n}"
response = http.request(request)
puts response.read_body{
"rolledOut": [
{
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"versionNumber": 4
}
],
"skipped": [
{
"agentId": "9b2e7d41-3c68-4a05-8f19-d0c5a2e63b78",
"reason": "draft has unpublished changes"
}
],
"failed": []
}Authorizations
Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.
Path Parameters
"d41a8f6b-9c27-4b13-a5e8-2f60c1d7b394"
Body
Response
What happened to each agent. A partial rollout is still a 200 — read all three lists.
Agents republished onto the current block version.
Show child attributes
Show child attributes
Agents deliberately left alone — already current, or carrying unpublished draft edits that a rollout must not ship.
Show child attributes
Show child attributes
Agents whose publish or activate failed.
Show child attributes
Show child attributes