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

# Update email outbox entry

> Updates an email in the outbox. Can be used to edit email content, pause/resume, or cancel emails. Only emails in editable states (`paused`, `preparing`, `rendering`, `render-error`, `scheduled`, `queued`, `server-error`) can be modified.



## OpenAPI

````yaml /openapi/server.json patch /emails/outbox/{id}
openapi: 3.1.0
info:
  title: Hexclave REST API
  version: 1.0.0
  description: >-
    The Hexclave REST API. All request headers are documented as canonical
    `X-Hexclave-*`; the equivalent `X-Stack-*` aliases are accepted on every
    endpoint for backwards compatibility. Response headers
    `X-Hexclave-actual-status`, `X-Hexclave-known-error`, and
    `X-Hexclave-request-id` are emitted alongside their legacy `X-Stack-*`
    equivalents.
servers:
  - url: https://api.hexclave.com/api/v1
    description: Hexclave REST API
security: []
paths:
  /emails/outbox/{id}:
    patch:
      tags:
        - Emails
      summary: Update email outbox entry
      description: >-
        Updates an email in the outbox. Can be used to edit email content,
        pause/resume, or cancel emails. Only emails in editable states
        (`paused`, `preparing`, `rendering`, `render-error`, `scheduled`,
        `queued`, `server-error`) can be modified.
      parameters:
        - name: status
          in: query
          schema:
            type: string
          required: false
        - name: simple_status
          in: query
          schema:
            type: string
          required: false
        - name: id
          in: path
          schema:
            type: string
          required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tsx_source:
                  type: string
                theme_id:
                  type: string
                to:
                  type: object
                variables:
                  type: object
                  properties: {}
                  required: []
                skip_deliverability_check:
                  type: boolean
                scheduled_at_millis:
                  type: number
                is_paused:
                  type: boolean
                cancel:
                  type: boolean
              example: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema: {}

````