Update Scenario
PATCH
/api/v1/replay/scenarios/{scenario_id}
const url = 'https://api.ultimateteam.ai/api/v1/replay/scenarios/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"archived":true,"name":"example","note":"example","shared_with_tenant":true,"tags":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.ultimateteam.ai/api/v1/replay/scenarios/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "archived": true, "name": "example", "note": "example", "shared_with_tenant": true, "tags": [ "example" ] }'Update the name, note, tags, archive state, or share flag.
Phase 194-01 REPLAY-SURFACE-01: any subset of name, note,
tags, archived, shared_with_tenant may be supplied.
None on any field means “do not touch”.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”scenario_id
required
Scenario Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
UpdateScenarioRequest
object
Examplegenerated
{ "archived": true, "name": "example", "note": "example", "shared_with_tenant": true, "tags": [ "example" ]}Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
ScenarioResponse
object
created_at
required
Created At
string
decision_id
required
Decision Id
string
horizon_months
required
Horizon Months
integer
id
required
Id
string
shared_with_tenant
Shared With Tenant
boolean
status
required
Status
string
tags
Tags
Array<string>
Example
{ "shared_with_tenant": false}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
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}