Update collection by updating mock
PUT https://api.getpostman.com/collections/{{collection_uid}}
This endpoint allows you to update an existing collection using the Qodex Collection v2 format. For more information about the v2 schema, check the format here.
On successful updation of the collection, the response returns the collection name, id and uid.
Requires API Key as
X-Api-Keyrequest header orapikeyURL query parameter.
Note: Please be careful when trying to update the collection, as the existing collection will be replaced by the request body.
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
X-Api-Key | string |
RESPONSES
status: OK
{"collection":{"id":"1d3daef4-2037-4584-ab86-bafd8c8f8a55","name":"Sample Collection","uid":"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55"}}