:doc:`ApiGatewayV2 <../../apigatewayv2>` / Client / update_model

************
update_model
************



.. py:method:: ApiGatewayV2.Client.update_model(**kwargs)

  

  Updates a Model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/UpdateModel>`_  


  **Request Syntax**
  ::

    response = client.update_model(
        ApiId='string',
        ContentType='string',
        Description='string',
        ModelId='string',
        Name='string',
        Schema='string'
    )
    
  :type ApiId: string
  :param ApiId: **[REQUIRED]** 

    The API identifier.

    

  
  :type ContentType: string
  :param ContentType: 

    The content-type for the model, for example, "application/json".

    

  
  :type Description: string
  :param Description: 

    The description of the model.

    

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

    The model ID.

    

  
  :type Name: string
  :param Name: 

    The name of the model.

    

  
  :type Schema: string
  :param Schema: 

    The schema for the model. For application/json models, this should be JSON schema draft 4 model.

    

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

    
    ::

      {
          'ContentType': 'string',
          'Description': 'string',
          'ModelId': 'string',
          'Name': 'string',
          'Schema': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Success

      
      

      - **ContentType** *(string) --* 

        The content-type for the model, for example, "application/json".

        
      

      - **Description** *(string) --* 

        The description of the model.

        
      

      - **ModelId** *(string) --* 

        The model identifier.

        
      

      - **Name** *(string) --* 

        The name of the model. Must be alphanumeric.

        
      

      - **Schema** *(string) --* 

        The schema for the model. For application/json models, this should be JSON schema draft 4 model.

        
  
  **Exceptions**
  
  *   :py:class:`ApiGatewayV2.Client.exceptions.NotFoundException`

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

  
  *   :py:class:`ApiGatewayV2.Client.exceptions.BadRequestException`

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

  