> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Set the composer 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.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json put /tickets/{ticketId}/draft-message
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/{ticketId}/draft-message:
    put:
      tags:
        - Ticket
      summary: Set the composer draft message
      description: >-
        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.
      operationId: SetDraftMessage
      parameters:
        - in: path
          name: ticketId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                content:
                  description: The draft reply — a Markdown string or a TipTap doc.
              required:
                - content
              type: object
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````