update_collection_folder
Update a folder's name or description in a Postman collection using a PATCH-like approach. Provide the collection and folder IDs along with the fields to change.
Instructions
Update a folder in a collection. Acts like PATCH, only updates provided values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Collection ID | |
| folder_id | Yes | Folder ID | |
| folder | Yes | Folder details to update |
Implementation Reference
- The updateCollectionFolder method sends a PUT request to /collections/{collection_id}/folders/{folder_id} with the folder data to update.
async updateCollectionFolder(args: any): Promise<ToolCallResponse> { const response = await this.client.put( `/collections/${args.collection_id}/folders/${args.folder_id}`, args.folder ); return this.createResponse(response.data); } - Input schema definition for update_collection_folder: requires collection_id, folder_id, and folder object (with optional name and description properties).
{ name: 'update_collection_folder', description: 'Update a folder in a collection. Acts like PATCH, only updates provided values.', inputSchema: { type: 'object', properties: { collection_id: { type: 'string', description: 'Collection ID', }, folder_id: { type: 'string', description: 'Folder ID', }, folder: { type: 'object', description: 'Folder details to update', properties: { name: { type: 'string' }, description: { type: 'string' } } } }, required: ['collection_id', 'folder_id', 'folder'], }, }, - src/tools/api/collections/index.ts:49-51 (registration)Registration (switch case) in handleToolCall that routes the 'update_collection_folder' tool name to the updateCollectionFolder method.
case 'update_collection_folder': return await this.updateCollectionFolder(args); case 'delete_collection_folder':