post
https://api.sigmacomputing.com/v2/workbooks/spec
This endpoint creates a new workbook from a code representation. Use it to programmatically define and create workbooks that are then accessible from the Sigma UI.
Beta: This documentation describes a private beta feature and is subject to the Beta features disclaimer.
For more information on managing workbooks programmatically, see Manage workbooks as code. For more information on using this endpoint, including end-to-end instructions, see Create a workbook from a code representation.
System and user requirements
- To perform this operation, you must use API credentials owned by a user assigned an account type with Create, edit, and publish workbooks permission.
- To perform this operation, you must use API credentials owned by a user with Can edit access for the workbook.
Usage notes
- You can define the layout of contents on the workbook page using XML in the
layoutfield. For more information, see Customize the layout of a workbook in code representation. - You can combine multiple YAML documents to create one workbook representation. For more information, see Prepare a representation from multiple YAML documents.
- To retrieve the representation of an existing workbook, use the /v2/workbooks/{workbookId}/spec endpoint.
- To update an existing workbook from code, use the /v2/workbooks/{workbookId}/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
- Agentic workflows: Agents can use these endpoints to directly manage workbook contents in code.
- Automation: If you want to create several workbooks across one or more organizations, you can use this endpoint to programmatically create the workbooks.
- Integration: Using this endpoint, you can create workbooks based on external data sources or integrate Sigma with other tools and platforms.
- Migration: You can use this endpoint to migrate workbooks from one organization to another.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
