Update an existing calculated metric
Changed onThe following fields can be modified through this endpoint: <br><b>name, description, definition, owner, dataview ID</b>
An example "defintion" for use in testing API below ("Visits per visitor"):<br> "definition": { "formula": { "func": "divide", "col1": { "func": "metric", "name": "metrics/visits", "description": "Visits" }, "col2": { "func": "metric", "name": "metrics/visitors", "description": "Unique Visitors" } }, "func": "calc-metric", "version": [ 1, 0, 0 ] }<br><br>The response shows the newly modified calculated metric object after the update request completes.<br><br><b><span style="text-decoration: underline;">CalculatedMetricResponse</span></b><br>A calculated metric response includes these items:* ID, name, description, dataview ID, owner*
Other attributes can be optionally requested through the 'expansion' field as described in the GET endpoints. See GET "/calculatedmetrics" or GET "/calculatedmetrics/{id}" for more information.
Request
- Base URL: https://cja.adobe.io
- URL: https://cja.adobe.io/calculatedmetrics/{id}
- Auth: none declared. Required headers: Authorization, x-api-key, x-gw-ims-org-id
Path parameters
Calculated metric ID to be updated
Query parameters
Comma-delimited list of additional calculated metric metadata fields to include on response.
Locale
Use cached results
Headers
The access token copied from your CJA API client integration, prefixed with "Bearer ". For more information on how to obtain this value, see Getting started with the CJA API.
The API key copied from your CJA API client integration. For more information on how to obtain this value, see Getting started with the CJA API.
The Organization ID copied from your CJA API client integration. For more information on how to obtain this value, see Getting started with the CJA API.
Request body
Response
Successful operation
Changes
- breaking
removed the enum value
reportSuiteNamefrom the propertyitems/of thequeryrequest parameterexpansion - warning
removed the request property
- warning
removed the optional property
from the response with the status
- breaking
- breaking
added the new required
headerrequest parameterAuthorization - breaking
added the new required
headerrequest parameterx-api-key - breaking
added the new required
headerrequest parameterx-gw-ims-org-id
- breaking