Create a custom measure

Create a custom measure with a user-defined formula. Custom measures let you define calculated fields using existing Analytics API schema fields as variables.

Use ${fieldName} syntax in the formula to reference schema fields. The unitType controls how the result is displayed: CURRENCY, PERCENTAGE, BYTES, BINARY_BYTES, CORES, KILOGRAMS, or STANDARD.

Body Params
uuid
required

Ternary tenant UUID

string
required
length ≥ 1

Name of the Analytics API data source in which this custom measure resides

string
required
length ≥ 1

Display name for the measure

string
required
length ≥ 1

Formula expression; use ${} to insert variables by Analytics API schema field names.

string

Description of the measure

string
enum
required

Indicates how quantities should be displayed

Allowed:
variableFilters
object | null
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json