---
title: "Update Agent Draft"
method: PATCH
path: "/api/v1/agents/{agent_id}/drafts/{draft_id}"
tags: ["agents"]
---

# Update Agent Draft

`PATCH /api/v1/agents/{agent_id}/drafts/{draft_id}`

Persist body/subject edits for a pending draft (autosave).

## Path parameters

- `agent_id` string, uuid, required
- `draft_id` string, uuid, required

## Headers

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

## Request body

- DraftUpdate
  - `body` string, nullable
  - `subject` string, nullable
  - `channel` string, nullable
  - `base_version` integer, nullable

## Response `200`

Successful Response

- EnvelopeDraftResponse
  - `data` DraftResponse, required
    - `id` string, uuid, required
    - `workspace_id` string, uuid, required
    - `customer_id` string, uuid, required
    - `channel` string, nullable
    - `subject` string, nullable
    - `body` string, required
    - `body_format` string
    - `status` string, required
    - `content_version` integer
    - `generation_context` object, nullable
    - `generated_at` string, date-time, required
    - `sent_at` string, date-time, nullable
    - `reply_received` boolean
    - `reply_at` string, date-time, nullable
    - `customer_name` string, nullable
    - `customer_email` string, nullable
    - `priority_tier` string, nullable
    - `priority_score` number, nullable
    - `opened` boolean, nullable
    - `first_opened_at` string, date-time, nullable
    - `unsubscribed` boolean, nullable
    - `unsubscribed_at` string, date-time, nullable
    - `returned` boolean, nullable
    - `returned_at` string, date-time, nullable
  - `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)
