{"info":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","description":"<html><head></head><body><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Preset API Requirement  <br></strong><em>The Preset API is only available for the</em> <a href=\"https://preset.io/pricing/\"><i>Enterprise plan</i></a><em>.</em></th>\n</tr>\n</thead>\n<tbody>\n</tbody>\n</table>\n</div><p>Welcome to the Preset API Collection.</p>\n<h2 id=\"overview\">Overview</h2>\n<p>The Preset REST API is a powerful feature that provides access to core functional aspects of both Preset Manager and Superset.</p>\n<p>The API supports the following areas of Preset:</p>\n<ul>\n<li><p>User and Team Management</p>\n</li>\n<li><p>Workspace Management</p>\n</li>\n<li><p>Connection and Data Management</p>\n</li>\n<li><p>Visualization Management</p>\n</li>\n<li><p>Permissions Management [Beta]</p>\n</li>\n</ul>\n<p>This documentation lists the most relevant endpoints across all of the above functional areas of Preset.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<h3 id=\"generate-an-api-key\">Generate an API Key</h3>\n<p>To generate an API key, from the Preset Manager screen (after log-in), hover your cursor over the initials icon and, in the sub-menu, select Manage User Settings.</p>\n<img src=\"https://i.ibb.co/D1xHc92/api1.png\">\n\n<p>In the <em>API Keys</em> section, select <strong>+ Generate New API Key</strong></p>\n<img src=\"https://i.ibb.co/LRWp7HC/api2.png\">\n\n<p>The <em>Generate a New API Key</em> panel appears.</p>\n<p>In the <strong>Key Title</strong> field, enter a name for the new API key.</p>\n<p>In the <strong>Key Description</strong> field, enter a brief descripton of the API key.</p>\n<p>Select <strong>Submit</strong>.</p>\n<img src=\"https://i.ibb.co/cC0H4mY/api3.png\">\n\n<p>The <strong>Token</strong> field will automatically populate with a generated token.</p>\n<p>Likewise, the <strong>Secret</strong> field will automatically populate with a secret.</p>\n<img src=\"https://i.ibb.co/8smp5pZ/api5.png\">\n\n<p><em>Reminder: Safeguard the Secret**Please take a moment to select the Copy icon and then safely store it.</em></p>\n<p>When ready, select <strong>OK</strong>.</p>\n<img src=\"https://i.ibb.co/LdNDGNp/api6.png\">\n\n<p>The newly-created API key appears in the <em>API Keys</em> section.</p>\n<p>By default, the API key will be activated — to deactivate, toggle the <strong>Active</strong> slider to the off position.</p>\n<p>To delete an API key, select the trash bin icon.</p>\n<h3 id=\"using-the-postman-collection\">Using the Postman Collection</h3>\n<p>All requests on this collection inherit the <strong>token</strong> specified on the <strong>Preset API</strong> collection.</p>\n<p>To authenticate:</p>\n<ol>\n<li><p>Click on the <strong>Preset API Collection</strong>.</p>\n</li>\n<li><p>Navigate to the <strong>Variables</strong> tab.</p>\n</li>\n<li><p>Provide your <strong>API Token</strong> on the <code>APITokenName</code> current value.</p>\n</li>\n<li><p>Provide the <strong>API Token Secret</strong> on the <code>APITokenSecret</code> current value.</p>\n</li>\n</ol>\n<p>These would be used to generate a <strong>JWT Token</strong> that's stored as a <strong>Global Variable</strong>.</p>\n<p>There's a script defined on this collection, that is always executed before any request. The script basically checks if there's a valid <strong>JWT Token</strong> and tries to generate one/refresh it if needed.</p>\n<hr>\n<h3 id=\"manually-using-the-api\">Manually using the API</h3>\n<p>Use the <strong>Get a JWT Token</strong> request to generate a <code>JWT Token.</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18980539","collectionId":"9dc44bfa-078a-4f14-98f4-7b35338e5928","publishedId":"UzXLzJ6L","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-25T21:28:38.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get a JWT Token","id":"cdf2f4d7-1842-4a3e-bd15-a747295704ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{APIToken}}\",\r\n    \"secret\": \"{{APISecret}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/auth/","description":"<p>To interact with the Preset API, it's required to generate an API Key, that's used to generate a JWT token.</p>\n<ol>\n<li>Generate an API Key on the Preset Manager UI. Refer to <a href=\"https://docs.preset.io/docs/the-preset-api\">our documentation</a>.</li>\n<li>Copy the API <code>token</code> and <code>secret</code>.</li>\n</ol>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{APIToken}}</code> with the <code>token</code> from the UI.</li>\n<li><code>{{APISecret}}</code> with the <code>secret</code> from the UI.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","auth",""],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"cdf2f4d7-1842-4a3e-bd15-a747295704ee"}],"id":"66547093-7a32-425e-943e-1dcb103f40ce","description":"<p>API to authenticate and get a JWT token to interact with the Preset/Superset APIs.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"897820f6-4ee1-4b86-a1c4-679506a6103d"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"41684e8f-e7d8-4f6e-abf0-eeef524f4ce1"}}],"_postman_id":"66547093-7a32-425e-943e-1dcb103f40ce"},{"name":"Preset Manager APIs","item":[{"name":"Teams","item":[{"name":"Get Preset Teams","event":[{"listen":"prerequest","script":{"id":"a1d55dca-ab60-43e2-9d70-5da16f0886ff","exec":[""],"type":"text/javascript"}}],"id":"14c77840-3bf5-49f7-8c3d-0dcb372c7637","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.app.preset.io/v1/teams/","description":"<p>Retrieves all Preset teams the user has access to.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams",""],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"14c77840-3bf5-49f7-8c3d-0dcb372c7637"},{"name":"Get Team Members","id":"24d1aeef-574b-4871-84a7-75bb021daffe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/memberships","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Gets all members of the Team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","memberships"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"24d1aeef-574b-4871-84a7-75bb021daffe"},{"name":"Get Pending Team Invites","id":"4208a122-6d16-43da-a5dc-ccfe61c38e0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/invites","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Gets all pending team invitations.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","invites"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"4208a122-6d16-43da-a5dc-ccfe61c38e0f"},{"name":"Get Team Regions","id":"24f696ca-ac9c-4e02-83e0-2704c7c37ece","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/regions","description":"<p>Gets all regions available for a Team.</p>\n<p>This is useful for Teams with Managed Private Cloud (MPC) deployment(s), as they can create Workpsaces in all regular SaaS regions + MPC regions.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","regions"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"24f696ca-ac9c-4e02-83e0-2704c7c37ece"},{"name":"Create a Team Invite","id":"626fea46-31a8-4e3c-8b36-9fb5090aa116","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"team_role_id\": {{RoleID}},\r\n    \"email\": \"{{Email}}\",\r\n    \"workspace_ids\": [ //optional\r\n        {{WorkspaceID}}\r\n    ],\r\n    \"workspace_role_identifier\": \"{{RoleIdentifier}}\" //optional\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/invites","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Creates a team invitation, sent via email.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the Body:</p>\n<ul>\n<li><p><code>{{RoleID}}</code> with the desired role:</p>\n<ul>\n<li><p>Use <strong><code>2</code></strong> for <strong>User</strong>.</p>\n</li>\n<li><p>Use <strong><code>1</code></strong> for <strong>Admin</strong>.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{Email}}</code> with the user's email address.</p>\n</li>\n</ul>\n<p>When triggering the invitation, you can also specify a <strong>Workspace Role</strong> to be applied to this user in certain Workspaces. To do so, replace:</p>\n<ul>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint. Multiple Workspace IDs can be added to the <code>workspace_ids</code> array (comma separated).</p>\n</li>\n<li><p><code>{{RoleIdentifier}}</code> with the desired option:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Workspace Role</strong></th>\n<th><strong>Role Identifier</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Workspace Admin</td>\n<td><code>Admin</code></td>\n</tr>\n<tr>\n<td>Primary Contributor</td>\n<td><code>PresetAlpha</code></td>\n</tr>\n<tr>\n<td>Secondary Contributor</td>\n<td><code>PresetBeta</code></td>\n</tr>\n<tr>\n<td>Limited Contributor</td>\n<td><code>PresetGamma</code></td>\n</tr>\n<tr>\n<td>Visualization Contributor</td>\n<td><code>PresetDelta</code></td>\n</tr>\n<tr>\n<td>Viewer</td>\n<td><code>PresetReportsOnly</code></td>\n</tr>\n<tr>\n<td>Dashboard Interactor</td>\n<td><code>PresetEpsilon</code></td>\n</tr>\n<tr>\n<td>Dashboard Viewer</td>\n<td><code>PresetDashboardsOnly</code></td>\n</tr>\n<tr>\n<td>No Access</td>\n<td><code>PresetNoAccess</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Each role identifier corresponds to a specific Workspace Role. As a reminder, the access restrictions for each Workspace Role can be found <a href=\"https://docs.preset.io/docs/data-access-roles-at-preset\">in our documentation</a>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","invites"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"626fea46-31a8-4e3c-8b36-9fb5090aa116"},{"name":"Create Multiple Team Invites","id":"604a6578-17c2-4900-ae8b-c32b3615482b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"invites\": [\r\n        {\r\n            \"team_role_id\": {{RoleID}},\r\n            \"email\": \"{{Email}}\",\r\n            \"workspace_ids\": [ //optional\r\n                {{WorkspaceID}}\r\n            ],\r\n            \"workspace_role_identifier\": \"{{WorkspaceRole}}\" //optional\r\n        },\r\n        {\r\n            \"team_role_id\": {{RoleID}},\r\n            \"email\": \"{{Email2}}\",\r\n            \"workspace_ids\": [ //optional\r\n                {{WorkspaceID}}\r\n            ],\r\n            \"workspace_role_identifier\": \"{{WorkspaceRole}}\" //optional\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/invites/many","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Creates multiple team invitations.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{RoleID}}</code> with the desired role:</p>\n<ul>\n<li><p>Use <strong><code>2</code></strong> for <strong>User</strong>.</p>\n</li>\n<li><p>Use <strong><code>1</code></strong> for <strong>Admin</strong>.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{Email}}, {{Email2}}...</code> with the users' email addresses.</p>\n</li>\n</ul>\n<p>You can also specify a <strong>Workspace Role</strong> to be applied to each user in certain Workspaces. To do so, replace:</p>\n<ul>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint. Multiple Workspace IDs can be added to the <code>workspace_ids</code> array (comma separated).</p>\n</li>\n<li><p><code>{{RoleIdentifier}}</code> with the desired option:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Workspace Role</strong></th>\n<th><strong>Role Identifier</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Workspace Admin</td>\n<td><code>Admin</code></td>\n</tr>\n<tr>\n<td>Primary Contributor</td>\n<td><code>PresetAlpha</code></td>\n</tr>\n<tr>\n<td>Secondary Contributor</td>\n<td><code>PresetBeta</code></td>\n</tr>\n<tr>\n<td>Limited Contributor</td>\n<td><code>PresetGamma</code></td>\n</tr>\n<tr>\n<td>Visualization Contributor</td>\n<td><code>PresetDelta</code></td>\n</tr>\n<tr>\n<td>Viewer</td>\n<td><code>PresetReportsOnly</code></td>\n</tr>\n<tr>\n<td>Dashboard Interactor</td>\n<td><code>PresetEpsilon</code></td>\n</tr>\n<tr>\n<td>Dashboard Viewer</td>\n<td><code>PresetDashboardsOnly</code></td>\n</tr>\n<tr>\n<td>No Access</td>\n<td><code>PresetNoAccess</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Each role identifier corresponds to a specific Workspace Role. As a reminder, the access restrictions for each Workspace Role can be found <a href=\"https://docs.preset.io/docs/data-access-roles-at-preset\">in our documentation</a>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","invites","many"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"604a6578-17c2-4900-ae8b-c32b3615482b"},{"name":"Resend Invite","id":"5f84cecd-17d8-4d25-891c-3e67bd7f552b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/invites/resend/{{InviteID}}","description":"<p>Resends a pending Team invitation.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code></p>\n</li>\n<li><p><code>{{InviteID}}</code>with the <code>id</code> retrieved through the API using the <strong>Get Pending Team Invites</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","invites","resend","{{InviteID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f84cecd-17d8-4d25-891c-3e67bd7f552b"},{"name":"Update Team Title","id":"b9194682-a669-48d8-93a4-f2793b011127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"{{NewTeamTitle}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Updates the Team title.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the Body:</p>\n<ul>\n<li><code>{{NewTeamTitle}}</code> by the new title you want to set.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9194682-a669-48d8-93a4-f2793b011127"},{"name":"Change User Role","id":"3be099ee-395a-4262-a1ad-766570a33ade","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"team_role_id\": {{RoleID}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/memberships/{{UserID}}","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Changes a user's Team role.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{UserID}}</code>with the <code>id</code> retrieved using the <strong>Get Team Members</strong> endpoint.</li>\n</ul>\n<p>Replace in the Body:</p>\n<ul>\n<li><code>{{RoleID}}</code> with the desired role:<ul>\n<li>Use <strong><code>2</code></strong> for <strong>User</strong>.</li>\n<li>Use <strong><code>1</code></strong> for <strong>Admin</strong>.</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","memberships","{{UserID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"3be099ee-395a-4262-a1ad-766570a33ade"},{"name":"Delete a Team Member","id":"11389c4d-1de2-42bb-9dd5-3864eaf5046c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/memberships/{{UserID}}","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Deletes a Team member.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{UserID}}</code>with the <code>id</code> retrieved using the <strong>Get Team Members</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","memberships","{{UserID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"11389c4d-1de2-42bb-9dd5-3864eaf5046c"},{"name":"Delete Pending Invite","id":"925d9f21-6abc-4014-91f0-4502385052a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/invites/{{InviteID}}","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Deletes a Team invitation.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{InviteID}}</code>with the <code>id</code> retrieved through the API using the <strong>Get Pending Team Invites</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","invites","{{InviteID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"925d9f21-6abc-4014-91f0-4502385052a9"}],"id":"cf3f7d6c-5f1e-4826-be13-43ce1a8088bf","description":"<p>APIs to manage your Preset team.</p>\n","_postman_id":"cf3f7d6c-5f1e-4826-be13-43ce1a8088bf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Workspaces","item":[{"name":"Get Workspaces from a Team","id":"13611012-94e1-4581-8724-6889e110d4b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces","description":"<p>Gets all Workspaces from the Team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"13611012-94e1-4581-8724-6889e110d4b3"},{"name":"Get a Workspace from a Team","id":"348e4528-df62-4984-add6-45b1fd152e16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceID}}","description":"<p>Gets a specific Workspace from the Team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"348e4528-df62-4984-add6-45b1fd152e16"},{"name":"Get Workspace Users and Roles","id":"601f33af-0343-4d7d-90fe-e374ea0696ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceID}}/memberships","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Gets Users and their Workspace Roles from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceID}}","memberships"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"601f33af-0343-4d7d-90fe-e374ea0696ee"},{"name":"Get all Embedded Authentication Keys","id":"1dc36e1c-ea84-4e8e-a5ff-57486dc46a49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceSlug}}/access-token-keys","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Gets all Embedded Authentication token keys associated with a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceSlug}}","access-token-keys"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"1dc36e1c-ea84-4e8e-a5ff-57486dc46a49"},{"name":"Create a SaaS Workspace for a Team","id":"771580a0-9f1d-4805-b02a-c0da7f648c75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"{{NewWorkspaceTitle}}\",\r\n    \"descr\": \"{{NewWorkspaceDescription}}\",\r\n    \"color\": \"{{NewWorkspaceColor}}\",\r\n    \"icon\": \"{{NewWorkspaceIcon}}\",\r\n    \"region\": \"{{NewWorkspaceRegion}}\",\r\n    \"load_examples\": {{LoadExamples}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Creates a new Workspace on the Team in a SaaS region.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the Body:</p>\n<ul>\n<li><p><code>{{NewWorkspaceTitle}}</code> by the title of the New Workspace you want to create.</p>\n</li>\n<li><p><code>{{NewWorkspaceDescription}}</code> with a description for this Workspace.</p>\n</li>\n<li><p><code>{{NewWorkspaceColor}}</code> with the desired color to be used by the Workspace tile. Available options:</p>\n<ul>\n<li><p><code>D0ABFF</code></p>\n</li>\n<li><p><code>FF9797</code></p>\n</li>\n<li><p><code>8CBAFF</code></p>\n</li>\n<li><p><code>FFE895</code></p>\n</li>\n<li><p><code>92D0BA</code></p>\n</li>\n<li><p><code>A0A0A0</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>{{NewWorkspaceRegion}}</code> with the region that the Workspace should be created - refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Location</th>\n<th><code>NewWorkspaceRegion</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>US East Cost</strong></td>\n<td><code>us-east-1</code></td>\n</tr>\n<tr>\n<td><strong>US West Coast</strong></td>\n<td><code>us-west-2</code></td>\n</tr>\n<tr>\n<td><strong>Europe</strong></td>\n<td><code>eu-north-1</code></td>\n</tr>\n<tr>\n<td><strong>Asia-Pacific</strong></td>\n<td><code>ap-northeast-1</code></td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p><code>{{NewWorkspaceIcon}}</code> with the desired icon for the Workspace. Available options:</p>\n<ul>\n<li><p><code>four-o-clock</code></p>\n</li>\n<li><p><code>crescent-moon</code></p>\n</li>\n<li><p><code>high-voltage</code></p>\n</li>\n<li><p><code>recycle</code></p>\n</li>\n<li><p><code>airplane</code></p>\n</li>\n<li><p><code>desktop-computer</code></p>\n</li>\n<li><p><code>hourglass</code></p>\n</li>\n<li><p><code>rocket</code></p>\n</li>\n<li><p><code>alembic</code></p>\n</li>\n<li><p><code>diamond-dot</code></p>\n</li>\n<li><p><code>house</code></p>\n</li>\n<li><p><code>round-pushpin</code></p>\n</li>\n<li><p><code>anchor</code></p>\n</li>\n<li><p><code>direct-hit</code></p>\n</li>\n<li><p><code>key</code></p>\n</li>\n<li><p><code>scales</code></p>\n</li>\n<li><p><code>articulated-lorry</code></p>\n</li>\n<li><p><code>electric-light-bulb</code></p>\n</li>\n<li><p><code>lady-beetle</code></p>\n</li>\n<li><p><code>shield</code></p>\n</li>\n<li><p><code>automobile-car</code></p>\n</li>\n<li><p><code>electric-plug</code></p>\n</li>\n<li><p><code>leaf-fluttering</code></p>\n</li>\n<li><p><code>ship</code></p>\n</li>\n<li><p><code>banknote-dollar-sign</code></p>\n</li>\n<li><p><code>envelope</code></p>\n</li>\n<li><p><code>mobile-phone</code></p>\n</li>\n<li><p><code>shopping-trolley</code></p>\n</li>\n<li><p><code>bar-chart</code></p>\n</li>\n<li><p><code>evergreen-tree</code></p>\n</li>\n<li><p><code>music-note</code></p>\n</li>\n<li><p><code>snowflake</code></p>\n</li>\n<li><p><code>beer</code></p>\n</li>\n<li><p><code>factory</code></p>\n</li>\n<li><p><code>office-building</code></p>\n</li>\n<li><p><code>studio-microphone</code></p>\n</li>\n<li><p><code>bell</code></p>\n</li>\n<li><p><code>floppy-disk</code></p>\n</li>\n<li><p><code>package</code></p>\n</li>\n<li><p><code>telescope</code></p>\n</li>\n<li><p><code>birthday-cake</code></p>\n</li>\n<li><p><code>gear</code></p>\n</li>\n<li><p><code>page-facing-up</code></p>\n</li>\n<li><p><code>tram</code></p>\n</li>\n<li><p><code>black-square</code></p>\n</li>\n<li><p><code>gem-stone</code></p>\n</li>\n<li><p><code>paperclip</code></p>\n</li>\n<li><p><code>trophy</code></p>\n</li>\n<li><p><code>bomb</code></p>\n</li>\n<li><p><code>globe-meridians</code></p>\n</li>\n<li><p><code>paw-prints</code></p>\n</li>\n<li><p><code>victory-hand</code></p>\n</li>\n<li><p><code>briefcase</code></p>\n</li>\n<li><p><code>headphone</code></p>\n</li>\n<li><p><code>public-address-loudspeaker</code></p>\n</li>\n<li><p><code>vulcan-salute</code></p>\n</li>\n<li><p><code>broken-heart</code></p>\n</li>\n<li><p><code>heart</code></p>\n</li>\n<li><p><code>pushpin</code></p>\n</li>\n<li><p><code>world-map</code></p>\n</li>\n<li><p><code>chart-upwards</code></p>\n</li>\n<li><p><code>heavy-dollar-sign</code></p>\n</li>\n<li><p><code>racing-motorcycle</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>{{LoadExamples}}</code> with <code>true</code> to inclue example assets in the Workspace, or <code>false</code> to create an empty Workspace.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"771580a0-9f1d-4805-b02a-c0da7f648c75"},{"name":"Create an MPC Workspace for a Team","id":"f9ab094b-54f8-46e6-a50d-5ebaf1359156","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"{{NewWorkspaceTitle}}\",\r\n    \"descr\": \"{{NewWorkspaceDescription}}\",\r\n    \"color\": \"{{NewWorkspaceColor}}\",\r\n    \"icon\": \"{{NewWorkspaceIcon}}\",\r\n    \"cluster_id\": \"{{MPCClusterID}}\",\r\n    \"load_examples\": {{LoadExamples}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Creates a new Workspace on the Team in an MPC region.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the Body:</p>\n<ul>\n<li><p><code>{{NewWorkspaceTitle}}</code> by the title of the New Workspace you want to create.</p>\n</li>\n<li><p><code>{{NewWorkspaceDescription}}</code> with a description for this Workspace.</p>\n</li>\n<li><p><code>{{NewWorkspaceColor}}</code> with the desired color to be used by the Workspace tile. Available options:</p>\n<ul>\n<li><p><code>D0ABFF</code></p>\n</li>\n<li><p><code>FF9797</code></p>\n</li>\n<li><p><code>8CBAFF</code></p>\n</li>\n<li><p><code>FFE895</code></p>\n</li>\n<li><p><code>92D0BA</code></p>\n</li>\n<li><p><code>A0A0A0</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>{{MPCClusterID}}</code> with the <code>cluster_id</code> retrieved through the API from the <strong>Get Team Regions</strong> endpoint.</p>\n</li>\n<li><p><code>{{NewWorkspaceIcon}}</code> with the desired icon for the Workspace. Available options:</p>\n<ul>\n<li><p><code>four-o-clock</code></p>\n</li>\n<li><p><code>crescent-moon</code></p>\n</li>\n<li><p><code>high-voltage</code></p>\n</li>\n<li><p><code>recycle</code></p>\n</li>\n<li><p><code>airplane</code></p>\n</li>\n<li><p><code>desktop-computer</code></p>\n</li>\n<li><p><code>hourglass</code></p>\n</li>\n<li><p><code>rocket</code></p>\n</li>\n<li><p><code>alembic</code></p>\n</li>\n<li><p><code>diamond-dot</code></p>\n</li>\n<li><p><code>house</code></p>\n</li>\n<li><p><code>round-pushpin</code></p>\n</li>\n<li><p><code>anchor</code></p>\n</li>\n<li><p><code>direct-hit</code></p>\n</li>\n<li><p><code>key</code></p>\n</li>\n<li><p><code>scales</code></p>\n</li>\n<li><p><code>articulated-lorry</code></p>\n</li>\n<li><p><code>electric-light-bulb</code></p>\n</li>\n<li><p><code>lady-beetle</code></p>\n</li>\n<li><p><code>shield</code></p>\n</li>\n<li><p><code>automobile-car</code></p>\n</li>\n<li><p><code>electric-plug</code></p>\n</li>\n<li><p><code>leaf-fluttering</code></p>\n</li>\n<li><p><code>ship</code></p>\n</li>\n<li><p><code>banknote-dollar-sign</code></p>\n</li>\n<li><p><code>envelope</code></p>\n</li>\n<li><p><code>mobile-phone</code></p>\n</li>\n<li><p><code>shopping-trolley</code></p>\n</li>\n<li><p><code>bar-chart</code></p>\n</li>\n<li><p><code>evergreen-tree</code></p>\n</li>\n<li><p><code>music-note</code></p>\n</li>\n<li><p><code>snowflake</code></p>\n</li>\n<li><p><code>beer</code></p>\n</li>\n<li><p><code>factory</code></p>\n</li>\n<li><p><code>office-building</code></p>\n</li>\n<li><p><code>studio-microphone</code></p>\n</li>\n<li><p><code>bell</code></p>\n</li>\n<li><p><code>floppy-disk</code></p>\n</li>\n<li><p><code>package</code></p>\n</li>\n<li><p><code>telescope</code></p>\n</li>\n<li><p><code>birthday-cake</code></p>\n</li>\n<li><p><code>gear</code></p>\n</li>\n<li><p><code>page-facing-up</code></p>\n</li>\n<li><p><code>tram</code></p>\n</li>\n<li><p><code>black-square</code></p>\n</li>\n<li><p><code>gem-stone</code></p>\n</li>\n<li><p><code>paperclip</code></p>\n</li>\n<li><p><code>trophy</code></p>\n</li>\n<li><p><code>bomb</code></p>\n</li>\n<li><p><code>globe-meridians</code></p>\n</li>\n<li><p><code>paw-prints</code></p>\n</li>\n<li><p><code>victory-hand</code></p>\n</li>\n<li><p><code>briefcase</code></p>\n</li>\n<li><p><code>headphone</code></p>\n</li>\n<li><p><code>public-address-loudspeaker</code></p>\n</li>\n<li><p><code>vulcan-salute</code></p>\n</li>\n<li><p><code>broken-heart</code></p>\n</li>\n<li><p><code>heart</code></p>\n</li>\n<li><p><code>pushpin</code></p>\n</li>\n<li><p><code>world-map</code></p>\n</li>\n<li><p><code>chart-upwards</code></p>\n</li>\n<li><p><code>heavy-dollar-sign</code></p>\n</li>\n<li><p><code>racing-motorcycle</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>{{LoadExamples}}</code> with <code>true</code> to inclue example assets in the Workspace, or <code>false</code> to create an empty Workspace.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9ab094b-54f8-46e6-a50d-5ebaf1359156"},{"name":"Create an Embedded Authentication Key","id":"0f84dc77-a580-4ad0-8984-9ca959134a93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pub_key_der\": \"{{PublicKey}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceSlug}}/access-token-keys","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Creates an Embedded Authentication token key.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{PublicKey}}</code> with your PEM-encoded public key. It should begin with <code>-----BEGIN PUBLIC KEY-----</code> and end with <code>-----END PUBLIC KEY-----</code>. Ensure no spaces or headers are included outside the encapsulation boundaries. The key must be provided in a single, continuous block of text and should be at least 2048 bits long.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceSlug}}","access-token-keys"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f84dc77-a580-4ad0-8984-9ca959134a93"},{"name":"Update a Workspace","id":"666a0812-a891-4c75-9dab-3e10d3d7f3b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"{{NewWorkspaceTitle}}\",\r\n    \"descr\": \"{{NewWorkspaceDescription}}\",\r\n    \"color\": \"{{NewWorkspaceColor}}\",\r\n    \"icon\": \"{{NewWorkspaceIcon}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceID}}","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Updates an existing Workspace from the team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint.</p>\n</li>\n</ul>\n<p>Replace in the Body:</p>\n<ul>\n<li><p><code>{{NewWorkspaceTitle}}</code> with the new title for the Workspace.</p>\n</li>\n<li><p><code>{{NewWorkspaceDescription}}</code> with the new description for this Workspace.</p>\n</li>\n<li><p><code>{{NewWorkspaceColor}}</code> with the desired color to be used by the Workspace tile. Available options:</p>\n<ul>\n<li><p><code>D0ABFF</code></p>\n</li>\n<li><p><code>FF9797</code></p>\n</li>\n<li><p><code>8CBAFF</code></p>\n</li>\n<li><p><code>FFE895</code></p>\n</li>\n<li><p><code>92D0BA</code></p>\n</li>\n<li><p><code>A0A0A0</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>{{NewWorkspaceIcon}}</code> with the desired icon for the Workspace. Available options:</p>\n<ul>\n<li><p><code>four-o-clock</code></p>\n</li>\n<li><p><code>crescent-moon</code></p>\n</li>\n<li><p><code>high-voltage</code></p>\n</li>\n<li><p><code>recycle</code></p>\n</li>\n<li><p><code>airplane</code></p>\n</li>\n<li><p><code>desktop-computer</code></p>\n</li>\n<li><p><code>hourglass</code></p>\n</li>\n<li><p><code>rocket</code></p>\n</li>\n<li><p><code>alembic</code></p>\n</li>\n<li><p><code>diamond-dot</code></p>\n</li>\n<li><p><code>house</code></p>\n</li>\n<li><p><code>round-pushpin</code></p>\n</li>\n<li><p><code>anchor</code></p>\n</li>\n<li><p><code>direct-hit</code></p>\n</li>\n<li><p><code>key</code></p>\n</li>\n<li><p><code>scales</code></p>\n</li>\n<li><p><code>articulated-lorry</code></p>\n</li>\n<li><p><code>electric-light-bulb</code></p>\n</li>\n<li><p><code>lady-beetle</code></p>\n</li>\n<li><p><code>shield</code></p>\n</li>\n<li><p><code>automobile-car</code></p>\n</li>\n<li><p><code>electric-plug</code></p>\n</li>\n<li><p><code>leaf-fluttering</code></p>\n</li>\n<li><p><code>ship</code></p>\n</li>\n<li><p><code>banknote-dollar-sign</code></p>\n</li>\n<li><p><code>envelope</code></p>\n</li>\n<li><p><code>mobile-phone</code></p>\n</li>\n<li><p><code>shopping-trolley</code></p>\n</li>\n<li><p><code>bar-chart</code></p>\n</li>\n<li><p><code>evergreen-tree</code></p>\n</li>\n<li><p><code>music-note</code></p>\n</li>\n<li><p><code>snowflake</code></p>\n</li>\n<li><p><code>beer</code></p>\n</li>\n<li><p><code>factory</code></p>\n</li>\n<li><p><code>office-building</code></p>\n</li>\n<li><p><code>studio-microphone</code></p>\n</li>\n<li><p><code>bell</code></p>\n</li>\n<li><p><code>floppy-disk</code></p>\n</li>\n<li><p><code>package</code></p>\n</li>\n<li><p><code>telescope</code></p>\n</li>\n<li><p><code>birthday-cake</code></p>\n</li>\n<li><p><code>gear</code></p>\n</li>\n<li><p><code>page-facing-up</code></p>\n</li>\n<li><p><code>tram</code></p>\n</li>\n<li><p><code>black-square</code></p>\n</li>\n<li><p><code>gem-stone</code></p>\n</li>\n<li><p><code>paperclip</code></p>\n</li>\n<li><p><code>trophy</code></p>\n</li>\n<li><p><code>bomb</code></p>\n</li>\n<li><p><code>globe-meridians</code></p>\n</li>\n<li><p><code>paw-prints</code></p>\n</li>\n<li><p><code>victory-hand</code></p>\n</li>\n<li><p><code>briefcase</code></p>\n</li>\n<li><p><code>headphone</code></p>\n</li>\n<li><p><code>public-address-loudspeaker</code></p>\n</li>\n<li><p><code>vulcan-salute</code></p>\n</li>\n<li><p><code>broken-heart</code></p>\n</li>\n<li><p><code>heart</code></p>\n</li>\n<li><p><code>pushpin</code></p>\n</li>\n<li><p><code>world-map</code></p>\n</li>\n<li><p><code>chart-upwards</code></p>\n</li>\n<li><p><code>heavy-dollar-sign</code></p>\n</li>\n<li><p><code>racing-motorcycle</code></p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"666a0812-a891-4c75-9dab-3e10d3d7f3b3"},{"name":"Change Workspace Role","id":"03e6a219-1898-489f-b62c-73a34ef3ba3d","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"role_identifier\": \"{{RoleIdentifier}}\", \r\n    \"user_id\": {{UserID}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceID}}/membership","description":"<p>Changes a user's Workspace Role.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint.</p>\n</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{UserID}}</code>with the <code>id</code> retrieved using the <strong>Get Team Members</strong> endpoint.</p>\n</li>\n<li><p><code>{{RoleIdentifier}}</code>with one of the the <code>role_identifier</code> below, wrapped in double quotes:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Workspace Role</strong></th>\n<th><strong>role_identifier</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Workspace Admin</td>\n<td><code>Admin</code></td>\n</tr>\n<tr>\n<td>Primary Contributor</td>\n<td><code>PresetAlpha</code></td>\n</tr>\n<tr>\n<td>Secondary Contributor</td>\n<td><code>PresetBeta</code></td>\n</tr>\n<tr>\n<td>Limited Contributor</td>\n<td><code>PresetGamma</code></td>\n</tr>\n<tr>\n<td>Visualization Contributor</td>\n<td><code>PresetDelta</code></td>\n</tr>\n<tr>\n<td>Viewer</td>\n<td><code>PresetReportsOnly</code></td>\n</tr>\n<tr>\n<td>Dashboard Interactor</td>\n<td><code>PresetEpsilon</code></td>\n</tr>\n<tr>\n<td>Dashboard Viewer</td>\n<td><code>PresetDashboardsOnly</code></td>\n</tr>\n<tr>\n<td>No Access</td>\n<td><code>PresetNoAccess</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Each Role Identifier corresponds to a specific Workspace Role. As a reminder, the access restrictions for each Workspace Role can be found <a href=\"https://docs.preset.io/docs/data-access-roles-at-preset\">in our documentation</a>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceID}}","membership"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"03e6a219-1898-489f-b62c-73a34ef3ba3d"},{"name":"Delete a Workspace from a Team","id":"1ad1316f-f9f5-4694-b634-5efa9686aa38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceID}}","description":"<p>Deletes a specific Workspace from the Team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceID}}</code> with the <code>id</code> retrieved through the API with the <strong>Get Workspaces from a Team</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ad1316f-f9f5-4694-b634-5efa9686aa38"},{"name":"Delete an Embedded Authentication Key","id":"eadb0cfa-1c6c-4de5-9b3f-57038cfcfe9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pub_key_der\": \"{{PublicKey}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceSlug}}/access-token-keys/{{KeyID}}","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Deletes an Embedded Authentication token key.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</p>\n</li>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{KeyID}}</code> with the <code>id</code> for the key that should be deleted retrieved through the API (using the <strong>Get all Embedded Authentication Keys</strong> endpoint).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceSlug}}","access-token-keys","{{KeyID}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"eadb0cfa-1c6c-4de5-9b3f-57038cfcfe9b"}],"id":"e837ece3-056b-4807-8003-e37ed396566c","description":"<p>APIs to manage your Workspaces.</p>\n","_postman_id":"e837ece3-056b-4807-8003-e37ed396566c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Permissions","item":[{"name":"Get Resources","id":"03770644-28f8-4f6b-a327-749792bdc272","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/resources","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>List all resources from a team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Note that the query parameters are optional and very useful to retrieve the desired data:</p>\n<ul>\n<li><code>workspace_name</code> can be used to filter for permissions only applied to a particular Workspace.</li>\n<li><code>resource_type</code> can be used to filter for:<ul>\n<li><code>database</code> to list databases</li>\n<li><code>database_schema</code> to list schemas</li>\n<li><code>datasource</code> to list DAR permission reference of a dataset (not the dataset itself)</li>\n<li><code>dataset</code> to list datasets</li>\n<li><code>data_access_role</code> to list DARs</li>\n<li><code>row_level_security</code> to list RLSs</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","resources"],"host":["api","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Use the name retrieved through the API (using the <strong>Get Workspaces from a Team endpoint</strong>).</p>\n","type":"text/plain"},"key":"workspace_name","value":"{{WorkspaceSlug}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter for the different types:</p>\n<ul>\n<li><code>database</code></li>\n<li><code>database_schema</code></li>\n<li><code>datasource</code> <em>(DAR permission reference of a dataset, not the dataset itself.)</em></li>\n<li><code>dataset</code></li>\n<li><code>query</code> <em>(query to a database, e.g. all_query_access)</em>.</li>\n<li><code>data_access_role</code></li>\n<li><code>row_level_security</code></li>\n</ul>\n","type":"text/plain"},"key":"resource_type","value":"{{ResourceType}}"}],"variable":[]}},"response":[],"_postman_id":"03770644-28f8-4f6b-a327-749792bdc272"},{"name":"Get Permissions","id":"e74a8c60-7d08-4cbb-8bb6-701920b2a810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>List all permissions from a team.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Note that the query parameters are optional and very useful to retrieve the desired data:</p>\n<ul>\n<li><code>workspace_name</code> can be used to filter for permissions only applied to a particular Workspace.</li>\n<li><code>permission_type</code> can be used to filter for only <code>data_access_role</code>, or <code>row_level_security</code>.</li>\n<li><code>grantee_identifier</code> can be used to filter for all permissions included in a DAR (<code>dar:{{DAR NAME}}</code>), or all permissions applied to a user (<code>username</code>).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions"],"host":["api","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Use the name retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n","type":"text/plain"},"key":"workspace_name","value":"{{WorkspaceSlug}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter for type:</p>\n<ul>\n<li><code>data_access_role</code></li>\n<li><code>row_level_security</code></li>\n</ul>\n","type":"text/plain"},"key":"permission_type","value":"{{PermissionType}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter for user or DAR: </p>\n<ul>\n<li>User: <code>username</code> of a user if grantee is user</li>\n<li>Role: <code>dar:{{DARName}}</code> if grantee is role</li>\n</ul>\n","type":"text/plain"},"key":"grantee_identifier","value":"{{GranteeIdentifier}}"}],"variable":[]}},"response":[],"_postman_id":"e74a8c60-7d08-4cbb-8bb6-701920b2a810"},{"name":"Create Data Access Role","id":"f098a556-b7ee-4419-aa1c-5440ec79b2e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"data_access_role\",\n    \"grantees\": [\n        {\n            \"type\": \"USER\",\n            \"identifier\": \"{{Username}}\"\n        }\n    ],\n    \"acl\": {\n        \"dar:{{DARName}}\": {\n            \"config\": {},\n            \"grants\": [\n                {\n                    \"resource\": \"{{ResourceName}}\",\n                    \"action\": \"{{GrantAction}}\"\n                }\n            ]\n        }\n    },\n    \"workspace_name\": \"{{WorkspaceSlug}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Creates a new Data Access Role (DAR).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{GranteeType}}</code>by <code>USER</code> if the Grantee is already a member of the workspace, or <code>INVITEE</code> if that member's invitation to join the workspace is pending</p>\n</li>\n<li><p><code>{{Username}}</code> by the username of the user if he is already a member of the workspace. You can get a list of usernames with the <strong>Get Team Members API</strong> endpoint. If this user hasn't accepted the invite yet, you can use the email the invite was sent to.</p>\n</li>\n<li><p><code>{{DARName}}</code> by the name you want to give your DAR</p>\n</li>\n<li><p><code>{{ResourceName}}</code> by the name of the resource you want your DAR to have acces to. You can see all resources with the <strong>Get Resources</strong> endpoint.</p>\n</li>\n<li><p><code>{{GrantAction}}</code> by the permission action given by the grant. Available options:</p>\n<ul>\n<li><code>database_access</code></li>\n<li><code>schema_access</code></li>\n<li><code>datasource_access</code></li>\n<li><code>all_database_access</code></li>\n<li><code>all_datasource_access</code></li>\n<li><code>all_query_access</code></li>\n</ul>\n</li>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n</ul>\n<p><em>Please note:</em></p>\n<ul>\n<li><em><strong>Grantee list for DAR permissions create/update is limited to 1800 Users in Total (API will respond with 400 if over the limit)</strong></em></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions",""],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f098a556-b7ee-4419-aa1c-5440ec79b2e5"},{"name":"Create Row Level Security","id":"741aef89-978a-4e98-bdda-9e559b2a8b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"row_level_security\",\n    \"grantees\": [\n        {\n            \"type\": \"ROLE\",\n            \"identifier\": \"{{DARName1}}\"\n        },\n        {\n            \"type\": \"ROLE\",\n            \"identifier\": \"{{DARName2}}\"\n        }\n    ],\n    \"acl\": {\n        \"rls:{{RLSName}}\": {\n            \"config\": {\n                \"clause\": \"{{RLSClause}}\",\n                \"filter_type\": \"{{RLSFilterType}}\",\n                \"group_key\": \"{{RLSGroupKey}}\"\n            },\n            \"grants\": [\n                {\n                    \"resource\": \"{{ResourceName}}\",\n                    \"action\": \"filter\"\n                }\n            ]\n        }\n    },\n    \"workspace_name\": \"{{WorkspaceSlug}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Creates a Row Level Security (RLS).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{DARName1}}</code> with the DAR name you want to associated with this RLS (also for <code>{{DARName2}}</code> and so on). You can get a list of availabe DARs using the <strong>Get Permissions</strong> endpoint. Note that you would use the <strong>display name</strong> (without <code>dar:</code>).</p>\n</li>\n<li><p><code>{{RLSName}}</code> with the name of your RLS.</p>\n</li>\n<li><p><code>{{RLSClause}}</code> with the SQL syntax for the filter to be applied.</p>\n</li>\n<li><p><code>{{RLSFilterType}}</code> with <code>Regular</code> or <code>Base</code>.</p>\n</li>\n<li><p><code>{{RLSGroupKey}}</code> with the desired group key.</p>\n</li>\n<li><p><code>{{ResourceName}}</code> with the datasource name. You can get a list of available options using the <strong>Get Resources</strong> endpoint (filtering for <code>&amp;resource_type=dataset</code>).</p>\n</li>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n</ul>\n<p>Please note:</p>\n<ul>\n<li><em><strong>Grantee list for RLS permissions create/update is limited to 100 users in total (API will respond with 400 if over the limit)</strong></em></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions",""],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"741aef89-978a-4e98-bdda-9e559b2a8b4f"},{"name":"Add Grantees to existing Permission","id":"d8f87697-0acf-4fe4-ae30-6ba63172dbaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"grantees\": [\n        {\n            \"type\": \"{{GranteeType}}\",\n            \"identifier\": \"{{GranteeIdentifier}}\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/{{PermissionName}}/grantees","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Adds Grantee(s) to an existing Permission (DAR or RLS).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{PermissionName}}</code> with the <code>name</code> retrieved via the <strong>Get Permissions</strong> API.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{GranteeType}}</code> with:<ul>\n<li><code>USER</code> to add existing user to DARs.</li>\n<li><code>INVITEE</code> to add pending user to DARs</li>\n<li><code>ROLE</code> to add DAR to RLS.</li>\n</ul>\n</li>\n<li><code>{{GranteeIdentifier}}</code> with:<ul>\n<li><code>username</code> when adding users to DAR. You can get a list of <code>usernames</code> with the <strong>Get Team Members</strong> API. For pending users you can use their email.</li>\n<li><code>DAR Name</code> when adding DAR to RLS. You can get a list of availabe DARs using the <strong>Get Permissions</strong> endpoint. Note that you would use the <strong>display name</strong> (without <code>dar:</code>).</li>\n</ul>\n</li>\n</ul>\n<p>Please note:</p>\n<ul>\n<li><em><strong>Max number of grantees to be appended per request is 100.</strong></em></li>\n<li><em><strong>Duplicate grantees will be ignored.</strong></em></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","{{PermissionName}}","grantees"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8f87697-0acf-4fe4-ae30-6ba63172dbaa"},{"name":"Update Data Access Role","id":"66ab172f-f668-43cf-88d4-a56a76992a33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"grantees\": [\n        {\n            \"type\": \"USER\",\n            \"identifier\": \"{{Username}}\"\n        }\n    ],\n    \"acl\": {\n        \"dar:{{DARName}}\": {\n            \"config\": {},\n            \"grants\": [\n                {\n                    \"resource\": \"{{ResourceName}}\",\n                    \"action\": \"{{GrantAction}}\"\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/{{PermissionName}}","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Updates an existing Data Access Role (DAR).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{PermissionName}}</code> with the <code>name</code> retrieved via the <strong>Get Permissions</strong> API.</li>\n</ul>\n<p>Note that the payload has to be complete - you can't remove the <code>grantees</code>. If you just want to add a new user, use the <strong>Add Grantees to existing Permission</strong> endpoint.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{GranteeType}}</code>by <code>USER</code> if the Grantee is already a member of the workspace, or <code>INVITEE</code> if that member's invitation to join the workspace is pending</p>\n</li>\n<li><p><code>{{Username}}</code> by the username of the user if he is already a member of the workspace. You can get a list of usernames with the <strong>Get Team Members API</strong> endpoint. If this user hasn't accepted the invite yet, you can use the email the invite was sent to.</p>\n</li>\n<li><p><code>{{DARName}}</code> by the name you want to give your DAR.</p>\n</li>\n<li><p><code>{{ResourceName}}</code> by the name of the resource you want your DAR to have acces to. You can see all resources with the <strong>Get Resources</strong> endpoint.</p>\n</li>\n<li><p><code>{{GrantAction}}</code> by the permission action given by the grant. Available options:</p>\n<ul>\n<li><code>database_access</code></li>\n<li><code>schema_access</code></li>\n<li><code>datasource_access</code></li>\n<li><code>all_database_access</code></li>\n<li><code>all_datasource_access</code></li>\n<li><code>all_query_access</code></li>\n</ul>\n</li>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n</ul>\n<p><em>Please note:</em></p>\n<ul>\n<li><em><strong>Grantee list for DAR permissions create/update is limited to 1800 Users in Total (API will respond with 400 if over the limit)</strong></em></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","{{PermissionName}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"66ab172f-f668-43cf-88d4-a56a76992a33"},{"name":"Update Row Level Security","id":"1b22be6d-7b11-43ee-bd36-7a4b664d641d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"row_level_security\",\n    \"grantees\": [\n        {\n            \"type\": \"ROLE\",\n            \"identifier\": \"{{DARName1}}\"\n        },\n        {\n            \"type\": \"ROLE\",\n            \"identifier\": \"{{DARName2}}\"\n        }\n    ],\n    \"acl\": {\n        \"rls:{{RLSName}}\": {\n            \"config\": {\n                \"clause\": \"{{RLSClause}}\",\n                \"filter_type\": \"{{RLSFilterType}}\",\n                \"group_key\": \"{{RLSGroupKey}}\"\n            },\n            \"grants\": [\n                {\n                    \"resource\": \"{{ResourceName}}\",\n                    \"action\": \"filter\"\n                }\n            ]\n        }\n    },\n    \"workspace_name\": \"{{WorkspaceSlug}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/{{PermissionName}}","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Updates an existing Row Level Security (RLS).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{PermissionName}}</code> with the <code>name</code> retrieved via the <strong>Get Permissions</strong> API.</li>\n</ul>\n<p>Note that the payload has to be complete - you can't remove the <code>grantees</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{DARName1}}</code> with the DAR name you want to associated with this RLS (also for <code>{{DARName2}}</code> and so on). You can get a list of availabe DARs using the <strong>Get Permissions</strong> endpoint. Note that you would use the <strong>display name</strong> (without <code>dar:</code>).</li>\n<li><code>{{RLSName}}</code> with the name of your RLS.</li>\n<li><code>{{RLSClause}}</code> with the SQL syntax for the filter to be applied.</li>\n<li><code>{{RLSFilterType}}</code> with <code>Regular</code> or <code>Base</code>.</li>\n<li><code>{{RLSGroupKey}}</code> with the desired group key.</li>\n<li><code>{{ResourceName}}</code> with the datasource name. You can get a list of available options using the <strong>Get Resources</strong> endpoint (filtering for <code>&amp;resource_type=dataset</code>).</li>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n</ul>\n<p><em>Please note:</em></p>\n<ul>\n<li><em><strong>Grantee list for RLS permissions create/update is limited to 100 users in total (API will respond with 400 if over the limit)</strong></em></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","{{PermissionName}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b22be6d-7b11-43ee-bd36-7a4b664d641d"},{"name":"Delete Data Access Roles","id":"ccc11ab0-8c6f-446d-8091-9b5b3bea8579","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/{{PermissionName}}","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Deletes a Data Access Role (DAR).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{PermissionName}}</code> with the <code>name</code> retrieved via the <strong>Get Permissions</strong> API.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","{{PermissionName}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccc11ab0-8c6f-446d-8091-9b5b3bea8579"},{"name":"Delete Row Level Security","id":"e525f0a4-e625-4f6f-b886-a0e58f66fa71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/{{PermissionName}}","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Deletes a Row Level Security (RLS).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{PermissionName}}</code> with the <code>name</code> retrieved via the <strong>Get Permissions</strong> API.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","{{PermissionName}}"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e525f0a4-e625-4f6f-b886-a0e58f66fa71"},{"name":"Delete Grantee from existing Permission","id":"8b906a9d-4187-4c0c-977e-4fe6dc64a1f2","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"grantees\": [\n        {\n            \"type\": \"{{GranteeType}}\",\n            \"identifier\": \"{{GranteeIdentifier}}\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/permissions/{{PermissionName}}/grantees","description":"<h6 id=\"requires-team-admin-permission\"><em>Requires Team Admin permission.</em></h6>\n<p>Removes Grantee(s) from an existing Permission (DAR or RLS).</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n<li><code>{{PermissionName}}</code> with the <code>name</code> retrieved via the <strong>Get Permissions</strong> API.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{GranteeType}}</code> with:<ul>\n<li><code>USER</code> to add users to DARs.</li>\n<li><code>ROLE</code> to add DAR to RLS.</li>\n</ul>\n</li>\n<li><code>{{GranteeIdentifier}}</code> with:<ul>\n<li><code>username</code> when adding users to DAR. You can get a list of <code>usernames</code> with the <strong>Get Team Members</strong> API.</li>\n<li><code>DAR Name</code> when adding DAR to RLS. You can get a list of availabe DARs using the <strong>Get Permissions</strong> endpoint. Note that you would use the <strong>display name</strong> (without <code>dar:</code>).</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","permissions","{{PermissionName}}","grantees"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b906a9d-4187-4c0c-977e-4fe6dc64a1f2"}],"id":"1d87dbae-8aef-4c4e-bfdd-fc9a70984bef","description":"<p>APIs to manage permissions on the Workspace level.</p>\n<p>Note that all Permission APIs require <strong>Team Admin</strong> permission.</p>\n","_postman_id":"1d87dbae-8aef-4c4e-bfdd-fc9a70984bef","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Embedded","item":[{"name":"Get Embedded Configuration for a Dashboard","id":"97a85017-2a09-45be-8de4-f374c3de03cc","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Retrieves the Embedded configuration for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"97a85017-2a09-45be-8de4-f374c3de03cc"},{"name":"Create a new Guest Token","id":"b1a9877e-958d-4957-8939-a6d0d3f10e70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"user\":\r\n    {\r\n        \"username\": \"{{username}}\",\r\n        \"first_name\": \"{{firstName}}\",\r\n        \"last_name\": \"{{lastName}}\"\r\n    },\r\n    \"enable_drilling\": false,\r\n    \"resources\": [\r\n    {\r\n        \"type\": \"dashboard\",\r\n        \"id\": \"{{EmbeddedDashboardID}}\"\r\n    }],\r\n    \"rls\": []\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.app.preset.io/v1/teams/{{TeamSlug}}/workspaces/{{WorkspaceSlug}}/guest-token/","description":"<p>Generates a Guest Token.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>For details on how to update the body, please refer to <a href=\"https://docs.preset.io/docs/step-2-deployment#1-create-guest-tokens-backend\">our documentation</a>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","teams","{{TeamSlug}}","workspaces","{{WorkspaceSlug}}","guest-token",""],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1a9877e-958d-4957-8939-a6d0d3f10e70"},{"name":"Enable Embedded for a Dashboard","id":"2fc1cefc-bb4d-4635-a2d1-c04147b6007a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":" {\n \t\"allowed_domains\": [\n         \"{{AllowedDomain}}\"\n     ]\n }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Enables Embedded mode for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{AllowedDomain}}</code> with the domain that should be allowed to embed this dashboard. Make sure to include the protocol( <code>https://...</code>). Multiple values can be added and should be separated with a comma. Alternatively, use an empty array to allow embedding on any domain:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"allowed_domains\": []\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fc1cefc-bb4d-4635-a2d1-c04147b6007a"},{"name":"Update Embedded Configuration for a Dashboard","id":"be447a76-6ff0-4970-a950-5218fd1fa4ce","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":" {\n \t\"allowed_domains\": [\n         \"{{AllowedDomain}}\"\n     ]\n }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Updates the Embedded Configuration for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{AllowedDomain}}</code> with the domain that should be allowed to embed this dashboard. Make sure to include the protocol( <code>https://...</code>). Multiple values can be added and should be separated with a comma. Alternatively, use an empty array to allow embedding on any domain:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"allowed_domains\": []\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"be447a76-6ff0-4970-a950-5218fd1fa4ce"},{"name":"Disable Embedded for a Dashboard","id":"254cfc4a-d641-454d-ae0b-818dd2466f08","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Disables the Embedded configuration for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"254cfc4a-d641-454d-ae0b-818dd2466f08"}],"id":"97235b90-321b-4446-a5f7-f43681650691","description":"<p>APIs associated with the Embedded functionality.</p>\n","_postman_id":"97235b90-321b-4446-a5f7-f43681650691","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Audit Logs","item":[{"name":"Query Audit Logs","id":"a9efe9c2-b665-4f74-8b8c-4b5dda0b9397","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v2/audit/teams/{{TeamSlug}}/logs","description":"<p>Queries the Preset Team's Audit Logs records.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>Note that the query parameters are optional and very useful to filter for the desired data:</p>\n<ul>\n<li><code>entity_type</code> can be used to filter for logs associated with a particular entity type. Available options:<ul>\n<li><code>urn:preset:auditlog</code></li>\n<li><code>urn:preset:user</code></li>\n<li><code>urn:preset:ws:chart</code></li>\n<li><code>urn:preset:ws:dashboard</code></li>\n<li><code>urn:preset:ws:database</code></li>\n<li><code>urn:preset:ws:dataset</code></li>\n</ul>\n</li>\n<li><code>entity_id</code> can be used to filter for the unique entity ID (for example, chart ID, dashboard ID, etc).</li>\n<li><code>entity_name</code> can be used to filter using the friendly name of entity.</li>\n<li><code>action</code> can be used to filter for specific actions. Use the <code>action_urn</code> values retrieved from the <strong>Get Available Actions API</strong> endpoint.</li>\n<li><code>user</code> can be used to filter for actions performed by a particular user. Either the <code>username</code> or <code>email</code> can be used.</li>\n<li><code>start_time</code> and <code>end_time</code> can be used to filter by the period. The expected format is <code>YYYY-MM-DD HH:MM:SS.mm</code> (for example <code>2023-08-01 00:00:01.00</code>).</li>\n<li><code>workspace_name</code> can be used to filter by actions related to a specific Workspace. Use the name retrieved through the API (using the <strong>Get Workspaces from a Team endpoint</strong>).</li>\n<li><code>page_number</code> to paginate results. Default/start value is <code>1</code>.</li>\n<li><code>page_size</code> to set a maximum page size. Default/max value is <code>100</code>.</li>\n<li><code>order_by</code> and <code>direction</code> to specify the column to be used in the sorting logic, and direction (either <code>asc</code> or <code>desc</code>).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","audit","teams","{{TeamSlug}}","logs"],"host":["api","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the type of entity.</p>\n","type":"text/plain"},"key":"entity_type","value":"{{EntityType}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the entity ID.</p>\n","type":"text/plain"},"key":"entity_id","value":"{{EntityID}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the entity's friendly name.</p>\n","type":"text/plain"},"key":"entity_name","value":"{{EntityName}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the action performed. </p>\n","type":"text/plain"},"key":"action","value":"{{ActionURN}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the actor. Accepts either the username or email.</p>\n","type":"text/plain"},"key":"user","value":"{{UsernameOREmail}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by start time.</p>\n","type":"text/plain"},"key":"start_time","value":"{{StartTime}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the end time.</p>\n","type":"text/plain"},"key":"end_time","value":"{{EndTime}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Filter by the Workspace Slug.</p>\n","type":"text/plain"},"key":"workspace_name","value":"{{WorkspaceSlug}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Control the page number for pagination. Starts at 1.</p>\n","type":"text/plain"},"key":"page_number","value":"{{PageNumber}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Control the page size. Maximum allowed value (and default) is 100.</p>\n","type":"text/plain"},"key":"page_size","value":"{{PageSize}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Control the column to order results.</p>\n","type":"text/plain"},"key":"order_by","value":"{{OrderColumn}}"},{"disabled":true,"description":{"content":"<p><em>(optional)</em> Control the sorting option.</p>\n","type":"text/plain"},"key":"direction","value":"{{SortOption}}"}],"variable":[]}},"response":[],"_postman_id":"a9efe9c2-b665-4f74-8b8c-4b5dda0b9397"},{"name":"Get Available Actions","id":"0ad58e8d-3b0d-40e4-af0d-441778433965","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.app.preset.io/v2/audit/teams/{{TeamSlug}}/logs/actions","description":"<p>Queries the actions logged on the Audit Logs records.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","audit","teams","{{TeamSlug}}","logs","actions"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ad58e8d-3b0d-40e4-af0d-441778433965"},{"name":"Download Audit Logs","id":"e7f8e9bb-473f-40fe-b46c-7487595e2c31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"*/*"}],"body":{"mode":"raw","raw":"{\n  \"via_email\": false,\n  \"entity_type\": \"{{EntityType}}\",\n  \"entity_id\": {{EntityID}},\n  \"entity_name\": \"{{EntityName}}\",\n  \"action\": [\"{{ActionURN}}\"],\n  \"user\": \"{{UsernameOREmail}}\",\n  \"start_time\": \"{{StartTime}}\",\n  \"end_time\": \"{{EndTime}}\",\n  \"workspace_name\": [\"{{WorkspaceSlug}}\"],\n  \"page_number\": {{PageNumber}},\n  \"page_size\": {{PageSize}},\n  \"order_by\": \"{{OrderColumn}}\",\n  \"direction\": \"{{SortOption}}\"\n}"},"url":"https://api.app.preset.io/v2/audit/teams/{{TeamSlug}}/logs/downloads","description":"<p>Downloads the Preset Team's Audit Log records.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{TeamSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Preset Teams</strong> endpoint). Alternatively, access the team administration through the UI, and get the <code>{{TeamSlug}}</code> from the URL -&gt; <code>https://manage.app.preset.io/app/teams/{{TeamSlug}}/members</code>.</li>\n</ul>\n<p>The <code>via_email</code> parameter in the body is required and should be set to <code>false</code> so that the report is returned in the API response.</p>\n<p>The remaining information in the body is optional and very useful to filter for the desired data:</p>\n<ul>\n<li><p><code>entity_type</code> can be used to filter for logs associated with a particular entity type. Available options:</p>\n<ul>\n<li><p><code>urn:preset:auditlog</code></p>\n</li>\n<li><p><code>urn:preset:user</code></p>\n</li>\n<li><p><code>urn:preset:ws:chart</code></p>\n</li>\n<li><p><code>urn:preset:ws:dashboard</code></p>\n</li>\n<li><p><code>urn:preset:ws:database</code></p>\n</li>\n<li><p><code>urn:preset:ws:dataset</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>entity_id</code> can be used to filter for the unique entity ID (for example, chart ID, dashboard ID, etc).</p>\n</li>\n<li><p><code>entity_name</code> can be used to filter using the friendly name of entity.</p>\n</li>\n<li><p><code>action</code> can be used to filter for specific actions. Use the <code>action_urn</code> values retrieved from the <strong>Get Available Actions API</strong> endpoint.</p>\n</li>\n<li><p><code>user</code> can be used to filter for actions performed by a particular user. Either the <code>username</code> or <code>email</code> can be used.</p>\n</li>\n<li><p><code>start_time</code> and <code>end_time</code> can be used to filter by the period. The expected format is <code>YYYY-MM-DD HH:MM:SS.mm</code> (for example <code>2023-08-01 00:00:01.00</code>).</p>\n</li>\n<li><p><code>workspace_name</code> can be used to filter by actions related to a specific Workspace. Use the name retrieved through the API (using the <strong>Get Workspaces from a Team endpoint</strong>).</p>\n</li>\n<li><p><code>page_number</code> to paginate results. Default/start value is <code>1</code>.</p>\n</li>\n<li><p><code>page_size</code> to set a maximum page size. Default/max value is <code>100</code>.</p>\n</li>\n<li><p><code>order_by</code> and <code>direction</code> to specify the column to be used in the sorting logic, and direction (either <code>asc</code> or <code>desc</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","audit","teams","{{TeamSlug}}","logs","downloads"],"host":["api","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7f8e9bb-473f-40fe-b46c-7487595e2c31"}],"id":"734eab62-92dd-4f43-b0ad-841376ec00bc","description":"<p>APIs to retrieve Audit Logs.</p>\n<p>Note that these APIs require <strong>Team Admin</strong> permission.</p>\n","_postman_id":"734eab62-92dd-4f43-b0ad-841376ec00bc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}}],"id":"d50afb5c-85fd-4251-be6e-c69e8a41c079","description":"<p>Use Preset Manager APIs to manage your Team, Workspaces, Embedded configurations and also Permissions.</p>\n","_postman_id":"d50afb5c-85fd-4251-be6e-c69e8a41c079","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Superset APIs (Open Source)","item":[{"name":"Alerts & Reports","item":[{"name":"Get all Alerts and Reports from a Workspace","id":"a98af76a-0b62-405c-8855-86a91f1f1440","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/","description":"<p>Gets all Alerts &amp; Reports created on the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"a98af76a-0b62-405c-8855-86a91f1f1440"},{"name":"Get all Alerts from a Workspace","id":"057e67c5-29fd-4a41-a095-2394770da9a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/?q=(filters:!((col:type,opr:eq,value:Alert)),page_size:100,page:0)","description":"<p>Gets all Alerts created on the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that the response includes a <code>count</code> value, indicating the total count of Alerts. 100 alerts would be included on the response - if <code>count &gt; 100</code>, you can access the remaining items by increasing the <code>page</code> value on the <code>q</code> parameter:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(filters:!((col:type,opr:eq,value:Alert)),page_size:{{PageSize}},page:{{Page}})\n\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Used to filter results to include only <code>Alerts</code>.\nPagination and page size  are also controlled by this parameter (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(filters:!((col:type,opr:eq,value:Alert)),page_size:100,page:0)"}],"variable":[]}},"response":[],"_postman_id":"057e67c5-29fd-4a41-a095-2394770da9a5"},{"name":"Get all Reports from a Workspace","id":"3b9e984a-aa1c-49f9-b711-a4aca7cc27b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/?q=(filters:!((col:type,opr:eq,value:Report)),page_size:100,page:0)","description":"<p>Gets all Reports created on the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that the response includes a <code>count</code> value, indicating the total count of Alerts. 100 alerts would be included on the response - if <code>count &gt; 100</code>, you can access the remaining items by increasing the <code>page</code> value on the <code>q</code> parameter:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(filters:!((col:type,opr:eq,value:Report)),page_size:{{PageSize}},page:{{Page}})\n\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Used to filter results to include only <code>Reports</code>.\nPagination and page size  are also controlled by this parameter (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(filters:!((col:type,opr:eq,value:Report)),page_size:100,page:0)"}],"variable":[]}},"response":[],"_postman_id":"3b9e984a-aa1c-49f9-b711-a4aca7cc27b0"},{"name":"Get an Alert/Report","id":"e41acd11-1946-4793-8295-ed8ce0a99069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/{{AlertID OR ReportID}}","description":"<p>Gets a specific Alert/Report from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AlertID OR ReportID}}</code> with the <code>id</code> retrieved from one of the endpoints below:</p>\n<ul>\n<li><p><strong>Get all Alerts and Reports from a Workspace</strong></p>\n</li>\n<li><p><strong>Get all Alerts from a Workspace</strong></p>\n</li>\n<li><p><strong>Get all Reports from a Workspace</strong></p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report","{{AlertID OR ReportID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e41acd11-1946-4793-8295-ed8ce0a99069"},{"name":"Get Alerts & Reports API metadata Info","id":"34235147-6681-4e2e-b2f5-c15b9411ddbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/_info","description":"<p>Gets metadata information about the Alerts &amp; Reports API endpoints.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report","_info"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"34235147-6681-4e2e-b2f5-c15b9411ddbe"},{"name":"Get all Slack Channel IDs","id":"62db82f7-c698-4159-83eb-cdb3c3741ac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/slack_channels/","description":"<p>Gets all Slack Channel IDs from the connected Slack Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report","slack_channels",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"62db82f7-c698-4159-83eb-cdb3c3741ac2"},{"name":"Create a Chart Report","id":"66e308a3-86bf-4661-9a22-44945ac0c3b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"active\": {{ActiveBooleanFlag}},\n    \"creation_method\": \"alerts_reports\",\n    \"type\": \"Report\",\n    \"name\": \"{{ReportName}}\",\n    \"chart\": {{ChartID}},\n    \"description\": \"{{ReportDescription}}\",\n    \"crontab\": \"{{CRONSchedule}}\",\n    \"timezone\": \"{{Timezone}}\",\n    \"force_screenshot\": {{ForceBooleanFlag}},\n    \"report_format\": \"{{ReportFormat}}\",\n    \"owners\": [\n        {{OwnerID}}\n    ],\n    \"recipients\": [\n        {\n            \"type\": \"{{ReportType}}\",\n            \"recipient_config_json\": {\n                \"target\": \"{{TargetInfo}}\"\n            }\n        }\n    ],\n    \"custom_width\": {{CustomWidth}},\n    \"log_retention\": {{LogRetention}},\n    \"working_timeout\": {{WorkingTimeout}},\n    \"grace_period\": {{GracePeriod}}\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/","description":"<p>Creates a Chart Report on the Workspace through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{ActiveBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to create it enabled.</p>\n</li>\n<li><p><strong>false</strong> to create it disabled.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{ReportName}}</code> with a name for your report.</p>\n</li>\n<li><p><code>{{ChartID}}</code> with the <code>id</code> of the desired Chart, retrieved using the <strong>Get all Charts from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{ReportDescription}}</code> with a description for it.</p>\n</li>\n<li><p><code>{{CRONSchedule}}</code> with the desired frequency (in <a href=\"https://en.wikipedia.org/wiki/Cron\">cron</a>).</p>\n</li>\n<li><p><code>{{Timezone}}</code> with the desired timezone. The list of valid options can be retrieved using the <strong>Get Alerts &amp; Reports API metadata Info</strong> endpoint.</p>\n</li>\n<li><p><code>{{ForceBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to ignore cache.</p>\n</li>\n<li><p><strong>false</strong> to use cache if available.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{ReportFormat}}</code> with either <code>CSV</code>, <code>PNG</code>, or <code>TEXT</code> (<code>TEXT</code> can only be used with Table Charts).</p>\n</li>\n<li><p>For the <code>owners</code> field:</p>\n<ul>\n<li><p>Replace <code>{{OwnerID}}</code> with the owner's account ID on the Workspace level (you can retrieve this ID using the <strong>Get all possible Chart Owners</strong> endpoint).</p>\n</li>\n<li><p>This field is an array, so multiple owners can be added, separated by comma.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>recipients</code> field:</p>\n<ul>\n<li><p>Replace <code>{{ReportType}}</code> with <code>Email</code> or <code>SlackV2</code>.</p>\n</li>\n<li><p><code>{{TargetInfo}}</code> with the email address/Slack channel ID.</p>\n</li>\n<li><p>This field is an array, so multiple recipient configuration can be added (comma separated).</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{CustomWidth}}</code> <em>(optional)</em> can be used to set the screenshot width in pixels.</p>\n</li>\n<li><p><code>{{LogRetention}}</code> with the retention period (in days). Default and max value is <code>90</code><em>.</em></p>\n</li>\n<li><p><code>{{WorkingTimeout}}</code> with time out settings (in seconds). Default value is <code>3600</code>.</p>\n</li>\n<li><p><code>{{GracePeriod}}</code> with a grace period (in seconds). Default value is <code>14400</code>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"66e308a3-86bf-4661-9a22-44945ac0c3b3"},{"name":"Create a Dashboard Report","id":"c2443feb-84c4-46cc-9918-401f56f9686c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"active\": {{ActiveBooleanFlag}},\n    \"creation_method\": \"alerts_reports\",\n    \"type\": \"Report\",\n    \"name\": \"{{ReportName}}\",\n    \"dashboard\": {{DashboardID}},\n    \"description\": \"{{ReportDescription}}\",\n    \"crontab\": \"{{CRONSchedule}}\",\n    \"timezone\": \"{{Timezone}}\",\n    \"force_screenshot\": {{ForceBooleanFlag}},\n    \"report_format\": \"PNG\",\n    \"owners\": [\n        {{OwnerID}}\n    ],\n    \"recipients\": [\n        {\n            \"type\": \"{{ReportType}}\",\n            \"recipient_config_json\": {\n                \"target\": \"{{TargetInfo}}\"\n            }\n        }\n    ],\n    \"custom_width\": {{CustomWidth}},\n    \"log_retention\": {{LogRetention}},\n    \"working_timeout\": {{WorkingTimeout}},\n    \"grace_period\": {{GracePeriod}}\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/","description":"<p>Creates a Dashboard Report on the Workspace through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{ActiveBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to create it enabled.</p>\n</li>\n<li><p><strong>false</strong> to create it disabled.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{ReportName}}</code> with a name for your report.</p>\n</li>\n<li><p><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard, retrieved using the <strong>Get all Dashboards from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{ReportDescription}}</code> with a description for it.</p>\n</li>\n<li><p><code>{{CRONSchedule}}</code> with the desired frequency (in <a href=\"https://en.wikipedia.org/wiki/Cron\">cron</a>).</p>\n</li>\n<li><p><code>{{Timezone}}</code> with the desired timezone. The list of valid options can be retrieved using the <strong>Get Alerts &amp; Reports API metadata Info</strong> endpoint.</p>\n</li>\n<li><p><code>{{ForceBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to ignore cache.</p>\n</li>\n<li><p><strong>false</strong> to use cache if available.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>owners</code> field:</p>\n<ul>\n<li><p>Replace <code>{{OwnerID}}</code> with the owner's account ID on the Workspace level (you can retrieve this ID using the <strong>Get all possible Chart Owners</strong> endpoint).</p>\n</li>\n<li><p>This field is an array, so multiple owners can be added, separated by comma.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>recipients</code> field:</p>\n<ul>\n<li><p>Replace <code>{{ReportType}}</code> with <code>Email</code> or <code>SlackV2</code>.</p>\n</li>\n<li><p><code>{{TargetInfo}}</code> with the email address/Slack channel ID.</p>\n</li>\n<li><p>This field is an array, so multiple recipient configuration can be added (comma separated).</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{CustomWidth}}</code> <em>(optional)</em> can be used to set the screenshot width in pixels.</p>\n</li>\n<li><p><code>{{LogRetention}}</code> with the retention period (in days). Default and max value is <code>90</code><em>.</em></p>\n</li>\n<li><p><code>{{WorkingTimeout}}</code> with time out settings (in seconds). Default value is <code>3600</code>.</p>\n</li>\n<li><p><code>{{GracePeriod}}</code> with a grace period (in seconds). Default value is <code>14400</code>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2443feb-84c4-46cc-9918-401f56f9686c"},{"name":"Create a Chart Alert","id":"9e52a906-6faa-4dae-b32d-bc669edca7d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"active\": {{ActiveBooleanFlag}},\n    \"creation_method\": \"alerts_reports\",\n    \"type\": \"Alert\",\n    \"name\": \"{{AlertName}}\",\n    \"chart\": {{ChartID}},\n    \"description\": \"{{AlertDescription}}\",\n    \"crontab\": \"{{CRONSchedule}}\",\n    \"timezone\": \"{{Timezone}}\",\n    \"force_screenshot\": {{ForceBooleanFlag}},\n    \"report_format\": \"{{AlertFormat}}\",\n    \"database\": {{DatabaseID}},\n    \"sql\": {{SQLCondition}},\n    \"validator_type\": \"{{ValidatorType}}\",\n    \"validator_config_json\": {\n        \"op\": \"{{Operator}}\",\n        \"threshold\": \"{{Threshold}}\"\n    },\n    \"owners\": [\n        {{OwnerID}}\n    ],\n    \"recipients\": [\n        {\n            \"type\": \"{{AlertType}}\",\n            \"recipient_config_json\": {\n                \"target\": \"{{TargetInfo}}\"\n            }\n        }\n    ],\n    \"custom_width\": {{CustomWidth}},\n    \"log_retention\": {{LogRetention}},\n    \"working_timeout\": {{WorkingTimeout}},\n    \"grace_period\": {{GracePeriod}}\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/","description":"<p>Creates a Chart Alert on the Workspace through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{ActiveBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to create it enabled.</p>\n</li>\n<li><p><strong>false</strong> to create it disabled.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{AlertName}}</code> with a name for your alert.</p>\n</li>\n<li><p><code>{{ChartID}}</code> with the <code>id</code> of the desired Chart, retrieved using the <strong>Get all Charts from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AlertDescription}}</code> with a description for it.</p>\n</li>\n<li><p><code>{{CRONSchedule}}</code> with the desired frequency (in <a href=\"https://en.wikipedia.org/wiki/Cron\">cron</a>).</p>\n</li>\n<li><p><code>{{Timezone}}</code> with the desired timezone. The list of valid options can be retrieved using the <strong>Get Alerts &amp; Reports API metadata Info</strong> endpoint.</p>\n</li>\n<li><p><code>{{ForceBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to ignore cache.</p>\n</li>\n<li><p><strong>false</strong> to use cache if available.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{AlertFormat}}</code> with either <code>CSV</code>, <code>PNG</code>, or <code>TEXT</code> (<code>TEXT</code> can only be used with Table Charts).</p>\n</li>\n<li><p><code>{{DatabaseID}}</code> with the <code>id</code> of the database that should be used to execute the SQL validation. You can retrieve this <code>id</code> using the <strong>Get all Database Connections from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{SQLCondition}}</code> with the SQL query that should be validated by the alert. <strong>Note that the SQL query should return only one column</strong>, for example <code>select count(\\\\\\\\\\\\\\\\\\*) from {{MyTable}}</code>.</p>\n</li>\n<li><p><code>{{ValidatorType}}</code> with:</p>\n<ul>\n<li><p><code>operator</code> when performing number comparisson.</p>\n</li>\n<li><p><code>not null</code> to check if the SQL result is not null. When using <code>not null</code>, the <code>validator_config_json</code> should be empty:</p>\n</li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"validator_type\": \"not null\",\n\"validator_config_json\": {}\n\n</code></pre>\n<ul>\n<li><p><code>{{Operator}}</code> with the operation that should be used to analyze the SQL result. Available options:</p>\n<ul>\n<li><p><code>==</code> to check if SQL result is equal the threshold value.</p>\n</li>\n<li><p><code>&lt;</code> to check if the SQL result is smaller than the t</p>\n</li>\n<li><p>the threshold value.</p>\n</li>\n<li><p><code>&gt;</code> to check if the SQL result is larger than the the threshold value.</p>\n</li>\n<li><p><code>&lt;=</code> to check if the SQL result is not larger than the the threshold value.</p>\n</li>\n<li><p><code>&gt;=</code> to check if the SQL result is not smaller than the the threshold value.</p>\n</li>\n<li><p><code>!=</code> to check if the SQL result is different than the threshold value.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{Threshold}}</code> with the condition value.</p>\n</li>\n<li><p>For the <code>owners</code> field:</p>\n<ul>\n<li><p>Replace <code>{{OwnerID}}</code> with the owner's account ID on the Workspace level (you can retrieve this ID using the <strong>Get all possible Chart Owners</strong> endpoint).</p>\n</li>\n<li><p>This field is an array, so multiple owners can be added, separated by comma.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>recipients</code> field:</p>\n<ul>\n<li><p>Replace <code>{{AlertType}}</code> with <code>Email</code> or <code>SlackV2</code>.</p>\n</li>\n<li><p><code>{{TargetInfo}}</code> with the email address/Slack channel ID.</p>\n</li>\n<li><p>This field is an array, so multiple recipient configuration can be added (comma separated).</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{CustomWidth}}</code> <em>(optional)</em> can be used to set the screenshot width in pixels.</p>\n</li>\n<li><p><code>{{LogRetention}}</code> with the retention period (in days). Default and max value is <code>90</code><em>.</em></p>\n</li>\n<li><p><code>{{WorkingTimeout}}</code> with time out settings (in seconds). Default value is <code>3600</code>.</p>\n</li>\n<li><p><code>{{GracePeriod}}</code> with a grace period (in seconds). Default value is <code>14400</code>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e52a906-6faa-4dae-b32d-bc669edca7d4"},{"name":"Create a Dashboard Alert","id":"b705e209-c309-4bc5-8030-34471860c553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"active\": {{ActiveBooleanFlag}},\n    \"creation_method\": \"alerts_reports\",\n    \"type\": \"Alert\",\n    \"name\": \"{{AlertName}}\",\n    \"dashboard\": {{DashboardID}},\n    \"description\": \"{{AlertDescription}}\",\n    \"crontab\": \"{{CRONSchedule}}\",\n    \"timezone\": \"{{Timezone}}\",\n    \"force_screenshot\": {{ForceBooleanFlag}},\n    \"report_format\": \"PNG\",\n    \"database\": {{DatabaseID}},\n    \"sql\": {{SQLCondition}},\n    \"validator_type\": \"{{ValidatorType}}\",\n    \"validator_config_json\": {\n        \"op\": \"{{Operator}}\",\n        \"threshold\": \"{{Threshold}}\"\n    },\n    \"owners\": [\n        {{OwnerID}}\n    ],\n    \"recipients\": [\n        {\n            \"type\": \"{{AlertType}}\",\n            \"recipient_config_json\": {\n                \"target\": \"{{TargetInfo}}\"\n            }\n        }\n    ],\n    \"custom_width\": {{CustomWidth}},\n    \"log_retention\": {{LogRetention}},\n    \"working_timeout\": {{WorkingTimeout}},\n    \"grace_period\": {{GracePeriod}}\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/","description":"<p>Creates a Dashboard Alert on the Workspace through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{ActiveBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to create it enabled.</p>\n</li>\n<li><p><strong>false</strong> to create it disabled.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{AlertName}}</code> with a name for your alert.</p>\n</li>\n<li><p><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard, retrieved using the <strong>Get all Dashboards from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AlertDescription}}</code> with a description for it.</p>\n</li>\n<li><p><code>{{CRONSchedule}}</code> with the desired frequency (in <a href=\"https://en.wikipedia.org/wiki/Cron\">cron</a>).</p>\n</li>\n<li><p><code>{{Timezone}}</code> with the desired timezone. The list of valid options can be retrieved using the <strong>Get Alerts &amp; Reports API metadata Info</strong> endpoint.</p>\n</li>\n<li><p><code>{{ForceBooleanFlag}}</code> with:</p>\n<ul>\n<li><p><strong>true</strong> to ignore cache.</p>\n</li>\n<li><p><strong>false</strong> to use cache if available.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{DatabaseID}}</code> with the <code>id</code> of the database that should be used to execute the SQL validation. You can retrieve this <code>id</code> using the <strong>Get all Database Connections from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{SQLCondition}}</code> with the SQL query that should be validated by the alert. <strong>Note that the SQL query should return only one column</strong>, for example <code>select count(\\\\\\\\\\\\\\\\\\\\*) from {{MyTable}}</code>.</p>\n</li>\n<li><p><code>{{ValidatorType}}</code> with:</p>\n<ul>\n<li><p><code>operator</code> when performing number comparisson.</p>\n</li>\n<li><p><code>not null</code> to check if the SQL result is not null. When using <code>not null</code>, the <code>validator_config_json</code> should be empty:</p>\n</li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"validator_type\": \"not null\",\n\"validator_config_json\": {}\n\n</code></pre>\n<ul>\n<li><p><code>{{Operator}}</code> with the operation that should be used to analyze the SQL result. Available options:</p>\n<ul>\n<li><p><code>==</code> to check if SQL result is equal the threshold value.</p>\n</li>\n<li><p><code>&lt;</code> to check if the SQL result is smaller than the t</p>\n</li>\n<li><p>the threshold value.</p>\n</li>\n<li><p><code>&gt;</code> to check if the SQL result is larger than the the threshold value.</p>\n</li>\n<li><p><code>&lt;=</code> to check if the SQL result is not larger than the the threshold value.</p>\n</li>\n<li><p><code>&gt;=</code> to check if the SQL result is not smaller than the the threshold value.</p>\n</li>\n<li><p><code>!=</code> to check if the SQL result is different than the threshold value.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{Threshold}}</code> with the condition value.</p>\n</li>\n<li><p>For the <code>owners</code> field:</p>\n<ul>\n<li><p>Replace <code>{{OwnerID}}</code> with the owner's account ID on the Workspace level (you can retrieve this ID using the <strong>Get all possible Chart Owners</strong> endpoint).</p>\n</li>\n<li><p>This field is an array, so multiple owners can be added, separated by comma.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>recipients</code> field:</p>\n<ul>\n<li><p>Replace <code>{{AlertType}}</code> with <code>Email</code> or <code>SlackV2</code>.</p>\n</li>\n<li><p><code>{{TargetInfo}}</code> with the email address/Slack channel ID.</p>\n</li>\n<li><p>This field is an array, so multiple recipient configuration can be added (comma separated).</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{CustomWidth}}</code> <em>(optional)</em> can be used to set the screenshot width in pixels.</p>\n</li>\n<li><p><code>{{LogRetention}}</code> with the retention period (in days). Default and max value is <code>90</code><em>.</em></p>\n</li>\n<li><p><code>{{WorkingTimeout}}</code> with time out settings (in seconds). Default value is <code>3600</code>.</p>\n</li>\n<li><p><code>{{GracePeriod}}</code> with a grace period (in seconds). Default value is <code>14400</code>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"b705e209-c309-4bc5-8030-34471860c553"},{"name":"Update an Alert/Report","id":"9db51c44-7790-4b63-9702-6f35ec769ebf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    //common fields:\n    \"active\": {{ActiveBooleanFlag}},\n    \"creation_method\": \"{{Method}}\", //either `chart`, `dashboard` or `alerts_reports`\n    \"crontab\": \"{{CRONSchedule}}\",\n    \"custom_width\": {{CustomWidth}},\n    \"description\": \"{{Description}}\",\n    \"force_screenshot\": {{ForceBooleanFlag}},\n    \"grace_period\": {{GracePeriod}},\n    \"log_retention\": {{LogRetention}},\n    \"name\": \"{{Name}}\",\n    \"owners\": [\n        {{OwnerID}}\n    ],\n    \"recipients\": [\n        {\n            \"type\": \"{{Type}}\",\n            \"recipient_config_json\": {\n                \"target\": \"{{TargetInfo}}\"\n            }\n        }\n    ],\n    \"report_format\": \"{{Format}}\",\n    \"timezone\": \"{{Timezone}}\",\n    \"working_timeout\": {{WorkingTimeout}},\n    \"type\": \"{{Type}}\", // either `Alert` or `Report`\n\n    //include either the `chart` or `dashboard` configuration\n    \"chart\": {{ChartID}}, //when configured to send a chart\n    \"dashboard\": {{DashboardID}}, //when configured to send a dashboard\n    \n    //alert-specific fields:\n    \"database\": {{DatabaseID}},\n    \"sql\": {{SQLCondition}},\n    \"validator_type\": \"{{ValidatorType}}\",\n    \"validator_config_json\": {\n        \"op\": \"{{Operator}}\",\n        \"threshold\": \"{{Threshold}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/{{AlertID OR ReportID}}","description":"<p>Updates an specific Alert/Report from the Workspace.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{AlertID OR ReportID}}</code> with the <code>id</code> retrieved from one of the endpoints below:<ul>\n<li><strong>Get all Alerts and Reports from a Workspace</strong></li>\n<li><strong>Get all Alerts from a Workspace</strong></li>\n<li><strong>Get all Reports from a Workspace</strong></li>\n</ul>\n</li>\n</ul>\n<p>Update the body accordingly, keeping only the fields that should be updated. Refer to the <strong>Create a Chart Report</strong>, <strong>Create a Dashboard Report</strong>, <strong>Create a Chart Alert</strong> and <strong>Create a Dashboard Alert</strong> endpoints documentation for further details on how to configure each field.</p>\n<p>Some examples:</p>\n<ul>\n<li>To enable an alert/report, include only <code>active</code> in the payload set to <code>true</code> (to enable it) or <code>false</code> (to disable it).</li>\n<li>To update the alert/report schedule, include only the <code>crontab</code> in the payload with the new CRON schedule configuration string.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report","{{AlertID OR ReportID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"9db51c44-7790-4b63-9702-6f35ec769ebf"},{"name":"Delete an Alert/Report","id":"0dc56517-40e1-488a-9886-4a471ab9717f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/report/{{AlertID OR ReportID}}","description":"<p>Deletes an Alert/Report from the Workspace.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AlertID OR ReportID}}</code> with the <code>id</code> retrieved from one of the endpoints below:</p>\n<ul>\n<li><p><strong>Get all Alerts and Reports from a Workspace</strong></p>\n</li>\n<li><p><strong>Get all Alerts from a Workspace</strong></p>\n</li>\n<li><p><strong>Get all Reports from a Workspace</strong></p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","report","{{AlertID OR ReportID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"0dc56517-40e1-488a-9886-4a471ab9717f"}],"id":"da0097a4-3a74-4c6b-bfb8-4c398b405754","description":"<p>APIs to manage your Alerts &amp; Reports.</p>\n","_postman_id":"da0097a4-3a74-4c6b-bfb8-4c398b405754","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Annotation Layers","item":[{"name":"Get all Annotation Layers from a Workspace","id":"28db89e9-9246-400d-8a5a-90c56b6a58ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/","description":"<p>Gets all Annotation Layers from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"28db89e9-9246-400d-8a5a-90c56b6a58ee"},{"name":"Get an Annotation Layer","id":"64fa7cb9-999c-44fb-b92e-b0211c1b3a1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}","description":"<p>Gets a specific Annotation Layer from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"64fa7cb9-999c-44fb-b92e-b0211c1b3a1e"},{"name":"Get all Annotations from an Annotation Layer","id":"f2216349-ea9e-4313-a75b-18a4343f3634","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}/annotation","description":"<p>Gets all Annotations from a specific Annotation Layer.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get All Annotation Layers from a Workspace</strong> endpoint.</li>\n</ul>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}","annotation"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"f2216349-ea9e-4313-a75b-18a4343f3634"},{"name":"Get an Annotation from an Annotation Layer","id":"886fffc4-5489-4f69-bc83-1627cc5912dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}/annotation/{{AnnotationID}}","description":"<p>Deletes an Annotation Layer through the API.</p>\n<p><strong>Note:</strong> You can only delete an Annotation Layer, after deleting <strong>all its Annotations</strong>.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AnnotationID}}</code> with the Annotation <code>id</code> retrieved from the <strong>Get all Annotations from an Annotation Layer</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"path":["api","v1","annotation_layer","{{AnnotationLayerID}}","annotation","{{AnnotationID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"886fffc4-5489-4f69-bc83-1627cc5912dd"},{"name":"Create an Annotation Layer","id":"b8ccaba7-3565-425a-a44f-04c85bead830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"descr\": \"{{AnnotationLayerDescription}}\",\n    \"name\": \"{{AnnotationLayerName}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/","description":"<p>Creates an Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{AnnotationLayerDescription}}</code> with a description for the Annotation Layer.</p>\n</li>\n<li><p><code>{{AnnotationLayerName}}</code> with the desired new name.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8ccaba7-3565-425a-a44f-04c85bead830"},{"name":"Create an Annotation in an Annotation Layer","id":"9884a177-a1d5-48c6-bd40-5cb35d28dc28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"end_dttm\": \"{{AnnotationEndDTTM}}\",\n  \"json_metadata\": \"\",\n  \"long_descr\": \"{{AnnotationLongDescription}}\",\n  \"short_descr\": \"{{AnnotationShortDescription}}\",\n  \"start_dttm\": \"{{AnnotationStartDTTM}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}/annotation","description":"<p>Creates an Annotation on an existing Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{AnnotationEndDTTM}}</code> with the annotation's datetime end (<code>YYYY-MM-DD HH:MM</code>).</p>\n</li>\n<li><p><code>{{AnnotationLongDescription}}</code> with the annotation's description.</p>\n</li>\n<li><p><code>{{AnnotationShortDescription}}</code> with a name for it.</p>\n</li>\n<li><p><code>{{AnnotationStartDTTM}}</code> with the annotation's datetime start (<code>YYYY-MM-DD HH:MM</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}","annotation"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"9884a177-a1d5-48c6-bd40-5cb35d28dc28"},{"name":"Update an Annotation Layer","id":"4c0d5d21-d3bf-4938-9fc7-471611924c12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"descr\": \"{{AnnotationLayerDescription}}\",\n    \"name\": \"{{AnnotationLayerName}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}","description":"<p>Updates an Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{AnnotationLayerDescription}}</code> with a description for the Annotation Layer.</p>\n</li>\n<li><p><code>{{AnnotationLayerName}}</code> with the desired new name.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c0d5d21-d3bf-4938-9fc7-471611924c12"},{"name":"Update an Annotation from an Annotation Layer","id":"e238138c-7f97-495a-8d98-470e33ae0c1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"end_dttm\": \"{{AnnotationEndDTTM}}\",\n  \"json_metadata\": \"\",\n  \"long_descr\": \"{{AnnotationLongDescription}}\",\n  \"short_descr\": \"{{AnnotationShortDescription}}\",\n  \"start_dttm\": \"{{AnnotationStartDTTM}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}/annotation/{{AnnotationID}}","description":"<p>Updates an Annotation from an Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{AnnotationEndDTTM}}</code> with the annotation's datetime end (<code>YYYY-MM-DD HH:MM</code>).</p>\n</li>\n<li><p><code>{{AnnotationLongDescription}}</code> with the annotation's description.</p>\n</li>\n<li><p><code>{{AnnotationShortDescription}}</code> with a name for it.</p>\n</li>\n<li><p><code>{{AnnotationStartDTTM}}</code> with the annotation's datetime start (<code>YYYY-MM-DD HH:MM</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}","annotation","{{AnnotationID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e238138c-7f97-495a-8d98-470e33ae0c1a"},{"name":"Delete an Annotation from an Annotation Layer","id":"852bbeff-98c3-4c6a-afba-c20c231f19b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}/annotation/{{AnnotationID}}","description":"<p>Deletes an Annotation from an Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AnnotationID}}</code> with the Annotation <code>id</code> retrieved from the <strong>Get all Annotations from an Annotation Layer</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}","annotation","{{AnnotationID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"852bbeff-98c3-4c6a-afba-c20c231f19b7"},{"name":"Delete multiple Annotations from an Annotation Layer","id":"aabf1763-0432-4717-b689-5539170ac9fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}/annotation/?q=!({{AnnotationIDs}})","description":"<p>Deletes multiple Annotations from an Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AnnotationIDs}</code> with comma separated Annotation <code>ids</code> retrieved from the <strong>Get all Annotations from an Annotation Layer</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}","annotation",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Comma separated list of Annotation IDs.</p>\n","type":"text/plain"},"key":"q","value":"!({{AnnotationIDs}})"}],"variable":[]}},"response":[],"_postman_id":"aabf1763-0432-4717-b689-5539170ac9fa"},{"name":"Delete an Annotation Layer","id":"fa945412-3450-4b14-a6ea-6825721e68f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/{{AnnotationLayerID}}","description":"<p>Deletes an Annotation Layer through the API.</p>\n<p><strong>Note:</strong> You can only delete an Annotation Layer, after deleting <strong>all its Annotations</strong>.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer","{{AnnotationLayerID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa945412-3450-4b14-a6ea-6825721e68f9"},{"name":"Delete multiple Annotations Layers","id":"8a2d28b6-de25-4e5f-b35c-bb79ded00672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/annotation_layer/?q=!({{AnnotationLayerIDs}})","description":"<p>Deletes multiple Annotations from an Annotation Layer through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><p><code>{{AnnotationLayerID}}</code> with the Annotation Layer <code>id</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{AnnotationLayerIDs}</code> with comma separated Annotation Layer <code>ids</code> retrieved from the <strong>Get all Annotation Layers from a Workspace</strong> endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","annotation_layer",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Comma separated list of Annotation Layer IDs.</p>\n","type":"text/plain"},"key":"q","value":"!({{AnnotationLayerIDs}})"}],"variable":[]}},"response":[],"_postman_id":"8a2d28b6-de25-4e5f-b35c-bb79ded00672"}],"id":"a40b2025-0356-4e0d-80b2-bef5129c7542","description":"<p>API to manage your Annotation Layers.</p>\n","_postman_id":"a40b2025-0356-4e0d-80b2-bef5129c7542","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Assets","item":[{"name":"Export Assets","id":"9d360d4d-e009-4044-989c-9ee41eceedaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/zip","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/assets/export/","description":"<p>Generates and export a ZIP file from the Workspace containing all:</p>\n<ul>\n<li>Databases</li>\n<li>Datasets</li>\n<li>Charts</li>\n<li>Dashboards</li>\n<li>Saved Queries</li>\n</ul>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p><em><strong>Tip:</strong></em> If used in Postman, select <code>Save Response</code> and <code>Save to a File</code> to get the zip export.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","assets","export",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d360d4d-e009-4044-989c-9ee41eceedaf"},{"name":"Import Assets","id":"5322da7f-11de-4358-aae4-f1c5ca563148","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"multipart/form-data;","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bundle","type":"file","value":null},{"key":"passwords","value":"{\"databases/{{DatabaseYAMLFile}}\": \"{{DatabasePassword}}\"}","type":"text"}]},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/assets/import/","description":"<p>Imports an <code>assets</code> ZIP file.</p>\n<p>Replace in the URL and in the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{DatabaseYAMLFile}}</code> by the database YAML File you can find in your chart export under the folder <code>Databases</code>.</p>\n</li>\n<li><p><code>{{DatabasePassword}}</code> by your database password</p>\n</li>\n<li><p>Chose your Chart Export Zip file as a value for the <code>formData</code>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","assets","import",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"5322da7f-11de-4358-aae4-f1c5ca563148"}],"id":"87780980-04d8-4775-a4ed-2cb5410dd307","description":"<p>APIs to export/import an <code>assets</code> ZIP file from the Workspace, which includes all:</p>\n<ul>\n<li>databases.</li>\n<li>datasets.</li>\n<li>charts.</li>\n<li>saved queries.</li>\n</ul>\n","_postman_id":"87780980-04d8-4775-a4ed-2cb5410dd307","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Charts","item":[{"name":"Get all Charts from a Workspace","id":"8160eb8e-d278-447a-9edc-7f0b3491052d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/","description":"<p>Gets all Charts from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"8160eb8e-d278-447a-9edc-7f0b3491052d"},{"name":"Get a Chart","id":"7c1a023a-0947-40b7-8ef5-4a1b4a15a85f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/{{ChartID}}","description":"<p>Gets a specific Chart from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartID}}</code> with the chart <code>id</code> retrieved from the<br />  <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","{{ChartID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c1a023a-0947-40b7-8ef5-4a1b4a15a85f"},{"name":"Get Chart's Data","id":"bcd4faf6-4107-45f3-9667-84f74c139f43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/{{ChartID}}/data","description":"<p>Gets Chart's data from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartID}}</code> with the chart <code>id</code> retrieved from the <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","{{ChartID}}","data"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcd4faf6-4107-45f3-9667-84f74c139f43"},{"name":"Get all possible Chart Owners","id":"24da5a04-8cd4-441f-beb6-43bc29a9a978","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/related/owners","description":"<p>Gets all possible Chart owners on the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","related","owners"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"24da5a04-8cd4-441f-beb6-43bc29a9a978"},{"name":"Generate a Chart Screenshot","id":"00765aca-a0c9-410f-8b5c-74eafac325f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/{{ChartID}}/cache_screenshot/","description":"<p>Generates a chart screenshot.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartID}}</code> with the <code>id</code> retrieved from the <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n<p>A <code>force</code> query parameter can be used to force refresh the data before taking the screenshot.</p>\n<p>The screenshot generation is processed in async mode. The API response includes a <code>task_status</code> and a <code>task_updated_at</code> timestamp that can be used to track progress, along with the <code>image_url</code> that can be used to download the file. Possible <code>task_status</code> values:</p>\n<ul>\n<li><p><code>Pending</code>: screenshot is awaiting to be processed.</p>\n</li>\n<li><p><code>Computing</code>: screenshot job has been picked up by the Celery worker and is being processed.</p>\n</li>\n<li><p><code>Updated</code>: screenshot has been processed and is available at the <code>image_url</code>.</p>\n</li>\n<li><p><code>Error</code>: an error occurred while processing the task.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","{{ChartID}}","cache_screenshot",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional) Refresh the screenshot (Bypass cache)</em></p>\n","type":"text/plain"},"key":"q","value":"(force:!t)"}],"variable":[]}},"response":[],"_postman_id":"00765aca-a0c9-410f-8b5c-74eafac325f5"},{"name":"Export Charts","id":"79610421-0808-4e7d-9471-080f3799b419","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"default"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/zip","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/export/?q=!({{ChartIDs}})","description":"<p>Exports Charts.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartIDs}</code> with comma separated chart <code>ids</code> retrieved from the <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n<p><em><strong>Tip:</strong></em> If used in Postman, select <code>Save Response</code> and <code>Save to a File</code> to get the zip export.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","export",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Comma separated list of Chart IDs.</p>\n","type":"text/plain"},"key":"q","value":"!({{ChartIDs}})"}],"variable":[]}},"response":[],"_postman_id":"79610421-0808-4e7d-9471-080f3799b419"},{"name":"Create a Chart","id":"255a2b50-9c33-464d-95a9-5f859a617548","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"cache_timeout\": null,\n        \"certification_details\": null,\n        \"certified_by\": null,\n        \"dashboards\": [8],\n        \"description\": null,\n        \"is_managed_externally\": false,\n        \"owners\": [],\n        \"params\": \"{\\\"adhoc_filters\\\": [], \\\"color_scheme\\\": \\\"supersetColors\\\", \\\"datasource\\\": \\\"21__table\\\", \\\"granularity_sqla\\\": \\\"year\\\", \\\"groupby\\\": [\\\"platform\\\"], \\\"label_colors\\\": {\\\"2600\\\": \\\"#D1C6BC\\\", \\\"3DO\\\": \\\"#A38F79\\\", \\\"3DS\\\": \\\"#B2B2B2\\\", \\\"Action\\\": \\\"#ACE1C4\\\", \\\"Adventure\\\": \\\"#5AC189\\\", \\\"COUNT(*)\\\": \\\"#1FA8C9\\\", \\\"DC\\\": \\\"#666666\\\", \\\"DS\\\": \\\"#E04355\\\", \\\"Fighting\\\": \\\"#D1C6BC\\\", \\\"GB\\\": \\\"#A1A6BD\\\", \\\"GBA\\\": \\\"#A868B7\\\", \\\"GC\\\": \\\"#D3B3DA\\\", \\\"GEN\\\": \\\"#FF7F44\\\", \\\"GG\\\": \\\"#8FD3E4\\\", \\\"Microsoft Game Studios\\\": \\\"#FCC700\\\", \\\"Misc\\\": \\\"#D3B3DA\\\", \\\"N64\\\": \\\"#EFA1AA\\\", \\\"NES\\\": \\\"#FEC0A1\\\", \\\"NG\\\": \\\"#FCC700\\\", \\\"Nintendo\\\": \\\"#666666\\\", \\\"PC\\\": \\\"#8FD3E4\\\", \\\"PCFX\\\": \\\"#A1A6BD\\\", \\\"PS\\\": \\\"#FCC700\\\", \\\"PS2\\\": \\\"#454E7C\\\", \\\"PS3\\\": \\\"#FF7F44\\\", \\\"PS4\\\": \\\"#A38F79\\\", \\\"PSP\\\": \\\"#3CCCCB\\\", \\\"PSV\\\": \\\"#454E7C\\\", \\\"Platform\\\": \\\"#FDE380\\\", \\\"Puzzle\\\": \\\"#454E7C\\\", \\\"Racing\\\": \\\"#9EE5E5\\\", \\\"Role-Playing\\\": \\\"#EFA1AA\\\", \\\"SAT\\\": \\\"#5AC189\\\", \\\"SCD\\\": \\\"#E04355\\\", \\\"SNES\\\": \\\"#FDE380\\\", \\\"Shooter\\\": \\\"#B2B2B2\\\", \\\"Simulation\\\": \\\"#1FA8C9\\\", \\\"Sports\\\": \\\"#FEC0A1\\\", \\\"Strategy\\\": \\\"#FF7F44\\\", \\\"TG16\\\": \\\"#3CCCCB\\\", \\\"Take-Two Interactive\\\": \\\"#E04355\\\", \\\"WS\\\": \\\"#A868B7\\\", \\\"Wii\\\": \\\"#666666\\\", \\\"WiiU\\\": \\\"#1FA8C9\\\", \\\"X360\\\": \\\"#5AC189\\\", \\\"XB\\\": \\\"#ACE1C4\\\", \\\"XOne\\\": \\\"#9EE5E5\\\"}, \\\"metrics\\\": [\\\"count\\\"], \\\"number_format\\\": \\\"SMART_NUMBER\\\", \\\"queryFields\\\": {\\\"groupby\\\": \\\"groupby\\\", \\\"metrics\\\": \\\"metrics\\\"}, \\\"row_limit\\\": 10, \\\"slice_id\\\": 661, \\\"time_range\\\": \\\"No filter\\\", \\\"time_range_endpoints\\\": [\\\"inclusive\\\", \\\"exclusive\\\"], \\\"treemap_ratio\\\": 1.618033988749895, \\\"url_params\\\": {}, \\\"viz_type\\\": \\\"treemap\\\"}\",\n        \"query_context\": null,\n        \"slice_name\": \"Test API Created Chart 2\",\n        \"viz_type\": \"treemap\",\n        \"datasource_id\": 2,\n        \"datasource_type\": \"table\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart","description":"<p>Creates a Chart through the API.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>cache_timeout</code> (optional) by the chart timeout in seconds.</p>\n</li>\n<li><p><code>certification_details</code> (optional) by the details of certification.</p>\n</li>\n<li><p><code>certified_by</code> (optional) by the certifier.</p>\n</li>\n<li><p><code>dashboards</code> by a comma separated list (csl) of dashboard ids the chart should be added to (can be empty).</p>\n</li>\n<li><p><code>description</code> (optional) by your description.</p>\n</li>\n<li><p><code>is_managed_externally</code> by true or false.</p>\n</li>\n<li><p><code>owners</code> by a csl of owner ids.</p>\n</li>\n<li><p><code>params</code> by a string of all parameters need to define your chart. You can get an example of this either by checking the network tab by creating a chart in the UI or by calling the <strong>Get a Chart</strong> endpoint.</p>\n</li>\n<li><p><code>slice_name</code> by the name you want to give to your chart.</p>\n</li>\n<li><p><code>viz_type</code> by the visualization type. You can find this with the <strong>Get a Chart</strong> endpoint for a similar chart.</p>\n</li>\n<li><p><code>datasource_id</code> by the id of the dataset powering your chart.</p>\n</li>\n<li><p><code>datasource_type</code> by the type of the underlying dataset.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"255a2b50-9c33-464d-95a9-5f859a617548"},{"name":"Refresh a Chart","id":"dae775c3-dbb7-4966-a553-daac3ef76abd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"datasource\": {\n        \"id\": \"{{DatasetID}}\",\n        \"type\": \"{{DatasetType}}\"\n    },\n    \"force\": true,\n    \"queries\": [],\n    \"form_data\": {\n        \"datasource\": \"{{DatasetID}}__{{DatasetType}}\",\n        \"viz_type\": \"{{VisualizationType}}\",\n        \"groupby\": [],\n        \"temporal_columns_lookup\": {},\n        \"metrics\": [],\n        \"all_columns\": [],\n        \"percent_metrics\": [],\n        \"adhoc_filters\": [\n            {}\n        ],\n        \"order_by_cols\": [],\n        \"row_limit\": {{RowLimit}},\n        \"order_desc\": true,\n        \"extra_form_data\": {},\n        \"dashboards\": [],\n        \"force\": true,\n        \"result_format\": \"json\",\n        \"result_type\": \"full\"\n    },\n    \"result_format\": \"json\",\n    \"result_type\": \"full\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/data?slice_id={{ChartID}}&force=true ","description":"<p>Refreshes the Chart data.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartID}}</code> with the <code>id</code> retrieved from the <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n<p>The body payload can vary depending on the <strong>visualization type</strong> used and also the <strong>chart configuration</strong>, The easiest way to get the accurate payload is retrieving the <code>query_context</code> data from the <strong>Get a Chart</strong> endpoint, and then set <code>force</code> to <code>true</code> both in the top level and also inside <code>form_data</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","data"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>ID of the Chart to be refreshed.</p>\n","type":"text/plain"},"key":"slice_id","value":"{{ChartID}}"},{"description":{"content":"<p>Flag to force refresh data. </p>\n","type":"text/plain"},"key":"force","value":"true "}],"variable":[]}},"response":[],"_postman_id":"dae775c3-dbb7-4966-a553-daac3ef76abd"},{"name":"Import a Chart","id":"8acb3b9c-ff0d-4342-88a7-1bc665ba0726","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data;","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"formData","type":"file","value":null},{"key":"passwords","value":"{\"databases/{{DatabaseYAMLFile}}\": \"{{DatabasePassword}}\"}","type":"text"},{"key":"overwrite","value":"true","type":"text"}]},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/import/","description":"<p>Imports a Chart via the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>In the body:</p>\n<ul>\n<li><p>Select your Chart ZIP file as a value for the <code>formData</code>.</p>\n</li>\n<li><p>For the <code>passwords</code> field:</p>\n<ul>\n<li><p>If the Database used by the Chart doesn't exist on the destination Workspace yet:</p>\n<ul>\n<li><p>Replace <code>{{DatabaseYAMLFile}}</code> by the database YAML file name. You can find it in your Chart export file, under the <code>databases</code> folder.</p>\n</li>\n<li><p>Replace <code>{{DatabasePassword}}</code> by your DB password.</p>\n</li>\n</ul>\n</li>\n<li><p>If the Database already exists on the destination Workspace, you can remove this field from the body.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>overwrite</code> field:</p>\n<ul>\n<li><p>If the Chart already exists on the destination Workspace, set it as <code>true</code> to overwrite it.</p>\n</li>\n<li><p>If the Chart doesn't exist in there yet, you can remove this field from the body.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","import",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"8acb3b9c-ff0d-4342-88a7-1bc665ba0726"},{"name":"Update a Chart","id":"e073aca4-f568-4c8d-87e6-86c14af64f41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"cache_timeout\": null,\r\n        \"certification_details\": null,\r\n        \"certified_by\": null,\r\n        \"dashboards\": [8],\r\n        \"description\": null,\r\n        \"is_managed_externally\": false,\r\n        \"owners\": [],\r\n        \"params\": \"{\\\"adhoc_filters\\\": [], \\\"color_scheme\\\": \\\"supersetColors\\\", \\\"datasource\\\": \\\"21__table\\\", \\\"granularity_sqla\\\": \\\"year\\\", \\\"groupby\\\": [\\\"platform\\\"], \\\"label_colors\\\": {\\\"2600\\\": \\\"#D1C6BC\\\", \\\"3DO\\\": \\\"#A38F79\\\", \\\"3DS\\\": \\\"#B2B2B2\\\", \\\"Action\\\": \\\"#ACE1C4\\\", \\\"Adventure\\\": \\\"#5AC189\\\", \\\"COUNT(*)\\\": \\\"#1FA8C9\\\", \\\"DC\\\": \\\"#666666\\\", \\\"DS\\\": \\\"#E04355\\\", \\\"Fighting\\\": \\\"#D1C6BC\\\", \\\"GB\\\": \\\"#A1A6BD\\\", \\\"GBA\\\": \\\"#A868B7\\\", \\\"GC\\\": \\\"#D3B3DA\\\", \\\"GEN\\\": \\\"#FF7F44\\\", \\\"GG\\\": \\\"#8FD3E4\\\", \\\"Microsoft Game Studios\\\": \\\"#FCC700\\\", \\\"Misc\\\": \\\"#D3B3DA\\\", \\\"N64\\\": \\\"#EFA1AA\\\", \\\"NES\\\": \\\"#FEC0A1\\\", \\\"NG\\\": \\\"#FCC700\\\", \\\"Nintendo\\\": \\\"#666666\\\", \\\"PC\\\": \\\"#8FD3E4\\\", \\\"PCFX\\\": \\\"#A1A6BD\\\", \\\"PS\\\": \\\"#FCC700\\\", \\\"PS2\\\": \\\"#454E7C\\\", \\\"PS3\\\": \\\"#FF7F44\\\", \\\"PS4\\\": \\\"#A38F79\\\", \\\"PSP\\\": \\\"#3CCCCB\\\", \\\"PSV\\\": \\\"#454E7C\\\", \\\"Platform\\\": \\\"#FDE380\\\", \\\"Puzzle\\\": \\\"#454E7C\\\", \\\"Racing\\\": \\\"#9EE5E5\\\", \\\"Role-Playing\\\": \\\"#EFA1AA\\\", \\\"SAT\\\": \\\"#5AC189\\\", \\\"SCD\\\": \\\"#E04355\\\", \\\"SNES\\\": \\\"#FDE380\\\", \\\"Shooter\\\": \\\"#B2B2B2\\\", \\\"Simulation\\\": \\\"#1FA8C9\\\", \\\"Sports\\\": \\\"#FEC0A1\\\", \\\"Strategy\\\": \\\"#FF7F44\\\", \\\"TG16\\\": \\\"#3CCCCB\\\", \\\"Take-Two Interactive\\\": \\\"#E04355\\\", \\\"WS\\\": \\\"#A868B7\\\", \\\"Wii\\\": \\\"#666666\\\", \\\"WiiU\\\": \\\"#1FA8C9\\\", \\\"X360\\\": \\\"#5AC189\\\", \\\"XB\\\": \\\"#ACE1C4\\\", \\\"XOne\\\": \\\"#9EE5E5\\\"}, \\\"metrics\\\": [\\\"count\\\"], \\\"number_format\\\": \\\"SMART_NUMBER\\\", \\\"queryFields\\\": {\\\"groupby\\\": \\\"groupby\\\", \\\"metrics\\\": \\\"metrics\\\"}, \\\"row_limit\\\": 10, \\\"slice_id\\\": 661, \\\"time_range\\\": \\\"No filter\\\", \\\"time_range_endpoints\\\": [\\\"inclusive\\\", \\\"exclusive\\\"], \\\"treemap_ratio\\\": 1.618033988749895, \\\"url_params\\\": {}, \\\"viz_type\\\": \\\"treemap\\\"}\",\r\n        \"query_context\": null,\r\n        \"slice_name\": \"Test API Altered Created Chart\",\r\n        \"viz_type\": \"treemap\",\r\n        \"datasource_id\": 2,\r\n        \"datasource_type\": \"table\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/{{ChartID}}","description":"<p>Updates a Chart via the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartID}}</code> with the chart <code>id</code> retrieved from the<br />  <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>cache_timeout</code> (optional) by the chart timeout in seconds.</p>\n</li>\n<li><p><code>certification_details</code> (optional) by the details of certification.</p>\n</li>\n<li><p><code>certified_by</code> (optional) by the certifier.</p>\n</li>\n<li><p><code>dashboards</code> by a comma separated list (csl) of dashboard ids the chart should be added to (can be empty).</p>\n</li>\n<li><p><code>description</code> (optional) by your description.</p>\n</li>\n<li><p><code>is_managed_externally</code> by true or false.</p>\n</li>\n<li><p><code>owners</code> by a csl of owner ids.</p>\n</li>\n<li><p><code>params</code> by a string of all parameters need to define your chart. You can get an example of this either by checking the network tab by creating a chart in the UI or by calling the <strong>Get a Chart</strong> endpoint.</p>\n</li>\n<li><p><code>slice_name</code> by the name you want to give to your chart.</p>\n</li>\n<li><p><code>viz_type</code> by the visualization type. You can find this with the <strong>Get a Chart</strong> endpoint for a similar chart.</p>\n</li>\n<li><p><code>datasource_id</code> by the id of the dataset powering your chart.</p>\n</li>\n<li><p><code>datasource_type</code> by the type of the underlying dataset.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","{{ChartID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e073aca4-f568-4c8d-87e6-86c14af64f41"},{"name":"Delete a Chart","id":"74cc2237-901f-474e-92f3-68b9a2db51bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/chart/{{ChartID}}","description":"<p>Deletes a Chart.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{ChartID}}</code> with the chart <code>id</code> retrieved from the <strong>Get all Charts from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chart","{{ChartID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"74cc2237-901f-474e-92f3-68b9a2db51bb"}],"id":"9c6a7dab-b3ec-44c8-b3a1-50411b66fa7a","description":"<p>APIs to manage Charts on your Workspace.</p>\n","_postman_id":"9c6a7dab-b3ec-44c8-b3a1-50411b66fa7a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Dashboards","item":[{"name":"Get all Dashboards From a Workspace","id":"2787cb4e-39e9-4b99-92e0-86282bc5794a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/","description":"<p>Gets all Dashboards from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"2787cb4e-39e9-4b99-92e0-86282bc5794a"},{"name":"Get a Dashboard","id":"f5e5c6d2-5f38-40bd-8c6f-9cf581eb799a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}","description":"<p>Get a specific Dashboard from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5e5c6d2-5f38-40bd-8c6f-9cf581eb799a"},{"name":"Get Charts from a Dashboard","id":"e0f31782-5037-404f-938f-40e0f7bd6a43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/charts","description":"<p>Gets all Charts associated with a Dashboard.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code>s of the desired Dashboard. You can get the <code>id</code>s using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","charts"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"e0f31782-5037-404f-938f-40e0f7bd6a43"},{"name":"Get Datasets from a Dashboard","id":"ede8fafd-44d0-4784-b4bc-bb8d11fcc120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/datasets","description":"<p>Gets all Datasets associated with a Dashboard.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code>s of the desired Dashboard. You can get the <code>id</code>s using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","datasets"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"ede8fafd-44d0-4784-b4bc-bb8d11fcc120"},{"name":"Get all possible Dashboard Owners","id":"913e410d-7973-444b-a5c6-6ed9e1a7fdb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/related/owners","description":"<p>Gets all possible Dashboard owners on the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</li>\n<li><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","related","owners"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"913e410d-7973-444b-a5c6-6ed9e1a7fdb5"},{"name":"Export Dashboards","id":"83164c24-7448-47df-8a68-6cbc61a2671f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/zip","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/export/?q=!({{DashboardIDs}})","description":"<p>Exports a ZIP file from a Dashboard.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardIDs}}</code> with the <code>id</code>s of the Dashboard(s) you want to export (separated by comma). You can get the <code>id</code>s using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p><em><strong>Tip:</strong></em> If used in Postman, select <code>Save Response</code> and <code>Save to a File</code> to get the zip export.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","export",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Comma separated list of Dashboard IDs.</p>\n","type":"text/plain"},"key":"q","value":"!({{DashboardIDs}})"}],"variable":[]}},"response":[],"_postman_id":"83164c24-7448-47df-8a68-6cbc61a2671f"},{"name":"Get Embedded Configuration for a Dashboard","id":"28be17ce-6a0a-40c6-9b18-0ae9664a6570","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Retrieves the Embedded configuration for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"28be17ce-6a0a-40c6-9b18-0ae9664a6570"},{"name":"Get Dashboard API Metadata Info","id":"753e3720-cc43-4774-b5de-225980f575fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/_info","description":"<p>Gets metadata information about the Dashboard API endpoints.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","_info"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"753e3720-cc43-4774-b5de-225980f575fb"},{"name":"Create a Dashboard","id":"383248e8-2a5a-4f9b-9793-22bd60a282e5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":" {\n    \"certification_details\": {{CertfificationDetails}},\n    \"certified_by\": \"{{CertifiedBy}}\",\n \t\"dashboard_title\": \"{{DashboardTitle}}\",\n \t\"json_metadata\": {},\n    \"owners\": [{{OwnerID}}],\n    \"position_json\": \"{{PositionJSON}}\",\n    \"published\": {{Published}},\n    \"slug\": \"{{DashboardSlug}}\"\n }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/","description":"<p>Creates a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{CertificationDetails}}</code> (<em>optional)</em> with the dashboard certification information.</li>\n<li><code>{{CertifiedBy}}</code> <em>(optional)</em> with the information about the certifier (this is a string, and not a user/account representation).</li>\n<li><code>{{DashboardTitle}}</code> with the title for the dashboard.</li>\n<li>You can optionally include a <code>{{JSONMetadata}}</code> configuration in the <code>json_metadata</code> field, or leave it as an empty JSON.</li>\n<li><code>{{OwnerID}}</code> with the user <code>id</code> retrieved via the <strong>Get all possible Dashboard Owners</strong> API endpoint. This is an array, so multiple IDs can be used.</li>\n<li><code>{{PositionJSON}}</code> <em>(optional)</em> with the dashboard position configuration. If this is not specified, the default layout would be used.</li>\n<li><code>{{Published}}</code> with either <code>true</code> or <code>false</code>.</li>\n<li><code>{{DashboardSlug}}</code> <em>(optional)</em> with the dashboard slug (friendly URL).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"383248e8-2a5a-4f9b-9793-22bd60a282e5"},{"name":"Create a Permalink to a Dashboard","id":"64b92df5-16b5-47a4-b02a-2af7e24071f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"},{"key":"Origin","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"dataMask\":\n    {\n        \"{{FilterID}}\":\n        {\n            \"id\": \"{{FilterID}}\",\n            \"extraFormData\":\n            {\n                \"filters\": [\n                {\n                    \"col\": \"{{Column}}\",\n                    \"op\": \"{{Operator}}\",\n                    \"val\": [\"{{Value}}\"]\n                }]\n            },\n            \"filterState\":\n            {\n                \"validateStatus\": false,\n                \"label\": \"{{Value}}\",\n                \"value\": [\"{{Value}}\"]\n            },\n            \"ownState\":\n            {},\n            \"__cache\":\n            {\n                \"validateStatus\": false,\n                \"label\": \"{{Value}}\",\n                \"value\": [\"{{Value}}\"]\n            }\n        }\n    },\n    \"urlParams\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/permalink","description":"<p>Creates a permalink to a Dashboard (with applied filters) using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> and <code>Origin</code> headers:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{FilterID}}</code> with the ID of the filter you want to modify. You can retrieve it either via the <strong>Dashboard JSON Metadata</strong>, or via the <strong>Get a Dashboard</strong> endpoint.</p>\n</li>\n<li><p><code>{{Column}}</code> with the column that is used on the filter.</p>\n</li>\n<li><p><code>{{Operator}}</code> with the filtering operation to be applied. Available options:</p>\n<ul>\n<li><p><code>IN</code></p>\n</li>\n<li><p><code>NOT IN</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>{{Value}}</code> with the value to be applied on the filter.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","permalink"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"64b92df5-16b5-47a4-b02a-2af7e24071f0"},{"name":"Generate a Dashboard Screenshot","id":"bfe7d53d-c182-48bc-859f-a0fd5cdcb0d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/cache_dashboard_screenshot/","description":"<p>Generates a dashboard screenshot.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>By default, an empty array can be used as the request body to get the dashboard screenshot. Alternatively, it's possible to include below fields in the body:</p>\n<ul>\n<li><p><code>dataMask</code> <em>(array)</em>: Specifies the <code>dataMask</code> configuration (controls applied filters).</p>\n</li>\n<li><p><code>activeTabs</code> <em>(list)</em>: Specify the tab(s) that should be included/selected.</p>\n</li>\n<li><p><code>urlParams</code> <em>(list)</em>: List of URL params to be applied to the dashboard.</p>\n</li>\n</ul>\n<p>A <code>force</code> query parameter can be used to force refresh the data before taking the screenshot.</p>\n<p>The screenshot generation is processed in async mode. The API response includes a <code>task_status</code> and a <code>task_updated_at</code> timestamp that can be used to track progress, along with the <code>image_url</code> that can be used to download the file. Possible <code>task_status</code> values:</p>\n<ul>\n<li><p><code>Pending</code>: screenshot is awaiting to be processed.</p>\n</li>\n<li><p><code>Computing</code>: screenshot job has been picked up by the Celery worker and is being processed.</p>\n</li>\n<li><p><code>Updated</code>: screenshot has been processed and is available at the <code>image_url</code>.</p>\n</li>\n<li><p><code>Error</code>: an error occurred while processing the task.</p>\n</li>\n</ul>\n<p>By default, the <code>image_url</code> provides a PNG. To get a PDF instead, append <code>download_format=pdf</code> to the <code>image_url</code> value.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","cache_dashboard_screenshot",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional) Refresh the screenshot (Bypass cache)</em></p>\n","type":"text/plain"},"key":"q","value":"(force:!t)"}],"variable":[]}},"response":[],"_postman_id":"bfe7d53d-c182-48bc-859f-a0fd5cdcb0d1"},{"name":"Import a Dashboard","id":"5589e9d4-95e5-42b9-9c33-0aa847d94a24","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data;","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"formData","type":"file","value":null},{"key":"passwords","value":"{\"databases/{{DatabaseYAMLFile}}\": \"{{DatabasePassword}}\"}","type":"text"},{"key":"overwrite","value":"true","type":"text"}]},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/import/","description":"<p>Imports a Dashboard via the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>In the body:</p>\n<ul>\n<li><p>Select your Dashboard ZIP file as a value for the <code>formData</code>.</p>\n</li>\n<li><p>For the <code>passwords</code> field:</p>\n<ul>\n<li><p>If the Database used by the Dashboard doesn't exist on the destination Workspace yet:</p>\n<ul>\n<li><p>Replace <code>{{DatabaseYAMLFile}}</code> by the Database YAML file name. You can find it in your Dashboard export file, under the <code>databases</code> folder.</p>\n</li>\n<li><p>Replace <code>{{DatabasePassword}}</code> by your DB password.</p>\n</li>\n</ul>\n</li>\n<li><p>If the Database already exists on the destination Workspace, you can remove this field from the body.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>overwrite</code> field:</p>\n<ul>\n<li><p>If the Dashboard already exists on the destination Workspace, set it as <code>true</code> to overwrite it.</p>\n</li>\n<li><p>If the Dashboard doesn't exist in there yet, you can remove this field from the body.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","import",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"5589e9d4-95e5-42b9-9c33-0aa847d94a24"},{"name":"Enable Embedded for a Dashboard","id":"80ffa41c-0088-49c2-8e14-4c9b04508181","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":" {\n \t\"allowed_domains\": [\n         \"{{AllowedDomain}}\"\n     ]\n }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Enables Embedded mode for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{AllowedDomain}}</code> with the domain that should be allowed to embed this dashboard. Make sure to include the protocol( <code>https://...</code>). Multiple values can be added and should be separated with a comma. Alternatively, use an empty array to allow embedding on any domain:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"allowed_domains\": []\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"80ffa41c-0088-49c2-8e14-4c9b04508181"},{"name":"Update a Dashboard","id":"5abe9935-adad-403e-93f5-360e41a4d08d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n    \"certification_details\": {{CertfificationDetails}},\n    \"certified_by\": \"{{CertifiedBy}}\",\n \t\"dashboard_title\": \"{{DashboardTitle}}\",\n \t\"json_metadata\": {},\n    \"owners\": [{{OwnerID}}],\n    \"position_json\": \"{{PositionJSON}}\",\n    \"published\": {{Published}},\n    \"slug\": \"{{DashboardSlug}}\"\n }"},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}","description":"<p>Updates a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the dashboard <code>id</code> retrieved from the <strong>Get all Dashboards from a Workspace</strong> endpoint.</li>\n</ul>\n<p>Only keep in the payload the fields you would like to update and the <strong>owners</strong>. Available fileds:</p>\n<ul>\n<li><p><code>{{CertificationDetails}}</code> (<em>optional)</em> with the dashboard certification information.</p>\n</li>\n<li><p><code>{{CertifiedBy}}</code> <em>(optional)</em> with the information about the certifier (this is a string, and not a user/account representation).</p>\n</li>\n<li><p><code>{{DashboardTitle}}</code> with the title for the dashboard.</p>\n</li>\n<li><p>You can optionally include a <code>{{JSONMetadata}}</code> configuration in the <code>json_metadata</code> field, or leave it as an empty JSON.</p>\n</li>\n<li><p><code>{{OwnerID}}</code> with the user <code>id</code> retrieved via the <strong>Get all possible Dashboard Owners</strong> API endpoint. This is an array, so multiple IDs can be used.</p>\n</li>\n<li><p><code>{{PositionJSON}}</code> <em>(optional)</em> with the dashboard position configuration. If this is not specified, the default layout would be used.</p>\n</li>\n<li><p><code>{{Published}}</code> with either <code>true</code> or <code>false</code>.</p>\n</li>\n<li><p><code>{{DashboardSlug}}</code> <em>(optional)</em> with the dashboard slug (friendly URL).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"5abe9935-adad-403e-93f5-360e41a4d08d"},{"name":"Update Embedded Configuration for a Dashboard","id":"4c85e30b-17ef-48ca-99e2-1533ec8fb3df","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":" {\n \t\"allowed_domains\": [\n         \"{{AllowedDomain}}\"\n     ]\n }","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Updates the Embedded Configuration for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><code>{{AllowedDomain}}</code> with the domain that should be allowed to embed this dashboard. Make sure to include the protocol( <code>https://...</code>). Multiple values can be added and should be separated with a comma. Alternatively, use an empty array to allow embedding on any domain:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"allowed_domains\": []\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c85e30b-17ef-48ca-99e2-1533ec8fb3df"},{"name":"Disable Embedded for a Dashboard","id":"f7b82bde-73b6-4763-bacc-00ab26f3ef12","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true}},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}/embedded","description":"<p>Disables the Embedded configuration for a Dashboard using the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get it from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}","embedded"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7b82bde-73b6-4763-bacc-00ab26f3ef12"},{"name":"Delete Dashboard","id":"e9d22b2a-a0fc-4fd8-a537-fadee79a77e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dashboard/{{DashboardID}}","description":"<p>Deletes a Dashboard.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DashboardID}}</code> with the <code>id</code> of the desired Dashboard. You can get the <code>id</code> using the <strong>Get all Dashboards From a Workspace</strong> endpoint. Alternatively, you can get from the Dashboard URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.preset.io/superset/dashboard/{{DashboardID}}</code>.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dashboard","{{DashboardID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9d22b2a-a0fc-4fd8-a537-fadee79a77e6"}],"id":"1be6d09f-3800-47ba-b149-0f2e09679f77","description":"<p>APIs to manage your Dashboards.</p>\n","_postman_id":"1be6d09f-3800-47ba-b149-0f2e09679f77","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Databases","item":[{"name":"Get all Database Connections from a Workspace","id":"2e2f307b-fe8c-4296-9785-f9c675f79271","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database","description":"<p>Gets the databases connected to your Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</li>\n<li><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"2e2f307b-fe8c-4296-9785-f9c675f79271"},{"name":"Get a Database Connection","id":"1eca71ed-c47f-4439-9f84-14894b2662b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database/{{DatabaseID}}","description":"<p>Get a specific Database Connection from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatabaseID}}</code> with the Database Connection <code>id</code> retrieved from the <strong>Get All Database Connections from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database","{{DatabaseID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"1eca71ed-c47f-4439-9f84-14894b2662b5"},{"name":"Get a Database Connection Parameters","id":"67c82d2d-d893-4aa5-affa-960690ecf4bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database/{{DatabaseID}}/connection","description":"<h6 id=\"requires-admin-permission\"><em>Requires admin permission.</em></h6>\n<p>Get connection parameters from a specific Database Connection from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatabaseID}}</code> with the Database Connection <code>id</code> retrieved from the <strong>Get All Database Connections from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database","{{DatabaseID}}","connection"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"67c82d2d-d893-4aa5-affa-960690ecf4bf"},{"name":"Export Database Connections","id":"0b8b3437-76ae-42a5-a398-9317e4d2efe7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{JWTToken}}","type":"text"},{"key":"Accept","value":"application/zip","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database/export?q=!({{DatabaseIDs}})","description":"<p>Exports Database Connections from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatabaseIDs}</code> with comma separated DB <code>ids</code> retrieved from the <strong>Get all Database Connections from a Workspace</strong> endpoint.</li>\n</ul>\n<p><em><strong>Tip:</strong></em> If used in Postman, select <code>Save Response</code> and <code>Save to a File</code> to get the zip export.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database","export"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Comma separated list of database connection IDs.</p>\n","type":"text/plain"},"key":"q","value":"!({{DatabaseIDs}})"}],"variable":[]}},"response":[],"_postman_id":"0b8b3437-76ae-42a5-a398-9317e4d2efe7"},{"name":"Create a Database Connection","id":"ed78442d-bb5a-46cd-ae6d-915cfe95d4f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"allow_ctas\": {{DBConnectionAllowCTAS}},\r\n    \"allow_cvas\": {{DBConnectionAllowCVAS}},\r\n    \"allow_dml\": {{DBConnectionAllowDML}},\r\n    \"allow_run_async\": {{DBConnectionEnableAsyncQueries}},\r\n    \"cache_timeout\": {{DBConnectionCacheTimeOut}},\r\n    \"database_name\": \"{{DBConnectionName}}\",\r\n    \"expose_in_sqllab\": {{DBConnectionExposeInSQLLab}},\r\n    \"extra\": \"{{DBConnectionExtraConfiguration}}\",\r\n    \"sqlalchemy_uri\": \"{{DBConnectionSQLAlchemyURI}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database","description":"<p>Creates a new database connection in the Workspace.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace on the body:</p>\n<p><strong>Required fileds:</strong></p>\n<ul>\n<li><code>{{DBConnectionName}}</code> with the desired DB connection display name.</li>\n<li><code>{{DBConnectionSQLAlchemyURI}}</code> with the <a href=\"https://docs.preset.io/docs/uri-connection-strings\">connection string</a> to the database.</li>\n</ul>\n<p><strong>Optional fields:</strong></p>\n<ul>\n<li><p>Boolean fields (use either <code>true</code> or <code>false</code>):</p>\n<ul>\n<li><code>{{DBConnectionAllowCTAS}}</code> to control if <code>CREATE TABLE AS</code> statements should be supported in SQL Lab.</li>\n<li><code>{{DBConnectionAllowCVAS}}</code> to control if <code>CREATE VIEW AS</code> statements should be supported in SQL Lab.</li>\n<li><code>{{DBConnectionAllowDML}}</code> to control if DML statements should be supported in SQL Lab (this is required to allow the previous options).</li>\n<li><code>{{DBConnectionEnableAsyncQueries}}</code> to control if asynchronous query execution should be enabled for SQL Lab.</li>\n<li><code>{{DBConnectionExposeInSQLLab}}</code> to control if the connection should be exposed in SQL Lab.</li>\n</ul>\n</li>\n<li><p><code>{{DBConnectionCacheTimeOut}}</code> with the duration (in seconds) cached results should be valid for charts powered by this connection.</p>\n</li>\n<li><p><code>{{DBConnectionExtraConfiguration}}</code> with any addifional configuration (like <strong>Engine Parameters</strong>). For example:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\\\"engine_params\\\": {\\\"connect_args\\\": {\\\"http_path\\\": \\\"/sql/1.0/warehouses/********\\\"}}}\n\n</code></pre><p><strong>Note:</strong> You need to escape quotes (<code>\"</code>) and other special characters using <code>\\</code> on all body fields.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed78442d-bb5a-46cd-ae6d-915cfe95d4f6"},{"name":"Create a Database Connection using SSH","id":"a7290c23-d99a-4bc0-952a-3fb56165a257","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app-dev.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"database_name\": \"{{DBConnectionName}}\",\n    \"configuration_method\": \"sqlalchemy_form\",\n    \"sqlalchemy_uri\": \"{{SQLAlchemyURI}}\",\n    \"ssh_tunnel\": {\n        \"username\": \"{{SSHUsername}}\",\n        \"password\": \"{{SSHServerPassword}}\",\n        \"private_key\": \"{{PrivateKey}}\",\n        \"private_key_password\": \"{{PrivateKeyPassword}}\",\n        \"server_port\": 22,\n        \"server_address\": \"{{SSHServerAddress}}\"\n    },\n    \"allow_csv_upload\": \"boolean\",\n    \"allow_ctas\": \"boolean\",\n    \"allow_cvas\": \"boolean\",\n    \"allow_dml\": \"boolean\",\n    \"allow_multi_schema_metadata_fetch\": \"boolean\",\n    \"allow_run_async\": \"boolean\",\n    \"cache_timeout\": 0,\n    \"expose_in_sqllab\": \"boolean\",\n    \"impersonate_user\": \"boolean\",\n    \"extra\": \"{{ExtraConfiguration}}\"\n}"},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database/","description":"<p>Creates a new database connection on the Workspace using SSH.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace on the body:</p>\n<ul>\n<li><p><code>{{DBConnectionName}}</code> with the desired DB connection display name.</p>\n</li>\n<li><p><code>{{SQLAlchemyURI}}</code> with the <a href=\"https://docs.preset.io/docs/uri-connection-strings\">connection string</a> to the database.</p>\n</li>\n<li><p>For the SSH configuration:</p>\n<ul>\n<li><p>Use either a <code>username</code> and <code>password</code>, or <code>username</code>, <code>private_key</code> and <code>private_key_password</code> combination to authenticate to the SSH server, removing the un-used fields.</p>\n</li>\n<li><p>Replace <code>{{SSHServerAddress}}</code> with the SSH server host address.</p>\n</li>\n</ul>\n</li>\n<li><p><code>boolean</code> with either <code>true</code> or <code>false</code> to enable/disable the connection settings.</p>\n</li>\n<li><p><code>{{ExtraConfiguration}}</code> <em>(optional)</em> with any addifional configuration (like <strong>Engine Parameters</strong>). For example:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\\\"engine_params\\\": {\\\"connect_args\\\": {\\\"http_path\\\": \\\"/sql/1.0/warehouses/********\\\"}}}\n\n</code></pre><p><strong>Note:</strong> You need to escape quotes (<code>\"</code>) and other special characters using <code>\\</code> on all body fields.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7290c23-d99a-4bc0-952a-3fb56165a257"},{"name":"Import a Database Connection","id":"a66b2d02-afad-4260-a55b-7a4b2fe46701","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data;","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"formData","type":"file","value":null},{"key":"passwords","value":"{\"databases/{{DatabaseYAMLFile}}\": \"{{DatabasePassword}}\"}","type":"text"},{"key":"overwrite","value":"true","type":"text","disabled":true}]},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database/import/","description":"<p>Imports a Database Connection.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>In the body:</p>\n<ul>\n<li><p>Select your Chart ZIP file as a value for the <code>formData</code>.</p>\n</li>\n<li><p>For the <code>passwords</code> field:</p>\n<ul>\n<li><p>Replace <code>{{DatabaseYAMLFile}}</code> by the database YAML file name. You can find it in your export file, under the <code>databases</code> folder.</p>\n</li>\n<li><p>Replace <code>{{DatabasePassword}}</code> by the DB password.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>overwrite</code> field:</p>\n<ul>\n<li>If the DB Connection already exists on the destination Workspace, set it as <code>true</code> to overwrite it.</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database","import",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"a66b2d02-afad-4260-a55b-7a4b2fe46701"},{"name":"Update a Database Connection","id":"dd47c54b-490b-4eed-bff3-0a83ecdda160","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    //include the keys you would like to modify\n    \"database_name\": \"{{DBConnectionName}}\"\n}"},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/database/{{DatabaseID}}","description":"<p>Updates an existing Database Connection.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatabaseID}}</code> with the Database Connection <code>id</code> retrieved from the <strong>Get All Database Connections from a Workspace</strong> endpoint.</li>\n</ul>\n<p>In the body:</p>\n<p>Include the keys you would like to update. Refer to the <strong>Create a Database Connection</strong> payload to check supported values.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","database","{{DatabaseID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd47c54b-490b-4eed-bff3-0a83ecdda160"}],"id":"66f49969-21d5-4457-957d-0d3221db06e8","description":"<p>APIs to manage your database connections.</p>\n","_postman_id":"66f49969-21d5-4457-957d-0d3221db06e8","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Datasets","item":[{"name":"Get all Datasets","id":"0ff76fbd-6a99-43db-bb0b-055246a893e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/","description":"<p>Gets all Datasets from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"0ff76fbd-6a99-43db-bb0b-055246a893e7"},{"name":"Get a Dataset","id":"01b87de3-3d80-4512-a3e6-a804e7cb410a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/{{DatasetID}}","description":"<p>Get a specific Dataset from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatasetID}}</code> with the Dataset <code>id</code> retrieved from the <strong>Get All Datasets from a Workspace</strong> endpoint.</li>\n</ul>\n<p>The <code>include_rendered_sql</code> query parameter is optional, and can be set to <code>true</code> to include Jinja syntax rendered in the response:</p>\n<ul>\n<li><p>For virtual datasets, <code>rendered_sql</code> is added to the reponse to include the rendered SQL query.</p>\n</li>\n<li><p><code>rendered_expression</code> is added to every metric and calculated column to include the rendered SQL syntax.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","{{DatasetID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Controls if Jinja syntax should be rendered and included in the response</p>\n","type":"text/plain"},"key":"include_rendered_sql","value":"true"}],"variable":[]}},"response":[],"_postman_id":"01b87de3-3d80-4512-a3e6-a804e7cb410a"},{"name":"Get all possible Dataset Owners","id":"a0a886d9-6723-4de4-bb28-a50fe88c87a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/related/owners","description":"<p>Gets all possible Dataset owners on the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","related","owners"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"a0a886d9-6723-4de4-bb28-a50fe88c87a7"},{"name":"Export Datasets","id":"b860f738-1307-4a62-ba37-109e2dc2522d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{JWTToken}}","type":"text"},{"key":"Accept","value":"application/zip","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/export?q=!({{DatasetIDs}})","description":"<p>Exports Datasets from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatasetIDs}}</code> with comma separated <code>ids</code> retrieved from the <strong>Get all Datasets from a Workspace</strong> endpoint.</li>\n</ul>\n<p><em><strong>Tip:</strong></em> If used in Postman, select <code>Save Response</code> and <code>Save to a File</code> to get the zip export.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","export"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"description":{"content":"<p>Comma separated list of Dataset IDs.</p>\n","type":"text/plain"},"key":"q","value":"!({{DatasetIDs}})"}],"variable":[]}},"response":[],"_postman_id":"b860f738-1307-4a62-ba37-109e2dc2522d"},{"name":"Create a Dataset","id":"0c8c5068-3175-4755-b533-c67c09831bea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"database\": {{DBID}},\r\n    \"owners\": [\r\n        {{OwnerID}}\r\n    ],\r\n    \"schema\": \"{{SchemaName}}\",\r\n    \"sql\": \"{{DatasetSQL}}\", // Only required for Virtual Datasets\r\n    \"table_name\": \"{{TableName}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset","description":"<p>Creates a new Dataset.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{DBID}}</code> with the database <code>id</code> retrieved using the <strong>Get Databases</strong> endoint.</p>\n</li>\n<li><p><code>{{SchemaName}}</code> with the desired schema.</p>\n</li>\n<li><p><code>{{TableName}}</code> with the desired table. This should be the <strong>table name for Physical datasets</strong>, and the <strong>dataset name for Virtual Datasets</strong>.</p>\n</li>\n<li><p><code>{{OwnerID}}</code> with the <code>id</code> for the desired owner account(s) retrieved from the <strong>Get all possible Dataset Owners</strong> endpoint. Use a comma to separate multiple IDs (for example, <code>[2,5]</code>).</p>\n</li>\n<li><p><code>{{DatasetSQL}}</code> with the SQL query powering the dataset <strong>(only applicable to virtual datasets)</strong>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c8c5068-3175-4755-b533-c67c09831bea"},{"name":"Import a Dataset","id":"20e9dd73-fad7-43e1-909b-6f92ba09dcef","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data;","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"formData","type":"file","value":null},{"key":"passwords","value":"{\"databases/{{DatabaseYAMLFile}}\": \"{{DatabasePassword}}\"}","type":"text"},{"key":"overwrite","value":"true","type":"text","disabled":true}]},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/import/","description":"<p>Imports a Dataset.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>In the body:</p>\n<ul>\n<li><p>Select your Dataset ZIP file as a value for the <code>formData</code>.</p>\n</li>\n<li><p>For the <code>passwords</code> field:</p>\n<ul>\n<li><p>Replace <code>{{DatabaseYAMLFile}}</code> by the database YAML file name. You can find it in your export file, under the <code>databases</code> folder.</p>\n</li>\n<li><p>Replace <code>{{DatabasePassword}}</code> by the DB password.</p>\n</li>\n</ul>\n</li>\n<li><p>For the <code>overwrite</code> field:</p>\n<ul>\n<li>If the DB Connection already exists on the destination Workspace, set it as <code>true</code> to overwrite it.</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","import",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"20e9dd73-fad7-43e1-909b-6f92ba09dcef"},{"name":"Update a Dataset","id":"09e8eb1c-25d4-437b-a24e-e1dca43eea84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"always_filter_main_dttm\": {{AlwaysFilterMainDDTM}},\n    \"cache_timeout\": {{CacheTimeout}},\n    \"catalog\": \"{{Catalog}}\",\n    \"columns\": [\n        // List of columns\n        {\n            \"advanced_data_type\": \"{{AdvancedDataType}}\",\n            \"column_name\": \"{{ColumnName}}\",\n            \"description\": \"{{ColumnDescription}}\",\n            \"expession\": \"{{ColumnSQLExpression}}\",\n            \"extra\": \"{{ColumnExtra}}\",\n            \"filterable\": {{ColumnFilterableConfig}},\n            \"groupby\": {{ColumnGroupByConfig}},\n            \"id\": {{ColumnID}},\n            \"is_active\": {{ColumnIsActive}},\n            \"is_dttm\": {{ColumnIsDTTM}},\n            \"python_date_format\": \"{{ColumnFormat}}\",\n            \"type\": \"{{ColumnType}}\",\n            \"uuid\": \"{{ColumnUUID}}\",\n            \"verbose_name\": \"{{ColumnLabel}}\"\n        }\n    ],\n    \"database_id\": {{DBID}},\n    \"default_endpoint\": \"{{DefaultEndpoint}}\",\n    \"description\": \"{{Description}}\",\n    \"external_url\": \"{{ExternalURL}}\",\n    \"extra\": \"{{DatasetExtra}}\",\n    \"fetch_values_predicate\": \"{{FetchValuesPredicate}}\",\n    \"folders\": [\n        // list of folders\n        {\n            \"type\": \"folder\",\n            \"name\": \"{{FolderName}}\",\n            \"uuid\": \"{{FolderUUID}}\",\n            \"children\": [\n                // list of children elements\n                {\n                    \"type\": \"{{ChildType}}\",\n                    \"uuid\": \"{{ChildUUID}}\",\n                    \"name\": \"{{ChildName}}\",\n                    \"children\": [\n                        // Re-use the Child schema here\n                    ]\n                }\n            ]\n        }\n    ],\n    \"is_managed_externally\": {{IsManagedExternally}},\n    \"main_dttm_column\": \"{{MainDDTMCollumn}}\",\n    \"metrics\": [\n        // List of metrics\n        {\n            \"currency\": {\n                \"symbol\": \"{{MetricCurrencySymbol}}\",\n                \"symbolPosition\": \"{{MetricCurrencySymbolPosition}}\"\n            },\n            \"d3format\": \"{{MetricD3Format}}\",\n            \"description\": \"{{MetricDescription}}\",\n            \"expression\": \"{{MetricSQLExpression}}\",\n            \"extra\": \"{{MetricExtra}}\",\n            \"id\": {{MetricID}},\n            \"metric_name\": \"{{MetricName}}\",\n            \"metric_type\": \"{{MetricType}}\",\n            \"uuid\": \"{{MetricUUID}}\",\n            \"verbose_name\": \"{{MetricLabel}}\",\n            \"warning_text\": \"{{MetricWarningText}}\"\n        }\n    ],\n    \"normalize_columns\": {{NormalizeDatasetColumns}},\n    \"offset\": {{DatasetOffset}},\n    \"owners\": [\n        {{OwnerID}}\n    ],\n    \"schema\": \"{{SchemaName}}\",\n    \"sql\": \"{{SQLQuery}}\",\n    \"table_name\": \"{{TableName}}\",\n    \"template_params\": \"{{TemplateParams}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/{{DatasetID}}","description":"<p>Updates a Dataset.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatasetID}}</code> with the Dataset <code>id</code> retrieved from the <strong>Get All Datasets from a Workspace</strong> endpoint.</li>\n</ul>\n<p>Update the body accordingly, keeping only the fields that should be updated.</p>\n<p>Some examples:</p>\n<ul>\n<li><p>To convert a dataset from physical to virtual, update the <code>table_name</code> accordingly and include a <code>sql</code> value. To convert a virtual dataset to physical, update the <code>table_name</code> to the desired table and set <code>sql</code> to <code>null</code>.</p>\n</li>\n<li><p>If you want to add item(s) to a list field (for example, <code>owners</code>, <code>metrics</code>, <code>columns</code>, etc) include the full list (existing items + new ones). If you want to remove items, provide the entire list without the item(s) to be removed.</p>\n</li>\n<li><p>Calculated columns are included in the <code>columns</code> list. The difference between a regular column and a calculated column is that the latter has the <code>expression</code> field populated with the corresponding SQL expression.</p>\n</li>\n</ul>\n<p>More details about each field:</p>\n<ul>\n<li><p><code>{{AlwaysFilterMainDDTM}}</code>: can be set to <code>true</code> / <code>false</code> to control if time range filters applied to non-default temporal columns should also be applied to the default one.</p>\n</li>\n<li><p><code>{{CacheTimeout}}</code>: control the cache timeout for the dataset.</p>\n</li>\n<li><p><code>{{Catalog}}</code>: catalog the dataset is associated with.</p>\n</li>\n<li><p><code>columns</code>: list of <code>{{Column}}</code> items. Column schema details:</p>\n<ul>\n<li><p><code>{{AdvancedDataType}}</code>: can be used to indicate a custom data type for a column.</p>\n</li>\n<li><p><code>{{ColumnName}}</code>: indicates the column name. For regular columns, correspond to an existing column in the table (for physical datasets) or SQL results (for virtual datasets). Provides a name for calculated columns. <strong>This key is always required</strong>.</p>\n</li>\n<li><p><code>{{ColumnDescription}}</code>: column description.</p>\n</li>\n<li><p><code>{{ColumnSQLExpression}}</code>: SQL syntax for calculated columns. Should be set to <code>null</code> for regular columns. <strong>This key is required for calculated columns.</strong></p>\n</li>\n<li><p><code>{{ColumnExtra}}</code> : stringfied JSON to define additional column metadata. Can be used to certify columns with: <code>\"{\\\"certification\\\":{\\\"certified_by\\\":\\\"{{CertifiedBy}}\\\",\\\"details\\\":\\\"{{CertificationDetails}}\\\"}}\"</code>.</p>\n</li>\n<li><p><code>{{ColumnFilterableConfig}}</code>: if set to <code>false</code> disables the column from the Filters dropdown (can still be used in filters via Custom SQL).</p>\n</li>\n<li><p><code>{{ColumnGroupByConfig}}</code>: if set to <code>false</code> disables the column from the Dimensions dropdown (can still be used in dimensions via Custom SQL).</p>\n</li>\n<li><p><code>{{ColumnID}}</code>: column ID. Should only be included for existing columns. <strong>Required for existing columns.</strong></p>\n</li>\n<li><p><code>{{ColumnIsActive}}</code>: set to <code>false</code> to deactivate the column (can still be used via Custom SQL).</p>\n</li>\n<li><p><code>{{ColumnIsDTTM}}</code>: set to <code>true</code> to mark the column as temporal.</p>\n</li>\n<li><p><code>{{ColumnFormat}}</code>: column datetime format.</p>\n</li>\n<li><p><code>{{ColumnType}}</code>: set the column type (for example, <code>TEXT</code>, <code>BIGINT</code>, etc).</p>\n</li>\n<li><p><code>{{ColumnUUID}}</code>: column UUID. Set a new value when creating a new column, or use an existing value when overwiriting one.</p>\n</li>\n<li><p><code>{{ColumnLabel}}</code>: column label.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{DBID}}</code>: Database connection ID, retrieved from the <strong>Get all DB Connections</strong> endpoint.</p>\n</li>\n<li><p><code>{{DefaultEndpoint}}</code>: URL to redirect users to when clicking on the dataset name from the Datasets list.</p>\n</li>\n<li><p><code>{{Description}}</code>: dataset description.</p>\n</li>\n<li><p><code>{{ExternalURL}}</code>: external URL to be associated with the dataset. Only exposed in the API response.</p>\n</li>\n<li><p><code>{{DatasetExtra}}</code>: stringfied JSON to define additional dataset metadata. Can be used to certify the dataset with: <code>\"{\\\"certification\\\":{\\\"certified_by\\\":\\\"{{CertifiedBy}}\\\",\\\"details\\\":\\\"{{CertificationDetails}}\\\"}}\"</code>.</p>\n</li>\n<li><p><code>{{FetchValuesPredicate}}</code>: predicate SQL filter to be automatically applied in autocomplete queries.</p>\n</li>\n<li><p><code>folders</code>: list of <code>{{Folder}}</code> items. Folder schema details:</p>\n<ul>\n<li><p><code>name</code>: the folder name.</p>\n</li>\n<li><p><code>uuid</code>: the folder UUID. <strong>This is always required</strong> (use new <code>uuid</code> values when looking to create a new folder, or an existing UUID value when trying to update a folder).</p>\n</li>\n<li><p><code>children</code>: list of <code>{{Child}}</code> objects. Child schema details:</p>\n<ul>\n<li><p><code>{{ChildType}}</code>: set to either <code>folder</code> (for nested folders), <code>metric</code> or <code>column</code>.</p>\n</li>\n<li><p><code>{{ChildUUID}}</code>: for columns and metrics, use the metric/column UUID. for folders, use their UUID value (or use a new one when creating a new folder).</p>\n</li>\n<li><p><code>{{ChildName}}</code>: <strong>should only be included for folders. Columns and metrics use their existing name.</strong></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>{{IsManagedExternally}}</code>: set to <code>true</code> to disable editing this dataset via the UI.</p>\n</li>\n<li><p><code>{{MainDDTMCollumn}}</code>: name of the column to be considered the default temporal column.</p>\n</li>\n<li><p><code>metrics</code>: list of <code>{{Metric}}</code> items. Metric schema details:</p>\n<ul>\n<li><p><code>{{MetricCurrencySymbol}}</code>: set the currency symbol. Possible options:<code>JPY</code>, <code>USD</code>, <code>EUR</code>, <code>GBP</code>, <code>INR</code>, <code>MXN</code>, <code>CNY</code>.</p>\n</li>\n<li><p><code>{{MetricCurrencySymbolPosition}}</code>: can be set to <code>suffix</code> or <code>prefix</code>.</p>\n</li>\n<li><p><code>{{MetricD3Format}}:</code> set metric D3 format.</p>\n</li>\n<li><p><code>{{MetricDescription}}</code>: metric description.</p>\n</li>\n<li><p><code>{{MetricSQLExpression}}</code>: SQL expression for the metric. <strong>This key is always required</strong>.</p>\n</li>\n<li><p><code>{{MetricExtra}}</code>: stringfied JSON to define additional metric metadata. Can be used to certify metrics with: <code>\"{\\\"certification\\\":{\\\"certified_by\\\":\\\"{{CertifiedBy}}\\\",\\\"details\\\":\\\"{{CertificationDetails}}\\\"}}\"</code>.</p>\n</li>\n<li><p><code>{{MetricID}}</code>: metric ID. Should only be included for existing metrics. <strong>Required for existing metrics.</strong></p>\n</li>\n<li><p><code>{{MetricName}}</code>: metric name. <strong>This key is always required</strong>.</p>\n</li>\n<li><p><code>{{MetricType}}</code>: metric type.</p>\n</li>\n<li><p><code>{{MetricUUID}}</code>: metric UUID. Set a new value when creating a new metric, or use an existing value when overwiriting one.</p>\n</li>\n<li><p><code>{{MetricLabel}}</code>: metric label.</p>\n</li>\n<li><p><code>{{MetricWarningText}}</code>: warning text to be displayed with the metric.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{NormalizeDatasetColumns}}</code>: set to <code>true</code> to change columns to case insensitive format (applicable to Oracle and Snowflake).</p>\n</li>\n<li><p><code>{{DatasetOffset}}</code>: number of hours (positive or negative) to shift the time column.</p>\n</li>\n<li><p><code>owners</code>: list of <code>{{OwnerID}}</code> values, retrived via the <strong>Get all possible Dataset Owners</strong> endpoint.</p>\n</li>\n<li><p><code>{{SchemaName}}</code>: schema the dataset is associated with.</p>\n</li>\n<li><p><code>{{SQLQuery}}</code>: SQL query powering the dataset <strong>(only applicable to virtual datasets)</strong>.</p>\n</li>\n<li><p><code>{{TableName}}</code>: indicate the table name for physical datasets, and the dataset name for virtual datasets.</p>\n</li>\n<li><p><code>{{TemplateParams}}</code>: stringified JSON to define Jinja template parameters.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","{{DatasetID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"09e8eb1c-25d4-437b-a24e-e1dca43eea84"},{"name":"Refresh a Dataset","id":"307d9289-08ad-4bbf-a72f-02ebe5fe0ba2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/{{DatasetID}}/refresh","description":"<p>Refreshes and updates columns of a Dataset.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatasetID}}</code> with the Dataset <code>id</code> retrieved from the <strong>Get All Datasets from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","{{DatasetID}}","refresh"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"307d9289-08ad-4bbf-a72f-02ebe5fe0ba2"},{"name":"Delete a Dataset","id":"64b5906a-af42-4a21-8088-cb02aa047047","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/dataset/{{DatasetID}}","description":"<p>Deletes a Dataset.</p>\n<p>Replace in the URL and in the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{DatasetID}}</code> with the Dataset <code>id</code> retrieved from the <strong>Get All Datasets from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","dataset","{{DatasetID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"64b5906a-af42-4a21-8088-cb02aa047047"}],"id":"b5804081-0ace-4b97-b00d-5c4c96e59949","description":"<p>APIs to manage your datasets.</p>\n","_postman_id":"b5804081-0ace-4b97-b00d-5c4c96e59949","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Query History","item":[{"name":"Get Query History","id":"af912d3e-6c6f-4ad1-8371-e127abd7583c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/query/","description":"<p>Gets Query History from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><p><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</p>\n</li>\n<li><p><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","query",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"af912d3e-6c6f-4ad1-8371-e127abd7583c"},{"name":"Get a Query","id":"a115b1f1-d1c7-41c7-953f-c7273569fff7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/query/{{QueryID}}","description":"<p>Gets a query from the Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{QueryID}}</code> with the query id retrieved from the <strong>Get Query History</strong> or the <strong>Execute a SQL Query</strong> API endpoints.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","query","{{QueryID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"a115b1f1-d1c7-41c7-953f-c7273569fff7"}],"id":"8b96ed4f-4711-4a57-a18c-a6dd5a2b6b0b","_postman_id":"8b96ed4f-4711-4a57-a18c-a6dd5a2b6b0b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"SQL Lab","item":[{"name":"Execute a SQL Query","id":"168af5ac-7098-40c9-b1c6-69c0b5bee829","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"database_id\": {{DatabaseID}},\n    \"sql\": \"{{SQLQuery}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/sqllab/execute/","description":"<p>Executes a SQL query through the API.</p>\n<p>Replace in the URL and in the <code>Referer</code> header:</p>\n<ul>\n<li><p><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</p>\n</li>\n<li><p><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{DBID}}</code> with the <code>id</code> retrieved from the <strong>Get all Database Connections from a Workspace</strong> endpoint.</p>\n</li>\n<li><p><code>{{SQLQuery}}</code> with the desired SQL query to be executed. Don't forget to escape quotes with <code>\\</code>. For example:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"database_id\": 1,\n    \"sql\": \"SELECT * FROM \\\"Vehicle Sales\\\" limit 7\" \n  }\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","sqllab","execute",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"168af5ac-7098-40c9-b1c6-69c0b5bee829"}],"id":"d9538bd6-fa34-4079-954f-a5aff370fbe5","_postman_id":"d9538bd6-fa34-4079-954f-a5aff370fbe5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}},{"name":"Tags","item":[{"name":"Get all Tags from a Workspace","id":"9afeae42-47f3-4407-afea-98ee6ef67c4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/","description":"<p>Gets all Tags from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Note that this endpoint returns 20 results by default. You can return up to 100 results at a time and use pagination by adding the following query parameters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>?q=(page_size:{{PageSize}},page:{{Page}})\n\n</code></pre><p>Replace:</p>\n<ul>\n<li><code>{{PageSize}}</code> with the desired size (min <code>1</code> max <code>100</code>).</li>\n<li><code>{{Page}}</code> with the page number (useful when the total count &gt; <code>{{PageSize}}</code> - min <code>0</code>).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"disabled":true,"description":{"content":"<p><em>(optional)</em> Used to control pagination and page size (max page size = 100).</p>\n","type":"text/plain"},"key":"q","value":"(page:0,page_size:100)"}],"variable":[]}},"response":[],"_postman_id":"9afeae42-47f3-4407-afea-98ee6ef67c4f"},{"name":"Get a Tag","id":"be323ccb-d331-4731-9636-9315e2b5ac17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/{{TagID}}","description":"<p>Gets a specific Tag from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{TagID}}</code> with the tag <code>id</code> retrieved from the <strong>Get all Tags from a Workspace</strong> endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag","{{TagID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"be323ccb-d331-4731-9636-9315e2b5ac17"},{"name":"Get all Assets associated with a Tag","id":"713d12da-0123-42a4-883f-95585b20015b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/get_objects/?tags={{TagName}}","description":"<p>Gets al Assets associated with a specific Tag from a Workspace.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{TagName}}</code> with the tag title.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag","get_objects",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[{"key":"tags","value":"{{TagName}}"}],"variable":[]}},"response":[],"_postman_id":"713d12da-0123-42a4-883f-95585b20015b"},{"name":"Create a Tag","id":"0e55f932-7f42-466c-b533-3700610861b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"description\": \"{{TagDescription}}\",\n    \"name\": \"{{TagName}}\",\n    \"objects_to_tag\": [\n        [\n            \"{{AssetType}}\",\n            {{AssetID}}\n        ]\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/","description":"<p>Creates a Tag through the API.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{TagDescription}}</code> <em>(optional)</em> with the tag description.</p>\n</li>\n<li><p><code>{{TagName}}</code> with the tag name.</p>\n</li>\n<li><p><code>objects_to_tag</code> <em>(optional)</em> is an array that can be used to associate this tag with assets during creation. For each asset that should be associated with the tag, include an array of <code>[\"{{AssetType}}\", {{AssetID}}]</code> replacing:</p>\n<ul>\n<li><p><code>{{AssetType}}</code> with <code>chart</code>, <code>dashboard</code> or <code>query</code>.</p>\n</li>\n<li><p><code>{{AssetID}}</code> with the actual asset ID.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag",""],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e55f932-7f42-466c-b533-3700610861b9"},{"name":"Add Tags in Bulk to Assets","id":"f38eb17c-b431-4987-a3d4-6b888c71cf78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"tags\": [\n        {\n            \"name\": \"{{TagName}}\",\n            \"objects_to_tag\": [\n                [\n                    \"{{AssetType}}\",\n                    {{AssetID}}\n                ]\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/bulk_create","description":"<p>Adds Tags in bulk to Assets through the API.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<p>For each tag that should be associated with an asset, add a new dictionary to the <code>tags</code> array with the following information:</p>\n<ul>\n<li><code>{{TagName}}</code> with the name of the tag that should be used.</li>\n<li><code>objects_to_tag</code> with an array of arrays containing the assets' information. For each asset that should be associated with the tag, include an array of <code>[\"{{AssetType}}\", {{AssetID}}]</code> replacing:<ul>\n<li><code>{{AssetType}}</code> with <code>chart</code>, <code>dashboard</code> or <code>query</code>.</li>\n<li><code>{{AssetID}}</code> with the actual asset ID.</li>\n</ul>\n</li>\n</ul>\n<p><strong>Note that this endpoint can't be used to create tags. Use it to associate existing tags to existing assets.</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag","bulk_create"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f38eb17c-b431-4987-a3d4-6b888c71cf78"},{"name":"Update a Tag","id":"68a7fff6-7c70-45fe-9ebd-102b5a6f6167","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"description\": \"{{TagDescription}}\",\n    \"name\": \"{{TagName}}\",\n    \"objects_to_tag\": [\n        [\n            \"{{AssetType}}\",\n            {{AssetID}}\n        ]\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/{{TagID}}","description":"<p>Updates an existing Tag through the API.</p>\n<p>Replace in the URL:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{TagID}}</code> with the <code>id</code> of the tag retrieved with the <strong>Get all Tags from the Workspace</strong> API endoint.</li>\n</ul>\n<p>Replace in the body:</p>\n<ul>\n<li><p><code>{{TagDescription}}</code> with the tag description.</p>\n</li>\n<li><p><code>{{TagName}}</code> with the tag name.</p>\n</li>\n<li><p><code>objects_to_tag</code> is an array that can be used to associate this tag with assets. For each asset that should be associated with the tag, include an array of <code>[\"{{AssetType}}\", {{AssetID}}]</code> replacing:</p>\n<ul>\n<li><p><code>{{AssetType}}</code> with <code>chart</code>, <code>dashboard</code> or <code>query</code>.</p>\n</li>\n<li><p><code>{{AssetID}}</code> with the actual asset ID.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag","{{TagID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"68a7fff6-7c70-45fe-9ebd-102b5a6f6167"},{"name":"Delete a Tag","id":"14a62c86-23d5-439c-a871-e85c07e29a98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{JWTToken}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/","type":"text"}],"url":"https://{{WorkspaceSlug}}.{{WorkspaceRegion}}.app.preset.io/api/v1/tag/{{TagID}}","description":"<p>Deletes a Tag through the API.</p>\n<p>Replace in the URL and on the <code>Referer</code> header:</p>\n<ul>\n<li><code>{{WorkspaceSlug}}</code> with the <code>name</code> retrieved through the API (using the <strong>Get Workspaces from a Team</strong> endpoint).</li>\n<li><code>{{WorkspaceRegion}}</code> corresponding to the <code>region</code> retrieved from the <strong>Get Workspaces from a Team</strong> endpoint. Refer to below table:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>region</code></strong></th>\n<th><strong><code>WorkspaceRegion</code></strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>us-east-1</td>\n<td><code>us2a</code></td>\n</tr>\n<tr>\n<td>us-west-2</td>\n<td><code>us1a</code></td>\n</tr>\n<tr>\n<td>eu-north-1</td>\n<td><code>eu5a</code></td>\n</tr>\n<tr>\n<td>ap-northeast-1</td>\n<td><code>ap1a</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Alternatively, access the Workspace through the UI, and get the <code>{{WorkspaceSlug}}</code> and <code>{{WorkspaceRegion}}</code> from the URL -&gt; <code>https://{{WorkspaceSlug}}.{{Region}}.app.preset.io/superset/welcome/</code>.</p>\n<ul>\n<li><code>{{TagID}}</code> with the <code>id</code> of the tag retrieved from the <strong>Get all Tags from a Workspace</strong> API endpoint.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","tag","{{TagID}}"],"host":["{{WorkspaceSlug}}","{{WorkspaceRegion}}","app","preset","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"14a62c86-23d5-439c-a871-e85c07e29a98"}],"id":"fef60833-1467-4809-a596-dbb97e9c117e","_postman_id":"fef60833-1467-4809-a596-dbb97e9c117e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}}],"id":"5b442377-2010-4e0b-849a-36aac415d657","description":"<p>Superset APIs can be used to interact with assets in your Workspaces. Note that Superset APIs are contributed from the Open Source Community, so they are subject to change without previous notification. Please keep this in mind when working with them.</p>\n","_postman_id":"5b442377-2010-4e0b-849a-36aac415d657","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]},"isInherited":true,"source":{"_postman_id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","id":"9dc44bfa-078a-4f14-98f4-7b35338e5928","name":"Preset API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JWTToken}}"}]}},"event":[{"listen":"prerequest","script":{"id":"5e5f9541-8fc4-4589-a6aa-8b3ae4fa49b5","type":"text/javascript","requests":{},"exec":["//AUTHENTICATION HANDLER","","//Function to get a new JWT Token","function generateNewJWT() {","    const postRequest = {","        url: 'https://manage.app.preset.io/api/v1/auth/',","        method: 'POST',","        header: {","            'Content-Type': 'application/json',","        },","        body: {","            mode: 'raw',","            raw: JSON.stringify({ name: APIName, secret: APISecret })","        }","    };","    pm.sendRequest(postRequest, (error, response) => {","        if (error) {","            console.error(\"We couldn't get a new JWT Token\");","            console.error(error);","        } else {","            if (response.code == 200) {","                var temp = response.json();","                pm.globals.set(\"JWTToken\", temp[\"payload\"][\"access_token\"]);","            } else {","                console.error(\"We couldn't get a new JWT Token\");","                console.error(response);","            }","        }","    });","};","","//Check if the JWTToken Global Variable is currently set","var currentToken = pm.globals.get(\"JWTToken\");","//Check if API Token & Secret are defined","var APIName = pm.collectionVariables.get(\"APIToken\");","var APISecret = pm.collectionVariables.get(\"APISecret\");","if (!currentToken) {","    console.log(\"JWT Token not defined.\");","    if (!APIName || !APISecret) {","        console.error(\"Unable to generate a new JWT token - Missing authentication information.\");","    } else {","        console.log(\"Let's get a JWT Token\");","        generateNewJWT();","    }","} else {","    console.log(\"Let's check if the JWT is still valid\");","","    //Uses the /api/v1/users/me/ endpoint to check if authentication succeeds","    const getRequest = {","        url: 'https://manage.app.preset.io/api/v1/users/me/',","        method: 'GET',","        header: {","            'Accept': 'application/json',","            'Authorization': 'Bearer ' + currentToken","        }","    };","    pm.sendRequest(getRequest, (error, response) => {","        if (error) {","            console.error(\"Something went wrong\");","            console.error(error);","        } else {","            if (response.code == 200) {","                console.log(\"Authentication succeeded - let's proceed.\");","            } else {","                console.warn(\"Authentication failed - let's get a new JWT Token\");","                if (!APIName || !APISecret) {","                    console.error(\"Unable to generate a new JWT token - Missing authentication information.\");","                } else {","                    generateNewJWT();","                }","            }","        }","    });","}"]}},{"listen":"test","script":{"id":"34d767b3-595b-4be5-897f-d22aa4384682","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"APIToken","value":"{{APIToken}}"},{"key":"APISecret","value":"{{APISecret}}"},{"key":"TeamSlug","value":"{{TeamSlug}}"},{"key":"NewTeamTitle","value":"{{NewTeamTitle}}"},{"key":"UserID","value":"{{UserID}}"},{"key":"RoleID","value":"{{RoleID}}"},{"key":"InviteID","value":"{{InviteID}}"},{"key":"Email","value":"{{Email}}"},{"key":"Email2","value":"{{Email2}}"},{"key":"NewWorkspaceTitle","value":"{{NewWorkspaceTitle}}"},{"key":"NewWorkspaceRegion","value":"{{NewWorkspaceRegion}}"},{"key":"WorkspaceID","value":"{{WorkspaceID}}"},{"key":"RoleIdentifier","value":"{{RoleIdentifier}}"},{"key":"WorkspaceSlug","value":"{{WorkspaceSlug}}"},{"key":"WorkspaceRegion","value":"{{WorkspaceRegion}}"},{"key":"Username","value":"{{Username}}"},{"key":"PermissionName","value":"{{PermissionName}}"},{"key":"Resource","value":"{{Resource}}"},{"key":"WorkspaceRole","value":"{{WorkspaceRole}}"},{"key":"ChartID","value":"{{ChartID}}"},{"key":"ChartIDs","value":"{{ChartIDs}}"},{"key":"DashboardID","value":"{{DashboardID}}"},{"key":"DashboardIDs","value":"{{DashboardIDs}}"},{"key":"NewDashboardName","value":"{{NewDashboardName}}"},{"key":"CertificationDetails","value":"{{CertificationDetails}}"},{"key":"CertifiedBy","value":"{{CertifiedBy}}"},{"key":"EmbeddedDashboardID","value":"{{EmbeddedDashboardID}}"},{"key":"firstName","value":"{{firstName}}"},{"key":"lastName","value":"{{lastName}}"},{"key":"PermissionType","value":"{{PermissionType}}"},{"key":"DatabaseYAMLFile","value":"{{DatabaseYAMLFile}}"},{"key":"DatabasePassword","value":"{{DatabasePassword}}"},{"key":"ResourceType","value":"{{ResourceType}}"},{"key":"GranteeIdentifier","value":"{{GranteeIdentifier}}"},{"key":"ResourceName","value":"{{ResourceName}}"},{"key":"GranteeType","value":"{{GranteeType}}"},{"key":"DARName","value":"{{DARName}}"},{"key":"GrantAction","value":"{{GrantAction}}"},{"key":"RLSName","value":"{{RLSName}}"},{"key":"RLSClause","value":"{{RLSClause}}"},{"key":"RLSFilterType","value":"{{RLSFilterType}}"},{"key":"RLSGroupKey","value":"{{RLSGroupKey}}"},{"key":"DARName1","value":"{{DARName1}}"},{"key":"DARName2","value":"{{DARName2}}"},{"key":"DatabaseIDs","value":"{{DatabaseIDs}}"},{"key":"DatasetIDs","value":"{{DatasetIDs}}"},{"key":"AnnotationLayerID","value":"{{AnnotationLayerID}}"},{"key":"AnnotationLayerDescription","value":"{{AnnotationLayerDescription}}"},{"key":"AnnotationLayerName","value":"{{AnnotationLayerName}}"},{"key":"AnnotationID","value":"{{AnnotationID}}"},{"key":"AnnotationEndDTTM","value":"{{AnnotationEndDTTM}}"},{"key":"AnnotationLongDescription","value":"{{AnnotationLongDescription}}"},{"key":"AnnotationTitle","value":"{{AnnotationShortDescription}}"},{"key":"AnnotationStartDTTM","value":"{{AnnotationStartDTTM}}"},{"key":"AnnotationIDs","value":"{{AnnotationIDs}}"},{"key":"AnnotationLayerIDs","value":"{{AnnotationLayerIDs}}"},{"key":"AlertID OR ReportID","value":"{{AlertID OR ReportID}}"},{"key":"DatasetID","value":"{{DatasetID}}"},{"key":"DBConnectionExtraConfiguration","value":"{{DBConnectionExtraConfiguration}}"},{"key":"ReportName","value":"{{ReportName}}"},{"key":"ReportDescription","value":"{{ReportDescription}}"},{"key":"CRONSchedule","value":"{{CRONSchedule}}"},{"key":"Timezone","value":"{{Timezone}}"},{"key":"ForceBooleanFlag","value":"{{ForceBooleanFlag}}"},{"key":"ReportFormat","value":"{{ReportFormat}}"},{"key":"OwnerID","value":"{{OwnerID}}"},{"key":"ReportType","value":"{{ReportType}}"},{"key":"TargetInfo","value":"{{TargetInfo}}"},{"key":"LogRetention","value":"{{LogRetention}}"},{"key":"WorkingTimeout","value":"{{WorkingTimeout}}"},{"key":"GracePeriod","value":"{{GracePeriod}}"},{"key":"AlertName","value":"{{AlertName}}"},{"key":"AlertDescription","value":"{{AlertDescription}}"},{"key":"AlertFormat","value":"{{AlertFormat}}"},{"key":"DatabaseID","value":"{{DatabaseID}}"},{"key":"SQLCondition","value":"{{SQLCondition}}"},{"key":"ValidatorType","value":"{{ValidatorType}}"},{"key":"Operator","value":"{{Operator}}"},{"key":"Threshold","value":"{{Threshold}}"},{"key":"DatasetSQL","value":"{{DatasetSQL}}"},{"key":"ActiveBooleanFlag","value":"{{ActiveBooleanFlag}}"},{"key":"SQLQuery","value":"{{SQLQuery}}"},{"key":"SSHServerPassword","value":"{{SSHServerPassword}}"},{"key":"SSHServerAddress","value":"{{SSHServerAddress}}"},{"key":"PrivateKey","value":"{{PrivateKey}}"},{"key":"PrivateKeyPassword","value":"{{PrivateKeyPassword}}"},{"key":"SSHUsername","value":"{{SSHUsername}}"},{"key":"DBConnectionName","value":"{{DBConnectionName}}"},{"key":"DatasetType","value":"{{DatasetType}}"},{"key":"VisualizationType","value":"{{VisualizationType}}"},{"key":"RowLimit","value":"{{RowLimit}}"},{"key":"EntityType","value":"{{EntityType}}"},{"key":"EntityID","value":"{{EntityID}}"},{"key":"EntityName","value":"{{EntityName}}"},{"key":"ActionURN","value":"{{ActionURN}}"},{"key":"UsernameOREmail","value":"{{UsernameOREmail}}"},{"key":"StartTime","value":"{{StartTime}}"},{"key":"EndTime","value":"{{EndTime}}"},{"key":"PageNumber","value":"{{PageNumber}}"},{"key":"PageSize","value":"{{PageSize}}"},{"key":"OrderColumn","value":"{{OrderColumn}}"},{"key":"SortOption","value":"{{SortOption}}"},{"key":"AllowedDomain","value":"{{AllowedDomain}}"},{"key":"TagID","value":"{{TagID}}"},{"key":"TagDescription","value":"{{TagDescription}}"},{"key":"TagName","value":"{{TagName}}"},{"key":"AssetType","value":"{{AssetType}}"},{"key":"AssetID","value":"{{AssetID}}"},{"key":"Published","value":"{{Published}}"},{"key":"DashboardSlug","value":"{{DashboardSlug}}"},{"key":"JSONMetadata","value":"{{JSONMetadata}}"},{"key":"PositionJSON","value":"{{PositionJSON}}"},{"key":"DBConnectionAllowCTAS","value":"{{DBConnectionAllowCTAS}}"},{"key":"DBConnectionAllowCVAS","value":"{{DBConnectionAllowCVAS}}"},{"key":"DBConnectionAllowDML","value":"{{DBConnectionAllowDML}}"},{"key":"DBConnectionEnableAsyncQueries","value":"{{DBConnectionEnableAsyncQueries}}"},{"key":"DBConnectionCacheTimeOut","value":"{{DBConnectionCacheTimeOut}}"},{"key":"DBConnectionExposeInSQLLab","value":"{{DBConnectionExposeInSQLLab}}"},{"key":"DBConnectionSQLAlchemyURI","value":"{{DBConnectionSQLAlchemyURI}}"},{"key":"PublicKey","value":"{{PublicKey}}"},{"key":"KeyID","value":"{{KeyID}}"},{"key":"NewWorkspaceDescription","value":"{{NewWorkspaceDescription}}"},{"key":"NewWorkspaceColor","value":"{{NewWorkspaceColor}}"},{"key":"NewWorkspaceIcon","value":"{{NewWorkspaceIcon}}"},{"key":"MPCClusterID","value":"{{MPCClusterID}}"},{"key":"QueryID","value":"{{QueryID}}"},{"key":"EnableDrilling","value":"","type":"default"}]}