---
title: "Rewrite Draft Route"
method: POST
path: "/api/v1/customers/{customer_id}/draft/rewrite"
tags: ["customers"]
---

# Rewrite Draft Route

`POST /api/v1/customers/{customer_id}/draft/rewrite`

Rewrite the current draft body using a user-supplied instruction.

## Path parameters

- `customer_id` string, uuid, required

## Headers

- `authorization` string, nullable — Bearer <token>

## Request body

- DraftRewriteRequest
  - `body` string, required
  - `instruction` string, required

## Response `200`

Successful Response

- EnvelopeDict
  - `data` object, required
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/eb854265cf29/schema)
