Create collection from schema
POST
/apis/{apiId}/versions/{apiVersionId}/schemas/{schemaId}/collections
APISchema
name
- Name of the collection to be created.relations
- A list of relation(s) to be created.contracttest
, integrationtest
, testsuite
, and documentation
.Requires API Key as X-Api-Key
request header orapikey
URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.getpostman.com/apis//versions//schemas//collections' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My generated collection",
"relations": [
{
"type": "contracttest"
}
]
}'
Response Response Example
{
"collection": {
"id": "e6b0d46a-8722-4f42-ab86-f5f473187ddf",
"uid": "112098-e6b0d46a-8722-4f42-ab86-f5f473187ddf"
},
"relations": [
{
"id": "4b40f06a-5a6a-448f-bfcd-a6dbcb68da22",
"type": "contracttest"
}
]
}
Request
Path Params
apiId
string
required
apiVersionId
string
required
schemaId
string
required
Query Params
workspace
string
optional
Body Params application/json
Responses
Modified at 2023-08-15 05:41:03