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

***********************
update_document_version
***********************



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

  

  Changes the status of the document version to ACTIVE.

   

  Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by  InitiateDocumentVersionUpload.

  

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


  **Request Syntax**
  ::

    response = client.update_document_version(
        AuthenticationToken='string',
        DocumentId='string',
        VersionId='string',
        VersionStatus='ACTIVE'
    )
    
  :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 VersionId: string
  :param VersionId: **[REQUIRED]** 

    The version ID of the document.

    

  
  :type VersionStatus: string
  :param VersionStatus: 

    The status of the version.

    

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

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

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

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

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

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

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

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

  