dex_update_custom_field
Modify custom field definitions in Dex CRM by updating names or types to better organize contact data and improve workflow efficiency.
Instructions
Update a custom field definition by ID (e.g. rename it).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customFieldId | Yes | ||
| custom_field | Yes |
Implementation Reference
- src/tools/custom-fields.ts:55-76 (handler)The handler for dex_update_custom_field, which performs a PUT request to update a custom field by ID.
server.tool( "dex_update_custom_field", "Update a custom field definition by ID (e.g. rename it).", { customFieldId: z.string(), custom_field: z.object({ name: z.string().optional(), type: z.string().optional(), }), }, async (args) => { try { const result = await dex.put( `/v1/custom-fields/${args.customFieldId}`, { custom_field: args.custom_field } ); return toResult(result); } catch (error) { return toError(error); } } );