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

# Edit the plan

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

## Request

- Base URL: `https://api.semilattice.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.semilattice.ai/v1/simulations/{simulation_id}/plan`
- Auth: none declared

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/semilattice/apis/semilattice-api.md) · [All operations](https://skmtc.dev/semilattice/apis/semilattice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/semilattice/apis/semilattice-api/revisions/ed277716da4f?raw)
