update_solution_category
Modify solution categories in Freshdesk by updating category fields such as name, description, or visibility settings to organize and improve support content.
Instructions
Update a solution category in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_fields | Yes | ||
| category_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:679-692 (handler)The handler function implementing the 'update_solution_category' MCP tool. It updates a Freshdesk solution category using the PUT API endpoint.@mcp.tool() async def update_solution_category(category_id: int, category_fields: Dict[str, Any])-> Dict[str, Any]: """Update a solution category in Freshdesk.""" if not category_fields.get("name"): return {"error": "Name is required"} url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/categories/{category_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=category_fields) return response.json()