update_solution_category_folder
Modify solution category folder details in Freshdesk to streamline support operations. Input folder ID and updated fields to adjust folder attributes efficiently.
Instructions
Update a solution category folder in Freshdesk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_fields | Yes | ||
| folder_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"folder_fields": {
"title": "Folder Fields",
"type": "object"
},
"folder_id": {
"title": "Folder Id",
"type": "integer"
}
},
"required": [
"folder_id",
"folder_fields"
],
"title": "update_solution_category_folderArguments",
"type": "object"
}
Implementation Reference
- src/freshdesk_mcp/server.py:716-727 (handler)The core handler function decorated with @mcp.tool(), which registers and implements the 'update_solution_category_folder' tool. It performs a PUT request to the Freshdesk API to update the specified solution category folder, with basic validation for the 'name' field.@mcp.tool() async def update_solution_category_folder(folder_id: int, folder_fields: Dict[str, Any])-> Dict[str, Any]: """Update a solution category folder in Freshdesk.""" if not folder_fields.get("name"): return {"error": "Name is required"} url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/folders/{folder_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=folder_fields) return response.json()