Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/event-studio/data-structures.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/cdi/llms.txt.

Manage data structures

Data structures wrap your schemas with metadata, so you can create, manage, and update them. Snowplow provides different options for data structure management:

Choose a task​

Each task in managing data structures has its own page:

I want toGo to
Create a simple data structure with basic typesCreate a data structure with the builder
Write a complex or nested schemaCreate a data structure with the JSON editor
Edit an existing data structureEdit a data structure
Deploy a data structure to development and promote it to productionTest, promote, and publish a tracking design
Choose a version number for my changesVersion and amend data structures
Hide, restore, or unlock a data structureHide, restore, and unlock data structures
Manage schemas from a repositoryManage your tracking design as code or Snowplow CLI data structures

Work with drafts​

When you create a new data structure in Console, your changes are initially saved as a draft. Drafts allow you to:

  • Make multiple changes without worrying about version numbers
  • Experiment freely before committing to a final version
  • Review and refine your data structure before deployment

Draft data structures aren't deployed to your development environment and aren't available for event validation. You must deploy your draft to the development environment when you're ready to test it. See Deploy data structures to your development environment.

This workflow gives you the flexibility to iterate on your data structure design without the overhead of managing version increments for every small change. Draft data structures can't be downloaded with Snowplow CLI or used for validation. In Console, you can't hide a draft data structure, only delete it, so drafts never appear in the list of hidden data structures.

Development and production versions​

By default, Snowplow pipelines use Iglu Server schema registries. Each pipeline has a development and a production Iglu Server instance.

The data structures listing in Console shows a Development and a Production version column for each data structure. You can identify data structures where the development version is ahead of the production version by the yellow background on the version number.

To move a data structure from draft to development, and then to production, see Test, promote, and publish a tracking design.

Was this page helpful?