Create API Version
POST
/apis/{apiId}/versions
APIAPI Version
version
object which should have fields:name | Required. Name of the API Version | ||||||
source | If specified, it will copy the contents of the specified api version to create a new api verison.
|
version
object with all the details related to the created API Version, namely, id
, name
, api
.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' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": {
"name": "1.0",
"source": {
"id": "{{apiVersionId}}",
"relations": {
"documentation": true,
"mock": true,
"monitor": true
},
"schema": true
}
}
}'
Response Response Example
{
"version": {
"api": "2b95d07c-8379-4bd1-924f-e7e1af185284",
"id": "d71cf403-c549-4c7c-9dc6-a6a105acf67c",
"name": "1.0"
}
}
Request
Path Params
apiId
string
required
Body Params application/json
Responses
Modified at 2023-08-15 05:41:03