Update an API Version
PUT
/apis/{apiId}/versions/{apiVersionId}
APIAPI Version
version
object with the fields which need to be updated. Only field which can be updated is name
.version
object with all the details related to the created API Version, namely, id
, name
, api
etc.Requires API Key as X-Api-Key
request header orapikey
URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.getpostman.com/apis//versions/' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": {
"name": "2.0"
}
}'
Response Response Example
{
"version": {
"api": "2b95d07c-8379-4bd1-924f-e7e1af185284",
"createdAt": "2019-07-26T11:24:15.000Z",
"createdBy": "12",
"id": "d71cf403-c549-4c7c-9dc6-a6a105acf67c",
"name": "2.0",
"updatedAt": "2019-08-09T09:27:36.000Z",
"updatedBy": "5665"
}
}
Request
Path Params
apiId
string
required
apiVersionId
string
required
Body Params application/json
Responses
Modified at 2023-08-15 05:41:03