v1

latestOpenAPI 3.1.0Apache 2.02026-07-2685126228.9 KB
Calculated Fields

Create a Calculated Field

Create a Calculated Field (also called a Derived Column). Calculated Fields allow you to run queries based on the value of an expression that is calculated from the fields in an event.

post/1/derived_columns/{datasetSlug}

Request body

idstring required

Unique identifier (ID), returned in response bodies.

aliasstring required

The human-readable name of the Calculated Field (also called Derived Column), as it will be referenced when building queries.

expressionstring required

The expression to evaluate to construct this Calculated Field's value. (Calculated Field is also called Derived Column.) Refer to the Calculated Field Reference.

descriptionstring

A human-readable description for the Calculated Field that displays in the UI.

created_atstring required

ISO8601 formatted time when the field was created.

updated_atstring required

ISO8601 formatted time when the field was updated.

Response

Success

idstring required

Unique identifier (ID), returned in response bodies.

aliasstring required

The human-readable name of the Calculated Field (also called Derived Column), as it will be referenced when building queries.

expressionstring required

The expression to evaluate to construct this Calculated Field's value. (Calculated Field is also called Derived Column.) Refer to the Calculated Field Reference.

descriptionstring

A human-readable description for the Calculated Field that displays in the UI.

created_atstring required

ISO8601 formatted time when the field was created.

updated_atstring required

ISO8601 formatted time when the field was updated.