POST https://api.getpostman.com/apis/{{apiId}}/versions
This endpoint is deprecated in Qodex v10 and higher. Creates a new API version. Include the following request body properties in the version
object:
name
— Required. A string that contains the API version's name.source
— An object that contains the following properties:
id
— A string that contains an API version's ID to copy to the created API version.schema
— A boolean value. If true, copy the API definition to the new API version.relations
— An object that contains the relation types to copy to the new API version. Each property is a boolean value that, if true, copies to the new API version. If you do not include any the following properties, the system does not copy them over (defaults to the false
value):
monitor
mock
documentation
test
environment
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string |
RESPONSES
status OK
{
"version": {
"id": "8421a1f3-3262-4d47-a597-7005bf4c1564",
"name": "v1",
"api": "387c2863-6ee3-4a56-8210-225f774edade"
}
} |
ENDPOINTS