Create a model in API Gateway - Amazon API Gateway

Create a model in API Gateway

Use the API Gateway console to create a model for an API.

Prerequisites

Create a model with the API Gateway console

  1. Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway.

  2. Choose a REST API.

  3. Choose Models.

  4. Choose Create.

  5. For Model Name, type a name for the model.

  6. For Content Type, type the model's content type (for example, application/json for JSON).

  7. (Optional) For Model description, type a description for the model.

  8. For Model schema, type the model's schema. For more information about model schemas, see Models.

  9. Choose Create model.