action getpostman_create_relations {
label: "Create relations"
description: "This call allows you to add existing Postman entities as new relations to an API. The request body should contain the relations to be created along with an array of entity IDs. \n\n
\n \n | Relation | \n Entity ID type | \n
\n
\n | contracttest | \n Collection UIDs | \n
\n \n | integrationtest | \n Collection UIDs | \n
\n \n | documentation | \n Collection UIDs | \n
\n \n | testsuite | \n Collection UIDs | \n
\n \n | environment | \n Environment UIDs | \n
\n \n | mock | \n Mock IDs | \n
\n \n | monitor | \n Monitor IDs | \n
\n
\n\n> Requires API Key as `X-Api-Key` request header or `apikey` URL query parameter."
provider: getpostman
method: POST
path: "/apis/{apiId}/versions/{apiVersionId}/relations"
encoding: json
input: {
type: "object"
properties: {
contracttest: {
type: "array"
items: {
type: "string"
}
}
documentation: {
type: "array"
items: {
type: "string"
}
}
mock: {
type: "array"
items: {
type: "string"
}
}
testsuite: {
type: "array"
items: {
type: "string"
}
}
}
}
output: {
type: "object"
properties: {
contracttest: {
type: "array"
items: {
type: "string"
}
}
documentation: {
type: "array"
items: {
type: "string"
}
}
testsuite: {
type: "array"
items: {
type: "string"
}
}
}
}
}