Skip to content

Records a synthetic, operator-authored scenario fixture.

POST
/v1/m/sandbox/scenarios
curl --request POST \
--url https://example.com/v1/m/sandbox/scenarios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "mocks": [ { "resource": "example", "response": "example" } ], "name": "example", "steps": [ { "input": "example", "key": "example" } ], "subject_kind": "example" }'

Records a synthetic, operator-authored scenario fixture. All caller-supplied text is clamped before Create; the spec_hash is derived from the canonical steps+mocks so an identical fixture is recognizable.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
description
Any of:

Trimmed and byte-capped.

string
mocks
Any of:
Array
Any of:
object
resource
Any of:

Byte-capped before execution and persistence.

string
response
Any of:

Byte-capped before execution and persistence.

string
name
required

After trimming and byte-capping, must be non-empty.

string
steps
Any of:
Array
Any of:
object
input
Any of:

Byte-capped before execution and persistence.

string
key
Any of:

Byte-capped before execution and persistence.

string
subject_kind
Any of:

Trimmed and byte-capped.

string
Example generated
{
"description": "example",
"mocks": [
{
"resource": "example",
"response": "example"
}
],
"name": "example",
"steps": [
{
"input": "example",
"key": "example"
}
],
"subject_kind": "example"
}

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}