Amazon API Gateway
Developer Guide

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. In the box that contains the name of the API where you want to create the model, choose Models.

  3. Choose Create.

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

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

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

  7. For Model schema, type the model's schema. For more information about model schemas, see Create Models and Mapping Templates for Request and Response Mappings.

  8. Choose Create model.