Update Collection

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-Key request header or apikey URL query parameter.

Note: Please be careful when trying to update the collection, as the existing collection will be replaced by the request body.

Request Body

{"collection"=>{"info"=>{"name"=>"Sample Collection 530", "description"=>"This is just a sample collection.", "_postman_id"=>"174bad7c-07e3-45f3-914f-36cf84e5586f", "schema"=>"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"}, "item"=>[{"name"=>"This is a folder", "item"=>[{"name"=>"Sample POST Request", "request"=>{"url"=>"https://postman-echo.com/post", "method"=>"POST", "header"=>[{"key"=>"Content-Type", "value"=>"application/json"}], "body"=>{"mode"=>"raw", "raw"=>"{\"data\": \"123\"}"}, "description"=>"This is a sample POST Request"}}]}, {"name"=>"Sample GET Request", "request"=>{"url"=>"https://postman-echo/get", "method"=>"GET", "description"=>"This is a sample GET Request"}}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"collection":{"id":"1d3daef4-2037-4584-ab86-bafd8c8f8a55","name":"Sample Collection","uid":"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55"}}