Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Update part of a collection

PATCH {{baseUrl}}/collections/{{collectionId}}

Updates specific collection information, such as its name, events, or its variables. For more information about the auth, variables, and events properties, refer to the [collection.json schema file]

  • For variables, refer to "#/definitions/variable".
  • For auth, refer to "#/definitions/auth-attribute".
  • For events, refer to "#/definitions/event".

For more information about the Collection Format, see the [Qodex Collection Format documentation]

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "collection": { "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2", "name": "Test Collection v2", "description": "This is a sample collection that makes a request to the Postman Echo service. It returns a list of request headers sent by an HTTP client." } }



Curl
curl -X PATCH 'https://api.getpostman.com/collections/collectionId' -d '{"collection":{"info":{"name":"collectionName","description":"collectionDescription"},"variables":[],"auth":{},"events":[]}}'

ENDPOINTS