Create a schema
POST https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas
This endpoint is deprecated in Qodex v10 and higher.
Creates an API definition. The request body must contain a schema
object with the following properties:
type
— A string value that contains the API definition's type. One of:openapi3_1
openapi3
openapi2
openapi1
raml
raml1
wsdl1
wsdl2
graphql
proto2
graphql
proto3
language
— A string value that contains the API definition's language. One of:- OpenAPI and RAML —
json
oryaml
- GraphQL —
graphql
- WSDL —
xml
- Protobuf —
proto
- OpenAPI and RAML —
schema
— A string value that contains the API definition's contents.
Request Body
{"schema"=>{"language"=>"{{apiDefinitionLanguage}}", "schema"=>"{{apiDefinition}}", "type"=>"{{apiDefinitionType}}"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"schema":{"id":"e3b3a0b7-34d5-4fc5-83e0-118bd9e8c822","language":"json","apiVersion":"a9879d02-74bf-425a-bbec-6d27aa135507","type":"openapi3","createdBy":"12345678","updatedBy":"12345678","createdAt":"2021-05-22T13:17:07.000Z","updatedAt":"2021-05-22T13:17:07.000Z"}}