Number of APIs: 4
POST https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas
Creates a schema. The request body must contain a Requires an API Key as the schema
object with the following properties:
type
— A string value that contains the schema's type. One of:
openapi3_1
openapi3
openapi2
openapi1
raml
raml1
wsdl1
wsdl2
graphql
proto2
graphql
proto3
language
— A string value that contains the schema's language. One of:
json
or yaml
graphql
xml
proto
schema
— Optional. A string value that contains the schema's contents.
X-Api-Key
request header or an apikey
URL query parameter.
PUT https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}
Updates a schema. The request body must contain a Requires an API Key as the schema
object with the following properties:
type
— A string value that contains the schema's type. One of:
openapi3_1
openapi3
openapi2
openapi1
raml
raml1
wsdl1
wsdl2
graphql
proto2
graphql
proto3
language
— A string value that contains the schema's language. One of:
json
or yaml
graphql
xml
proto
schema
— Optional. A string value that contains the schema's contents.
X-Api-Key
request header or an apikey
URL query parameter.
GET https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}
This call fetches a single schema having the specified id. Response contains a Requires API Key as schema
object with all the details related to the schema, namely, id
, language
, type
, schema
etc.
X-Api-Key
request header or apikey
URL query parameter.
POST https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}/collections?workspace=c90a3482-f80d-43d6-9dfb-0830f5e43605
This call creates a collection and links it to an API as one or multiple relations. Request body requires two keys:
- The allowed relation types are Requires API Key as name
- Name of the collection to be created.
- relations
- A list of relation(s) to be created.contracttest
, integrationtest
, testsuite
, and documentation
.
X-Api-Key
request header or apikey
URL query parameter.
ENDPOINTS