Environments-5
For instructions on how to authenticate to use this endpoint, see API overview.
Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered.
Endpoints
GET | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST |
Retrieve environments dashboards stream tiles
Path parameters
- idinteger
A unique integer value identifying this dashboard.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- formatstringOne of:
"json"
"txt"
Example request
GET
/api /environments /:project_id /dashboards /:id /stream_tiles
Example response
Status 200 No response body
Retrieve environments dashboards stream tiles
Path parameters
- idinteger
A unique integer value identifying this dashboard.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- formatstringOne of:
"json"
"txt"
Example request
GET
/api /environments /:project_id /dashboards /:id /stream_tiles
Example response
Status 200 No response body
Create environments dashboards create from template json
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- formatstringOne of:
"json"
"txt"
Request parameters
- namestring
- descriptionstring
- pinnedboolean
- last_accessed_atstring
- deletedboolean
- breakdown_colors
- data_color_theme_idinteger
- tagsarray
- restriction_level
- last_refreshstring
- use_templatestring
- use_dashboardinteger
- delete_insightsbooleanDefault:
false
- _create_in_folderstring
Example request
POST
/api /environments /:project_id /dashboards /create_from_template_json
Example response
Status 200 No response body
Create environments dashboards create from template json
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- formatstringOne of:
"json"
"txt"
Request parameters
- namestring
- descriptionstring
- pinnedboolean
- last_accessed_atstring
- deletedboolean
- breakdown_colors
- data_color_theme_idinteger
- tagsarray
- restriction_level
- last_refreshstring
- use_templatestring
- use_dashboardinteger
- delete_insightsbooleanDefault:
false
- _create_in_folderstring
Example request
POST
/api /environments /:project_id /dashboards /create_from_template_json
Example response
Status 200 No response body
List all environments data color themes
Required API key scopes
project:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET
/api /environments /:project_id /data_color_themes
Example response
Status 200
List all environments data color themes
Required API key scopes
project:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET
/api /environments /:project_id /data_color_themes
Example response
Status 200
Create environments data color themes
Required API key scopes
project:write
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- colors
Response
Example request
POST
/api /environments /:project_id /data_color_themes
Example response
Status 201
Create environments data color themes
Required API key scopes
project:write
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- colors
Response
Example request
POST
/api /environments /:project_id /data_color_themes
Example response
Status 201
Retrieve environments data color themes
Required API key scopes
project:read
Path parameters
- idinteger
A unique integer value identifying this data color theme.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET
/api /environments /:project_id /data_color_themes /:id
Example response
Status 200
Retrieve environments data color themes
Required API key scopes
project:read
Path parameters
- idinteger
A unique integer value identifying this data color theme.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET
/api /environments /:project_id /data_color_themes /:id
Example response
Status 200
Update environments data color themes
Required API key scopes
project:write
Path parameters
- idinteger
A unique integer value identifying this data color theme.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- colors
Response
Example request
PATCH
/api /environments /:project_id /data_color_themes /:id
Example response
Status 200
Update environments data color themes
Required API key scopes
project:write
Path parameters
- idinteger
A unique integer value identifying this data color theme.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- colors
Response
Example request
PATCH
/api /environments /:project_id /data_color_themes /:id
Example response
Status 200
Delete environments data color themes
Required API key scopes
project:write
Path parameters
- idinteger
A unique integer value identifying this data color theme.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
DELETE
/api /environments /:project_id /data_color_themes /:id
Example response
Status 204 No response body
Delete environments data color themes
Required API key scopes
project:write
Path parameters
- idinteger
A unique integer value identifying this data color theme.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
DELETE
/api /environments /:project_id /data_color_themes /:id
Example response
Status 204 No response body
List all environments dataset items
Required API key scopes
dataset:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- datasetstring
Filter by dataset ID
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET
/api /environments /:project_id /dataset_items
Example response
Status 200
List all environments dataset items
Required API key scopes
dataset:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- datasetstring
Filter by dataset ID
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET
/api /environments /:project_id /dataset_items
Example response
Status 200
Create environments dataset items
Required API key scopes
dataset:write
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstring
- ref_timestampstring
- ref_source_idstring
- deletedboolean
Response
Example request
POST
/api /environments /:project_id /dataset_items
Example response
Status 201
Create environments dataset items
Required API key scopes
dataset:write
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstring
- ref_timestampstring
- ref_source_idstring
- deletedboolean
Response
Example request
POST
/api /environments /:project_id /dataset_items