Add or replace a success metric
Configure what counts as success for an initiative: a customer-data event, a record on a custom object, or a value extracted from the conversation, measured within 48 hours of the first message. Omit rootId to add a metric; pass an existing metric’s rootId to replace it with a new version. This is not a patch — send the metric’s complete configuration, because omitted fields are cleared. Successes are recalculated on every read, so replacing a metric also changes what the dashboard reports for past conversations. Use success_metrics_catalog to find the event, object type or variable to point at.
Authorizations
Organization API key, sent as Authorization: Bearer boom_org_....
Path Parameters
The initiative id.
1Body
The metric label, shown in the dashboard picker.
1 - 255Omit to add a new metric. Pass an existing metric's rootId to replace it with a new version.
What counts as success: a customer-data event, a record on a custom object, or a value extracted from the conversation. Default CDP_EVENT.
CDP_EVENT, CUSTOM_OBJECT, EXTRACTED_VARIABLE How matched values roll up. COUNT needs no value field; SUM, AVERAGE and MAX each require one. Default COUNT.
COUNT, SUM, AVERAGE, MAX Required when signalType is CDP_EVENT: the event name that marks success.
The numeric event property to aggregate. Required when signalType is CDP_EVENT and aggregation is not COUNT.
Whether the aggregated value lives on the event itself or on a custom object the event points at. Default EVENT_PROPERTY.
EVENT_PROPERTY, RELATED_OBJECT Required when valueSource is RELATED_OBJECT: the custom-object type to read the value from.
Required when valueSource is RELATED_OBJECT: the event property holding the object's external id.
Required when signalType is EXTRACTED_VARIABLE: the extracted variable that defines success.
Required when signalType is CUSTOM_OBJECT: the custom-object type a qualifying record belongs to.
Optional equality filter on the object's attributes, e.g. {"status":"SUCCEEDED"}.
Required when signalType is CUSTOM_OBJECT: the attribute holding the business timestamp to measure against.
The numeric object attribute to aggregate. Required when signalType is CUSTOM_OBJECT and aggregation is not COUNT.
How the object is linked to a person. Omit or send an empty array when it is linked directly.
Response
Success
Stable id for this metric across versions. Pass it back to edit the metric.
Version number; every edit creates a new one.
-9007199254740991 <= x <= 9007199254740991ACTIVE, SUPERSEDED CDP_EVENT, CUSTOM_OBJECT, EXTRACTED_VARIABLE COUNT, SUM, AVERAGE, MAX EVENT_PROPERTY, RELATED_OBJECT Hours after the first outbound message in which a signal still counts. Fixed at 48.
-9007199254740991 <= x <= 9007199254740991ISO 8601 timestamp of this version.