The Calculated metrics APIs allow you to retrieve, update, or create calculated metrics programmatically through Adobe I/O. The APIs use the same data and methods that are used when working with calculated metrics in the UI. See Calculated metrics overview in the CJA documentation for more information.
You can call the
/calculatedmetrics/ endpoint to add, edit or delete calculated metrics.
Retrieve a list of calculated metrics#
In CJA, you can navigate to Components > Calculated metrics and see a list of calculated metrics that you created or others have shared. This call is helpful to identify the ID's of desired calculated metrics.
See GET List of calculated metrics in the API reference for supported query string parameters and example responses.
Retrieve a single calculated metric#
Once you have the desired ID, you can append the ID to the call to retrieve details on a single calculated metric:
Create a calculated metric#
Adobe does not yet support the creation of calculated metrics through the API. Support for this feature is planned for the near future.