Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

update_model

update_model(**kwargs)

Updates a Model.

See also: AWS API Documentation

Request Syntax

response = client.update_model(
    ApiId='string',
    ContentType='string',
    Description='string',
    ModelId='string',
    Name='string',
    Schema='string'
)
Parameters
  • ApiId (string) --

    [REQUIRED]

    The API identifier.

  • ContentType (string) -- The content-type for the model, for example, "application/json".
  • Description (string) -- The description of the model.
  • ModelId (string) --

    [REQUIRED]

    The model ID.

  • Name (string) -- The name of the model.
  • Schema (string) -- The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Return type

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

  • ApiGatewayV2.Client.exceptions.NotFoundException
  • ApiGatewayV2.Client.exceptions.TooManyRequestsException
  • ApiGatewayV2.Client.exceptions.BadRequestException
  • ApiGatewayV2.Client.exceptions.ConflictException