URL | http://baoapi.esri.com/rest/report/GetReportTemplates |
---|
Get a list of all available Summary Reports templates in the dataset.
The Get Report Templates service returns a list of available report templates including their respective titles, categories, available formats, customizeable header fields, and names. The result of this service is an ArrayOfReportTemplateInfo which provides information about Summary Report templates and the names to use when specifying them in subsequent analysis. Report template names are used in the ReportOptions
parameter in Drive Time, Simple Rings, and Summary Reports.
The Get Report Templates service returns a list of available Summary Reports templates and their available output formats in HTML, JSON, PJSON, and XML formats.
Some applications of Get Report Templates include the following:
headers
property in each report template record describe customizeable report fields/headers. These field names as well as their corresponding values can be specified in the ReportOptions parameter in other analysis tasks such as Drive Time, Simple Rings, and Summary Reports.binarylogo
) or a complete URL reference to an image (logo
). binarylogo
and logo
custom report headers are mutually exclusive.You can provide arguments to the Get Report Templates utility service as defined in the parameters table below.
Parameter | Details |
---|---|
Token (Required) |
Description:
A valid REST services token string.
Syntax: Notes: The value associated with the Token parameter is for example purposes only. See Get Token for more information on obtaining a token. |
ActiveDatasetID |
Description:
Specify a dataset to perform Online API tasks or operations.
Default: USA Notes: See the Get Datasets task to dynamically query the available dataset IDs. |
Callback |
Description: Wrap the JSON or PJSON response in a named function that can be executed by client-side JavaScript upon receipt.
Default: Notes:
|
f |
Description:
The response format.
Default: HTML
Syntax: |
Example 1: Obtain a list of currently available Summary Reports templates and their available output formats.
Request Example (1)
Notes: See Get Token for more information on obtaining a token.
JSON Response Syntax
{ "results": <ArrayOfReportTemplateInfo> }
JSON Response Example (1)
{ "results": [ { "name": "market_profile", "category": "Demographic Reports", "title": "Market Profile", "formats": [ "PDF", "Excel", "XML", "S.XML" ], "headers": [ "logo", "title", "areadescription", "address", "subtitle", "longitude", "locationname", "latitude", "binarylogo" ] }, { "name": "dandi", "category": "Demographic Reports", "title": "Demographic and Income Profile (New Style)", "formats": [ "PDF", "Excel", "XML", "S.XML" ], "headers": [ "logo", "title", "areadescription", "address", "subtitle", "longitude", "locationname", "latitude", "binarylogo" ] }, ... { "name": "acs_population", "category": "ACS Reports", "title": "ACS Population Summary", "formats": [ "PDF", "Excel", "XML", "S.XML" ], "headers": [ "logo", "title", "areadescription", "address", "subtitle", "longitude", "locationname", "latitude", "binarylogo" ] } ] }
Notes: When report templates are specified in other analyses, the values associated with their names are typically specified.
The response has been abbreviated in the example where "..." is noted.