---
title: "Set the composer draft message"
url: https://docs.gleap.ai/en/reference/rest-api/set-draft-message
method: PUT
path: "/tickets/{ticketId}/draft-message"
api: "API Reference"
tag: "Ticket"
operationId: "SetDraftMessage"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Set the composer draft message

`PUT https://api.gleap.io/v3/tickets/{ticketId}/draft-message`

Stage a drafted reply in the ticket's dashboard composer. `content` is either a Markdown string (converted server-side to the composer's rich-text format) or a TipTap doc. The draft appears instantly in the composer of everyone viewing the ticket; nothing is sent to the customer. It replaces any previous draft and is cleared automatically when a reply is sent or the draft is dismissed in the composer.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `ticketId` (string, required)

## Headers

- `project` (string, required)

## Request body (`application/json`, required)

- `content` (any, required): The draft reply — a Markdown string or a TipTap doc.

## Example request

```bash
curl --request PUT \
  --url 'https://api.gleap.io/v3/tickets/{ticketId}/draft-message' \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": null
}'
```

## Responses

### 200 (`application/json`)

Ok
