Update seat tracking automation policy
curl --request PUT \
--url https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"provider": "claude-enterprise"
}
'import requests
url = "https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation"
payload = { "provider": "claude-enterprise" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({provider: 'claude-enterprise'})
};
fetch('https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation"
payload := strings.NewReader("{\n \"provider\": \"claude-enterprise\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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))
}{
"data": {
"provider": "claude-enterprise",
"enabled": true,
"approvalMode": "approve",
"autonomyState": "observe",
"allowRequestsBeforeGraduation": false,
"thresholdEnabled": true,
"headroomDollars": 50,
"spendPercentOfPool": 80,
"forecastEnabled": false,
"poolSource": "fixed",
"poolFixedDollars": 1000,
"maxDeltaPerUserDollars": 500,
"maxUsersPerRun": 10,
"notifyEmails": [
"finops@example.com"
],
"notifyChatChannels": []
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}Seat Tracking
Update seat tracking automation policy
Configure detection thresholds, approval mode, and pool settings.
PUT
https://api.nops.io
/
v1
/
seat-tracking
/
projects
/
{projectId}
/
automation
Update seat tracking automation policy
curl --request PUT \
--url https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"provider": "claude-enterprise"
}
'import requests
url = "https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation"
payload = { "provider": "claude-enterprise" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({provider: 'claude-enterprise'})
};
fetch('https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nops.io/v1/seat-tracking/projects/{projectId}/automation"
payload := strings.NewReader("{\n \"provider\": \"claude-enterprise\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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))
}{
"data": {
"provider": "claude-enterprise",
"enabled": true,
"approvalMode": "approve",
"autonomyState": "observe",
"allowRequestsBeforeGraduation": false,
"thresholdEnabled": true,
"headroomDollars": 50,
"spendPercentOfPool": 80,
"forecastEnabled": false,
"poolSource": "fixed",
"poolFixedDollars": 1000,
"maxDeltaPerUserDollars": 500,
"maxUsersPerRun": 10,
"notifyEmails": [
"finops@example.com"
],
"notifyChatChannels": []
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}Authorizations
API key from Settings → Security → API Keys. Pass as Authorization: Bearer YOUR_API_KEY.
Headers
Unique key for safe retries on write requests (required, max 64 characters).
Maximum string length:
64Path Parameters
Seat tracking project ID
Body
application/json
Available options:
observe, approve, auto Required range:
x >= 0Required range:
0 <= x <= 1000Required range:
x >= 0Required range:
1 <= x <= 365Available options:
fixed, percent_of_target Required range:
x >= 0Required range:
0 <= x <= 1000Required range:
x >= 0Required range:
1 <= x <= 500Maximum array length:
50Show child attributes
Show child attributes
Response
Update seat tracking automation policy
JSON object
Was this page helpful?