Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Lytics API
  4. Schema

Schema

markdownView as Markdown

Manage how data sources populate profile fields.

List tables

GEThttps://api.lytics.io/v2/schema

List tables with schema.

Sample Response
Status|200 OK
12345678910111213
{
  "_meta": {},
  "data": [
    {
      "draft_id": "string",
      "draft_version": 0,
      "live_id": "string",
      "table": "string"
    }
  ],
  "request_id": "string",
  "status": 0
}

Schema Bulk Upsert

POSThttps://api.lytics.io/v2/schema/bulk

Schema bulk upsert creates/updates multiple schema objects. It does not delete any existing schema objects.

Sample Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
{
  "created": "2019-08-24T14:15:22Z",
  "created_by": "string",
  "description": "string",
  "draft_status": "string",
  "fields": [
    {
      "assertions": {
        "email": true,
        "filter": [
          "string"
        ],
        "format": "alpha",
        "length": {
          "max": 0,
          "min": 0
        }
      },
      "capacity": 0,
      "created": "2019-08-24T14:15:22Z",
      "disable_indexing": true,
      "edit_status": "string",
      "id": "string",
      "id_config": {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "compact_after_days": 0,
        "compact_over": 0,
        "created": "string",
        "edit_status": "string",
        "field": "string",
        "many_to": [
          "string"
        ],
        "modified": "string"
      },
      "is_identifier": true,
      "is_pii": true,
      "keep_days": 0,
      "keep_duration": "string",
      "longdesc": "string",
      "managed_by": "string",
      "mergeop": "string",
      "modified": "string",
      "shortdesc": "string",
      "tags": [
        "string"
      ],
      "type": "string"
    }
  ],
  "id": "string",
  "is_patch": true,
  "mappings": [
    {
      "created": "2019-08-24T14:15:22Z",
      "edit_status": "string",
      "expr": "string",
      "field": "string",
      "guard_expr": "string",
      "id": "string",
      "managed_by": "string",
      "modified": "2019-08-24T14:15:22Z",
      "stream": "string"
    }
  ],
  "modified": "2019-08-24T14:15:22Z",
  "parent_id": "string",
  "published_by": "string",
  "ranks": {
    "id_config": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "compact_after_days": 0,
        "compact_over": 0,
        "created": "string",
        "edit_status": "string",
        "field": "string",
        "many_to": [
          "string"
        ],
        "modified": "string"
      }
    ],
    "id_ranks": {
      "changes": {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      },
      "created": "string",
      "edit_status": "string",
      "fields": [
        "string"
      ],
      "modified": "string"
    }
  },
  "retention_settings": {
    "capacity": 0,
    "created": "string",
    "edit_status": "string",
    "keep_days": 0,
    "modified": "string"
  },
  "status": "live",
  "table": "string",
  "tag": "string",
  "version_number": 0
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
{
  "_meta": {},
  "data": {
    "diff": [
      {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      }
    ],
    "from": {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    },
    "to": {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    }
  },
  "request_id": "string",
  "status": 0
}

Schema Bulk Upsert

PUThttps://api.lytics.io/v2/schema/bulk

Schema bulk upsert creates/updates multiple schema objects. It does not delete any existing schema objects.

Sample Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
{
  "created": "2019-08-24T14:15:22Z",
  "created_by": "string",
  "description": "string",
  "draft_status": "string",
  "fields": [
    {
      "assertions": {
        "email": true,
        "filter": [
          "string"
        ],
        "format": "alpha",
        "length": {
          "max": 0,
          "min": 0
        }
      },
      "capacity": 0,
      "created": "2019-08-24T14:15:22Z",
      "disable_indexing": true,
      "edit_status": "string",
      "id": "string",
      "id_config": {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "compact_after_days": 0,
        "compact_over": 0,
        "created": "string",
        "edit_status": "string",
        "field": "string",
        "many_to": [
          "string"
        ],
        "modified": "string"
      },
      "is_identifier": true,
      "is_pii": true,
      "keep_days": 0,
      "keep_duration": "string",
      "longdesc": "string",
      "managed_by": "string",
      "mergeop": "string",
      "modified": "string",
      "shortdesc": "string",
      "tags": [
        "string"
      ],
      "type": "string"
    }
  ],
  "id": "string",
  "is_patch": true,
  "mappings": [
    {
      "created": "2019-08-24T14:15:22Z",
      "edit_status": "string",
      "expr": "string",
      "field": "string",
      "guard_expr": "string",
      "id": "string",
      "managed_by": "string",
      "modified": "2019-08-24T14:15:22Z",
      "stream": "string"
    }
  ],
  "modified": "2019-08-24T14:15:22Z",
  "parent_id": "string",
  "published_by": "string",
  "ranks": {
    "id_config": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "compact_after_days": 0,
        "compact_over": 0,
        "created": "string",
        "edit_status": "string",
        "field": "string",
        "many_to": [
          "string"
        ],
        "modified": "string"
      }
    ],
    "id_ranks": {
      "changes": {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      },
      "created": "string",
      "edit_status": "string",
      "fields": [
        "string"
      ],
      "modified": "string"
    }
  },
  "retention_settings": {
    "capacity": 0,
    "created": "string",
    "edit_status": "string",
    "keep_days": 0,
    "modified": "string"
  },
  "status": "live",
  "table": "string",
  "tag": "string",
  "version_number": 0
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
{
  "_meta": {},
  "data": {
    "diff": [
      {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      }
    ],
    "from": {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    },
    "to": {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    }
  },
  "request_id": "string",
  "status": 0
}

Evaluate Expression

POSThttps://api.lytics.io/v2/schema/expression/evaluate

Evaluate an adhoc mapping expression against a single event

Sample Request
1234
{
  "data": {},
  "expression": "string"
}
Sample Response
Status|200 OK
123456
{
  "_meta": {},
  "data": "string",
  "request_id": "string",
  "status": 0
}

Update schema with LQL query

POSThttps://api.lytics.io/v2/schema/lql

Upload LQL query to update schema with corresponding fields and mappings.

Sample Request
1
"string"
Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
{
  "_meta": {},
  "data": {
    "fields": [
      {
        "assertions": {
          "email": true,
          "filter": [
            "string"
          ],
          "format": "alpha",
          "length": {
            "max": 0,
            "min": 0
          }
        },
        "capacity": 0,
        "created": "2019-08-24T14:15:22Z",
        "disable_indexing": true,
        "edit_status": "string",
        "id": "string",
        "id_config": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        },
        "is_identifier": true,
        "is_pii": true,
        "keep_days": 0,
        "keep_duration": "string",
        "longdesc": "string",
        "managed_by": "string",
        "mergeop": "string",
        "modified": "string",
        "shortdesc": "string",
        "tags": [
          "string"
        ],
        "type": "string"
      }
    ],
    "mappings": [
      {
        "created": "2019-08-24T14:15:22Z",
        "edit_status": "string",
        "expr": "string",
        "field": "string",
        "guard_expr": "string",
        "id": "string",
        "managed_by": "string",
        "modified": "2019-08-24T14:15:22Z",
        "stream": "string"
      }
    ]
  },
  "request_id": "string",
  "status": 0
}

Get schema

GEThttps://api.lytics.io/v2/schema/{table}

Retrieve current schema fields, mappings and ranks

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
{
  "_meta": {},
  "data": {
    "created": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "description": "string",
    "draft_status": "string",
    "fields": [
      {
        "assertions": {
          "email": true,
          "filter": [
            "string"
          ],
          "format": "alpha",
          "length": {
            "max": 0,
            "min": 0
          }
        },
        "capacity": 0,
        "created": "2019-08-24T14:15:22Z",
        "disable_indexing": true,
        "edit_status": "string",
        "id": "string",
        "id_config": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        },
        "is_identifier": true,
        "is_pii": true,
        "keep_days": 0,
        "keep_duration": "string",
        "longdesc": "string",
        "managed_by": "string",
        "mergeop": "string",
        "modified": "string",
        "shortdesc": "string",
        "tags": [
          "string"
        ],
        "type": "string"
      }
    ],
    "id": "string",
    "is_patch": true,
    "mappings": [
      {
        "created": "2019-08-24T14:15:22Z",
        "edit_status": "string",
        "expr": "string",
        "field": "string",
        "guard_expr": "string",
        "id": "string",
        "managed_by": "string",
        "modified": "2019-08-24T14:15:22Z",
        "stream": "string"
      }
    ],
    "modified": "2019-08-24T14:15:22Z",
    "parent_id": "string",
    "published_by": "string",
    "ranks": {
      "id_config": [
        {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        }
      ],
      "id_ranks": {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "created": "string",
        "edit_status": "string",
        "fields": [
          "string"
        ],
        "modified": "string"
      }
    },
    "retention_settings": {
      "capacity": 0,
      "created": "string",
      "edit_status": "string",
      "keep_days": 0,
      "modified": "string"
    },
    "status": "live",
    "table": "string",
    "tag": "string",
    "version_number": 0
  },
  "request_id": "string",
  "status": 0
}

Get schema comparison

GEThttps://api.lytics.io/v2/schema/{table}/compare

Get a diff of two schema versions

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
{
  "_meta": {},
  "data": {
    "diff": [
      {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      }
    ],
    "from": {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    },
    "to": {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    }
  },
  "request_id": "string",
  "status": 0
}

Evaluate Schema

POSThttps://api.lytics.io/v2/schema/{table}/evaluate

Evaluate 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.

Sample Request
12345678
{
  "property1": [
    {}
  ],
  "property2": [
    {}
  ]
}
Sample Response
Status|200 OK
12345678
{
  "_meta": {},
  "data": [
    {}
  ],
  "request_id": "string",
  "status": 0
}

Get fields

GEThttps://api.lytics.io/v2/schema/{table}/field

Retrieve current fields

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
{
  "_meta": {},
  "data": [
    {
      "assertions": {
        "email": true,
        "filter": [
          "string"
        ],
        "format": "alpha",
        "length": {
          "max": 0,
          "min": 0
        }
      },
      "capacity": 0,
      "created": "2019-08-24T14:15:22Z",
      "disable_indexing": true,
      "edit_status": "string",
      "id": "string",
      "id_config": {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "compact_after_days": 0,
        "compact_over": 0,
        "created": "string",
        "edit_status": "string",
        "field": "string",
        "many_to": [
          "string"
        ],
        "modified": "string"
      },
      "is_identifier": true,
      "is_pii": true,
      "keep_days": 0,
      "keep_duration": "string",
      "longdesc": "string",
      "managed_by": "string",
      "mergeop": "string",
      "modified": "string",
      "shortdesc": "string",
      "tags": [
        "string"
      ],
      "type": "string"
    }
  ],
  "request_id": "string",
  "status": 0
}

Post field

POSThttps://api.lytics.io/v2/schema/{table}/field

Upsert a field in draft schema.

Sample Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
{
  "assertions": {
    "email": true,
    "filter": [
      "string"
    ],
    "format": "alpha",
    "length": {
      "max": 0,
      "min": 0
    }
  },
  "capacity": 0,
  "created": "2019-08-24T14:15:22Z",
  "disable_indexing": true,
  "edit_status": "string",
  "id": "string",
  "id_config": {
    "changes": {
      "diff": [
        {
          "from_val": null,
          "property": "string",
          "to_val": null
        }
      ],
      "id": "string",
      "subject": "mapping",
      "verb": "created"
    },
    "compact_after_days": 0,
    "compact_over": 0,
    "created": "string",
    "edit_status": "string",
    "field": "string",
    "many_to": [
      "string"
    ],
    "modified": "string"
  },
  "is_identifier": true,
  "is_pii": true,
  "keep_days": 0,
  "keep_duration": "string",
  "longdesc": "string",
  "managed_by": "string",
  "mergeop": "string",
  "modified": "string",
  "shortdesc": "string",
  "tags": [
    "string"
  ],
  "type": "string"
}
Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
{
  "_meta": {},
  "data": {
    "assertions": {
      "email": true,
      "filter": [
        "string"
      ],
      "format": "alpha",
      "length": {
        "max": 0,
        "min": 0
      }
    },
    "capacity": 0,
    "created": "2019-08-24T14:15:22Z",
    "disable_indexing": true,
    "edit_status": "string",
    "id": "string",
    "id_config": {
      "changes": {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      },
      "compact_after_days": 0,
      "compact_over": 0,
      "created": "string",
      "edit_status": "string",
      "field": "string",
      "many_to": [
        "string"
      ],
      "modified": "string"
    },
    "is_identifier": true,
    "is_pii": true,
    "keep_days": 0,
    "keep_duration": "string",
    "longdesc": "string",
    "managed_by": "string",
    "mergeop": "string",
    "modified": "string",
    "shortdesc": "string",
    "tags": [
      "string"
    ],
    "type": "string"
  },
  "request_id": "string",
  "status": 0
}

Get a field

GEThttps://api.lytics.io/v2/schema/{table}/field/{field_id}

Retrieve a field by its ID

Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
{
  "_meta": {},
  "data": {
    "assertions": {
      "email": true,
      "filter": [
        "string"
      ],
      "format": "alpha",
      "length": {
        "max": 0,
        "min": 0
      }
    },
    "capacity": 0,
    "created": "2019-08-24T14:15:22Z",
    "disable_indexing": true,
    "edit_status": "string",
    "id": "string",
    "id_config": {
      "changes": {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      },
      "compact_after_days": 0,
      "compact_over": 0,
      "created": "string",
      "edit_status": "string",
      "field": "string",
      "many_to": [
        "string"
      ],
      "modified": "string"
    },
    "is_identifier": true,
    "is_pii": true,
    "keep_days": 0,
    "keep_duration": "string",
    "longdesc": "string",
    "managed_by": "string",
    "mergeop": "string",
    "modified": "string",
    "shortdesc": "string",
    "tags": [
      "string"
    ],
    "type": "string"
  },
  "request_id": "string",
  "status": 0
}

Delete field

DELETEhttps://api.lytics.io/v2/schema/{table}/field/{field_id}

Soft-delete a schema field from this draft, or hard-delete it if new.

Sample Response
Status|200 OK
123456
{
  "_meta": {},
  "data": {},
  "request_id": "string",
  "status": 0
}

List all identity config

GEThttps://api.lytics.io/v2/schema/{table}/idconfig

List graph compaction and many-to-one merging configuration for all identity fields.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930
{
  "_meta": {},
  "data": [
    {
      "changes": {
        "diff": [
          {
            "from_val": null,
            "property": "string",
            "to_val": null
          }
        ],
        "id": "string",
        "subject": "mapping",
        "verb": "created"
      },
      "compact_after_days": 0,
      "compact_over": 0,
      "created": "string",
      "edit_status": "string",
      "field": "string",
      "many_to": [
        "string"
      ],
      "modified": "string"
    }
  ],
  "request_id": "string",
  "status": 0
}

Post ID config

POSThttps://api.lytics.io/v2/schema/{table}/idconfig

Create or update configuration for a single identity field.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728
{
  "_meta": {},
  "data": {
    "changes": {
      "diff": [
        {
          "from_val": null,
          "property": "string",
          "to_val": null
        }
      ],
      "id": "string",
      "subject": "mapping",
      "verb": "created"
    },
    "compact_after_days": 0,
    "compact_over": 0,
    "created": "string",
    "edit_status": "string",
    "field": "string",
    "many_to": [
      "string"
    ],
    "modified": "string"
  },
  "request_id": "string",
  "status": 0
}

Get identity field config

GEThttps://api.lytics.io/v2/schema/{table}/idconfig/{field_id}

Get graph compaction and many-to-one merging configuration for a single identity field.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728
{
  "_meta": {},
  "data": {
    "changes": {
      "diff": [
        {
          "from_val": null,
          "property": "string",
          "to_val": null
        }
      ],
      "id": "string",
      "subject": "mapping",
      "verb": "created"
    },
    "compact_after_days": 0,
    "compact_over": 0,
    "created": "string",
    "edit_status": "string",
    "field": "string",
    "many_to": [
      "string"
    ],
    "modified": "string"
  },
  "request_id": "string",
  "status": 0
}

Delete ID Settings

DELETEhttps://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.

Sample Response
Status|200 OK
123456
{
  "_meta": {},
  "data": {},
  "request_id": "string",
  "status": 0
}

Get mappings

GEThttps://api.lytics.io/v2/schema/{table}/mapping

Retrive current mappings

Sample Response
Status|200 OK
123456789101112131415161718
{
  "_meta": {},
  "data": [
    {
      "created": "2019-08-24T14:15:22Z",
      "edit_status": "string",
      "expr": "string",
      "field": "string",
      "guard_expr": "string",
      "id": "string",
      "managed_by": "string",
      "modified": "2019-08-24T14:15:22Z",
      "stream": "string"
    }
  ],
  "request_id": "string",
  "status": 0
}

Post mapping

POSThttps://api.lytics.io/v2/schema/{table}/mapping

Upsert a mapping in draft schema.

Sample Request
1234567891011
{
  "created": "2019-08-24T14:15:22Z",
  "edit_status": "string",
  "expr": "string",
  "field": "string",
  "guard_expr": "string",
  "id": "string",
  "managed_by": "string",
  "modified": "2019-08-24T14:15:22Z",
  "stream": "string"
}
Sample Response
Status|200 OK
12345678910111213141516
{
  "_meta": {},
  "data": {
    "created": "2019-08-24T14:15:22Z",
    "edit_status": "string",
    "expr": "string",
    "field": "string",
    "guard_expr": "string",
    "id": "string",
    "managed_by": "string",
    "modified": "2019-08-24T14:15:22Z",
    "stream": "string"
  },
  "request_id": "string",
  "status": 0
}

Get a mapping

GEThttps://api.lytics.io/v2/schema/{table}/mapping/{mapping_id}

Retrieve a mapping by ID

Sample Response
Status|200 OK
12345678910111213141516
{
  "_meta": {},
  "data": {
    "created": "2019-08-24T14:15:22Z",
    "edit_status": "string",
    "expr": "string",
    "field": "string",
    "guard_expr": "string",
    "id": "string",
    "managed_by": "string",
    "modified": "2019-08-24T14:15:22Z",
    "stream": "string"
  },
  "request_id": "string",
  "status": 0
}

Delete mapping

DELETEhttps://api.lytics.io/v2/schema/{table}/mapping/{mapping_id}

Soft-delete a data mapping from this draft, or hard-delete it if new.

Sample Response
Status|200 OK
123456
{
  "_meta": {},
  "data": {},
  "request_id": "string",
  "status": 0
}

Publish schema

POSThttps://api.lytics.io/v2/schema/{table}/publish

Publish changes to your schema

Sample Request
1234
{
  "description": "string",
  "tag": "string"
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
{
  "_meta": {},
  "data": {
    "created": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "description": "string",
    "draft_status": "string",
    "fields": [
      {
        "assertions": {
          "email": true,
          "filter": [
            "string"
          ],
          "format": "alpha",
          "length": {
            "max": 0,
            "min": 0
          }
        },
        "capacity": 0,
        "created": "2019-08-24T14:15:22Z",
        "disable_indexing": true,
        "edit_status": "string",
        "id": "string",
        "id_config": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        },
        "is_identifier": true,
        "is_pii": true,
        "keep_days": 0,
        "keep_duration": "string",
        "longdesc": "string",
        "managed_by": "string",
        "mergeop": "string",
        "modified": "string",
        "shortdesc": "string",
        "tags": [
          "string"
        ],
        "type": "string"
      }
    ],
    "id": "string",
    "is_patch": true,
    "mappings": [
      {
        "created": "2019-08-24T14:15:22Z",
        "edit_status": "string",
        "expr": "string",
        "field": "string",
        "guard_expr": "string",
        "id": "string",
        "managed_by": "string",
        "modified": "2019-08-24T14:15:22Z",
        "stream": "string"
      }
    ],
    "modified": "2019-08-24T14:15:22Z",
    "parent_id": "string",
    "published_by": "string",
    "ranks": {
      "id_config": [
        {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        }
      ],
      "id_ranks": {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "created": "string",
        "edit_status": "string",
        "fields": [
          "string"
        ],
        "modified": "string"
      }
    },
    "retention_settings": {
      "capacity": 0,
      "created": "string",
      "edit_status": "string",
      "keep_days": 0,
      "modified": "string"
    },
    "status": "live",
    "table": "string",
    "tag": "string",
    "version_number": 0
  },
  "request_id": "string",
  "status": 0
}

Get rank

GEThttps://api.lytics.io/v2/schema/{table}/rank

Retrieve current identifier rank list.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425
{
  "_meta": {},
  "data": {
    "changes": {
      "diff": [
        {
          "from_val": null,
          "property": "string",
          "to_val": null
        }
      ],
      "id": "string",
      "subject": "mapping",
      "verb": "created"
    },
    "created": "string",
    "edit_status": "string",
    "fields": [
      "string"
    ],
    "modified": "string"
  },
  "request_id": "string",
  "status": 0
}

Post ID rank list

POSThttps://api.lytics.io/v2/schema/{table}/rank

Create or update identifier rank list.

Sample Request
1234567891011121314151617181920
{
  "changes": {
    "diff": [
      {
        "from_val": null,
        "property": "string",
        "to_val": null
      }
    ],
    "id": "string",
    "subject": "mapping",
    "verb": "created"
  },
  "created": "string",
  "edit_status": "string",
  "fields": [
    "string"
  ],
  "modified": "string"
}
Sample Response
Status|200 OK
12345678910111213141516171819202122232425
{
  "_meta": {},
  "data": {
    "changes": {
      "diff": [
        {
          "from_val": null,
          "property": "string",
          "to_val": null
        }
      ],
      "id": "string",
      "subject": "mapping",
      "verb": "created"
    },
    "created": "string",
    "edit_status": "string",
    "fields": [
      "string"
    ],
    "modified": "string"
  },
  "request_id": "string",
  "status": 0
}

Get retention settings

GEThttps://api.lytics.io/v2/schema/{table}/retentionsettings

Retrieve current retention settings.

Sample Response
Status|200 OK
123456789101112
{
  "_meta": {},
  "data": {
    "capacity": 0,
    "created": "string",
    "edit_status": "string",
    "keep_days": 0,
    "modified": "string"
  },
  "request_id": "string",
  "status": 0
}

Post retention settings

POSThttps://api.lytics.io/v2/schema/{table}/retentionsettings

Create or update retention settings.

Sample Request
1234567
{
  "capacity": 0,
  "created": "string",
  "edit_status": "string",
  "keep_days": 0,
  "modified": "string"
}
Sample Response
Status|200 OK
123456789101112
{
  "_meta": {},
  "data": {
    "capacity": 0,
    "created": "string",
    "edit_status": "string",
    "keep_days": 0,
    "modified": "string"
  },
  "request_id": "string",
  "status": 0
}

Revert schema changes

POSThttps://api.lytics.io/v2/schema/{table}/revert

Restore an entire schema version to the state of the current live schema.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
{
  "_meta": {},
  "data": {
    "created": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "description": "string",
    "draft_status": "string",
    "fields": [
      {
        "assertions": {
          "email": true,
          "filter": [
            "string"
          ],
          "format": "alpha",
          "length": {
            "max": 0,
            "min": 0
          }
        },
        "capacity": 0,
        "created": "2019-08-24T14:15:22Z",
        "disable_indexing": true,
        "edit_status": "string",
        "id": "string",
        "id_config": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        },
        "is_identifier": true,
        "is_pii": true,
        "keep_days": 0,
        "keep_duration": "string",
        "longdesc": "string",
        "managed_by": "string",
        "mergeop": "string",
        "modified": "string",
        "shortdesc": "string",
        "tags": [
          "string"
        ],
        "type": "string"
      }
    ],
    "id": "string",
    "is_patch": true,
    "mappings": [
      {
        "created": "2019-08-24T14:15:22Z",
        "edit_status": "string",
        "expr": "string",
        "field": "string",
        "guard_expr": "string",
        "id": "string",
        "managed_by": "string",
        "modified": "2019-08-24T14:15:22Z",
        "stream": "string"
      }
    ],
    "modified": "2019-08-24T14:15:22Z",
    "parent_id": "string",
    "published_by": "string",
    "ranks": {
      "id_config": [
        {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "compact_after_days": 0,
          "compact_over": 0,
          "created": "string",
          "edit_status": "string",
          "field": "string",
          "many_to": [
            "string"
          ],
          "modified": "string"
        }
      ],
      "id_ranks": {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "created": "string",
        "edit_status": "string",
        "fields": [
          "string"
        ],
        "modified": "string"
      }
    },
    "retention_settings": {
      "capacity": 0,
      "created": "string",
      "edit_status": "string",
      "keep_days": 0,
      "modified": "string"
    },
    "status": "live",
    "table": "string",
    "tag": "string",
    "version_number": 0
  },
  "request_id": "string",
  "status": 0
}

Validate schema

GEThttps://api.lytics.io/v2/schema/{table}/validate

Run validation for schema

Sample Response
Status|200 OK
1234567891011121314151617
{
  "_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

GEThttps://api.lytics.io/v2/schema/{table}/version

Get a list of all schema versions in its history

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
{
  "_meta": {},
  "data": [
    {
      "created": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "description": "string",
      "draft_status": "string",
      "fields": [
        {
          "assertions": {
            "email": true,
            "filter": [
              "string"
            ],
            "format": "alpha",
            "length": {
              "max": 0,
              "min": 0
            }
          },
          "capacity": 0,
          "created": "2019-08-24T14:15:22Z",
          "disable_indexing": true,
          "edit_status": "string",
          "id": "string",
          "id_config": {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          },
          "is_identifier": true,
          "is_pii": true,
          "keep_days": 0,
          "keep_duration": "string",
          "longdesc": "string",
          "managed_by": "string",
          "mergeop": "string",
          "modified": "string",
          "shortdesc": "string",
          "tags": [
            "string"
          ],
          "type": "string"
        }
      ],
      "id": "string",
      "is_patch": true,
      "mappings": [
        {
          "created": "2019-08-24T14:15:22Z",
          "edit_status": "string",
          "expr": "string",
          "field": "string",
          "guard_expr": "string",
          "id": "string",
          "managed_by": "string",
          "modified": "2019-08-24T14:15:22Z",
          "stream": "string"
        }
      ],
      "modified": "2019-08-24T14:15:22Z",
      "parent_id": "string",
      "published_by": "string",
      "ranks": {
        "id_config": [
          {
            "changes": {
              "diff": [
                {
                  "from_val": null,
                  "property": "string",
                  "to_val": null
                }
              ],
              "id": "string",
              "subject": "mapping",
              "verb": "created"
            },
            "compact_after_days": 0,
            "compact_over": 0,
            "created": "string",
            "edit_status": "string",
            "field": "string",
            "many_to": [
              "string"
            ],
            "modified": "string"
          }
        ],
        "id_ranks": {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "created": "string",
          "edit_status": "string",
          "fields": [
            "string"
          ],
          "modified": "string"
        }
      },
      "retention_settings": {
        "capacity": 0,
        "created": "string",
        "edit_status": "string",
        "keep_days": 0,
        "modified": "string"
      },
      "status": "live",
      "table": "string",
      "tag": "string",
      "version_number": 0
    }
  ],
  "request_id": "string",
  "status": 0
}
Hide Parameters

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Hide Parameters

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

createdoptionalstring (date-time)
created_byoptionalstring
descriptionoptionalstring
draft_statusoptionalstring
fieldsoptionalobject[]
fields[].assertionsoptionalobject
fields[].assertions.emailoptionalboolean

Asserts that the field is an email address

fields[].assertions.filteroptionalstring[]

[]string is the type of v2schema.Filter

fields[].assertions.formatoptionalstring

Asserts the format of string fields. If this is set to any value other than "any", the incoming data will be validated against the specified format for all mappings to this field. If the format does not match, the mapping will ignore the input.

One of: alpha, alphanumeric, uuid, base64, hex, int, any

fields[].assertions.lengthoptionalobject
fields[].assertions.length.maxoptionalinteger

Maximum length of the field

fields[].assertions.length.minoptionalinteger

Minimum length of the field

fields[].capacityoptionalinteger

Specifies the capacity for fields of type set or map

fields[].createdoptionalstring (date-time)
fields[].disable_indexingoptionalboolean
fields[].edit_statusoptionalstring
fields[].idoptionalstring

ID, or name of field

fields[].id_configoptionalobject
fields[].id_config.changesoptionalobject
fields[].id_config.changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

fields[].id_config.changes.diff[].from_valoptionalany
fields[].id_config.changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

fields[].id_config.changes.diff[].to_valoptionalany
fields[].id_config.changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

fields[].id_config.changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

fields[].id_config.changes.verboptionalstring

One of: created, removed, modified

fields[].id_config.compact_after_daysoptionalinteger
fields[].id_config.compact_overoptionalinteger
fields[].id_config.createdoptionalstring
fields[].id_config.edit_statusoptionalstring
fields[].id_config.fieldoptionalstring
fields[].id_config.many_tooptionalstring[]
fields[].id_config.modifiedoptionalstring
fields[].is_identifieroptionalboolean
fields[].is_piioptionalboolean
fields[].keep_daysoptionalinteger

TTL for fields of type set or map, in days

fields[].keep_durationoptionalstring

TTL for field of type set or map, must match keep_days if both are defined ie: 7d

fields[].longdescoptionalstring
fields[].managed_byoptionalstring
fields[].mergeopoptionalstring
fields[].modifiedoptionalstring
fields[].shortdescoptionalstring
fields[].tagsoptionalstring[]
fields[].typeoptionalstring
idoptionalstring

UUID for this schema version

is_patchoptionalboolean
mappingsoptionalobject[]
mappings[].createdoptionalstring (date-time)
mappings[].edit_statusoptionalstring
mappings[].exproptionalstring

The LQL expression for the mapping

mappings[].fieldrequiredstring

The target field of the mapping

mappings[].guard_exproptionalstring

The LQL Guard expression for the mapping

mappings[].idoptionalstring

The ID of the mapping

mappings[].managed_byoptionalstring
mappings[].modifiedoptionalstring (date-time)
mappings[].streamoptionalstring

The stream associated with the mapping

modifiedoptionalstring (date-time)
parent_idoptionalstring
published_byoptionalstring
ranksoptionalobject
ranks.id_configoptionalobject[]
ranks.id_config[].changesoptionalobject
ranks.id_config[].changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

ranks.id_config[].changes.diff[].from_valoptionalany
ranks.id_config[].changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

ranks.id_config[].changes.diff[].to_valoptionalany
ranks.id_config[].changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

ranks.id_config[].changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

ranks.id_config[].changes.verboptionalstring

One of: created, removed, modified

ranks.id_config[].compact_after_daysoptionalinteger
ranks.id_config[].compact_overoptionalinteger
ranks.id_config[].createdoptionalstring
ranks.id_config[].edit_statusoptionalstring
ranks.id_config[].fieldoptionalstring
ranks.id_config[].many_tooptionalstring[]
ranks.id_config[].modifiedoptionalstring
ranks.id_ranksoptionalobject
ranks.id_ranks.changesoptionalobject
ranks.id_ranks.changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

ranks.id_ranks.changes.diff[].from_valoptionalany
ranks.id_ranks.changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

ranks.id_ranks.changes.diff[].to_valoptionalany
ranks.id_ranks.changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

ranks.id_ranks.changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

ranks.id_ranks.changes.verboptionalstring

One of: created, removed, modified

ranks.id_ranks.createdoptionalstring
ranks.id_ranks.edit_statusoptionalstring
ranks.id_ranks.fieldsoptionalstring[]
ranks.id_ranks.modifiedoptionalstring
retention_settingsoptionalobject
retention_settings.capacityoptionalinteger
retention_settings.createdoptionalstring
retention_settings.edit_statusoptionalstring
retention_settings.keep_daysoptionalinteger
retention_settings.modifiedoptionalstring
statusoptionalstring

One of: live, draft, archived

tableoptionalstring
tagoptionalstring
version_numberoptionalinteger
Hide Parameters

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

createdoptionalstring (date-time)
created_byoptionalstring
descriptionoptionalstring
draft_statusoptionalstring
fieldsoptionalobject[]
fields[].assertionsoptionalobject
fields[].assertions.emailoptionalboolean

Asserts that the field is an email address

fields[].assertions.filteroptionalstring[]

[]string is the type of v2schema.Filter

fields[].assertions.formatoptionalstring

Asserts the format of string fields. If this is set to any value other than "any", the incoming data will be validated against the specified format for all mappings to this field. If the format does not match, the mapping will ignore the input.

One of: alpha, alphanumeric, uuid, base64, hex, int, any

fields[].assertions.lengthoptionalobject
fields[].assertions.length.maxoptionalinteger

Maximum length of the field

fields[].assertions.length.minoptionalinteger

Minimum length of the field

fields[].capacityoptionalinteger

Specifies the capacity for fields of type set or map

fields[].createdoptionalstring (date-time)
fields[].disable_indexingoptionalboolean
fields[].edit_statusoptionalstring
fields[].idoptionalstring

ID, or name of field

fields[].id_configoptionalobject
fields[].id_config.changesoptionalobject
fields[].id_config.changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

fields[].id_config.changes.diff[].from_valoptionalany
fields[].id_config.changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

fields[].id_config.changes.diff[].to_valoptionalany
fields[].id_config.changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

fields[].id_config.changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

fields[].id_config.changes.verboptionalstring

One of: created, removed, modified

fields[].id_config.compact_after_daysoptionalinteger
fields[].id_config.compact_overoptionalinteger
fields[].id_config.createdoptionalstring
fields[].id_config.edit_statusoptionalstring
fields[].id_config.fieldoptionalstring
fields[].id_config.many_tooptionalstring[]
fields[].id_config.modifiedoptionalstring
fields[].is_identifieroptionalboolean
fields[].is_piioptionalboolean
fields[].keep_daysoptionalinteger

TTL for fields of type set or map, in days

fields[].keep_durationoptionalstring

TTL for field of type set or map, must match keep_days if both are defined ie: 7d

fields[].longdescoptionalstring
fields[].managed_byoptionalstring
fields[].mergeopoptionalstring
fields[].modifiedoptionalstring
fields[].shortdescoptionalstring
fields[].tagsoptionalstring[]
fields[].typeoptionalstring
idoptionalstring

UUID for this schema version

is_patchoptionalboolean
mappingsoptionalobject[]
mappings[].createdoptionalstring (date-time)
mappings[].edit_statusoptionalstring
mappings[].exproptionalstring

The LQL expression for the mapping

mappings[].fieldrequiredstring

The target field of the mapping

mappings[].guard_exproptionalstring

The LQL Guard expression for the mapping

mappings[].idoptionalstring

The ID of the mapping

mappings[].managed_byoptionalstring
mappings[].modifiedoptionalstring (date-time)
mappings[].streamoptionalstring

The stream associated with the mapping

modifiedoptionalstring (date-time)
parent_idoptionalstring
published_byoptionalstring
ranksoptionalobject
ranks.id_configoptionalobject[]
ranks.id_config[].changesoptionalobject
ranks.id_config[].changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

ranks.id_config[].changes.diff[].from_valoptionalany
ranks.id_config[].changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

ranks.id_config[].changes.diff[].to_valoptionalany
ranks.id_config[].changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

ranks.id_config[].changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

ranks.id_config[].changes.verboptionalstring

One of: created, removed, modified

ranks.id_config[].compact_after_daysoptionalinteger
ranks.id_config[].compact_overoptionalinteger
ranks.id_config[].createdoptionalstring
ranks.id_config[].edit_statusoptionalstring
ranks.id_config[].fieldoptionalstring
ranks.id_config[].many_tooptionalstring[]
ranks.id_config[].modifiedoptionalstring
ranks.id_ranksoptionalobject
ranks.id_ranks.changesoptionalobject
ranks.id_ranks.changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

ranks.id_ranks.changes.diff[].from_valoptionalany
ranks.id_ranks.changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

ranks.id_ranks.changes.diff[].to_valoptionalany
ranks.id_ranks.changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

ranks.id_ranks.changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

ranks.id_ranks.changes.verboptionalstring

One of: created, removed, modified

ranks.id_ranks.createdoptionalstring
ranks.id_ranks.edit_statusoptionalstring
ranks.id_ranks.fieldsoptionalstring[]
ranks.id_ranks.modifiedoptionalstring
retention_settingsoptionalobject
retention_settings.capacityoptionalinteger
retention_settings.createdoptionalstring
retention_settings.edit_statusoptionalstring
retention_settings.keep_daysoptionalinteger
retention_settings.modifiedoptionalstring
statusoptionalstring

One of: live, draft, archived

tableoptionalstring
tagoptionalstring
version_numberoptionalinteger
Hide Parameters

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

dataoptionalobject
expressionoptionalstring
Hide Parameters

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

compare_idoptionalstring

Comparison Schema Version (defaults to previous)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema version to evaluate. Defaults to the draft.

patch_idoptionalstring

Patch to evaluate, merged onto the live schema before evaluation. Alias of version_id; if both are set, version_id wins.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

baccount_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

filteroptionalstring

Types of field to return

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

assertionsoptionalobject
assertions.emailoptionalboolean

Asserts that the field is an email address

assertions.filteroptionalstring[]

[]string is the type of v2schema.Filter

assertions.formatoptionalstring

Asserts the format of string fields. If this is set to any value other than "any", the incoming data will be validated against the specified format for all mappings to this field. If the format does not match, the mapping will ignore the input.

One of: alpha, alphanumeric, uuid, base64, hex, int, any

assertions.lengthoptionalobject
assertions.length.maxoptionalinteger

Maximum length of the field

assertions.length.minoptionalinteger

Minimum length of the field

capacityoptionalinteger

Specifies the capacity for fields of type set or map

createdoptionalstring (date-time)
disable_indexingoptionalboolean
edit_statusoptionalstring
idoptionalstring

ID, or name of field

id_configoptionalobject
id_config.changesoptionalobject
id_config.changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

id_config.changes.diff[].from_valoptionalany
id_config.changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

id_config.changes.diff[].to_valoptionalany
id_config.changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

id_config.changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

id_config.changes.verboptionalstring

One of: created, removed, modified

id_config.compact_after_daysoptionalinteger
id_config.compact_overoptionalinteger
id_config.createdoptionalstring
id_config.edit_statusoptionalstring
id_config.fieldoptionalstring
id_config.many_tooptionalstring[]
id_config.modifiedoptionalstring
is_identifieroptionalboolean
is_piioptionalboolean
keep_daysoptionalinteger

TTL for fields of type set or map, in days

keep_durationoptionalstring

TTL for field of type set or map, must match keep_days if both are defined ie: 7d

longdescoptionalstring
managed_byoptionalstring
mergeopoptionalstring
modifiedoptionalstring
shortdescoptionalstring
tagsoptionalstring[]
typeoptionalstring
Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

field_idrequiredstring

ID of the Field

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

field_idrequiredstring

The field ID

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

field_idrequiredstring

ID of the Identity Field

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

field_idrequiredstring

The field ID

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

createdoptionalstring (date-time)
edit_statusoptionalstring
exproptionalstring

The LQL expression for the mapping

fieldrequiredstring

The target field of the mapping

guard_exproptionalstring

The LQL Guard expression for the mapping

idoptionalstring

The ID of the mapping

managed_byoptionalstring
modifiedoptionalstring (date-time)
streamoptionalstring

The stream associated with the mapping

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

mapping_idrequiredstring

ID of the Mapping

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

mapping_idrequiredstring

The mapping ID

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

descriptionoptionalstring

Longer description of changes

tagoptionalstring

Tag for short-hand reference

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

changesoptionalobject
changes.diffoptionalobject[]

Diff will be empty if verb is "created" or "removed".

changes.diff[].from_valoptionalany
changes.diff[].propertyoptionalstring

Property can be field type, mapping expression, etc.

changes.diff[].to_valoptionalany
changes.idoptionalstring

ID will be field name, mapping ID, rank setting

field, or empty for "rank" source type.

changes.subjectoptionalstring

One of: mapping, field, rank, rank_setting

changes.verboptionalstring

One of: created, removed, modified

createdoptionalstring
edit_statusoptionalstring
fieldsoptionalstring[]
modifiedoptionalstring
Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring

Body Parameters

capacityoptionalinteger
createdoptionalstring
edit_statusoptionalstring
keep_daysoptionalinteger
modifiedoptionalstring
Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

version_idoptionalstring

Schema Version to revert to. Defaults to the live version.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

version_idoptionalstring

Schema Version (defaults to latest)

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

The table (e.g. user)

Query Parameters

account_idoptionalstring

The account ID. Defaults to the user's default account.

Headers

Authorizationoptionalstring