delete_collection_access_key
Delete a collection access key to revoke access to a Postman collection. Provide the key ID.
Instructions
Delete a collection access key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | Yes | The collection access key ID to delete |
Implementation Reference
- src/tools/api/auth/index.ts:84-90 (handler)The handler function that executes the delete_collection_access_key tool logic. It validates keyId is provided, sends a DELETE request to /collection-access-keys/{keyId}, and returns the response.
async deleteCollectionAccessKey(keyId: string): Promise<ToolCallResponse> { if (!keyId) { throw new McpError(ErrorCode.InvalidParams, 'keyId is required'); } const response = await this.client.delete(`/collection-access-keys/${keyId}`); return this.createResponse(response.data); } - src/tools/api/auth/index.ts:37-38 (registration)The switch-case registration in handleToolCall that routes 'delete_collection_access_key' to the deleteCollectionAccessKey method, extracting keyId from args.
case 'delete_collection_access_key': return await this.deleteCollectionAccessKey(args.keyId); - The tool definition/schema for delete_collection_access_key. Defines the name, description, and input schema requiring a 'keyId' string parameter.
{ name: 'delete_collection_access_key', description: 'Delete a collection access key', inputSchema: { type: 'object', required: ['keyId'], properties: { keyId: { type: 'string', description: 'The collection access key ID to delete' } } }