Retrieves all user-defined field (custom field) definitions and their current values for a specific account
Use this endpoint to get the complete set of custom fields configured for accounts, along with their current values
for the specified account. Returns both populated and empty UDF fields. Use this before editing UDFs to see what
fields are available and their current state. To update values, use PUT /account/{accountId}/udf.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| accountId | The unique numeric identifier of the account whose custom field values are being retrieved | integer (int32) | Required |
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
Array of:
UDFFieldChild
| Property | Description | Type | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| dataType | DataTypeResponse | |||||||||||||
|
DataTypeResponse properties
|
||||||||||||||
| description | A description of what this UDF field is used for Required (defined) | string | ||||||||||||
| displayOrder | The sort order for displaying this field relative to other UDF fields Required (defined) | integer (int32) | ||||||||||||
| important | When true, this UDF field is flagged as important and may be highlighted in the UI Required (defined) | boolean | ||||||||||||
| name | The display name of the UDF field Required (defined) | string | ||||||||||||
| udfId | The unique identifier for this UDF field definition Required (defined) | integer (int32) | ||||||||||||
| udfSelectValues | For select-list type UDFs, the available options that can be chosen as values Required (defined) | UDFSelectValueEntityResponse[] | ||||||||||||
|
UDFSelectValueEntityResponse properties
|
||||||||||||||
| value | The current value of this UDF field for the entity. Null if no value has been set. Format depends on DataType. Required (defined) | string | ||||||||||||
Example Response
[
{ "dataType": { "dataTypeCode": "string", "dataTypeId": 1, "dataTypeInfo": "string"
}, "description": "string", "displayOrder": 1, "important": false, "name": "string", "udfId": 1, "udfSelectValues": [
{ "displayOrder": 1, "udfSelectValueId": 1, "value": "string"
}
], "value": "string"
}
]
404
Not Found
The requested resource was not found. Verify the ID or path is correct.