{"info":{"_postman_id":"374ec306-8e1d-47c3-b254-16f8f5070426","name":"How to update collection using Postman API?","description":"<html><head></head><body><p>To update the collection:</p>\n<ol>\n<li>Fetch the collection Id.\\</li>\n<li>Run the request with the changes in the body.</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6034746","collectionId":"374ec306-8e1d-47c3-b254-16f8f5070426","publishedId":"SzYUZg9Q","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-26T12:43:58.000Z"},"item":[{"name":"Fetch Collection-uid","event":[{"listen":"test","script":{"id":"6f1fddd7-26a8-4f48-808b-4f245c3bc45b","exec":["//This request gets you all of the collections"],"type":"text/javascript"}}],"id":"72d827ca-f9e5-4c6d-b2c6-4b88ca065a16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{key}}","type":"text"}],"url":"https://api.getpostman.com/workspaces","description":"<p>Lists all of the collections across various workspaces.</p>\n","urlObject":{"protocol":"https","path":["workspaces"],"host":["api","getpostman","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"72d827ca-f9e5-4c6d-b2c6-4b88ca065a16"},{"name":"Look for Collections in workspace","id":"24ade6db-ddf8-42b9-8724-d53ed29f2e6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"url":"https://api.getpostman.com/workspaces/{{workspace-id}}","urlObject":{"protocol":"https","path":["workspaces","{{workspace-id}}"],"host":["api","getpostman","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"24ade6db-ddf8-42b9-8724-d53ed29f2e6e"},{"name":"Update Collection","event":[{"listen":"test","script":{"id":"8ab5c3b4-7a85-4d55-95c0-e773bcf66871","exec":["//  Delete this lines before sending the request","//  Whole of the body response that needs to be updated has to be added here","//  I have changed the name of the request for your understanding"],"type":"text/javascript"}}],"id":"219d30cc-d5d0-40a1-98c5-519d6733a41f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-api-key","value":"{{key}}","type":"text"}],"body":{"mode":"raw","raw":"//Enter the changes to the collection in this section","options":{"raw":{"language":"json"}}},"url":"https://api.getpostman.com/collections/{{collection_uid}}","description":"<p>Enter the collection - UID for which you want to make the changes by entering the changes in the body of your collection.</p>\n","urlObject":{"protocol":"https","path":["collections","{{collection_uid}}"],"host":["api","getpostman","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"219d30cc-d5d0-40a1-98c5-519d6733a41f"}]}