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

> Customer API v1 endpoint.

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


## OpenAPI

````yaml PATCH /v1/esign_documents/{documentId}
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}:
    patch:
      tags:
        - Documents
      summary: Update Document
      description: >-
        Migrated from Customer API v1: Customer eSign Documents > Update
        Document.
      operationId: patchv1EsignDocumentsByDocumentId
      parameters:
        - name: documentId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                status:
                  type: string
                page_count:
                  type: integer
                page_no:
                  type: integer
                is_active:
                  type: boolean
                has_sign_order:
                  type: boolean
                is_fields_placed:
                  type: boolean
                config:
                  type: object
                  properties:
                    due_date: {}
                    expiry_date: {}
                    message:
                      type: string
                    notify_emails:
                      type: array
                      items: {}
                    allow_download:
                      type: boolean
                    attach_document:
                      type: boolean
                    attach_document_cc:
                      type: boolean
            example:
              name: Updated Document Name
              status: draft
              page_count: 1
              page_no: 1
              is_active: false
              has_sign_order: false
              is_fields_placed: true
              config:
                due_date: null
                expiry_date: null
                message: Please sign
                notify_emails: []
                allow_download: true
                attach_document: true
                attach_document_cc: false
      responses:
        '200':
          description: >-
            Successful response. Response body was not included in the source
            collection.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````