Update a Runbook
curl --request PUT \
--url https://api.infragrid.ai/v1/runbooks/{runbook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 123,
"title": "<string>",
"steps": [
{}
],
"parameters": [
{}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({expectedVersion: 123, title: '<string>', steps: [{}], parameters: [{}]})
};
fetch('https://api.infragrid.ai/v1/runbooks/{runbook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.infragrid.ai/v1/runbooks/{runbook_id}"
payload = {
"expectedVersion": 123,
"title": "<string>",
"steps": [{}],
"parameters": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Runbooks (preview)
Update a Runbook
Replace a Runbook definition using optimistic concurrency.
PUT
/
v1
/
runbooks
/
{runbook_id}
Update a Runbook
curl --request PUT \
--url https://api.infragrid.ai/v1/runbooks/{runbook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 123,
"title": "<string>",
"steps": [
{}
],
"parameters": [
{}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({expectedVersion: 123, title: '<string>', steps: [{}], parameters: [{}]})
};
fetch('https://api.infragrid.ai/v1/runbooks/{runbook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.infragrid.ai/v1/runbooks/{runbook_id}"
payload = {
"expectedVersion": 123,
"title": "<string>",
"steps": [{}],
"parameters": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Requires
runbooks:write.
string
required
Stable Runbook identifier.
integer
required
Version returned by the last successful read. A stale value returns
409.string
required
Replacement title.
RunbookStep[]
required
Complete replacement step list.
RunbookParameter[]
required
Complete replacement input contract.
Last modified on August 28, 2026