> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Data model representation example library

> Browse Sigma data model code representation examples to troubleshoot API formatting, map UI features to code, and support AI-assisted modeling.

The Sigma programmatic data model API endpoints, including [Create a data model from a code representation](/reference/create-data-model-spec), [Update a data model from a code representation](/reference/update-data-model-spec), and [Get the code representation of a data model](/reference/get-data-model-spec) require a specific format for the representation of the data model. This example library shows examples of data model representations for various configurations, using different element types and features in Sigma.

Consult these examples to:

* Troubleshoot the formatting of a particular feature in a code representation
* Relate a feature from the Sigma UI to its representation in code
* Provide context to AI tools used to create data models from code

## Example representations

To review a specific representation, search or browse the following examples:

To see the representation for a specific configuration or combination of features, you can create the data model in the UI and then retrieve the representation using the [Get the code representation of a data model](/reference/get-data-model-spec) endpoint.