Skip to main content
POST
Create a simulation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string

Body

application/json
mode
string
required

'research' or 'journey'

goal
string
required

Goal id within the mode (from /v1/simulation-schema)

user_model_ids
string<uuid>[]
required

One or more user-model ids to simulate against

inputs
Inputs · object

Answers keyed by the goal's input ids (from /v1/simulation-schema)

title
string | null

A name for the simulation. Leave it out and it is named from what it asks.

project_id
string<uuid> | null

Optional project to add this simulation to; it joins the project's latest round (round 1 is created if none exists)

survey_design
SurveyDesign · object | null

Research mode only. Fixes which questions are asked: one per item in each item set plus one per custom question. The question writer only words them. Leave out to let it decide what to ask. A malformed survey_design is a 422 like any other malformed field; a well-formed one that cannot be used (journey mode, nothing to ask, too many questions) is a 400.

context_id
string<uuid> | null

Context to plan against (from /v1/contexts). Defaults to your most recently updated context, else your organisation's. A simulation in a project plans against the project's context, so leave this out when passing project_id unless it names that same context.

round_id
string<uuid> | null

Round of project_id to put this simulation in. Defaults to the project's latest round.

Response

Successful Response