Logo
30 Days of Postman API Documentation

Update an API Version

PUT https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}

This call updates an existing API Version.

Request body should contain a version object with the fields which need to be updated. Only field which can be updated is name.

Response contains a 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 or apikey URL query parameter.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status OK

{ "version": { "id": "d71cf403-c549-4c7c-9dc6-a6a105acf67c", "name": "2.0", "createdAt": "2019-07-26T11:24:15.000Z", "updatedAt": "2019-08-09T09:27:36.000Z", "api": "2b95d07c-8379-4bd1-924f-e7e1af185284", "createdBy": "12", "updatedBy": "5665" } }



Curl
curl -X PUT 'https://api.getpostman.com/apis/undefined/versions/undefined' -H 'Content-Type: application/json' -d '{"version":{"name":"2.0"}}'

ENDPOINTS