- Create a DataSet
- Import data into a DataSet
- Create a Personalized Data Permission (PDP) policy for a DataSet
Note
In order to utilize this Quickstart you will need to obtain an access token or you can leverage any of Domo’s SDKs which will also handle authentication.
Step 1: Create a DataSet
DataSets represent the data extracted from a data source; the extracted data is used as the foundation to create visualizations within Domo. Within Domo you can leverage data further by using Domo’s data pipeline to transform, process, and aggregate for richer content and insight. This code creates a DataSet via the DataSet API: Sample Request See this sample request in Java, Python.
DataSet object with all the relevant details:
Sample Response
id value somewhere to utilize when importing additional data or applying data permissions.
Step 2: Import data into a DataSet
With the recently created DataSet
id, you can import data into the DataSet:
Sample Request
See this sample request in Java, Python.
Sample Response
Step 3: Create a Personalized Data Permission
Once you’ve created a DataSet that has data, you can now create a Personalized Data Permission (PDP) policy to restrict access to rows of data within the DataSet. Please note that users and groups must exist before creating a PDP policy. Sample Request See this sample request in Java, Python.
PDP Off by Default
Since PDP is off by default in new DataSets, when you’re ready, you can turn it on with the Update DataSet Details endpoint.
Next steps
Congrats! You now have a DataSet with data you’ve uploaded with the DataSet API. You may want to learn how to manage DataSets in more detail, or explore these other topics, here:
- Import and Export Data
- Manage DataSets
- Create Personalized Data Permissions (PDP)
- DataSet API Reference
Need additional help?
No problem, we’d love to help. Explore our documentation, answers to frequently asked questions, or join other developers in Domo’s Developer Forum. For additional support, feel free to email us or contact our sales team.