List tables
https://api.lytics.io/v2/schemaList tables with schema.
Query Parameters
account_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": [
{
"draft_id": "string",
"draft_version": 0,
"live_id": "string",
"table": "string"
}
],
"request_id": "string",
"status": 0
}Schema Bulk Upsert
https://api.lytics.io/v2/schema/bulkSchema Bulk Upsert
https://api.lytics.io/v2/schema/bulkEvaluate Expression
https://api.lytics.io/v2/schema/expression/evaluateEvaluate an adhoc mapping expression against a single event
Query Parameters
account_idoptionalstringHeaders
AuthorizationoptionalstringBody Parameters
dataoptionalobjectexpressionoptionalstring{
"data": {},
"expression": "string"
}Update schema with LQL query
https://api.lytics.io/v2/schema/lqlGet schema
https://api.lytics.io/v2/schema/{table}Get schema comparison
https://api.lytics.io/v2/schema/{table}/compareEvaluate Schema
https://api.lytics.io/v2/schema/{table}/evaluateEvaluate a schema against test events. Defaults to the draft; pass version_id for a specific version, or patch_id to evaluate a patch merged onto the live schema.
URL Parameters
tablerequiredstringQuery Parameters
account_idoptionalstringversion_idoptionalstringpatch_idoptionalstringHeaders
AuthorizationoptionalstringGet fields
https://api.lytics.io/v2/schema/{table}/fieldPost field
https://api.lytics.io/v2/schema/{table}/fieldGet a field
https://api.lytics.io/v2/schema/{table}/field/{field_id}Delete field
https://api.lytics.io/v2/schema/{table}/field/{field_id}Soft-delete a schema field from this draft, or hard-delete it if new.
URL Parameters
tablerequiredstringfield_idrequiredstringQuery Parameters
account_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": {},
"request_id": "string",
"status": 0
}List all identity config
https://api.lytics.io/v2/schema/{table}/idconfigPost ID config
https://api.lytics.io/v2/schema/{table}/idconfigGet identity field config
https://api.lytics.io/v2/schema/{table}/idconfig/{field_id}Delete ID Settings
https://api.lytics.io/v2/schema/{table}/idconfig/{field_id}Soft-delete graph compaction and many-to-one merging config from a single schema field, or hard-delete them if new.
URL Parameters
tablerequiredstringfield_idrequiredstringQuery Parameters
account_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": {},
"request_id": "string",
"status": 0
}Get mappings
https://api.lytics.io/v2/schema/{table}/mappingRetrive current mappings
URL Parameters
tablerequiredstringQuery Parameters
account_idoptionalstringversion_idoptionalstringHeaders
AuthorizationoptionalstringPost mapping
https://api.lytics.io/v2/schema/{table}/mappingGet a mapping
https://api.lytics.io/v2/schema/{table}/mapping/{mapping_id}Retrieve a mapping by ID
URL Parameters
tablerequiredstringmapping_idrequiredstringQuery Parameters
account_idoptionalstringversion_idoptionalstringHeaders
AuthorizationoptionalstringDelete mapping
https://api.lytics.io/v2/schema/{table}/mapping/{mapping_id}Soft-delete a data mapping from this draft, or hard-delete it if new.
URL Parameters
tablerequiredstringmapping_idrequiredstringQuery Parameters
account_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": {},
"request_id": "string",
"status": 0
}Publish schema
https://api.lytics.io/v2/schema/{table}/publishGet rank
https://api.lytics.io/v2/schema/{table}/rankRetrieve current identifier rank list.
URL Parameters
tablerequiredstringQuery Parameters
account_idoptionalstringversion_idoptionalstringHeaders
AuthorizationoptionalstringPost ID rank list
https://api.lytics.io/v2/schema/{table}/rankGet retention settings
https://api.lytics.io/v2/schema/{table}/retentionsettingsRetrieve current retention settings.
URL Parameters
tablerequiredstringQuery Parameters
account_idoptionalstringversion_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": {
"capacity": 0,
"created": "string",
"edit_status": "string",
"keep_days": 0,
"modified": "string"
},
"request_id": "string",
"status": 0
}Post retention settings
https://api.lytics.io/v2/schema/{table}/retentionsettingsRevert schema changes
https://api.lytics.io/v2/schema/{table}/revertValidate schema
https://api.lytics.io/v2/schema/{table}/validateRun validation for schema
URL Parameters
tablerequiredstringQuery Parameters
version_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": [
{
"has_unpublished_changes": true,
"id": "string",
"parent_id": "string",
"table": "string",
"validation_errors": [
"string"
],
"version_number": 0
}
],
"request_id": "string",
"status": 0
}Get schema history
https://api.lytics.io/v2/schema/{table}/version