Get an analytics report
get
/services/rest/connect/v1.4/analyticsReports/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the analytics report definition.
Response
Default Response
Root Schema : analyticsReports
Type:
objectThe analytics report definition that provides descriptions of a report's output columns, search criteria, and other components.
Show Source
-
columns:
object analyticsReports-columns
The columns in an analytics report.
-
createdTime:
string
The date and time when the analytics report was created. This attribute is read-only.
-
filters:
object analyticsReports-filters
The filters used for running an analytics report.
-
id:
integer
Minimum Value:
1Maximum Value:9223372036854776000The unique identifier of the analytics report definition. -
lookupName:
string
Maximum Length:
255The name used to look up the analytics report definition. -
name:
string
Maximum Length:
80The name of the report in the language of the current interface. This attribute is read-only. -
names:
object analyticsReports-names
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
-
updatedTime:
string
The date and time when the analytics report was last updated. This attribute is read-only.
Nested Schema : analyticsReports-columns
Type:
objectThe columns in an analytics report.
Show Source
-
dataType:
object namedIDs-analyticsReports-columns-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.
-
description:
string
Maximum Length:
349525The description of the column in the report. -
heading:
string
Maximum Length:
349525The column heading in the report.
Nested Schema : analyticsReports-filters
Type:
objectThe filters used for running an analytics report.
Show Source
-
attributes:
object analyticsReports-filters-attributes
The attributes associated with an analytics report filter.
-
dataType:
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:
string
Maximum Length:
80Pattern:^[^ ]*$The name of the filter. -
operator:
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:
string
Maximum Length:
80Pattern:^[^ ]*$The prompt for the filter. -
values:
array values
The string representation of the values for the operator to apply. The right-hand side (RHS) of the filter value.
Nested Schema : analyticsReports-names
Type:
objectThe language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Show Source
-
labelText:
string
Maximum Length:
80The language-specific label text. The value cannot be null or empty. -
language:
object namedIDs-analyticsReports-names-language
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.
Nested Schema : namedIDs-analyticsReports-columns-dataType
Type:
objectAn 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:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Nested Schema : analyticsReports-filters-attributes
Type:
objectThe attributes associated with an analytics report filter.
Show Source
-
editable:
boolean
Indicates whether the filter is editable. This attribute does not have a default value.
-
required:
boolean
Indicates whether the filter is mandatory. This attribute does not have a default value.
Nested Schema : namedIDs-analyticsReports-filters-dataType
Type:
objectAn 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:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Nested Schema : namedIDs-analyticsReports-filters-operator
Type:
objectAn 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:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Nested Schema : values
Type:
arrayMaximum Length:
1048576The string representation of the values for the operator to apply. The right-hand side (RHS) of the filter value.
Show Source
Nested Schema : namedIDs-analyticsReports-names-language
Type:
objectAn 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:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Examples
Use GET with the following syntax to retrieve a specific report:
https://your_site_interface/services/rest/connect/version/analyticsReports/report_idRequest URI example
https://mysite.example.com/services/rest/connect/v1.4/analyticsReports/5Response body example
{
"id": 5,
"lookupName": "Answers Viewed by Category",
"createdTime": "2007-02-01T08:00:00.000Z",
"updatedTime": "2007-02-01T08:00:00.000Z",
"columns": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReports/5/columns"
}
]
},
"filters": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReports/5/filters"
}
]
},
"name": "Answers Viewed by Category",
"names": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReports/5/names"
}
]
},
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReports/5"
},
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReports/5"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/analyticsReports",
"mediaType": "application/schema+json"
}
]
}