You must explicitly share the Insights model with users. The Insights model is not automatically shared with the creator or users.
For the API endpoint, select the appropriate endpoint for your region.
curl -X PUT "https://<api endpoint>/reporting/datamodels/xxxxxx/shares" \
-H 'authorization: TD1 xxxx/xxxxxxxxxxxxxx' \
-H 'cache-control: no-cache' \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"emails": ["user1@treasure-data.com", "user2@treasure-data.com"]
}'Requirements
- Include all user email addresses that will share the Insights model.
- Each user must have an email address in Treasure Data and have a reporting role of Dashboard Access.
- If you use a JSON object to share an Insights model, you must use a “Content-Type: application/json” in the request header.