View source: R/generated_client.R
| enhancements_post_civis_data_match | R Documentation | 
Create a Civis Data Match Enhancement
enhancements_post_civis_data_match(
  name,
  input_field_mapping,
  input_table,
  match_target_id,
  output_table,
  schedule = NULL,
  notifications = NULL,
  max_matches = NULL,
  threshold = NULL,
  archived = NULL,
  parent_id = NULL
)
| name | string required. The name of the enhancement job. | 
| input_field_mapping | list required. The field (i.e., column) mapping for the input table. See https://api.civisanalytics.com/enhancements/field-mapping for a list of valid field types and descriptions. Each field type should be mapped to a string specifying a column name in the input table. For field types that support multiple values (e.g., the "phone" field), a list of column names can be provided (e.g., {"phone": ["home_phone", "mobile_phone"], ...}). | 
| input_table | list required. A list containing the following elements: 
 | 
| match_target_id | integer required. The ID of the Civis Data match target. See /match_targets for IDs. | 
| output_table | list required. A list containing the following elements: 
 | 
| schedule | list optional. A list containing the following elements: 
 | 
| notifications | list optional. A list containing the following elements: 
 | 
| max_matches | integer optional. The maximum number of matches per record in the input table to return. Must be between 0 and 10. 0 returns all matches. | 
| threshold | number optional. The score threshold (between 0 and 1). Matches below this threshold will not be returned. The default value is 0.5. | 
| archived | boolean optional. Whether the Civis Data Match Job has been archived. | 
| parent_id | integer optional. Parent ID that triggers this enhancement. | 
A list containing the following elements:
| id | integer, The ID for the enhancement. | 
| name | string, The name of the enhancement job. | 
| type | string, The type of the enhancement (e.g CASS-NCOA) | 
| createdAt | string, The time this enhancement was created. | 
| updatedAt | string, The time the enhancement was last updated. | 
| author | list, A list containing the following elements: 
 | 
| state | string, The status of the enhancement's last run | 
| schedule | list, A list containing the following elements: 
 | 
| notifications | list, A list containing the following elements: 
 | 
| runningAs | list, A list containing the following elements: 
 | 
| myPermissionLevel | string, Your permission level on the object. One of "read", "write", or "manage". | 
| inputFieldMapping | list, The field (i.e., column) mapping for the input table. See https://api.civisanalytics.com/enhancements/field-mapping for a list of valid field types and descriptions. Each field type should be mapped to a string specifying a column name in the input table. For field types that support multiple values (e.g., the "phone" field), a list of column names can be provided (e.g., {"phone": ["home_phone", "mobile_phone"], ...}). | 
| inputTable | list, A list containing the following elements: 
 | 
| matchTargetId | integer, The ID of the Civis Data match target. See /match_targets for IDs. | 
| outputTable | list, A list containing the following elements: 
 | 
| maxMatches | integer, The maximum number of matches per record in the input table to return. Must be between 0 and 10. 0 returns all matches. | 
| threshold | number, The score threshold (between 0 and 1). Matches below this threshold will not be returned. The default value is 0.5. | 
| archived | boolean, Whether the Civis Data Match Job has been archived. | 
| lastRun | list, A list containing the following elements: 
 | 
| parentId | integer, Parent ID that triggers this enhancement. | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.