delete_collection_response
Delete a specific response from a Postman collection by providing the collection ID and response ID.
Instructions
Delete a response from a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Collection ID | |
| response_id | Yes | Response ID |
Implementation Reference
- The async method `deleteCollectionResponse` that executes the tool logic by calling `this.client.delete()` on the API endpoint `/collections/{collection_id}/responses/{response_id}`.
async deleteCollectionResponse(args: any): Promise<ToolCallResponse> { const response = await this.client.delete( `/collections/${args.collection_id}/responses/${args.response_id}` ); return this.createResponse(response.data); } - src/types/collection.ts:46-48 (schema)The TypeScript interface `DeleteCollectionResponseArgs` extending `CollectionIdArg` with a required `response_id` string field.
export interface DeleteCollectionResponseArgs extends CollectionIdArg { response_id: string; } - The tool definition/input schema for `delete_collection_response`, specifying `collection_id` and `response_id` as required string properties.
{ name: 'delete_collection_response', description: 'Delete a response from a collection', inputSchema: { type: 'object', properties: { collection_id: { type: 'string', description: 'Collection ID', }, response_id: { type: 'string', description: 'Response ID', }, }, required: ['collection_id', 'response_id'], }, }, - src/tools/api/collections/index.ts:67-68 (registration)The case statement in the tool routing switch that maps the tool name `'delete_collection_response'` to the handler method `this.deleteCollectionResponse(args)`.
case 'delete_collection_response': return await this.deleteCollectionResponse(args);