v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14120262383.5 KB

Adds a new Model resource to an existing RestApi resource.

post/restapis/{restapi_id}/models

Path parameters

restapi_idstring required

The RestApi identifier under which the Model will be created.

Request body

namestring required

The name of the model. Must be alphanumeric.

descriptionstring

The description of the model.

schemastring

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

contentTypestring required

The content-type for the model.

Response

Success

idstring

The identifier for the model resource.

namestring

The name of the model. Must be an alphanumeric string.

descriptionstring

The description of the model.

schemastring

The schema for the model. For <code>application/json</code> models, this should be JSON schema draft 4 model. Do not include "*/" characters in the description of any properties because such "*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

contentTypestring

The content-type for the model.