Skip to main content
PUT
Update a scenario

Authorizations

x-api-key
string
header
required

Path Parameters

scenario_id
string<uuid>
required

Body

application/json

Partial update — every field optional, same caps as create.

Explicit null is honoured only for nullable columns (currently just match_path_pattern); for every other field it's rejected at the schema layer with 422 (see _reject_null_on_not_null).

name
string | null
Required string length: 1 - 255
priority
integer | null
Required range: 0 <= x <= 10000
match_method
string | null
match_path_pattern
string | null
Maximum string length: 1000
match_headers
Match Headers · object | null
match_query
Match Query · object | null
match_body
Match Body · object | null
response_status
integer | null
Required range: 100 <= x <= 599
response_headers
Response Headers · object | null
response_body
delay_ms
integer | null
Required range: 0 <= x <= 60000
is_enabled
boolean | null

Response

Successful Response

id
string<uuid>
required
mock_id
string<uuid>
required
name
string
required
priority
integer
required
match_method
string
required
match_path_pattern
string | null
required
match_headers
Match Headers · object
required
match_query
Match Query · object
required
match_body
Match Body · object
required
response_status
integer
required
response_headers
Response Headers · object
required
response_body
required
delay_ms
integer
required
is_enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required