update_solution_article
Update Freshdesk solution articles by specifying the article ID and desired fields, ensuring accurate and current support content.
Instructions
Update a solution article in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article_fields | Yes | ||
| article_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:754-763 (handler)The main handler function decorated with @mcp.tool() that implements the update_solution_article tool by making a PUT request to the Freshdesk API to update the specified solution article.@mcp.tool() async def update_solution_article(article_id: int, article_fields: Dict[str, Any])-> Dict[str, Any]: """Update a solution article in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/articles/{article_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=article_fields) return response.json()