/api/reports/username/:username

Lists all reports available to the specified user.

This resource is available only for Global admin, Domain admin and Users themselves (since BellaDati 2.9.7).

Resource Information

Request Parameters

Parameters

Detail

Example

username

Username of the user to fetch reports for.

myUserName

Response Structure

JSON response has following structure:

NameDescription
reports

Array that contains multiple report objects with following definition:

NameDescription
idReport identifier
nameReport name
aliasReport public path
lastChangeDate and time of report 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/reports/username/myUserName

The JSON format response:

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