---
title: "Modify Plan"
method: PATCH
path: "/studio/v1/assistants/{assistant_id}/plans/{plan_id}"
---

# Modify Plan

`PATCH /studio/v1/assistants/{assistant_id}/plans/{plan_id}`

## Path parameters

- `plan_id` string, required
- `assistant_id` string, required

## Request body

- CreatePlanPayload
  - `code` string, required
  - `schemas` object[]

## Response `200`

Successful Response

- Plan
  - `id` string, required — A unique ID for the request (not the message). Repeated identical requests get different IDs. However, for a streaming response, the ID will be the same for all responses in the stream.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `code` string, required
  - `schemas` object[]
  - `assistant_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ai21/apis/ai21-studio-api.md) · [All operations](https://skmtc.dev/ai21/apis/ai21-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ai21/ai21-studio-api/revisions/7e679506766e/schema)
