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

# Update email template



## OpenAPI

````yaml api-reference/v1/openapi.yaml put /v1/admin/notifications/email-templates/{type}
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/admin/notifications/email-templates/{type}:
    put:
      tags:
        - Email Templates
      summary: Update email template
      parameters:
        - schema:
            type: string
          required: true
          name: type
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                subject:
                  type: string
                body:
                  type: string
                is_enabled:
                  type: boolean
      responses:
        '200':
          description: Updated template
          content:
            application/json:
              schema:
                type: object
                properties:
                  template:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      notification_type:
                        type: string
                      subject:
                        type: string
                      body_html:
                        type: string
                      body_text:
                        type: string
                      is_enabled:
                        type: boolean
                      available_variables:
                        type: array
                        items:
                          type: string
                      created_at:
                        type: string
                      updated_at:
                        type: string
                    required:
                      - id
                      - notification_type
                      - subject
                      - body_html
                      - body_text
                      - is_enabled
                      - available_variables
                      - created_at
                      - updated_at
                required:
                  - template
        '404':
          description: Template not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````