Update scheduled prompt
curl --request PATCH \
--url https://api.nops.io/v1/scheduled-prompts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Weekly EC2 summary (updated)"
}
'import requests
url = "https://api.nops.io/v1/scheduled-prompts/{id}"
payload = { "name": "Weekly EC2 summary (updated)" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: 'Weekly EC2 summary (updated)'})
};
fetch('https://api.nops.io/v1/scheduled-prompts/{id}', 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/scheduled-prompts/{id}"
payload := strings.NewReader("{\n \"name\": \"Weekly EC2 summary (updated)\"\n}")
req, _ := http.NewRequest("PATCH", 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": {
"prompt": {
"id": "clxprompt01xyz",
"organizationId": "org-1",
"nopsClientId": 42,
"createdById": "user-1",
"canvasId": "clxcanvas01",
"scope": "private",
"name": "Weekly EC2 summary (updated)",
"prompt": "Summarize last week EC2 spend by account.",
"enabled": true,
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": true,
"emailRecipients": [
"finops@example.com"
],
"emailSubject": "Weekly EC2 summary",
"channelTargets": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
],
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrenceFrequency": "weekly",
"recurrenceTimezone": "America/New_York",
"recurrenceWeekday": 1,
"recurrenceDayOfMonth": null,
"cronExpression": "0 14 * * 1",
"nextRunAt": "2026-07-20T18:00:00.000Z",
"lastRunAt": null,
"createdAt": "2026-07-17T12:00:00.000Z",
"updatedAt": "2026-07-17T12:00:00.000Z"
}
}
}{
"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"
}
}Scheduled prompts
Update scheduled prompt
PATCH
https://api.nops.io
/
v1
/
scheduled-prompts
/
{id}
Update scheduled prompt
curl --request PATCH \
--url https://api.nops.io/v1/scheduled-prompts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Weekly EC2 summary (updated)"
}
'import requests
url = "https://api.nops.io/v1/scheduled-prompts/{id}"
payload = { "name": "Weekly EC2 summary (updated)" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: 'Weekly EC2 summary (updated)'})
};
fetch('https://api.nops.io/v1/scheduled-prompts/{id}', 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/scheduled-prompts/{id}"
payload := strings.NewReader("{\n \"name\": \"Weekly EC2 summary (updated)\"\n}")
req, _ := http.NewRequest("PATCH", 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": {
"prompt": {
"id": "clxprompt01xyz",
"organizationId": "org-1",
"nopsClientId": 42,
"createdById": "user-1",
"canvasId": "clxcanvas01",
"scope": "private",
"name": "Weekly EC2 summary (updated)",
"prompt": "Summarize last week EC2 spend by account.",
"enabled": true,
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": true,
"emailRecipients": [
"finops@example.com"
],
"emailSubject": "Weekly EC2 summary",
"channelTargets": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
],
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrenceFrequency": "weekly",
"recurrenceTimezone": "America/New_York",
"recurrenceWeekday": 1,
"recurrenceDayOfMonth": null,
"cronExpression": "0 14 * * 1",
"nextRunAt": "2026-07-20T18:00:00.000Z",
"lastRunAt": null,
"createdAt": "2026-07-17T12:00:00.000Z",
"updatedAt": "2026-07-17T12:00:00.000Z"
}
}
}{
"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
Scheduled prompt ID
Body
application/json
JSON request body
Response
Update scheduled prompt
JSON object
Was this page helpful?
⌘I