Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Update a folder

PUT {{baseUrl}}/collections/{{collectionId}}/folders/{{folderId}}

Updates a folder in a collection. For a complete list of properties, refer to Folder in the [collection.json schema file]

Note:

This endpoint acts like a PATCH method. It only updates the values that you pass in the request body (for example, the name property). The endpoint does not update the entire resource.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "data": { "folders_order": [ "b73b4c0c-881b-47e6-8887-6dabab1fd2d1", "abcc80b2-8a1c-45e5-ab1b-becc385b4dbd" ], "id": "65a99e60-8e0a-4b6e-b79c-7d8264cc5caa", "auth": null, "name": "Test Folder", "order": [], "owner": "12345678", "events": null, "folder": null, "updatedAt": "2022-08-29T16:49:19.964Z", "createdAt": "2022-08-29T16:49:19.964Z", "variables": null, "collection": "12ece9e1-2abf-4edc-8e34-de66e74114d2", "description": "This is a test folder.", "lastRevision": 24977100955, "lastUpdatedBy": "12345678" }, "meta": { "model": "folder", "action": "update" }, "model_id": "65a99e60-8e0a-4b6e-b79c-7d8264cc5caa", "revision": 24977103385 }



Curl
curl -X PUT 'https://api.getpostman.com/collections/collectionId/folders/folderId' -d '{"name":"folderName","description":"folderDescription"}'

ENDPOINTS