> ## 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 document theme

> Customer API v1 endpoint.

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


## OpenAPI

````yaml PATCH /v1/esign_documents/{documentId}/theme
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_documents/{documentId}/theme:
    patch:
      tags:
        - Documents
      summary: Update document theme
      description: >-
        Migrated from Customer API v1: Customer eSign Documents > Document Theme
        > Save Theme (PATCH).
      operationId: patchv1EsignDocumentsByDocumentIdTheme
      parameters:
        - name: documentId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              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
            example:
              text:
                font: Arial
                size: 18px
                style: []
                color: '#000000'
                capitalization: unset
                line_spacing: 2
              background:
                color: '#FFFFFF'
                opacity: 100
              background_image:
                url: ''
                size: cover
                position: left_top
                is_repeating: false
                opacity: 100
              applied_to_page: all_pages
      responses:
        '200':
          description: >-
            Successful response. Response body was not included in the source
            collection.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````