fluentcrm_update_smart_link
Update a smart link in FluentCRM to modify URL targeting, apply or remove tags and lists, and configure auto-login settings for marketing automation workflows.
Instructions
Aktualizuje Smart Link (może nie być dostępne w obecnej wersji)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply_lists | No | ||
| apply_tags | No | ||
| auto_login | No | ||
| remove_lists | No | ||
| remove_tags | No | ||
| smartLinkId | Yes | ID Smart Link | |
| target_url | No | ||
| title | No |
Implementation Reference
- src/fluentcrm-mcp-server.ts:1011-1012 (handler)MCP tool handler that extracts smartLinkId and other args, then calls FluentCRMClient.updateSmartLink to perform the update via API.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:385-398 (helper)Core helper method in FluentCRMClient that performs HTTP PUT to /smart-links/{smartLinkId} endpoint, handles 404 with informative message noting lack of native API support.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:859-876 (registration)Tool registration in listTools response, defining name, description, and input schema for smart link update.{ 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'], }, },
- src/fluentcrm-mcp-server.ts:862-874 (schema)Input schema defining parameters for the tool, requiring smartLinkId and allowing updates to title, urls, tags, lists, etc.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'],