PUT /contact_fields/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_fields/:id
Update record by id.
Updates a Contact Field's validation rules, value formatting, or display settings.
Params
| Param name | Description |
|---|---|
|
offer_id Optional |
Assign the record to this Offer.
|
|
key Optional |
The internal token name where values are stored.
|
|
required Optional Blank value allowed |
Is this field required?
|
|
name Optional Blank value allowed |
The friendly human name displayed to users.
|
|
hint Optional Blank value allowed |
Display a helpful hint to users explaining the purpose of this field.
|
|
value_type Optional Blank value allowed |
Field Type
|
|
decimal_places Optional Blank value allowed |
Decimal values/expressions will be rounded to this many decimal places.
|
|
value_formatter Optional Blank value allowed |
Expression Formatter
|
|
value_expression Optional Blank value allowed |
Expression
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
required_on_create Optional Blank value allowed |
Requires this field to have a value before a Lead can be created.
|
|
required_on_ping Optional Blank value allowed |
Requires this field to have a value before this Offer’s buyers can be pinged.
|
|
html_id Optional Blank value allowed |
A custom HTML id for this field’s input, used to target it with your own CSS or JavaScript.
|
|
background_color Optional Blank value allowed |
The background color used to display this field’s token, as a hex code.
|
|
text_color Optional Blank value allowed |
The text color used to display this field’s token, as a hex code.
|
|
show_in_docs Optional Blank value allowed |
Includes this field in the integration guide and posting instructions shown to your traffic sources.
|
|
show_in_tables Optional Blank value allowed |
Shows this field as a column in tables throughout the app.
|
|
show_in_reports Optional Blank value allowed |
Shows this field as an option when building reports.
|
|
show_on_manual_dialer Optional Blank value allowed |
Shows this field on the manual dialer screen.
|
|
check_buyer_filters_before_calling Optional Blank value allowed |
Considers this field’s value when applying buyer filters before calling.
|
|
check_buyer_filters_allow_blank Optional Blank value allowed |
Allows a blank value to pass buyer filters instead of blocking the call.
|
|
value_decimal_min Optional Blank value allowed |
The minimum acceptable value, used when the field type is Decimal or Integer.
|
|
value_decimal_max Optional Blank value allowed |
The maximum acceptable value, used when the field type is Decimal or Integer.
|
|
value_date_min Optional Blank value allowed |
The earliest acceptable date, used when the field type is Time.
|
|
value_date_max Optional Blank value allowed |
The latest acceptable date, used when the field type is Time.
|
|
date_picker_enabled Optional Blank value allowed |
Shows a date picker for entering this field’s value, used when the field type is Time.
|
|
date_picker_in_future Optional Blank value allowed |
Restricts the date picker to future dates only, used when the field type is Time.
|
|
boolean_true_text Optional Blank value allowed |
The label displayed for a true value, used when the field type is Boolean.
|
|
boolean_false_text Optional Blank value allowed |
The label displayed for a false value, used when the field type is Boolean.
|
|
include_blank Optional Blank value allowed |
Includes a blank option in the list of acceptable values, used when the field type is Boolean or String.
|
|
contact_field_values_type Optional Blank value allowed |
Where the list of acceptable values for this field comes from.
|
|
check_pattern_validation Optional Blank value allowed |
Validates this field’s value against the pattern selected in value_pattern_validation.
|
|
value_pattern_validation Optional Blank value allowed |
The pattern this field’s value must match, used when check_pattern_validation is enabled.
|