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
  • Agents Start Here
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Glossary
  • Content generative library
  • Community

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 Patches

Schema Patches

markdownView as Markdown

Stage, review, and apply versioned changes to a table's schema.

Migrate drafts to patches

POSThttps://api.lytics.io/v2/schema/patch/migrate

Captures each table's existing draft delta as a new patch titled "Migrated Draft Changes" and enables schema patches on the account.

Sample Response
Status|200 OK
1234567891011121314
{
  "_meta": {},
  "data": {
    "enable_schema_patches": true,
    "patches": [
      {
        "patch_id": "string",
        "table": "string"
      }
    ]
  },
  "request_id": "string",
  "status": 0
}

List schema patches

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

Retrieves all patches for the specified table with diff information.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
{
  "_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,
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "configuration_error": "string",
          "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": [
        {
          "changes": {
            "diff": [
              {
                "from_val": null,
                "property": "string",
                "to_val": null
              }
            ],
            "id": "string",
            "subject": "mapping",
            "verb": "created"
          },
          "configuration_error": "string",
          "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
}

Create schema patch

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

Creates a new patch for the table. Tag and description are optional; a tag is required later, at apply time. Tag is capped at 264 characters.

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|201 Created
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Revert schema to a version (as a patch)

POSThttps://api.lytics.io/v2/schema/patch/{table}/revert-to-version

Creates a patch that reverts the live schema to the given published version, for the user to review and publish. Non-destructive until published.

Sample Response
Status|200 OK
123456789
{
  "_meta": {},
  "data": {
    "patch_id": "string",
    "reverted": true
  },
  "request_id": "string",
  "status": 0
}

Get schema patch

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

Retrieves a specific patch for the schema with diff information.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Update schema patch

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

Updates an existing patch with fields and mappings. If the patch ID does not exist, a new patch is created; tag and description are optional. Tag is capped at 264 characters. On update, sending a field as an empty string clears it, while omitting the field leaves it unchanged.

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Delete schema patch

DELETEhttps://api.lytics.io/v2/schema/patch/{table}/{id}

Deletes a patch. The patch must not be locked (applied) to be deleted.

Sample Response
Status|204 No Content
123456
{
  "_meta": {},
  "data": {},
  "request_id": "string",
  "status": 0
}

Apply schema patch

POSThttps://api.lytics.io/v2/schema/patch/{table}/{id}/apply

Applies (publishes) a patch to make it the live schema. Once applied, the patch becomes locked. A tag is required, capped at 264 characters: supply one via the optional VersionCommit body, otherwise the patch's stored tag is used; applying with neither returns 400.

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
}

Batch discard patch fields and mappings

POSThttps://api.lytics.io/v2/schema/patch/{table}/{id}/discard

Reverts the listed field and mapping deltas to their live definitions in one atomic (all-or-nothing) request, matching the single-item discard per item. An id not present in the patch is a no-op. A still-published identifier keeps its rank-list membership; a net-new identifier added in the patch is removed from the rank list along with its field.

Sample Request
12345678
{
  "field_ids": [
    "string"
  ],
  "mapping_ids": [
    "string"
  ]
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Create patch field

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

Creates or updates a field in a patch.

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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 patch field

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

Retrieves a specific field from a patch. If the field is not in the patch, retrieves it from the live schema.

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
}

Update, remove, or delete patch field

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

Updates an existing field, removes a field from a patch (remove=true), or marks a field for deletion when the patch is applied (delete=true).

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Rename a net-new patch field

POSThttps://api.lytics.io/v2/schema/patch/{table}/{id}/field/{field_id}/rename

Renames the slug/id of a field added in this patch (not yet on the live schema), re-pointing the patch's pending mappings so none orphan. Rejects fields already on the live schema and id collisions.

Sample Request
123
{
  "new_id": "string"
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Create patch mapping

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

Creates or updates a mapping in a patch.

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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 patch mapping

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

Retrieves a specific mapping from a patch. If the mapping is not in the patch, retrieves it from the live schema.

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
}

Update, remove, or delete patch mapping

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

Updates an existing mapping, removes a mapping from a patch (remove=true), or marks a mapping for deletion when the patch is applied (delete=true).

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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 patch rank list

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

Retrieves the identifier rank list for a patch, returned within the full patch (with diff information).

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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
}

Set patch rank list

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

Sets the identifier rank list for a patch, or removes it (remove=true).

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
{
  "_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,
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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": [
      {
        "changes": {
          "diff": [
            {
              "from_val": null,
              "property": "string",
              "to_val": null
            }
          ],
          "id": "string",
          "subject": "mapping",
          "verb": "created"
        },
        "configuration_error": "string",
        "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

URL Parameters

tablerequiredstring

Table name

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

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

URL Parameters

tablerequiredstring

Table name

Query Parameters

account_idoptionalstring

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

version_idrequiredstring

Version to revert to

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

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

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

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

Table name

idrequiredstring

Patch ID

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Body Parameters

field_idsoptionalstring[]
mapping_idsoptionalstring[]
Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

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

Table name

idrequiredstring

Patch ID

field_idrequiredstring

Field ID

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

field_idrequiredstring

Field ID

Query Parameters

account_idoptionalstring

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

removeoptionalstring

Remove field from patch (undo changes)

deleteoptionalstring

Mark field for deletion when patch is applied

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

Table name

idrequiredstring

Patch ID

field_idrequiredstring

Current field ID (slug)

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Body Parameters

new_idoptionalstring
Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

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

Table name

idrequiredstring

Patch ID

mapping_idrequiredstring

Mapping ID

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

mapping_idrequiredstring

Mapping ID

Query Parameters

account_idoptionalstring

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

removeoptionalstring

Remove mapping from patch (undo changes)

deleteoptionalstring

Mark mapping for deletion when patch is applied

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

Table name

idrequiredstring

Patch ID

Query Parameters

account_idoptionalstring

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

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Table name

idrequiredstring

Patch ID

Query Parameters

account_idoptionalstring

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

removeoptionalstring

Remove the rank list from the patch

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