:doc:`WorkDocs <../../workdocs>` / Client / update_document

***************
update_document
***************



.. py:method:: WorkDocs.Client.update_document(**kwargs)

  

  Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocument>`_  


  **Request Syntax**
  ::

    response = client.update_document(
        AuthenticationToken='string',
        DocumentId='string',
        Name='string',
        ParentFolderId='string',
        ResourceState='ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED'
    )
    
  :type AuthenticationToken: string
  :param AuthenticationToken: 

    Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

    

  
  :type DocumentId: string
  :param DocumentId: **[REQUIRED]** 

    The ID of the document.

    

  
  :type Name: string
  :param Name: 

    The name of the document.

    

  
  :type ParentFolderId: string
  :param ParentFolderId: 

    The ID of the parent folder.

    

  
  :type ResourceState: string
  :param ResourceState: 

    The resource state of the document. Only ACTIVE and RECYCLED are supported.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`WorkDocs.Client.exceptions.EntityNotExistsException`

  
  *   :py:class:`WorkDocs.Client.exceptions.EntityAlreadyExistsException`

  
  *   :py:class:`WorkDocs.Client.exceptions.LimitExceededException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ProhibitedStateException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ConflictingOperationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedOperationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedResourceAccessException`

  
  *   :py:class:`WorkDocs.Client.exceptions.FailedDependencyException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ServiceUnavailableException`

  