2022.04

2022.04

  • Imply
  • Ingest
  • Query
  • Visualize
  • Administer
  • Deploy

›Pivot API

Overview

  • Pivot overview
  • Datasources
  • SQL

Data cubes

  • About data cubes
  • Managing data cubes
  • Visualizations
  • Dimensions
  • Measures
  • Custom dimensions and measures
  • Time compare
  • Filter by measure
  • Annotations
  • Data export

Dashboards

  • Viewing dashboards
  • Creating dashboards
  • Managing dashboards

Alerts & Reports

  • Alerts
  • Scheduled reports

User access

  • Access control
  • User management in Pivot
  • Manage users with LDAP
  • Manage users with OIDC

Advanced features

  • Feature Flags
  • Customizing the Pivot UI
  • Generating links into Pivot
  • Monitor queries
  • Explain
  • CrossTab
  • Pivot server config

Pivot API

  • Pivot API overview
  • Pivot users API
  • Pivot UserAuth API
  • Pivot roles API
  • Pivot connections API
  • Pivot data cubes API
  • Pivot dashboards API
  • Pivot alerts API
  • Pivot reports API

Pivot reports API

Create, read, or edit your reports using the Pivot API.

Self-hosted customers need a license with this reports feature.

Get all reports or a get single named report

Returns a list of all reports, or returns a report with a {name} that you specify.

URL

GET /api/v1/reports/{name}

Success response

CodeDescription
200OK

Selected error response

CodeExample body
404 Not Found”error": "Not found."

Sample request

curl --location --request GET 'http://localhost:9095/api/v1/reports' \
--header 'x-imply-api-token:<token>'

Response body

[
  {
    "name": "string",
    "title": "string",
    "owner": "string",
    "description": "string",
    "creationDate": "2021-05-03",
    "type": "overall",
    "timeFrame": {
      "startDay": 0,
      "startTime": 0,
      "interval": "previous_day"
    },
    "deliver": {
      "frequency": "string",
      "frequencyType": "fixed",
      "day": 0,
      "dayType": "of-month",
      "time": 0
    },
    "essence": {
      "dataCube": "string"
    },
    "externalEmails": [
      "string"
    ],
    "timezone": "string",
    "recipients": {
      "users": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "access": "all"
    },
    "admins": {
      "users": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "access": "all"
    },
    "sendDataFile": true,
    "fileFormat": "csv",
    "downloadLimit": 0,
    "disabled": false,
    "sendEmail": true
  }
]

Create or update a report by name

Creates or updates a report with a {name} that you specify.

URL

POST /api/v1/reports/{name}

Request body

curl -X POST --header "Content-Type:application/json" --header "x-imply-api-token:<token>" --data '
{
  "report": {
    "name": "string",
    "title": "string",
    "owner": "string",
    "description": "string",
    "creationDate": "2021-05-03",
    "type": "overall",
    "timeFrame": {
      "startDay": 0,
      "startTime": 0,
      "interval": "previous_day"
    },
    "deliver": {
      "frequency": "string",
      "frequencyType": "fixed",
      "day": 0,
      "dayType": "of-month",
      "time": 0
    },
    "essence": {
      "dataCube": "string"
    },
    "externalEmails": [
      "string"
    ],
    "timezone": "string",
    "recipients": {
      "users": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "access": "all"
    },
    "admins": {
      "users": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "access": "all"
    },
    "sendDataFile": true,
    "fileFormat": "csv",
    "downloadLimit": 0,
    "disabled": false,
    "sendEmail": true
  }
}

Success response

CodeDescription
200OK

Selected error response

CodeExample body
404 Not Found”error": "Not found."

Response body

[
  {
    "name": "string",
    "title": "string",
    "owner": "string",
    "description": "string",
    "creationDate": "2021-05-03",
    "type": "overall",
    "timeFrame": {
      "startDay": 0,
      "startTime": 0,
      "interval": "previous_day"
    },
    "deliver": {
      "frequency": "string",
      "frequencyType": "fixed",
      "day": 0,
      "dayType": "of-month",
      "time": 0
    },
    "essence": {
      "dataCube": "string"
    },
    "externalEmails": [
      "string"
    ],
    "timezone": "string",
    "recipients": {
      "users": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "access": "all"
    },
    "admins": {
      "users": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "access": "all"
    },
    "sendDataFile": true,
    "fileFormat": "csv",
    "downloadLimit": 0,
    "disabled": false,
    "sendEmail": true
  }
]

Delete a report by name

Deletes a report with a {name} that you specify.

URL

DELETE /api/v1/reports/{name}

Sample request

curl -X DELETE --header "x-imply-api-token:<token>" localhost:9095/api/v1/reports/<reportName>

Success response

CodeDescription
200OK

Selected error response

CodeExample body
404 Not Found”error": "Not found."
Last updated on 5/5/2021
← Pivot alerts API
  • Get all reports or a get single named report
    • URL
    • Success response
    • Selected error response
    • Sample request
    • Response body
  • Create or update a report by name
    • URL
    • Request body
    • Success response
    • Selected error response
    • Response body
  • Delete a report by name
    • URL
    • Sample request
    • Success response
    • Selected error response
2022.04
Key links
Try ImplyApache Druid siteImply GitHub
Get help
Stack OverflowSupportContact us
Learn more
Apache Druid forumsBlog
Copyright © 2022 Imply Data, Inc