Skip to main content
POST
Update a scenario

Authorizations

Authorization
string
header
required

An API key minted in Command Center (Settings -> API Keys), sent as Authorization: Bearer 2501_ak_.... A Command Center session cookie is also accepted.

Path Parameters

id
string
required

Body

application/json
title
string
required
Minimum string length: 1
description
string
default:""
tags
string[]
Minimum string length: 1
hosts
string[]
Minimum string length: 1
agents
string[]
Minimum string length: 1
vars
object
ticket_title
string
default:""
ticket_body
string
default:""
prepare
object[]
validation
object[]
restore
object[]
status
enum<string>
default:draft
Available options:
draft,
published,
disabled
id
string
agent_hosts
object
agent_info
object
org_id
string
tenant_id
string
created_at
updated_at

Response

The updated scenario

id
string
required
Example:

"scn_af30b030-..."

title
string
required
Example:

"nginx down"

description
string
required
tags
string[]
required
ticket_title
string
required
ticket_body
string
required
vars
object
required
prepare
object[]
required

Ordered shell commands, each { run, on? }, in the shape POST /api/v1/scenarios accepts.

restore
object[]
required

Ordered shell commands, each { run, on? }, in the shape POST /api/v1/scenarios accepts.

validation
object[]
required
status
enum<string>
required
Available options:
draft,
published,
disabled
hosts
string[]
required
Example:
agents
string[]
required
Example:
agent_hosts
object
required

Agent name to the host it is attached to

agent_info
object
required
org_id
string
required
Example:

"org_460b541c-..."

tenant_id
string
required
Example:

"ten_115bea44-..."

created_at
string<date-time>
required
Example:

"2026-08-26T10:00:26.380Z"

updated_at
string<date-time>
required
Example:

"2026-08-26T10:00:26.380Z"