update_canned_response_folder
Modify the name of a canned response folder in Freshdesk by specifying the folder ID and updated name. Streamline support workflows and maintain organized response libraries efficiently.
Instructions
Update a canned response folder in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | ||
| name | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:601-614 (handler)The core handler function for the 'update_canned_response_folder' tool. It is decorated with @mcp.tool() for registration and performs a PUT request to the Freshdesk API endpoint /canned_response_folders/{folder_id} to update the folder's name.@mcp.tool() async def update_canned_response_folder(folder_id: int, name: str)-> Dict[str, Any]: """Update a canned response folder in Freshdesk.""" print(folder_id, name) url = f"https://{FRESHDESK_DOMAIN}/api/v2/canned_response_folders/{folder_id}" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } data = { "name": name } async with httpx.AsyncClient() as client: response = await client.put(url, headers=headers, json=data) return response.json()