Documentation Index

Fetch the complete documentation index at: https://support.dise.com/llms.txt

Use this file to discover all available pages before exploring further.

New Dise One & CX Portal release! Click this link to read the release notes: Dise One 5.0 & CX Portal V42

Manage Reports via the API

Prev Next

Reports can be created, accessed and exported via the API to fully automate the reporting process:

  1. Create a report

  2. Check the report status for successful generation

  3. Export the report in JSON format

Create report

mutation CreateReport(
  $name: NonEmptyString!
  $type: ReportType!
  $displayId: [DisplayUID]
  $playlistId: [PlaylistUID]
  $contentName: [NonEmptyString]
  $dateRange: DateRange
) {
  report {
    create(
      name: $name
      type: $type
      displayId: $displayId
      playlistId: $playlistId
      contentName: $contentName
      dateRange: $dateRange
    ) {
      id
      name
      type
      state
      dateRange
      createdAt
    }
  }
}

Get report status

query GetReports {
  reports {
    id
    name
    type
    state
    dateRange
    createdAt
  }
}

Export as JSON

query GetReport($id: ReportUID!) {
  report(id: $id) {
    id
    name
    type
    state
    export {
      json
    }
  }
}

This will return a JSON endpoint URL that contains the reports raw data.