Some API endpoints have options that define how objects should be merged and how digital data should be updated.
Options for the Endpoint
curl -X POST \
https://<API_ENDPOINT>/v1/entities/create \
-H 'Content-Type: application/json' \
-H 'u21-key: <YOUR_API_KEY>' \
-d '{
"options": {
"resolve_geoip": true,
"upsert_on_conflict": true,
"merge_custom_data": true,
"list_merge_strategy": "union"
}
}'
curl -X POST \
https://<API_ENDPOINT>/v1/alerts/create \
-H 'Content-Type: application/json' \
-H 'u21-key: <YOUR_API_KEY>' \
-d '{
"options": {
"merge_custom_data": true,
"list_merge_strategy": "union"
}
}'
The following fields are options for the endpoint:
Field | Type | Description |
---|---|---|
| Boolean | Whether or not to resolve the geographic location from the provided IP address (in the digital data section). Defaults to |
| Boolean | Only relevant for updates/upserts, ignored otherwise. Default is |
| String | Only relevant for updates/upserts, ignored otherwise. Possible values are |
| Boolean | If you wish for the API to perform strict validation and not perform an upsert on conflict, specifying |
| Boolean | If |
| Boolean | If |
| Boolean | If |