post
https://api.sigmacomputing.com/v2/dataModels/spec
This endpoint creates a new data model in Sigma from the provided representation. It allows developers to programmatically define and create data models based on a JSON representation that are then accessible from the Sigma UI.
For more information on managing data models via the Sigma API, see Create and manage data models from code. For more information on using this endpoint, including an end-to-end example, see Create a data model from a JSON representation.
Usage notes
- Retrieve a representation of an existing data model by calling the /v2/dataModels/{dataModelId}/spec endpoint.
- To get a list of folders, call the /v2/files endpoint and review the
idfield in the response for files with atypeoffolder.
Usage scenarios
- Automation: If you want to create several data models across one or more organizations, you can use this endpoint to programmatically create the data models.
- Integration: Using this endpoint, you can create data models based on external data sources or integrate Sigma with other tools and platforms.
- Migration: You can use this endpoint to migrate data models from one organization to another.
