curl --request PATCH \
--url https://api.agentsfleet.net/v1/admin/runners/{runner_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assigned_policy": {
"durable_tasks_enabled": true,
"extra_binds": [
{
"note": "<string>",
"path": "<string>"
}
],
"registry_allowlist": [
"<string>"
],
"worker_count": 1,
"decision_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"labels": [
"<string>"
]
}
'import requests
url = "https://api.agentsfleet.net/v1/admin/runners/{runner_id}"
payload = {
"assigned_policy": {
"durable_tasks_enabled": True,
"extra_binds": [
{
"note": "<string>",
"path": "<string>"
}
],
"registry_allowlist": ["<string>"],
"worker_count": 1,
"decision_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"labels": ["<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({
assigned_policy: {
durable_tasks_enabled: true,
extra_binds: [{note: '<string>', path: '<string>'}],
registry_allowlist: ['<string>'],
worker_count: 1,
decision_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
labels: ['<string>']
})
};
fetch('https://api.agentsfleet.net/v1/admin/runners/{runner_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.agentsfleet.net/v1/admin/runners/{runner_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([
'assigned_policy' => [
'durable_tasks_enabled' => true,
'extra_binds' => [
[
'note' => '<string>',
'path' => '<string>'
]
],
'registry_allowlist' => [
'<string>'
],
'worker_count' => 1,
'decision_model_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'labels' => [
'<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.agentsfleet.net/v1/admin/runners/{runner_id}"
payload := strings.NewReader("{\n \"assigned_policy\": {\n \"durable_tasks_enabled\": true,\n \"extra_binds\": [\n {\n \"note\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"registry_allowlist\": [\n \"<string>\"\n ],\n \"worker_count\": 1,\n \"decision_model_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"labels\": [\n \"<string>\"\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.agentsfleet.net/v1/admin/runners/{runner_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assigned_policy\": {\n \"durable_tasks_enabled\": true,\n \"extra_binds\": [\n {\n \"note\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"registry_allowlist\": [\n \"<string>\"\n ],\n \"worker_count\": 1,\n \"decision_model_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"labels\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/v1/admin/runners/{runner_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 \"assigned_policy\": {\n \"durable_tasks_enabled\": true,\n \"extra_binds\": [\n {\n \"note\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"registry_allowlist\": [\n \"<string>\"\n ],\n \"worker_count\": 1,\n \"decision_model_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"labels\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "active",
"assigned_policy": {
"durable_tasks_enabled": true,
"extra_binds": [
{
"mode": "read_only",
"note": "<string>",
"path": "<string>"
}
],
"network_policy": "allow_all",
"registry_allowlist": [
"<string>"
],
"sandbox_tier": "landlock_full",
"worker_count": 1,
"decision_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"labels": [
"<string>"
],
"selftest_requested_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}Manage a runner
Requires platform administrator access. Send either action or an edit containing assigned_policy, labels, or both. Both edits succeed together or neither changes.
Actions are cordon, drain, revoke, rotate, and self_test. Revocation is permanent. rotate returns a replacement runner_token once; save it and update the host. self_test queues a sandbox check; a connected runner is notified immediately and reports later. The response confirms the request, not the result. Revoked runners return 409 UZ-RUN-018.
Changes notify a connected runner after commit; its next heartbeat repairs a lost notification. Repeating the current policy has no effect; revoked runners return 400. Labels replace the entire set, using enrollment limits. Duplicates are removed in their original order; an empty list clears labels. Revoked runners’ labels remain editable. The response includes labels when supplied.
curl --request PATCH \
--url https://api.agentsfleet.net/v1/admin/runners/{runner_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assigned_policy": {
"durable_tasks_enabled": true,
"extra_binds": [
{
"note": "<string>",
"path": "<string>"
}
],
"registry_allowlist": [
"<string>"
],
"worker_count": 1,
"decision_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"labels": [
"<string>"
]
}
'import requests
url = "https://api.agentsfleet.net/v1/admin/runners/{runner_id}"
payload = {
"assigned_policy": {
"durable_tasks_enabled": True,
"extra_binds": [
{
"note": "<string>",
"path": "<string>"
}
],
"registry_allowlist": ["<string>"],
"worker_count": 1,
"decision_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"labels": ["<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({
assigned_policy: {
durable_tasks_enabled: true,
extra_binds: [{note: '<string>', path: '<string>'}],
registry_allowlist: ['<string>'],
worker_count: 1,
decision_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
labels: ['<string>']
})
};
fetch('https://api.agentsfleet.net/v1/admin/runners/{runner_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.agentsfleet.net/v1/admin/runners/{runner_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([
'assigned_policy' => [
'durable_tasks_enabled' => true,
'extra_binds' => [
[
'note' => '<string>',
'path' => '<string>'
]
],
'registry_allowlist' => [
'<string>'
],
'worker_count' => 1,
'decision_model_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'labels' => [
'<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.agentsfleet.net/v1/admin/runners/{runner_id}"
payload := strings.NewReader("{\n \"assigned_policy\": {\n \"durable_tasks_enabled\": true,\n \"extra_binds\": [\n {\n \"note\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"registry_allowlist\": [\n \"<string>\"\n ],\n \"worker_count\": 1,\n \"decision_model_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"labels\": [\n \"<string>\"\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.agentsfleet.net/v1/admin/runners/{runner_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assigned_policy\": {\n \"durable_tasks_enabled\": true,\n \"extra_binds\": [\n {\n \"note\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"registry_allowlist\": [\n \"<string>\"\n ],\n \"worker_count\": 1,\n \"decision_model_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"labels\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/v1/admin/runners/{runner_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 \"assigned_policy\": {\n \"durable_tasks_enabled\": true,\n \"extra_binds\": [\n {\n \"note\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"registry_allowlist\": [\n \"<string>\"\n ],\n \"worker_count\": 1,\n \"decision_model_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"labels\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "active",
"assigned_policy": {
"durable_tasks_enabled": true,
"extra_binds": [
{
"mode": "read_only",
"note": "<string>",
"path": "<string>"
}
],
"network_policy": "allow_all",
"registry_allowlist": [
"<string>"
],
"sandbox_tier": "landlock_full",
"worker_count": 1,
"decision_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"labels": [
"<string>"
],
"selftest_requested_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}{
"detail": "<string>",
"docs_uri": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"title": "<string>",
"action_id": "<string>",
"current_state": "<string>",
"etag": "<string>",
"gate_id": "<string>",
"outcome": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "<string>",
"user_message": "<string>"
}Authorizations
Path Parameters
Body
PATCH /v1/admin/runners/{id} body.
Either an action alone, or an edit: assigned_policy, labels, or both,
applied together or not at all. Anything else is a 400.
Response
OK
PATCH /v1/admin/runners/{id} reply.