Runbooks
Update an existing Runbook
put/projects/{projectId}/{gitRef}/runbooks/{id}
Path parameters
projectIdstring required
The ID of the project the runbook belongs to. Must be a version-controlled project that stores its runbooks in Git.
gitRefstring required
The Git branch to commit the change to. This must be a branch — a tag or commit cannot be written to — and the branch must not be protected in the project's version control settings. Use get_branches to list the project's branches.
idstring required
The ID of the runbook to update. A runbook stored in Git uses its slug as the ID, which is only unique within its project and Git ref.
Request body
Example request
{
"Environments": [
"Environments-1",
"..."
],
"Id": "Runbooks-1",
"ProjectId": "Projects-1",
"SpaceId": "Spaces-1"
}Response
Confirmation that the Runbook has been modified, containing the updated Runbook
Example response
{
"Environments": [
"Environments-1",
"..."
],
"ProjectId": "Projects-1",
"SpaceId": "Spaces-1"
}