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

# Update a template

> Update fields on an existing template.

Only the fields you send are touched.


## OpenAPI

````yaml PATCH /v3/outreach/templates/{id}
openapi: 3.0.0
info:
  title: SnowSEO API
  description: API documentation for SnowSEO
  version: 1.0.0
servers:
  - url: https://api.snowseo.com
    description: Production server
security:
  - bearerAuth: []
  - apiKey: []
externalDocs:
  url: https://snowseo.com/docs
  description: Find more info here
paths:
  /v3/outreach/templates/{id}:
    patch:
      tags:
        - Outreach
      summary: Rename or edit an outreach email template
      description: >-
        Change a template's name, subject or body. Only the fields you send are
        touched. Drafts already composed from this template are unaffected,
        because they copied it. Allowed merge variables: {{first_name}},
        {{contact_name}}, {{contact_role}}, {{target_site_name}},
        {{prospect_domain}}, {{target_page_url}}, {{display_name}},
        {{your_brand}}, {{your_domain}}. target_site_name and prospect_domain
        refer to the recipient; your_brand and your_domain refer to the sender.
        display_name is the sending mailbox name. Use only these names in new
        templates; unknown variables become empty strings.
      operationId: updateOutreachTemplate
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Template ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: Internal label, unique within the team.
                subject:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: Subject line. May contain merge variables.
                body:
                  type: string
                  minLength: 1
                  maxLength: 20000
                  description: Markdown body. May contain merge variables.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  template:
                    type: object
                    properties:
                      id:
                        type: string
                      teamId:
                        type: string
                      name:
                        type: string
                      subject:
                        type: string
                      body:
                        type: string
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                    additionalProperties: true
                additionalProperties: true
        4XX:
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  reference:
                    type: string
        5XX:
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  reference:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your SnowSEO API key (sk_...).
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.