---
title: "Edit the plan"
method: PATCH
path: "/v1/simulations/{simulation_id}/plan"
tags: ["Simulations"]
---

# Edit the plan

`PATCH /v1/simulations/{simulation_id}/plan`

Edit the generated plan while the simulation is in status `planned`.

## Path parameters

- `simulation_id` string, uuid, required

## Headers

- `authorization` string

## Request body

- UpdatePlanBody
  - `question_text` string, nullable
  - `hypothesis_text` string, nullable
  - `survey_questions` SurveyQuestionIn[], nullable
    - `question_text` string, required
    - `question_type` string
    - `answer_options` string[], nullable
    - `insight` string, nullable
    - `variable_name` string, nullable
  - `journey_task` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stainless-api/apis/semilattice-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/semilattice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/semilattice-api/revisions/79d8db9d1182/schema)
