update_canned_response
Modify and update canned responses in Freshdesk by specifying the response ID and fields. Streamline support operations by ensuring pre-written responses are accurate and up-to-date.
Instructions
Update a canned response in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canned_response_fields | Yes | ||
| canned_response_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:578-587 (handler)The core handler function for the 'update_canned_response' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool with the name matching the function name. The function performs a PUT request to the Freshdesk API to update the canned response.@mcp.tool() async def update_canned_response(canned_response_id: int, canned_response_fields: Dict[str, Any])-> Dict[str, Any]: """Update a canned response in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/canned_responses/{canned_response_id}" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } async with httpx.AsyncClient() as client: response = await client.put(url, headers=headers, json=canned_response_fields) return response.json()