Exports Self Service Report
curl --request POST \
--url http://10.2.4.166:8080/composer/api/self-service-reports/export \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": [
"<unknown>"
],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": true
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": true
},
"rows": 123,
"isStructuredReport": true
}
],
"limit": 123,
"columnCount": 123,
"fontSize": 123,
"fileName": "<string>"
}
'import requests
url = "http://10.2.4.166:8080/composer/api/self-service-reports/export"
payload = {
"requests": [
{
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": ["<unknown>"],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": True
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": True
},
"rows": 123,
"isStructuredReport": True
}
],
"limit": 123,
"columnCount": 123,
"fontSize": 123,
"fileName": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requests: [
{
query: {
cid: '<string>',
tags: {},
sourceId: '<string>',
sourceName: '<string>',
queries: ['<unknown>'],
time: {timeField: '<string>', from: '<string>', to: '<string>'},
player: {stopTime: '<string>', speed: 123, pauseAfterRead: true},
ttl: 123,
auditInfo: {
dashboardId: '<string>',
visualId: '<string>',
formula: '<string>',
expression: '<string>'
},
composite: true
},
rows: 123,
isStructuredReport: true
}
],
limit: 123,
columnCount: 123,
fontSize: 123,
fileName: '<string>'
})
};
fetch('http://10.2.4.166:8080/composer/api/self-service-reports/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://10.2.4.166:8080/composer/api/self-service-reports/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'query' => [
'cid' => '<string>',
'tags' => [
],
'sourceId' => '<string>',
'sourceName' => '<string>',
'queries' => [
'<unknown>'
],
'time' => [
'timeField' => '<string>',
'from' => '<string>',
'to' => '<string>'
],
'player' => [
'stopTime' => '<string>',
'speed' => 123,
'pauseAfterRead' => true
],
'ttl' => 123,
'auditInfo' => [
'dashboardId' => '<string>',
'visualId' => '<string>',
'formula' => '<string>',
'expression' => '<string>'
],
'composite' => true
],
'rows' => 123,
'isStructuredReport' => true
]
],
'limit' => 123,
'columnCount' => 123,
'fontSize' => 123,
'fileName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://10.2.4.166:8080/composer/api/self-service-reports/export"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"rows\": 123,\n \"isStructuredReport\": true\n }\n ],\n \"limit\": 123,\n \"columnCount\": 123,\n \"fontSize\": 123,\n \"fileName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://10.2.4.166:8080/composer/api/self-service-reports/export")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"rows\": 123,\n \"isStructuredReport\": true\n }\n ],\n \"limit\": 123,\n \"columnCount\": 123,\n \"fontSize\": 123,\n \"fileName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://10.2.4.166:8080/composer/api/self-service-reports/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"rows\": 123,\n \"isStructuredReport\": true\n }\n ],\n \"limit\": 123,\n \"columnCount\": 123,\n \"fontSize\": 123,\n \"fileName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"path": "<string>",
"status": "<string>",
"code": "<string>",
"errorCode": "<string>",
"timestamp": "<string>",
"problems": [
{
"name": "<string>",
"message": "<string>",
"level": "ERROR",
"dependencies": {}
}
]
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}Exports Self Service Report
Exports Self Service Report
curl --request POST \
--url http://10.2.4.166:8080/composer/api/self-service-reports/export \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": [
"<unknown>"
],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": true
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": true
},
"rows": 123,
"isStructuredReport": true
}
],
"limit": 123,
"columnCount": 123,
"fontSize": 123,
"fileName": "<string>"
}
'import requests
url = "http://10.2.4.166:8080/composer/api/self-service-reports/export"
payload = {
"requests": [
{
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": ["<unknown>"],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": True
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": True
},
"rows": 123,
"isStructuredReport": True
}
],
"limit": 123,
"columnCount": 123,
"fontSize": 123,
"fileName": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requests: [
{
query: {
cid: '<string>',
tags: {},
sourceId: '<string>',
sourceName: '<string>',
queries: ['<unknown>'],
time: {timeField: '<string>', from: '<string>', to: '<string>'},
player: {stopTime: '<string>', speed: 123, pauseAfterRead: true},
ttl: 123,
auditInfo: {
dashboardId: '<string>',
visualId: '<string>',
formula: '<string>',
expression: '<string>'
},
composite: true
},
rows: 123,
isStructuredReport: true
}
],
limit: 123,
columnCount: 123,
fontSize: 123,
fileName: '<string>'
})
};
fetch('http://10.2.4.166:8080/composer/api/self-service-reports/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://10.2.4.166:8080/composer/api/self-service-reports/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'query' => [
'cid' => '<string>',
'tags' => [
],
'sourceId' => '<string>',
'sourceName' => '<string>',
'queries' => [
'<unknown>'
],
'time' => [
'timeField' => '<string>',
'from' => '<string>',
'to' => '<string>'
],
'player' => [
'stopTime' => '<string>',
'speed' => 123,
'pauseAfterRead' => true
],
'ttl' => 123,
'auditInfo' => [
'dashboardId' => '<string>',
'visualId' => '<string>',
'formula' => '<string>',
'expression' => '<string>'
],
'composite' => true
],
'rows' => 123,
'isStructuredReport' => true
]
],
'limit' => 123,
'columnCount' => 123,
'fontSize' => 123,
'fileName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://10.2.4.166:8080/composer/api/self-service-reports/export"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"rows\": 123,\n \"isStructuredReport\": true\n }\n ],\n \"limit\": 123,\n \"columnCount\": 123,\n \"fontSize\": 123,\n \"fileName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://10.2.4.166:8080/composer/api/self-service-reports/export")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"rows\": 123,\n \"isStructuredReport\": true\n }\n ],\n \"limit\": 123,\n \"columnCount\": 123,\n \"fontSize\": 123,\n \"fileName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://10.2.4.166:8080/composer/api/self-service-reports/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"rows\": 123,\n \"isStructuredReport\": true\n }\n ],\n \"limit\": 123,\n \"columnCount\": 123,\n \"fontSize\": 123,\n \"fileName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"path": "<string>",
"status": "<string>",
"code": "<string>",
"errorCode": "<string>",
"timestamp": "<string>",
"problems": [
{
"name": "<string>",
"message": "<string>",
"level": "ERROR",
"dependencies": {}
}
]
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}Authorizations
HTTP Basic authentication using global administrator credentials (username and password).
Body
application/json
Self Service Report Export Resource
Required array length:
1 - 2147483647 elementsShow child attributes
Show child attributes
Available options:
CSV, JSON, XLSX, PDF Available options:
LETTER, A3, A4 Available options:
PORTRAIT, LANDSCAPE Response
The report was exported
Was this page helpful?