delete_collection_request
Deletes a specific request from a Postman collection using collection and request IDs.
Instructions
Delete a request from a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Collection ID | |
| request_id | Yes | Request ID |
Implementation Reference
- The main handler method that executes the delete_collection_request tool logic. It makes an HTTP DELETE request to /collections/{collection_id}/requests/{request_id} via the Postman API client.
/** * Delete a request from a collection */ async deleteCollectionRequest(args: any): Promise<ToolCallResponse> { const response = await this.client.delete( `/collections/${args.collection_id}/requests/${args.request_id}` ); return this.createResponse(response.data); } - src/types/collection.ts:35-37 (schema)TypeScript interface defining the input schema for DeleteCollectionRequest. Extends CollectionIdArg (which provides collection_id) and adds request_id.
export interface DeleteCollectionRequestArgs extends CollectionIdArg { request_id: string; } - Tool definition registration with input schema that declares collection_id and request_id as required string properties.
{ name: 'delete_collection_request', description: 'Delete a request from a collection', inputSchema: { type: 'object', properties: { collection_id: { type: 'string', description: 'Collection ID', }, request_id: { type: 'string', description: 'Request ID', }, }, required: ['collection_id', 'request_id'], }, }, - src/tools/api/collections/index.ts:59-60 (registration)Routes the 'delete_collection_request' tool name to the deleteCollectionRequest handler method via a switch statement in handleToolCall.
case 'delete_collection_request': return await this.deleteCollectionRequest(args); - src/types/common.ts:9-10 (helper)CollectionIdArg base interface providing collection_id field, which is extended by DeleteCollectionRequestArgs.
export interface CollectionIdArg { collection_id: string;