Create an analytics report result
post
/services/rest/connect/v1.4/analyticsReportResults
Request
Root Schema : schema
Type:
Show Source
object
-
filters(optional):
object analyticsReports-filters
An Analytics Report Filter Definition
-
id:
integer
Minimum Value:
1
Maximum Value:9.223372036854776E18
The unique identifier of the analytics report definition. -
limit(optional):
integer
Minimum Value:
1
Maximum Value:10000
The maximum number of rows to be retrieved in the report. -
lookupName(optional):
string
Maximum Length:
255
The name used to look up the analytics report definition. -
offset(optional):
integer
Minimum Value:
0
The starting row position of the resource collection. For example, if you set an offset of 8, the report will skip the first eight rows, and include the rows from row 9 in the report.
Nested Schema : analyticsReports-filters
Type:
object
An Analytics Report Filter Definition
Show Source
-
attributes(optional):
object analyticsReports-filters-attributes
Attributes associated with an AnalyticsReportFilter
-
dataType(optional):
object namedIDs-analyticsReports-filters-dataType
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
-
name(optional):
string
Maximum Length:
80
The filter name -
operator(optional):
object namedIDs-analyticsReports-filters-operator
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
-
prompt(optional):
string
Maximum Length:
80
The prompt for this filter -
values(optional):
array values
The string representation of the values for the Operator to apply
Nested Schema : analyticsReports-filters-attributes
Type:
object
Attributes associated with an AnalyticsReportFilter
Show Source
-
editable(optional):
boolean
Is this filter editable?
-
required(optional):
boolean
Is this filter required?
Nested Schema : namedIDs-analyticsReports-filters-dataType
Type:
object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id(optional):
integer
Minimum Value:
0
ID value -
lookupName(optional):
string
Maximum Length:
255
Name used to lookup this object
Nested Schema : namedIDs-analyticsReports-filters-operator
Type:
object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id(optional):
integer
Minimum Value:
0
ID value -
lookupName(optional):
string
Maximum Length:
255
Name used to lookup this object
Nested Schema : values
Type:
array
Maximum Length:
1048576
The string representation of the values for the Operator to apply
Show Source
Response
Default Response
Examples
Use POST with the following syntax to run a report:
https://your_site_interface/services/rest/connect/version/analyticsReportResults
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/analyticsReportResults
Request body example
Include the report ID or LookupName in the request body. This example uses the LookupName.
{
"lookupName": "Last Updated by Status"
}
Response body example
{
"count": 1,
"name": "Last Updated by Status",
columnNames": [
"Status",
"Incidents",
"Average Time Since Last Response"
],
rows": [
[
"Unresolved",
"46",
null
]
],
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReportResults"
},
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReportResults"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/analyticsReportResults",
"mediaType": "application/schema+json"
}
]
}