Number of APIs: 4
POST https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas
This call creates a new schema. Request body should contain a Response contains a Requires API Key as schema
object which should atleast have these properties with string
values:
type
: Allowed types are openapi3
, openapi2
, openapi1
, raml
and graphql
.language
: Allowed languages are json
and yaml
for OpenAPI and RAML schema types. GraphQL schema type accepts only graphql
language.schema
: Optional. If passed, must be the content of the schema as a string
.schema
object with all the details related to the created schema, namely, id
, language
, type
etc.
X-Api-Key
request header or apikey
URL query parameter.
PUT https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}
This call updates an existing schema. Request body should contain a Response contains a Requires API Key as schema
object which should atleast have these properties with string
values:
type
: Allowed types are openapi3
, openapi2
, openapi1
, raml
and graphql
.language
: Allowed languages are json
and yaml
for OpenAPI and RAML schema types. GraphQL schema type accepts only graphql
language.schema
: Optional. If passed, must be the content of the schema as a string
.schema
object with all the details related to the created schema, namely, id
, language
, type
etc.
X-Api-Key
request header or apikey
URL query parameter.
3. Get Schema
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.
4. Create collection from schema
POST https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}/collections?workspace={{workspaceId}}
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