---
title: "Update a draft that has not yet been sent"
method: PATCH
path: "/drafts/{id}"
tags: ["Drafts"]
---

# Update a draft that has not yet been sent

`PATCH /drafts/{id}`

## Request

- Base URL: `https://api.automessage.app/v1`
- URL: `https://api.automessage.app/v1/drafts/{id}`
- Auth: API key in header `X-API-KEY`

## Request body

- object
  - `body` string
  - `to` string: E.164 phone or email

## Response `200`

Updated draft.

- Draft
  - `id` string, required
  - `to` string, required: Empty for a group draft (addressed by chatGUID).
  - `conversationId` string, nullable: The existing thread this draft targets, when there is one (set for conversationId sends and for `to` sends that match a thread).
  - `chatGUID` string, nullable: Group drafts only: the chat id in the connector's `any;+;<id>` form.
  - `body` string, required
  - `sent` boolean, required
  - `sentAt` string, date-time, nullable
  - `scheduledAt` string, date-time, nullable
  - `createdAt` string, date-time, required

## Other responses

- `409`: Draft already sent; cannot modify.

---

[API](https://skmtc.dev/automessage/apis/automessage-rest-api.md) · [All operations](https://skmtc.dev/automessage/apis/automessage-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/automessage/apis/automessage-rest-api/revisions/129f369dee8b?raw)
