Records a synthetic, operator-authored scenario fixture.
POST
/v1/m/sandbox/scenarios
const url = 'https://example.com/v1/m/sandbox/scenarios';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","mocks":[{"resource":"example","response":"example"}],"name":"example","steps":[{"input":"example","key":"example"}],"subject_kind":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “Request Body required ” Media type application/json
object
mocks
name
required
After trimming and byte-capping, must be non-empty.
string
steps
Example generated
{ "description": "example", "mocks": [ { "resource": "example", "response": "example" } ], "name": "example", "steps": [ { "input": "example", "key": "example" } ], "subject_kind": "example"}Responses
Section titled “ Responses ”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
{}