Skip to main content
PATCH
Edit the plan

Authorizations

Authorization
string
header
required

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

Headers

authorization
string

Path Parameters

simulation_id
string<uuid>
required

Body

application/json
question_text
string | null

What the simulation sets out to find out

hypothesis_text
string | null

What you expect the answers to show

survey_questions
SurveyQuestionIn · object[] | null

Replaces the whole question set. Every question gets a new id, so ids from an earlier read are stale afterwards. Cannot be combined with question_edits, add_questions or delete_question_ids.

question_edits
QuestionEditIn · object[] | null

Change particular questions by id. Only the fields sent change; every other question keeps its id.

add_questions
SurveyQuestionIn · object[] | null

Questions appended after the existing ones.

delete_question_ids
string<uuid>[] | null

Ids of questions to delete.

journey_task
Journey Task · object | null

Replaces the journey task. Its shape depends on the goal: see journey_task_shape on the goal in /v1/simulation-schema.

Response

Successful Response