Dashboard Viewers¶
Manage the viewers associated with a dashboard.
To change the viewers on dashboards, use Dashboard Uploads
- Linked From:
Dashboard Viewer¶
Field |
Description |
---|---|
|
The ID for the user. |
|
The name of the user. |
|
The SIS ID for the user. |
|
Whether or not the viewer is an ally. |
Note
To create dashboard viewers, use the Dashboard Upload POST endpoint.
GET¶
The GET
method is used to fetch a paginated collection of a dashboards viewers.
The viewers are returned ordered by id
in ascending order.
The GET
method supports the following query string parameters:
Parameter |
Description |
---|---|
|
A unique identifier to fetch the next or previous page. It is supplied in the response as a way to navigate pages. |
|
Filter down to users whose name contains the term. |
|
Filter down to users whose ID matches this value. |
|
Filter down to users whose SIS ID matches this value. |
|
Filter down to only allies if True. Filter down to only viewers if False. Otherwise return all. |
|
Filter down to viewers on dashboards for the given account and all of its subaccounts. The account must be a subaccount of the account associated with your API token. |
- Accepted Request Content-Types:
application/json
- Available Response Content-Types:
application/json
Example Request¶
- URL:
/detective/api/v2/dashboard/<dashboard_id>/viewer/
- Content-Type:
application/json
Example Success Response¶
- URL:
/detective/api/v2/dashboard/00000000-0000-0000-0000-000000000000/viewer/
- Status:
200 OK Request
- Content-Type:
application/json
{
"next": "https://apps.aspiredu.com/detective/api/v2/dashboard/00000000-0000-0000-0000-000000000000/viewer/?cursor=UNIQUE_STRING",
"previous": "https://apps.aspiredu.com/detective/api/v2/dashboard/00000000-0000-0000-0000-000000000000/viewer/?cursor=DIFFERENT_UNIQUE_STRING",
"results": [
{
"id": "10",
"sis_id": "10",
"name": "John Jacobs",
"is_ally": true
},
{
"id": "1",
"sis_id": "1",
"name": "Jill Jillian",
"is_ally": false
}
]
}