Apply exercise scenario
POST
/api/v1/ttx/{ttx_id}/scenario/apply
Overwrite the exercise with a TTX-Zone or organization scenario –
or, with dry_run (the default), only report what would happen.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”dry_run
Dry Run
boolean
Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ScenarioCheck
The outcome of checking a document against a target, with nothing
written (a dry run) – or of the import itself. ok false: errors were
found and nothing changed. replaces: what the target holds today and
an apply would overwrite.
object
counts
Any of:
ScenarioCounts
object
actors
Actors
integer
files
Files
integer
images
Images
integer
injects
Injects
integer
needs
Needs
integer
objectives
Objectives
integer
phases
Phases
integer
tags
Tags
integer
threat_actors
Threat Actors
integer
null
errors
Errors
Array<object>
ScenarioIssueOne problem found before anything is written: path names where in
the document (e.g. msel.injects[3].phase_code).
object
code
required
Code
string
message
required
Message
string
path
required
Path
string
ok
required
Ok
boolean
replaces
Any of:
ScenarioCounts
object
actors
Actors
integer
files
Files
integer
images
Images
integer
injects
Injects
integer
needs
Needs
integer
objectives
Objectives
integer
phases
Phases
integer
tags
Tags
integer
threat_actors
Threat Actors
integer
null
variables
Variables
Array<object>
ScenarioVariableA {placeholder} the scenario’s text uses, and how often.
object
count
required
Count
integer
name
required
Name
string
warnings
Warnings
Array<object>
ScenarioIssueOne problem found before anything is written: path names where in
the document (e.g. msel.injects[3].phase_code).
object
code
required
Code
string
message
required
Message
string
path
required
Path
string
Example
{ "counts": { "actors": 0, "files": 0, "images": 0, "injects": 0, "needs": 0, "objectives": 0, "phases": 0, "tags": 0, "threat_actors": 0 }, "replaces": { "actors": 0, "files": 0, "images": 0, "injects": 0, "needs": 0, "objectives": 0, "phases": 0, "tags": 0, "threat_actors": 0 }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}