:doc:`SSM <../../ssm>` / Client / update_document_metadata

************************
update_document_metadata
************************



.. py:method:: SSM.Client.update_document_metadata(**kwargs)

  

  .. warning::

    

    Amazon Web Services Systems Manager Change Manager will no longer be open to new customers starting November 7, 2025. If you would like to use Change Manager, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see `Amazon Web Services Systems Manager Change Manager availability change <https://docs.aws.amazon.com/systems-manager/latest/userguide/change-manager-availability-change.html>`__.

     

   

  Updates information related to approval reviews for a specific version of a change template in Change Manager.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentMetadata>`_  


  **Request Syntax**
  ::

    response = client.update_document_metadata(
        Name='string',
        DocumentVersion='string',
        DocumentReviews={
            'Action': 'SendForReview'|'UpdateReview'|'Approve'|'Reject',
            'Comment': [
                {
                    'Type': 'Comment',
                    'Content': 'string'
                },
            ]
        }
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the change template for which a version's metadata is to be updated.

    

  
  :type DocumentVersion: string
  :param DocumentVersion: 

    The version of a change template in which to update approval metadata.

    

  
  :type DocumentReviews: dict
  :param DocumentReviews: **[REQUIRED]** 

    The change template review details to update.

    

  
    - **Action** *(string) --* **[REQUIRED]** 

      The action to take on a document approval review request.

      

    
    - **Comment** *(list) --* 

      A comment entered by a user in your organization about the document review request.

      

    
      - *(dict) --* 

        Information about comments added to a document review request.

        

      
        - **Type** *(string) --* 

          The type of information added to a review request. Currently, only the value ``Comment`` is supported.

          

        
        - **Content** *(string) --* 

          The content of a comment entered by a user who requests a review of a new document version, or who reviews the new version.

          

        
      
  
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSM.Client.exceptions.InternalServerError`

  
  *   :py:class:`SSM.Client.exceptions.InvalidDocument`

  
  *   :py:class:`SSM.Client.exceptions.InvalidDocumentOperation`

  
  *   :py:class:`SSM.Client.exceptions.InvalidDocumentVersion`

  
  *   :py:class:`SSM.Client.exceptions.TooManyUpdates`

  