/api/dashboards/username/:username

Lists all dashboards available to the specified user.

This resource is available only for Global admin and Domain administrator (since BellaDati 2.9.8).

Resource Information

Request Parameters

Parameters

Detail

Example

username

Username of the user to fetch dashboards for.

myUserName

Response Structure

JSON response has following structure:

NameDescription
dashboards

Array that contains multiple dashboard objects with following definition:

NameDescription
idDashboard identifier
nameDashboard name
aliasDashboard public path
lastChangeDate and time of dashboard last change

Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/dashboards/username/myUserName

The JSON format response:

{
  "dashboards": [
    {
      "id" : 123,
      "name" : "My Dashboard Name",
      "alias" : "my-public-path",
      "lastChange" : "Fri, 16 Aug 2016 14:49:02 GMT"
    },
    {
      "id" : 456,
      "name" : "Dashboard ABC",
      "alias" : "abc-dashboard",
      "lastChange" : "Mon, 19 Aug 2016 18:19:20 GMT"
    }
  ]
}
  • No labels