v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1472221377.0 KB

Creates a Model for an API.

post/v2/apis/{apiId}/models

Path parameters

apiIdstring required

The API identifier.

Request body

contentTypestring

A string with a length between [1-256].

descriptionstring

A string with a length between [0-1024].

namestring required

A string with a length between [1-128].

schemastring required

A string with a length between [0-32768].

Response

Success

ContentTypestring

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

Descriptionstring

The description of the model.

ModelIdstring

The model identifier.

Namestring

The name of the model. Must be alphanumeric.

Schemastring

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