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

# Update an email (draft only)



## OpenAPI

````yaml https://app.blogbowl.io/api/v1/misc/openapi.json patch /newsletters/{newsletter_id}/emails/{id}
openapi: 3.0.0
info:
  title: BlogBowl API
  description: >-
    REST API for managing blog pages, posts, authors, newsletters, and
    subscribers.
  version: 1.0.0
  x-copyright: null
servers:
  - url: https://app.blogbowl.io/api/v1
security: []
tags:
  - name: Authors
  - name: Categories
  - name: Emails
  - name: Images
  - name: Newsletters
  - name: Pages
  - name: Posts
  - name: Subscribers
paths:
  /newsletters/{newsletter_id}/emails/{id}:
    patch:
      tags:
        - Emails
      summary: Update an email (draft only)
      operationId: patch_newsletters_newsletter_id_emails_id
      parameters:
        - name: newsletter_id
          in: path
          required: true
          description: Newsletter ID
          schema:
            type: number
        - name: id
          in: path
          required: true
          description: Email ID
          schema:
            type: number
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                subject:
                  type: string
                  default: null
                  description: Email subject
                preview:
                  type: string
                  default: null
                  description: Email preview text
                content_html:
                  type: string
                  default: null
                  description: Email HTML content
                content_md:
                  type: string
                  default: null
                  description: Email content in Markdown
                author_id:
                  type: number
                  default: null
                  description: Author ID
              additionalProperties: false
      responses:
        '200':
          description: Updated email
          headers: {}
          content:
            '*/*':
              schema:
                type: object
                properties:
                  id:
                    type: number
                    description: Email ID
                  subject:
                    type: string
                    description: Email subject
                  preview:
                    type: string
                    description: Email preview text
                  slug:
                    type: string
                    description: Email slug
                  status:
                    type: string
                    description: Email status (draft, scheduled, sent, failed)
                  content_html:
                    type: string
                    description: Email HTML content
                  content_json:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Document type
                      content:
                        type: array
                        items:
                          type: string
                        description: Content nodes
                    additionalProperties: false
                  author_id:
                    type: number
                    description: Author ID
                  newsletter_id:
                    type: number
                    description: Newsletter ID
                  scheduled_at:
                    type: string
                    description: Scheduled send date
                  sent_at:
                    type: string
                    description: Actual send date
                  created_at:
                    type: string
                    description: Creation date
                  updated_at:
                    type: string
                    description: Updated date
                additionalProperties: false
                required:
                  - id
                  - subject
                  - preview
                  - slug
                  - status
                  - content_html
                  - content_json
                  - author_id
                  - newsletter_id
                  - scheduled_at
                  - sent_at
                  - created_at
                  - updated_at

````