:doc:`APIGateway <../../apigateway>` / Client / create_documentation_version

****************************
create_documentation_version
****************************



.. py:method:: APIGateway.Client.create_documentation_version(**kwargs)

  

  Creates a documentation version

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/CreateDocumentationVersion>`_  


  **Request Syntax**
  ::

    response = client.create_documentation_version(
        restApiId='string',
        documentationVersion='string',
        stageName='string',
        description='string'
    )
    
  :type restApiId: string
  :param restApiId: **[REQUIRED]** 

    The string identifier of the associated RestApi.

    

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

    The version identifier of the new snapshot.

    

  
  :type stageName: string
  :param stageName: 

    The stage name to be associated with the new documentation snapshot.

    

  
  :type description: string
  :param description: 

    A description about the new documentation snapshot.

    

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

    
    ::

      {
          'version': 'string',
          'createdDate': datetime(2015, 1, 1),
          'description': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      A snapshot of the documentation of an API.

      
      

      - **version** *(string) --* 

        The version identifier of the API documentation snapshot.

        
      

      - **createdDate** *(datetime) --* 

        The date when the API documentation snapshot is created.

        
      

      - **description** *(string) --* 

        The description of the API documentation snapshot.

        
  
  **Exceptions**
  
  *   :py:class:`APIGateway.Client.exceptions.BadRequestException`

  
  *   :py:class:`APIGateway.Client.exceptions.ConflictException`

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

  
  *   :py:class:`APIGateway.Client.exceptions.NotFoundException`

  
  *   :py:class:`APIGateway.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`APIGateway.Client.exceptions.TooManyRequestsException`

  