put
https://api.duodeal.app/api/custom-fields/
Updates an existing custom field by its ID.
Note: Changing the type or scope of a field may affect existing data. Use with caution.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Custom field unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Internal field name |
label | string | No | Display label shown in the UI |
type | string | No | Field type |
scope | string | No | Entity scope |
required | boolean | No | Whether the field is mandatory |
formula | string | No | Formula expression |
options | object | No | Options for Select/MultiSelect |
weight | integer | No | Sort order/priority |
size | string | No | CSS width class |
editable | boolean | No | Whether users can edit |
public | boolean | No | Whether visible publicly |
activate | boolean | No | Whether the field is active |
enableAi | boolean | No | Enable AI features |
hubspotMap | string | No | HubSpot property mapping |
isMappedToHubspot | boolean | No | Enable HubSpot sync |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Custom field unique identifier |
name | string | Internal field name |
label | string | Display label |
type | string | Field type |
scope | string | Entity scope |
required | boolean | Whether mandatory |
activate | boolean | Whether active |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Custom field successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Custom field not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
