| Schema — OPTIONAL |
|---|
createdAt date-time — OPTIONALCreation timestamp (ISO 8601, UTC). | updatedAt date-time — OPTIONALLast update timestamp (ISO 8601, UTC). | createdBy string — OPTIONAL | updatedBy string — OPTIONALEmail of the last updater. | decisions (circular)[] — OPTIONAL | customer object — OPTIONALid stringYour unique customer ID for OEM partners (requires Partner Portal). | name string |
| businessObjects (circular)[] — OPTIONAL | id string | name string | description string — OPTIONAL | definition objectversion string | pipeline objectsources object[]id stringPossible values: length ≤ 128, Value must match regular expression IDENTIFIER_PATTERN | type stringPossible values: [businessObject, reference] | businessObjectId string — OPTIONAL | referenceId string — OPTIONAL | timeRange object — OPTIONALfield string | relative object — OPTIONALdirection stringPossible values: [past, future] | value numberPossible values: 1 ≤ value | unit stringPossible values: [seconds, minutes, hours, days, weeks, months] |
| absolute object — OPTIONAL |
| filters object[] — OPTIONALfield string | operator stringPossible values: [=, !=, >, <, >=, <=, in, notIn, like, between, notBetween, isNull, isNotNull, contains, notContains, startsWith, endsWith, isEmpty, isNotEmpty, minLength, maxLength] | value object — OPTIONAL |
| fields object[]id string — OPTIONALPubNub-generated unique ID for the field. Required when creating metrics and decisions. Used as measureId, dimensionIds, or inputFields[].sourceId. | name stringPossible values: 1 ≤ length ≤ 50 Field name (1-50 characters). | source string — OPTIONALPossible values: [JSONPATH, DERIVED] Field source type: JSONPATH or DERIVED. | jsonPath string — OPTIONALPossible values: length ≤ 200 JSON path expression for extracting data (max 200 chars). Required when source is JSONPATH and isActive is true. | jsonFieldType string — OPTIONALPossible values: [TEXT, TEXT_LONG, NUMERIC, TIMESTAMP, DURATION_SECONDS] Field data type: TEXT, TEXT_LONG (character limit is 1000, limited to 5 per Business Object), NUMERIC, or TIMESTAMP. Required when source is JSONPATH. | isKeyset boolean — OPTIONALBoolean flag indicating if this field is part of the keyset. Informational only. | derivation object — OPTIONALDerivation configuration. Required when source is DERIVED. operation stringPossible values: [TIME_DIFF] Derivation operation type. Currently only TIME_DIFF is supported. | params objectParameters for the derivation calculation. startSource stringPossible values: [DATA_FIELD, PUBLISH_TIMETOKEN] Start source for time difference calculation: DATA_FIELD or PUBLISH_TIMETOKEN. DATA_FIELD accepts only TIMESTAMP data type. | startFieldIndex number — OPTIONALIndex or position of the start timestamp data field in your array. Not required if startSource is PUBLISH_TIMETOKEN. | endSource stringPossible values: [DATA_FIELD, PUBLISH_TIMETOKEN] End source for time difference calculation: DATA_FIELD or PUBLISH_TIMETOKEN. | endFieldIndex number — OPTIONALIndex or position of the end timestamp data field in your array. Not required if endSource is PUBLISH_TIMETOKEN. |
|
|
|
| transforms object[] — OPTIONALid stringPossible values: length ≤ 128, Value must match regular expression IDENTIFIER_PATTERN | type stringPossible values: [aggregate, window, join, dedupe, calculate, unnest, filter_join] | input stringPossible values: length ≤ 128, Value must match regular expression IDENTIFIER_PATTERN | aggregate object — OPTIONALgroupBy string[] | aggregations object[]function stringPossible values: [sum, count, avg, min, max, countDistinct, stddev, percentile, groupArray, groupUniqArray, any] | field string | alias string | parameter number — OPTIONAL |
| collectFields object[] — OPTIONALfield string | function stringPossible values: [groupArray, groupUniqArray] | alias string | limit number — OPTIONALPossible values: 1 ≤ value | orderBy object — OPTIONALfield string | direction string — OPTIONALPossible values: [ASC, DESC] |
|
|
| window object — OPTIONALfunctions object[]function stringPossible values: [rowNumber, rank, denseRank, percentRank, lag, lead, firstValue, lastValue, sumOver, avgOver] | partitionBy string[] | orderBy object[]field string | direction string — OPTIONALPossible values: [ASC, DESC] |
| alias string | offset number — OPTIONAL |
|
| join object — OPTIONALwith stringPossible values: length ≤ 128, Value must match regular expression IDENTIFIER_PATTERN | type stringPossible values: [inner, left, right, full] | on object[]left string | operator stringPossible values: [=, !=, >, <, >=, <=] | right string |
|
| dedupe object — OPTIONALpartitionBy string[] | orderBy object[]field string | direction string — OPTIONALPossible values: [ASC, DESC] |
| keep stringPossible values: [first, last] |
| calculate object — OPTIONALexpressions object[]expression object | alias stringPossible values: length ≤ 128, Value must match regular expression IDENTIFIER_PATTERN | type stringPossible values: [dimension, measure] |
|
| unnest object — OPTIONALarrayField string | alias string — OPTIONAL |
| filter_join object — OPTIONALcriteriaAggregate objectgroupBy string[] | aggregations object[]function stringPossible values: [sum, count, avg, min, max, countDistinct, stddev, percentile, groupArray, groupUniqArray, any] | field string | alias string | parameter number — OPTIONAL |
| collectFields object[] — OPTIONALfield string | function stringPossible values: [groupArray, groupUniqArray] | alias string | limit number — OPTIONALPossible values: 1 ≤ value | orderBy object — OPTIONALfield string | direction string — OPTIONALPossible values: [ASC, DESC] |
|
|
| criteriaFilters object[] — OPTIONALfield string | operator stringPossible values: [=, !=, >, <, >=, <=, in, notIn, like, between, notBetween, isNull, isNotNull, contains, notContains, startsWith, endsWith, isEmpty, isNotEmpty, minLength, maxLength] | value object — OPTIONAL |
| joinFields string[] |
| filters object[] — OPTIONALfield string | operator stringPossible values: [=, !=, >, <, >=, <=, in, notIn, like, between, notBetween, isNull, isNotNull, contains, notContains, startsWith, endsWith, isEmpty, isNotEmpty, minLength, maxLength] | value object — OPTIONAL |
|
| output objectfrom stringPossible values: length ≤ 128, Value must match regular expression IDENTIFIER_PATTERN | select object[]field string | alias string — OPTIONAL | id string — OPTIONAL |
| orderBy object[] — OPTIONALfield string | direction string — OPTIONALPossible values: [ASC, DESC] |
| limit number — OPTIONALPossible values: 1 ≤ value ≤ 500 | offset number — OPTIONAL |
|
| meta object — OPTIONAL |
| template string — OPTIONAL | accountId string |
|