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

# Update Template

> Customer API v1 endpoint.

Update Template. Authenticate with a Bearer access token unless the endpoint is the authentication token exchange.


## OpenAPI

````yaml PATCH /v1/esign_templates/{templateId}
openapi: 3.1.0
info:
  title: Amplify Customer API
  version: 1.0.0
  description: |-
    Canonical contract for the Amplify customer-facing API. This YAML file is
    the source of truth for Postman and Mintlify. Operations marked with
    x-amplify-validation-status: pending were migrated from the legacy Postman
    collection and must be validated before their contract is considered final.
servers:
  - url: https://api.amplify.xyz
    description: Production
  - url: https://dev-api.amplify.xyz
    description: Development
security: []
tags:
  - name: Authentication
  - name: Fax
  - name: Send Faxes
  - name: Receive Faxes
  - name: Manage Faxes
  - name: Workspace
  - name: Numbers
  - name: Contacts
  - name: Documents
  - name: Templates
paths:
  /v1/esign_templates/{templateId}:
    patch:
      tags:
        - Templates
      summary: Update Template
      description: >-
        Migrated from Customer API v1: Customer eSign Templates > Update
        Template.
      operationId: patchv1EsignTemplatesByTemplateId
      parameters:
        - name: templateId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                file_type:
                  type: string
                page_count:
                  type: integer
                source:
                  type: string
                template_source:
                  type: string
                template_source_id:
                  type: integer
                theme:
                  type: object
                  properties:
                    text:
                      type: object
                      properties:
                        font:
                          type: string
                        size:
                          type: string
                        style:
                          type: array
                          items: {}
                        color:
                          type: string
                        capitalization:
                          type: string
                        line_spacing:
                          type: integer
                    background:
                      type: object
                      properties:
                        color:
                          type: string
                        opacity:
                          type: integer
                    background_image:
                      type: object
                      properties:
                        url:
                          type: string
                        size:
                          type: string
                        position:
                          type: string
                        is_repeating:
                          type: boolean
                        opacity:
                          type: integer
                    applied_to_page:
                      type: string
                config:
                  type: object
                  properties:
                    message:
                      type: string
                    notify_emails:
                      type: array
                      items: {}
                    redirect_url:
                      type: string
            example:
              file_type: pdf
              page_count: 1
              source: app
              template_source: blank
              template_source_id: 0
              theme:
                text:
                  font: Arial
                  size: 14px
                  style: []
                  color: '#000000'
                  capitalization: unset
                  line_spacing: 1
                background:
                  color: '#FFFFFF'
                  opacity: 100
                background_image:
                  url: ''
                  size: cover
                  position: left_top
                  is_repeating: false
                  opacity: 100
                applied_to_page: all_pages
              config:
                message: |-
                  Please review this document online.

                  Best regards,
                  web one
                notify_emails: []
                redirect_url: ''
      responses:
        '200':
          description: >-
            Successful response. Response body was not included in the source
            collection.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````