GET /contact_field_views/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_field_views/new
Build record with defaults.
Builds an unsaved Agent Script with default attributes, including token_keys pre-populated from the parent offer's contact fields, so you can preview it before calling create. Nothing is persisted.
Params
| Param name | Description |
|---|---|
|
offer_id Optional |
Assign the record to this Offer.
|
|
title Optional Blank value allowed |
Agent Script Display Name
|
|
fields_type Optional Blank value allowed |
A unique value that will be submitted with leads to select this field type and agent script.
|
|
script_html Optional Blank value allowed |
This script will be displayed to agents when they are answering calls from consumers. Contact fields in this script will be replaced with inputs, allowing the agent to enter responses inline in the script.
|
|
token_keys Optional Blank value allowed |
These fields will be visible when this field_type is selected.
|
|
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.
|
|
is_default Optional Blank value allowed |
Uses this Agent Script by default when a call doesn’t match any other Agent Script’s filters.
|
|
script_javascript Optional Blank value allowed |
Custom JavaScript run alongside this Agent Script while agents are on the call.
|
|
jornaya_campaign_id Optional Blank value allowed |
The Jornaya campaign id associated with this Agent Script.
|
|
use_when_tokens_match Optional Blank value allowed |
Only uses this Agent Script for calls matching the token filters below.
|
|
token_value_ids Optional Blank value allowed |
Only uses this Agent Script for calls matching these token values.
|
|
attribution_token_value_ids Optional Blank value allowed |
When this Agent Script is used on a call, the call will be tagged with these token values.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|