update_client
Modify client information in FreshBooks by specifying the client ID and desired changes to fields like contact details or billing preferences.
Instructions
Update a client. Pass any writable client fields.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | Yes | ||
| updates | Yes |
Implementation Reference
- src/mcp_freshbooks/server.py:252-258 (handler)The update_client tool definition and handler in the FreshBooks MCP server. It uses the accounting_update client helper to perform the update.
@mcp.tool() @_handle_errors async def update_client(client_id: int, updates: dict) -> str: """Update a client. Pass any writable client fields.""" result = await client.accounting_update("users/clients", client_id, "client", updates) c = result.get("client", result) return f"Client {c.get('id')} updated."