fluentcrm_update_smart_link
Modify a FluentCRM smart link's settings, including URL, tags, lists, and auto-login options, to update marketing automation behavior.
Instructions
Aktualizuje Smart Link (może nie być dostępne w obecnej wersji)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| smartLinkId | Yes | ID Smart Link | |
| title | No | ||
| target_url | No | ||
| apply_tags | No | ||
| apply_lists | No | ||
| remove_tags | No | ||
| remove_lists | No | ||
| auto_login | No |
Implementation Reference
- src/fluentcrm-mcp-server.ts:385-398 (handler)Core implementation of the updateSmartLink method in FluentCRMClient class, which sends a PUT request to the FluentCRM API to update a Smart Link. Includes error handling for unavailable endpoints with a helpful fallback response.async updateSmartLink(smartLinkId: number, data: any) { try { const response = await this.apiClient.put(`/smart-links/${smartLinkId}`, data); return response.data; } catch (error: any) { if (error.response?.status === 404) { return { success: false, message: "Smart Links API endpoint not available yet in FluentCRM", suggestion: "Update Smart Link manually in FluentCRM admin panel" }; } throw error; }
- src/fluentcrm-mcp-server.ts:1011-1012 (handler)MCP server tool handler (switch case) that dispatches fluentcrm_update_smart_link tool calls to the FluentCRMClient.updateSmartLink method, formatting the response as MCP content.case 'fluentcrm_update_smart_link': return { content: [{ type: 'text', text: JSON.stringify(await client.updateSmartLink((args as any)?.smartLinkId, args as any), null, 2) }] };
- src/fluentcrm-mcp-server.ts:859-875 (registration)Tool registration in the MCP server's listTools response, including the tool name, description, and input schema definition.{ name: 'fluentcrm_update_smart_link', description: 'Aktualizuje Smart Link (może nie być dostępne w obecnej wersji)', inputSchema: { type: 'object', properties: { smartLinkId: { type: 'number', description: 'ID Smart Link' }, title: { type: 'string' }, target_url: { type: 'string' }, apply_tags: { type: 'array', items: { type: 'number' } }, apply_lists: { type: 'array', items: { type: 'number' } }, remove_tags: { type: 'array', items: { type: 'number' } }, remove_lists: { type: 'array', items: { type: 'number' } }, auto_login: { type: 'boolean' }, }, required: ['smartLinkId'], },