{"id":72653,"date":"2026-10-08T15:39:45","date_gmt":"2026-10-08T07:39:45","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=72653"},"modified":"2026-10-19T13:42:25","modified_gmt":"2026-10-19T05:42:25","slug":"rest-adaptor","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/rest-adaptor\/","title":{"rendered":"Rest Adaptor"},"content":{"rendered":"<p class=\"intro-text\">The Generic REST adaptors connect IFS OI Server to REST web services that return JSON, without custom code. You describe how to call the service and where the data sits in its response, and the adaptor turns that response into time series or dataset data.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/\">Dataset Datasources<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-tag-datasource\/\">Tag Datasources<\/a><\/p>\n<h2 id=\"overview\" class=\"page-subheading\">Overview<\/h2>\n<p>Every REST API arranges its JSON differently. The Generic REST adaptors handle this with a <strong>shape configuration<\/strong>: a short JSON description that says where each value is in the response. The adaptor calls the service, applies the shape, and returns data that Explorer understands.<\/p>\n<p>There are two adaptors:<\/p>\n<ul>\n<li><strong>Generic REST Time Series Adaptor<\/strong>: tag data (timestamped values for named tags), used in trends and anywhere Explorer reads tag history.<\/li>\n<li><strong>Generic REST Dataset Adaptor<\/strong>: tabular data (rows and columns), used anywhere Explorer uses a dataset.<\/li>\n<\/ul>\n<p>Both adaptors share the same connection, authentication and shape configuration options. Both are read-only.<\/p>\n<h2 id=\"choose\" class=\"page-subheading\">Choosing an Adaptor<\/h2>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">\u00a0<\/td>\n<td><strong>Time Series<\/strong><\/td>\n<td><strong>Dataset<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Use it for<\/span><\/strong><\/td>\n<td>Sensor readings, process values: anything with a tag name, a time and a value<\/td>\n<td>Lists and tables: work orders, assets, events, reference data<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Output<\/span><\/strong><\/td>\n<td>Values per tag: name, timestamp, value, confidence<\/td>\n<td>A table whose columns you define<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Shape is set<\/span><\/strong><\/td>\n<td>Once, on the datasource<\/td>\n<td>On each dataset, in its query<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Values filled into the request<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tag}<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{startTime}<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{endTime}<\/span><\/td>\n<td>Dataset parameters through <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAM()<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAMS()<\/span><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Paging<\/span><\/strong><\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag browsing<\/span><\/strong><\/td>\n<td>Yes<\/td>\n<td>Not applicable<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If the service is an OData service, try the OData adaptors first; they understand OData queries natively. Use the Generic REST adaptors for services that are not OData, or when the response needs reshaping.<\/p>\n<h2 id=\"quickstart\" class=\"page-subheading\">Quick Start<\/h2>\n<p>This example uses a public OData sample service so that you can see the whole flow before connecting your own API.<\/p>\n<ol>\n<li>Create a datasource that uses the <em>Generic REST Dataset Adaptor<\/em>. Set <strong>Base URL<\/strong> to <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/services.odata.org\/V4\/Northwind\/Northwind.svc<\/span> and leave <strong>Authentication Mode<\/strong> as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span>.<\/li>\n<li>Use <em>Test Connection<\/em>. The adaptor sends a GET to the Base URL; a success response marks the datasource as operational.<\/li>\n<li>Create a dataset on the datasource and enter this query:<\/li>\n<\/ol>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"Products?$top=20\",\r\n  \"shape\": {\r\n    \"rowsPath\": \"$.value[*]\",\r\n    \"emit\": {\r\n      \"ProductID\":   { \"path\": \"ProductID\", \"type\": \"int\" },\r\n      \"ProductName\": { \"path\": \"ProductName\" },\r\n      \"UnitPrice\":   { \"path\": \"UnitPrice\", \"type\": \"decimal\" }\r\n    }\r\n  }\r\n}<\/pre>\n<ol start=\"4\">\n<li>Preview the dataset. You should see 20 rows with the columns <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ProductID<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ProductName<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">UnitPrice<\/span>.<\/li>\n<\/ol>\n<p>The <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span> is appended to the Base URL. The <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">shape<\/span> says that each item in the response's <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">value<\/span> array is a row, and which three fields to take from each item.<\/p>\n<h2 id=\"connection\" class=\"page-subheading\">Connection and Authentication Settings<\/h2>\n<p>These settings apply to both adaptors. The following table lists them along with the <em>name<\/em> and <em>type<\/em> to be used in the Import\/Export spreadsheet. The standard datasource settings (name, description, time zone, timeouts) also apply.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Parameter<\/strong><\/td>\n<td><strong>Description and example<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Base URI \/ Base URL<\/span><\/strong><\/td>\n<td>Required. The service's address, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">https:\/\/api.example.com\/v1<\/span>. Request paths are appended to it. Called Base URI on the Time Series adaptor and Base URL on the Dataset adaptor.<\/td>\n<td>BaseURI \/ BaseUrl<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">HTTP Method<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">GET<\/span> (default) or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">POST<\/span>. Use POST for services that take a request body, such as GraphQL.<\/td>\n<td>HttpMethod<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Headers<\/span><\/strong><\/td>\n<td>Extra headers, one <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Name: Value<\/span> per line. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Accept: application\/json<\/span>.<\/td>\n<td>Headers<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Content Type<\/span><\/strong><\/td>\n<td>Content type of a POST body. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">application\/json<\/span>.<\/td>\n<td>RequestContentType<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Timeout (seconds)<\/span><\/strong><\/td>\n<td>How long to wait for a response. <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">0<\/span> (default) uses the system default of 100 seconds.<\/td>\n<td>RequestTimeoutSeconds<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Verification Path<\/span><\/strong><\/td>\n<td>Optional path that <em>Test Connection<\/em> requests instead of the Base URL. Use it when the Base URL itself returns an error.<\/td>\n<td>VerificationPath<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Authentication Mode<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span> (default), <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Basic<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Bearer<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ApiKey<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">OAuth2ClientCredentials<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Certificate<\/span>. Only the settings for the chosen mode are used.<\/td>\n<td>AuthenticationMode<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Username<\/span><\/strong><\/td>\n<td>User name for Basic authentication.<\/td>\n<td>Username<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Password<\/span><\/strong><\/td>\n<td>Password for Basic authentication.<\/td>\n<td>Password<\/td>\n<td>EncryptedString<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Bearer Token<\/span><\/strong><\/td>\n<td>A fixed token, sent as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Authorization: Bearer \u2026<\/span>. Replace it manually when it expires.<\/td>\n<td>BearerToken<\/td>\n<td>EncryptedString<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">API Key Name<\/span><\/strong><\/td>\n<td>Name of the header or query-string parameter that carries the API key.<\/td>\n<td>ApiKeyName<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">API Key Value<\/span><\/strong><\/td>\n<td>The API key.<\/td>\n<td>ApiKeyValue<\/td>\n<td>EncryptedString<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">API Key Location<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Header<\/span> (default) or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">QueryString<\/span>.<\/td>\n<td>ApiKeyLocation<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 Token URL<\/span><\/strong><\/td>\n<td>Token endpoint for the OAuth 2.0 client-credentials grant. The adaptor reuses a token until shortly before it expires. If a request is rejected as unauthorized, it gets a new token and tries once more.<\/td>\n<td>OAuth2TokenUrl<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 Client Id<\/span><\/strong><\/td>\n<td>Client ID for the client-credentials grant.<\/td>\n<td>OAuth2ClientId<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 Client Secret<\/span><\/strong><\/td>\n<td>Client secret for the client-credentials grant.<\/td>\n<td>OAuth2ClientSecret<\/td>\n<td>EncryptedString<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">OAuth2 Scope<\/span><\/strong><\/td>\n<td>Optional scope for the client-credentials grant.<\/td>\n<td>OAuth2Scope<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Certificate Thumbprint<\/span><\/strong><\/td>\n<td>Thumbprint of a client certificate for mutual TLS. The certificate must be installed on the server that runs the adaptor.<\/td>\n<td>CertificateThumbprint<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Certificate Store Location<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">CurrentUser<\/span> (default) or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">LocalMachine<\/span>.<\/td>\n<td>CertificateStoreLocation<\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"timeseries\" class=\"page-subheading\">Time Series Adaptor<\/h2>\n<p>The Generic REST Time Series Adaptor answers Explorer's requests for tag data. For each request it builds a URL (and a body, for POST) from your templates, calls the service, applies the shape configuration, and returns the values for each tag.<\/p>\n<p>You only configure how to get raw values. IFS OI Server calculates averages, interpolated values and last-known values from the raw data, so every sampling method works without extra setup.<\/p>\n<h3>Time Series Adaptor Settings<\/h3>\n<p>In addition to the <a href=\"#connection\">connection and authentication settings<\/a>:<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Parameter<\/strong><\/td>\n<td><strong>Description and example<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Path Template<\/span><\/strong><\/td>\n<td>Path and query string appended to the Base URI. Can contain placeholders. Example: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">trend?tag={tag}&amp;from={startTime}&amp;to={endTime}<\/span><\/td>\n<td>RequestPathTemplate<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Body<\/span><\/strong><\/td>\n<td>POST only. The body to send. Can contain the same placeholders.<\/td>\n<td>RequestBody<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Timestamp Format<\/span><\/strong><\/td>\n<td>.NET date format used for <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{startTime}<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{endTime}<\/span>. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">yyyy-MM-ddTHH:mm:ssZ<\/span>.<\/td>\n<td>RequestTimestampFormat<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Request Time Zone<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">UTC<\/span> (default) or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">DatasourceLocal<\/span>, the datasource's time zone. For DatasourceLocal, include an offset in the timestamp format, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">yyyy-MM-ddTHH:mm:sszzz<\/span>.<\/td>\n<td>RequestTimeZone<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Shape Configuration<\/span><\/strong><\/td>\n<td>Required. JSON that finds the name, timestamp, value and confidence in the response. See <a href=\"#shape\">Shape Configuration<\/a>.<\/td>\n<td>ShapeConfiguration<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Path<\/span><\/strong><\/td>\n<td>Optional path of an endpoint that lists tags. If blank, the Request Path Template is used. Supports <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{startTime}<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{endTime}<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span>.<\/td>\n<td>TagDiscoveryPath<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Shape<\/span><\/strong><\/td>\n<td>Optional shape for the tag-list response. Outputs <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span>, and optionally <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">description<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">units<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">minimum<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">maximum<\/span>. If blank, the Shape Configuration is used.<\/td>\n<td>TagDiscoveryShape<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Headers<\/span><\/strong><\/td>\n<td>Optional headers for tag browsing. They replace the Request Headers; authentication still applies.<\/td>\n<td>TagDiscoveryHeaders<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Content Type<\/span><\/strong><\/td>\n<td>Optional content type for a POST discovery body. If blank, the Request Content Type is used.<\/td>\n<td>TagDiscoveryContentType<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Body<\/span><\/strong><\/td>\n<td>Optional POST body for tag browsing. If blank, the Request Body is used.<\/td>\n<td>TagDiscoveryBody<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag Discovery Window (hours)<\/span><\/strong><\/td>\n<td>How far back <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{startTime}<\/span> goes during tag browsing. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">24<\/span>.<\/td>\n<td>TagDiscoveryWindowHours<\/td>\n<td>Integer<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Request Placeholders<\/h3>\n<p>The adaptor replaces these placeholders in the Request Path Template and Request Body before each call.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Placeholder<\/strong><\/td>\n<td><strong>Replaced with<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tag}<\/span><\/span><\/strong><\/td>\n<td>One tag name. The adaptor makes one call per tag; if one tag fails, the others still return. The response doesn't need to include the tag name.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span><\/span><\/strong><\/td>\n<td>All requested tag names, separated by commas. The adaptor makes one call for all tags, so the shape <strong>must<\/strong> output <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span> to match values to tags. Matching ignores case.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{startTime}<\/span><\/span><\/strong><\/td>\n<td>Start of the requested period, in the Request Timestamp Format and Request Time Zone.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{endTime}<\/span><\/span><\/strong><\/td>\n<td>End of the requested period, formatted the same way.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If the template uses neither <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tag}<\/span> nor <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span>, the adaptor makes one call and matches values to tags by the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span> the shape outputs.<\/p>\n<p class=\"left-bar\"><strong>Note:<\/strong> if Request Time Zone is <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">DatasourceLocal<\/span> but the timestamp format still ends in <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">Z<\/span>, local times are sent labeled as UTC and the data will be shifted.<\/p>\n<h3>Shape Output for Tag Data<\/h3>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Field<\/strong><\/td>\n<td><strong>Required<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">value<\/span><\/strong><\/td>\n<td>Yes<\/td>\n<td>The reading. Numbers, text and true\/false are accepted.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">timestamp<\/span><\/strong><\/td>\n<td>Recommended<\/td>\n<td>When the reading was taken. Must have a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">format<\/span>. Rows without a timestamp are stamped with the end of the requested period, which suits services that only return current values.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">name<\/span><\/strong><\/td>\n<td>With <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span> or no placeholder<\/td>\n<td>The tag name, used to match values to tags.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">confidence<\/span><\/strong><\/td>\n<td>No<\/td>\n<td>Quality from 0 to 100. Default: 100.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Tag Browsing<\/h3>\n<p>When a user browses or searches for tags on the datasource, the adaptor gets tag names from the service. By default it repeats the normal data request over the last 24 hours and lists each distinct <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span> it finds; the search filter, including wildcards, is then applied. If the service has an endpoint that lists tags, set the Tag Discovery settings above to use it instead. Tag browsing uses the datasource's HTTP Method.<\/p>\n<h2 id=\"dataset\" class=\"page-subheading\">Dataset Adaptor<\/h2>\n<p>The Generic REST Dataset Adaptor returns a table. Connection, authentication and paging are set on the datasource. The request path and the shape are set on each dataset, because each endpoint returns a different structure.<\/p>\n<h3>Dataset Adaptor Settings<\/h3>\n<p>The Dataset adaptor uses the <a href=\"#connection\">connection and authentication settings<\/a> and the <a href=\"#paging\">paging settings<\/a>. It has no settings of its own beyond those.<\/p>\n<h3>Writing a Dataset Query<\/h3>\n<p>For a SQL datasource, a dataset query is a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">SELECT<\/span> statement. For a REST datasource, the query is a JSON document with these fields:<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Field<\/strong><\/td>\n<td><strong>Required<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">path<\/span><\/strong><\/td>\n<td>Usually<\/td>\n<td>Path and query string appended to the Base URL.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">body<\/span><\/strong><\/td>\n<td>For POST<\/td>\n<td>The request body, written as a JSON string. Sent when the datasource's HTTP Method is POST.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">shape<\/span><\/strong><\/td>\n<td>Yes<\/td>\n<td>How to turn the response into rows and columns. See <a href=\"#shape\">Shape Configuration<\/a>.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">params<\/span><\/strong><\/td>\n<td>No<\/td>\n<td>A list of <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ \"name\": \u2026, \"value\": \u2026 }<\/span> entries. Currently used only for <a href=\"#paging\">loading one page at a time<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Every field the shape outputs becomes a column, and each shaped item becomes a row. To add, rename or retype a column, change the shape. Column types come from the first non-empty value in the column:<\/p>\n<ul>\n<li>true\/false values make a Boolean column.<\/li>\n<li>A field with a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">format<\/span> makes a Date\/Time column.<\/li>\n<li>A field with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"int\"<\/span> makes an Integer column.<\/li>\n<li>Other numbers make a Decimal column. This includes whole numbers with no <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">type<\/span>, and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"long\"<\/span>.<\/li>\n<li>Anything else makes a Text column.<\/li>\n<\/ul>\n<h3>Parameters<\/h3>\n<p>REST dataset queries use the same parameter keywords as SQL dataset queries. Define the dataset's parameters as you would for a SQL dataset, then use them in the query.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/how-to-write-a-dataset-query\/\">Dataset Queries<\/a><\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Keyword<\/strong><\/td>\n<td><strong>Becomes<\/strong><\/td>\n<td><strong>Example<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAM(name,type)<\/span><\/span><\/strong><\/td>\n<td>The parameter's value<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAM(site,string)<\/span> becomes <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">2401<\/span><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAMS(name,type)<\/span><\/span><\/strong><\/td>\n<td>All selected values, separated by commas<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAMS(ids,integer)<\/span> becomes <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">1,2,3<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Values are formatted for a URL:<\/p>\n<ul>\n<li>Text is URL-encoded, so a space becomes <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">%20<\/span>.<\/li>\n<li>Numbers use a dot as the decimal separator.<\/li>\n<li>Booleans are <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">true<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">false<\/span>.<\/li>\n<li>Dates and times are ISO 8601 in the datasource's time zone, including the offset.<\/li>\n<\/ul>\n<p class=\"left-bar\"><strong>Note:<\/strong> values are URL-encoded even inside a POST <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">body<\/span>, so text with spaces arrives as, for example, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">New%20York<\/span>. In POST queries, use parameters only for values that need no encoding, such as codes and numbers.<\/p>\n<h2 id=\"paging\" class=\"page-subheading\">Dataset Paging<\/h2>\n<p>Many APIs return large results in pages. Set the Paging Style on the datasource to match the API. The following table lists the paging settings along with the <em>name<\/em> and <em>type<\/em> to be used in the Import\/Export spreadsheet.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Parameter<\/strong><\/td>\n<td><strong>Description and example<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Paging Style<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span> (default): a single request.<br \/>\n<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">NextLink<\/span>: follow the next-page URL in each response until there is none (OData <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">@odata.nextLink<\/span> style).<br \/>\n<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">OffsetLimit<\/span>: add an offset and a limit to the URL, and increase the offset until a page has fewer rows than Page Size.<br \/>\n<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PageNumber<\/span>: add a page number (from 1) and a page size, and increase the page number until a page has fewer rows than Page Size.<\/td>\n<td>PagingStyle<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Next Link Path<\/span><\/strong><\/td>\n<td>Where the next-page URL is in the response. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$['@odata.nextLink']<\/span>.<\/td>\n<td>NextLinkPath<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Page Size<\/span><\/strong><\/td>\n<td>Rows to request in each call. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">100<\/span>.<\/td>\n<td>PageSize<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Offset Parameter<\/span><\/strong><\/td>\n<td>URL parameter that holds the offset. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$skip<\/span>.<\/td>\n<td>OffsetParameter<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Limit Parameter<\/span><\/strong><\/td>\n<td>URL parameter that holds the page size for OffsetLimit. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$top<\/span>.<\/td>\n<td>LimitParameter<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Page Parameter<\/span><\/strong><\/td>\n<td>URL parameter that holds the page number. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">page<\/span>.<\/td>\n<td>PageParameter<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Page Size Parameter<\/span><\/strong><\/td>\n<td>URL parameter that holds the page size for PageNumber. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pageSize<\/span>.<\/td>\n<td>PageSizeParameter<\/td>\n<td>String<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Max Pages<\/span><\/strong><\/td>\n<td>Safety limit: the adaptor stops after this many calls. Default: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">1000<\/span>.<\/td>\n<td>MaxPages<\/td>\n<td>Integer<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Normally the adaptor fetches every page, up to Max Pages, and returns all rows as one table. With OffsetLimit or PageNumber, don't put offset or page parameters in the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span>; the adaptor adds them. Paging applies to GET requests only; a POST dataset always makes a single call.<\/p>\n<h3>Loading One Page at a Time<\/h3>\n<p>For displays that load data page by page, add <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pageNumber<\/span>, and optionally <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pageSize<\/span>, to the query's <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">params<\/span>. The adaptor then returns only that page, making only as many API calls as it needs. If <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pageSize<\/span> is left out, the display's page size is used.<\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"Orders\",\r\n  \"params\": [\r\n    { \"name\": \"pageNumber\", \"value\": \"PARAM(pageNumber,integer)\" },\r\n    { \"name\": \"pageSize\",   \"value\": \"50\" }\r\n  ],\r\n  \"shape\": { \"rowsPath\": \"$.value[*]\", \"emit\": { \"OrderId\": { \"path\": \"OrderID\", \"type\": \"int\" } } }\r\n}<\/pre>\n<p>With OffsetLimit or PageNumber paging, the adaptor starts at the first row of the requested page, so rows from earlier pages are never requested again. It stops when the page is full or the API returns a short page, and discards any extra rows from the last call. See <a href=\"#ex-combined-paging\">One Display Page from Several API Calls<\/a>.<\/p>\n<p>With NextLink paging, the adaptor remembers where the previous page ended, so the next page doesn't start from the beginning. When it has no record of where the previous page ended, for example on the first request for page 3:<\/p>\n<ul>\n<li>If Offset Parameter is set, the first call adds the offset and the datasource's Page Size (as the Limit Parameter), so it starts at the right row. The adaptor then follows the next links from there.<\/li>\n<li>If Offset Parameter is blank, the adaptor starts from the first page and skips the rows that belong to earlier pages.<\/li>\n<\/ul>\n<p>With Paging Style <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">None<\/span>, it fetches the full response and returns only the requested rows.<\/p>\n<p class=\"left-bar\"><strong>Note:<\/strong> Offset Parameter defaults to <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$skip<\/span>. If a NextLink API doesn't accept <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$skip<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$top<\/span>, clear Offset Parameter on the datasource.<\/p>\n<p class=\"left-bar\"><strong>Note:<\/strong> this works only when the display asks the dataset for paged results. The page number must be passed through <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">params<\/span> as shown, because Explorer does not otherwise pass it to the adaptor.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/how-to-write-a-dataset-query\/how-to-write-a-paged-query\/\">Paged Queries<\/a><\/p>\n<h2 id=\"shape\" class=\"page-subheading\">Shape Configuration<\/h2>\n<p>A shape configuration is a JSON document that turns one API response into a list of rows. Both adaptors use the same format. For the Time Series adaptor, the shape outputs <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">timestamp<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">value<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">confidence<\/span>. For the Dataset adaptor, every field it outputs becomes a column.<\/p>\n<h3>Patterns<\/h3>\n<p>Use exactly one pattern. If more than one is present, the first in this table is used.<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Pattern<\/strong><\/td>\n<td><strong>Use when the response\u2026<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">levels<\/span><\/strong><\/td>\n<td>is nested: rows inside rows, the tag name several levels above the values, or the tag name used as an object key<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">zip<\/span><\/strong><\/td>\n<td>holds each column as its own array, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">timestamps[]<\/span> next to <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">values[]<\/span><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">rowsPath + emit<\/span><\/strong><\/td>\n<td>is one list in which each item is a row. This is the most common case.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">emit<\/span><\/strong><\/td>\n<td>is a single object that should become one row<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Finding a Value<\/h3>\n<p>Each entry in <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">emit<\/span> (or in <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">zip.columns<\/span>) names an output field and says where its value comes from:<\/p>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Key<\/strong><\/td>\n<td><strong>Takes the value from<\/strong><\/td>\n<td><strong>Example<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">path<\/span><\/strong><\/td>\n<td>A path inside the current item<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ \"path\": \"meta.quality\" }<\/span><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">index<\/span><\/strong><\/td>\n<td>A position, when the item is an array such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">[time, value, quality]<\/span><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ \"index\": 1 }<\/span><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">var<\/span><\/strong><\/td>\n<td>A variable saved at an outer level (see <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">levels<\/span>)<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ \"var\": \"tagName\" }<\/span><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">literal<\/span><\/strong><\/td>\n<td>A fixed value<\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ \"literal\": \"PLANT-1\" }<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If an entry has more than one of these keys, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">literal<\/span> wins, then <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">var<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">index<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span>. An entry with none of them, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ }<\/span>, takes the current item itself. A <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">literal<\/span> value is used exactly as written; <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">type<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">format<\/span> don't apply to it.<\/p>\n<h3>Converting Values<\/h3>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Key<\/strong><\/td>\n<td><strong>Values<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">format<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">iso8601<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">unixSeconds<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">unixMilliseconds<\/span>, or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">custom:<\/span> plus a .NET pattern, such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">custom:dd\/MM\/yyyy HH:mm:ss<\/span><\/td>\n<td>Reads the value as a date and time. Always set this on <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">timestamp<\/span>. A custom pattern with no offset is read as UTC.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">type<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">decimal<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">double<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">int<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">long<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bool<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">string<\/span><\/td>\n<td>Reads the value as that type. <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">integer<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">float<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">boolean<\/span> are also accepted, and case is ignored. A value that can't be converted fails the whole request.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">nullSentinels<\/span><\/strong><\/td>\n<td>A list, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">[-9999, \"N\/A\"]<\/span><\/td>\n<td>Treats these values as empty. Matching ignores case.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">default<\/span><\/strong><\/td>\n<td>Any value<\/td>\n<td>Used when the field is missing, null, or matches a null sentinel.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Use <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">format<\/span> for dates and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">type<\/span> for everything else. A field with neither is passed through as it appears in the JSON.<\/p>\n<h3>Nested Responses (levels)<\/h3>\n<p><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">levels<\/span> is a list of steps, from the outside of the response inward. Each step can have:<\/p>\n<ul>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span>: the items to go through at this level. The first step is relative to the whole response; later steps are relative to the item from the previous step.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bind<\/span>: values to save for use further in, as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ \"variableName\": \"path\" }<\/span>. Read them later with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">var<\/span>.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bindKey<\/span>: for when the tag name is an object key rather than a field. The adaptor goes through each key, saves it under this variable name, and moves into its value.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">emit<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">zip<\/span>: on the last step only. This step produces the rows.<\/li>\n<\/ul>\n<h3>Columnar Responses (zip)<\/h3>\n<p><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">zip.columns<\/span> lists the output fields. A column with a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span> reads an array, and the arrays are combined item by item: the first item of each array makes the first row, and so on. A column with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">var<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">literal<\/span> repeats the same value on every row. <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">onRagged<\/span> controls what happens when the arrays have different lengths:<\/p>\n<ul>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">truncate<\/span> (default) stops at the shortest array.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pad<\/span> continues to the longest array and fills missing values with empty values.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">fail<\/span> returns an error.<\/li>\n<\/ul>\n<h3>Path Syntax<\/h3>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Write<\/strong><\/td>\n<td><strong>To select<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">a.b.c<\/span><\/span><\/strong><\/td>\n<td>A property, or a property inside a property<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">['@odata.count']<\/span><\/span><\/strong><\/td>\n<td>A property whose name contains dots, spaces or other symbols<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">items[0]<\/span><\/span><\/strong><\/td>\n<td>One array item by position, starting at 0<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">items[*]<\/span><\/span><\/strong><\/td>\n<td>Every item in an array<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">*<\/span><\/span><\/strong><\/td>\n<td>Every item, or every property value, of the current item<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\"><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$.data<\/span><\/span><\/strong><\/td>\n<td>A path from the top of the response, not from the current item<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">empty, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">@<\/span><\/span><\/strong><\/td>\n<td>The current item itself<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"left-bar\"><strong>Note:<\/strong> filters (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">[?(...)]<\/span>), recursive search (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">..<\/span>) and slices (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">[0:5]<\/span>) are not supported. Filter on the server through the request URL instead. Property names are case-sensitive.<\/p>\n<h2 id=\"building\" class=\"page-subheading\">Building a Shape<\/h2>\n<p>Writing a shape is easier if you look at the real response first. Follow these steps:<\/p>\n<ol>\n<li><strong>Call the API<\/strong> in a browser or a tool such as Postman, using the same URL and sign-in as the datasource, and copy the response.<\/li>\n<li><strong>Find the repeating part.<\/strong> Look for the array that has one item per row (or per reading). Its path becomes <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">rowsPath<\/span>, or the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span> of the last level.<\/li>\n<li><strong>Find each value relative to one item.<\/strong> Inside <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">emit<\/span>, paths start from a single array item, not from the top of the response.<\/li>\n<li><strong>Find values that sit outside the repeating part<\/strong>, such as a tag name or site name in a parent object. Capture them with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bind<\/span> on an outer level and read them with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">var<\/span>.<\/li>\n<li><strong>Add <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">type<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">format<\/span><\/strong> so numbers become numbers and dates become dates. Many APIs send numbers as text, such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"18.4\"<\/span>.<\/li>\n<li><strong>Test<\/strong> by previewing the dataset, or by trending one tag over a short period.<\/li>\n<\/ol>\n<h3>Which Pattern to Use<\/h3>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>If the response looks like\u2026<\/strong><\/td>\n<td><strong>Use<\/strong><\/td>\n<td><strong>Example<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">A list of records<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">rowsPath<\/span> + <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">emit<\/span><\/td>\n<td><a href=\"#ex-users\">Users<\/a>, <a href=\"#ex-servicenow\">ServiceNow incidents<\/a><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">A list of records, plus details in a header<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">levels<\/span> with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bind<\/span><\/td>\n<td><a href=\"#ex-thingspeak\">ThingSpeak channel<\/a><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">One array per column<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">zip<\/span><\/td>\n<td><a href=\"#ex-weather-daily\">Daily weather<\/a><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Readings nested inside series, inside sites<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">levels<\/span><\/td>\n<td><a href=\"#ex-usgs\">River gauges<\/a><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong><span style=\"color: #800080;\">Tag names used as property names<\/span><\/strong><\/td>\n<td><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">levels<\/span> with <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bindKey<\/span><\/td>\n<td><a href=\"#ex-weather-hourly\">Hourly weather<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"real-examples\" class=\"page-subheading\">Shape Examples from Real Services<\/h2>\n<p>These examples use real public services, so you can try them against the live API. The responses are shortened. Check the provider's documentation for current details before you rely on a service.<\/p>\n<h3 id=\"ex-users\">Dataset: Flattening Nested Objects (Users)<\/h3>\n<p>Each user record has an address and a company inside it. The shape flattens them into one row per user.<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URL: https:\/\/jsonplaceholder.typicode.com<\/pre>\n<p><strong>Response from GET \/users<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">[\r\n  {\r\n    \"id\": 1,\r\n    \"name\": \"Leanne Graham\",\r\n    \"email\": \"Sincere@april.biz\",\r\n    \"address\": {\r\n      \"street\": \"Kulas Light\",\r\n      \"city\": \"Gwenborough\",\r\n      \"geo\": { \"lat\": \"-37.3159\", \"lng\": \"81.1496\" }\r\n    },\r\n    \"company\": { \"name\": \"Romaguera-Crona\" }\r\n  }\r\n]<\/pre>\n<p><strong>Dataset query<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"users\",\r\n  \"shape\": {\r\n    \"rowsPath\": \"$[*]\",\r\n    \"emit\": {\r\n      \"Id\":        { \"path\": \"id\", \"type\": \"int\" },\r\n      \"Name\":      { \"path\": \"name\" },\r\n      \"Email\":     { \"path\": \"email\" },\r\n      \"City\":      { \"path\": \"address.city\" },\r\n      \"Latitude\":  { \"path\": \"address.geo.lat\", \"type\": \"decimal\" },\r\n      \"Company\":   { \"path\": \"company.name\" }\r\n    }\r\n  }\r\n}<\/pre>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Id<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Email<\/strong><\/td>\n<td><strong>City<\/strong><\/td>\n<td><strong>Latitude<\/strong><\/td>\n<td><strong>Company<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>1<\/td>\n<td>Leanne Graham<\/td>\n<td>Sincere@april.biz<\/td>\n<td>Gwenborough<\/td>\n<td>-37.3159<\/td>\n<td>Romaguera-Crona<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>The response is an array at the top level, so <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">rowsPath<\/span> is <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$[*]<\/span>.<\/li>\n<li>Dots reach into nested objects: <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">address.geo.lat<\/span>.<\/li>\n<li>The latitude arrives as text, so <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"decimal\"<\/span> makes it a number.<\/li>\n<\/ul>\n<h3 id=\"ex-servicenow\">Dataset: Business Records with Paging (ServiceNow Incidents)<\/h3>\n<p>The ServiceNow Table API returns records in a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">result<\/span> array, uses a non-standard date format, and returns a person as an object with a display name. It pages with offset and limit parameters.<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URL:            https:\/\/yourinstance.service-now.com\/api\/now\r\nAuthentication Mode: Basic (or OAuth2ClientCredentials)\r\nRequest Headers:     Accept: application\/json\r\nPaging Style:        OffsetLimit\r\nOffset Parameter:    sysparm_offset\r\nLimit Parameter:     sysparm_limit\r\nPage Size:           500<\/pre>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"result\": [\r\n    {\r\n      \"number\": \"INC0010023\",\r\n      \"short_description\": \"Compressor C-101 high vibration\",\r\n      \"priority\": \"2\",\r\n      \"state\": \"In Progress\",\r\n      \"assigned_to\": { \"display_value\": \"Beth Anglin\", \"link\": \"https:\/\/\u2026\" },\r\n      \"opened_at\": \"2026-10-07 08:15:22\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p><strong>Dataset query<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"table\/incident?sysparm_query=active=true^assignment_group.name=PARAM(group,string)&amp;sysparm_display_value=true&amp;sysparm_fields=number,short_description,priority,state,assigned_to,opened_at\",\r\n  \"shape\": {\r\n    \"rowsPath\": \"$.result[*]\",\r\n    \"emit\": {\r\n      \"Number\":      { \"path\": \"number\" },\r\n      \"Description\": { \"path\": \"short_description\" },\r\n      \"Priority\":    { \"path\": \"priority\", \"type\": \"int\" },\r\n      \"State\":       { \"path\": \"state\" },\r\n      \"Assigned To\": { \"path\": \"assigned_to.display_value\", \"default\": \"Unassigned\" },\r\n      \"Opened\":      { \"path\": \"opened_at\", \"format\": \"custom:yyyy-MM-dd HH:mm:ss\" }\r\n    }\r\n  }\r\n}<\/pre>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Number<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Priority<\/strong><\/td>\n<td><strong>State<\/strong><\/td>\n<td><strong>Assigned To<\/strong><\/td>\n<td><strong>Opened<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>INC0010023<\/td>\n<td>Compressor C-101 high vibration<\/td>\n<td>2<\/td>\n<td>In Progress<\/td>\n<td>Beth Anglin<\/td>\n<td>07\/10\/2026 08:15:22<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">PARAM(group,string)<\/span> lets the Explorer user choose the assignment group.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">sysparm_display_value=true<\/span> makes ServiceNow return names instead of internal IDs, so <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">assigned_to.display_value<\/span> gives the person's name.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">default<\/span> fills in <em>Unassigned<\/em> when nobody is assigned.<\/li>\n<li>The date has no time zone, so the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">custom:<\/span> format reads it as UTC, which is what the ServiceNow API returns by default.<\/li>\n<li>OffsetLimit paging adds <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">sysparm_offset<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">sysparm_limit<\/span> to the URL and fetches pages until one comes back with fewer than 500 records. Don't put those parameters in the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span> yourself.<\/li>\n<\/ul>\n<h3 id=\"ex-thingspeak\">Dataset: Header Values on Every Row (ThingSpeak IoT Channel)<\/h3>\n<p>ThingSpeak returns details about the channel once, followed by its readings. Every reading is text. The shape copies the channel name onto every row.<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URL: https:\/\/api.thingspeak.com<\/pre>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"channel\": {\r\n    \"id\": 9,\r\n    \"name\": \"my_house\",\r\n    \"field1\": \"Light\",\r\n    \"field2\": \"Outside Temperature\"\r\n  },\r\n  \"feeds\": [\r\n    { \"created_at\": \"2026-10-08T01:00:15Z\", \"entry_id\": 101, \"field1\": \"345\", \"field2\": \"18.45\" },\r\n    { \"created_at\": \"2026-10-08T01:00:30Z\", \"entry_id\": 102, \"field1\": \"351\", \"field2\": null }\r\n  ]\r\n}<\/pre>\n<p><strong>Dataset query<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"channels\/9\/feeds.json?results=PARAM(readings,integer)\",\r\n  \"shape\": {\r\n    \"levels\": [\r\n      { \"path\": \"$\", \"bind\": { \"channel\": \"channel.name\" } },\r\n      { \"path\": \"feeds[*]\", \"emit\": {\r\n          \"Channel\":     { \"var\": \"channel\" },\r\n          \"Time\":        { \"path\": \"created_at\", \"format\": \"iso8601\" },\r\n          \"Light\":       { \"path\": \"field1\", \"type\": \"decimal\" },\r\n          \"Temperature\": { \"path\": \"field2\", \"type\": \"decimal\" }\r\n      } }\r\n    ]\r\n  }\r\n}<\/pre>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Channel<\/strong><\/td>\n<td><strong>Time<\/strong><\/td>\n<td><strong>Light<\/strong><\/td>\n<td><strong>Temperature<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>my_house<\/td>\n<td>08\/10\/2026 01:00:15<\/td>\n<td>345<\/td>\n<td>18.45<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>my_house<\/td>\n<td>08\/10\/2026 01:00:30<\/td>\n<td>351<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>The first level stays at the top of the response (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$<\/span>) and saves the channel name. The second level walks the readings.<\/li>\n<li>The readings are text, so <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"decimal\"<\/span> turns them into numbers. The <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">null<\/span> reading becomes an empty cell.<\/li>\n<li>The field names (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">field1<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">field2<\/span>) are renamed to meaningful column names.<\/li>\n<\/ul>\n<h3 id=\"ex-weather-daily\">Dataset: One Array per Column (Daily Weather Forecast)<\/h3>\n<p>Open-Meteo returns each measurement as its own array, with the dates in a separate array. Item 1 of each array belongs to the same day. <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">zip<\/span> lines them up into rows.<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URL: https:\/\/api.open-meteo.com\/v1<\/pre>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"latitude\": -31.95,\r\n  \"longitude\": 115.86,\r\n  \"daily_units\": { \"temperature_2m_max\": \"\u00b0C\", \"precipitation_sum\": \"mm\" },\r\n  \"daily\": {\r\n    \"time\":               [\"2026-10-08\", \"2026-10-09\", \"2026-10-10\"],\r\n    \"temperature_2m_max\": [24.1, 26.8, 22.3],\r\n    \"temperature_2m_min\": [12.4, 14.0, 13.1],\r\n    \"precipitation_sum\":  [0.0, 0.0, 4.2]\r\n  }\r\n}<\/pre>\n<p><strong>Dataset query<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"forecast?latitude=-31.95&amp;longitude=115.86&amp;daily=temperature_2m_max,temperature_2m_min,precipitation_sum&amp;timezone=GMT\",\r\n  \"shape\": {\r\n    \"zip\": {\r\n      \"columns\": {\r\n        \"Location\": { \"literal\": \"Perth\" },\r\n        \"Date\":     { \"path\": \"daily.time[*]\", \"format\": \"iso8601\" },\r\n        \"Max (\u00b0C)\": { \"path\": \"daily.temperature_2m_max[*]\", \"type\": \"decimal\" },\r\n        \"Min (\u00b0C)\": { \"path\": \"daily.temperature_2m_min[*]\", \"type\": \"decimal\" },\r\n        \"Rain (mm)\":{ \"path\": \"daily.precipitation_sum[*]\", \"type\": \"decimal\" }\r\n      }\r\n    }\r\n  }\r\n}<\/pre>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Location<\/strong><\/td>\n<td><strong>Date<\/strong><\/td>\n<td><strong>Max (\u00b0C)<\/strong><\/td>\n<td><strong>Min (\u00b0C)<\/strong><\/td>\n<td><strong>Rain (mm)<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>Perth<\/td>\n<td>08\/10\/2026<\/td>\n<td>24.1<\/td>\n<td>12.4<\/td>\n<td>0<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>Perth<\/td>\n<td>09\/10\/2026<\/td>\n<td>26.8<\/td>\n<td>14.0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>Perth<\/td>\n<td>10\/10\/2026<\/td>\n<td>22.3<\/td>\n<td>13.1<\/td>\n<td>4.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Each column with a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span> reads one array; the arrays are combined item by item.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">literal<\/span> adds the same value to every row, which is useful when you combine data from several locations.<\/li>\n<li>Dates with no time are read as midnight UTC.<\/li>\n<\/ul>\n<h3 id=\"ex-usgs\">Time Series: Readings Nested Inside Series (River Gauges)<\/h3>\n<p>USGS Water Services returns river flow and level readings. Each series has its tag-like name at the top, and its readings two levels further in. Readings are text, and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">-999999<\/span> means \"no data\".<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URI:              https:\/\/waterservices.usgs.gov\/nwis\r\nRequest Path Template: iv\/?format=json&amp;sites=01646500&amp;parameterCd=00060,00065&amp;startDT={startTime}&amp;endDT={endTime}<\/pre>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"value\": {\r\n    \"timeSeries\": [\r\n      {\r\n        \"name\": \"USGS:01646500:00060:00000\",\r\n        \"sourceInfo\": { \"siteName\": \"POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA\" },\r\n        \"variable\": {\r\n          \"variableDescription\": \"Discharge, cubic feet per second\",\r\n          \"unit\": { \"unitCode\": \"ft3\/s\" }\r\n        },\r\n        \"values\": [ {\r\n          \"value\": [\r\n            { \"value\": \"10900\", \"qualifiers\": [\"P\"], \"dateTime\": \"2026-10-07T00:00:00.000-04:00\" },\r\n            { \"value\": \"-999999\", \"qualifiers\": [\"P\", \"Ice\"], \"dateTime\": \"2026-10-07T00:15:00.000-04:00\" }\r\n          ]\r\n        } ]\r\n      }\r\n    ]\r\n  }\r\n}<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"levels\": [\r\n    { \"path\": \"$.value.timeSeries[*]\",\r\n      \"bind\": {\r\n        \"tagName\": \"name\",\r\n        \"site\":    \"sourceInfo.siteName\",\r\n        \"measure\": \"variable.variableDescription\",\r\n        \"unit\":    \"variable.unit.unitCode\"\r\n      } },\r\n    { \"path\": \"values[0].value[*]\", \"emit\": {\r\n        \"name\":        { \"var\": \"tagName\" },\r\n        \"timestamp\":   { \"path\": \"dateTime\", \"format\": \"iso8601\" },\r\n        \"value\":       { \"path\": \"value\", \"type\": \"decimal\",\r\n                         \"nullSentinels\": [\"-999999\", \"-999999.0\"] },\r\n        \"description\": { \"var\": \"measure\" },\r\n        \"units\":       { \"var\": \"unit\" }\r\n    } }\r\n  ]\r\n}<\/pre>\n<table>\n<thead>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Tag<\/strong><\/td>\n<td><strong>Time (UTC)<\/strong><\/td>\n<td><strong>Value<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>USGS:01646500:00060:00000<\/td>\n<td>07\/10\/2026 04:00:00<\/td>\n<td>10900<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td>USGS:01646500:00060:00000<\/td>\n<td>07\/10\/2026 04:15:00<\/td>\n<td>(no data)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>The first level visits each series and saves its name, units and description. The second level visits its readings.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">values[0]<\/span> picks the first item of the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">values<\/span> array, which is where USGS puts the readings.<\/li>\n<li>The template uses neither <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tag}<\/span> nor <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span>, so one request returns all series and the readings are matched to tags by <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span>. Create the tags with these exact names, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">USGS:01646500:00065:00000<\/span> for gauge height.<\/li>\n<li>The extra <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">description<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">units<\/span> fields are ignored when reading data, but tag browsing uses them, so browsing shows \"Discharge, cubic feet per second\" and \"ft3\/s\".<\/li>\n<li>Times include a UTC offset (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">-04:00<\/span>), so they are converted to UTC correctly.<\/li>\n<\/ul>\n<h3 id=\"ex-weather-hourly\">Time Series: Tag Names as Property Names (Hourly Weather)<\/h3>\n<p>For hourly weather, Open-Meteo uses each measurement name as a property inside <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">hourly<\/span>, next to a shared <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">time<\/span> array. Using the Open-Meteo variable names as tag names, the shape turns each array into a tag.<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URI:                 https:\/\/api.open-meteo.com\/v1\r\nRequest Path Template:    forecast?latitude=-31.95&amp;longitude=115.86&amp;hourly={tags}&amp;timeformat=unixtime&amp;start_hour={startTime}&amp;end_hour={endTime}\r\nRequest Timestamp Format: yyyy-MM-ddTHH:mm\r\nRequest Time Zone:        UTC<\/pre>\n<p><strong>Response for the tags temperature_2m and wind_speed_10m<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"hourly_units\": { \"time\": \"unixtime\", \"temperature_2m\": \"\u00b0C\", \"wind_speed_10m\": \"km\/h\" },\r\n  \"hourly\": {\r\n    \"time\":           [1791417600, 1791421200, 1791424800],\r\n    \"temperature_2m\": [18.3, 19.1, 20.4],\r\n    \"wind_speed_10m\": [12.2, 14.8, 16.1]\r\n  }\r\n}<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"levels\": [\r\n    { \"path\": \"$.hourly\", \"bindKey\": \"tagName\",\r\n      \"zip\": { \"columns\": {\r\n        \"name\":      { \"var\": \"tagName\" },\r\n        \"timestamp\": { \"path\": \"$.hourly.time[*]\", \"format\": \"unixSeconds\" },\r\n        \"value\":     { \"path\": \"[*]\", \"type\": \"decimal\" }\r\n      } } }\r\n  ]\r\n}<\/pre>\n<p><strong>Tag browsing<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Tag Discovery Path:  forecast?latitude=-31.95&amp;longitude=115.86&amp;hourly=temperature_2m,relative_humidity_2m,wind_speed_10m,precipitation&amp;forecast_days=1\r\nTag Discovery Shape:\r\n{\r\n  \"levels\": [\r\n    { \"path\": \"$.hourly_units\", \"bindKey\": \"tagName\", \"emit\": {\r\n        \"name\":  { \"var\": \"tagName\" },\r\n        \"units\": { }\r\n    } }\r\n  ]\r\n}<\/pre>\n<ul>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bindKey<\/span> goes through each property of <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">hourly<\/span>, saving its name (<span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">temperature_2m<\/span>) as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">tagName<\/span> and moving into its array.<\/li>\n<li>Inside <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">zip<\/span>, <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">[*]<\/span> reads the current array, and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$.hourly.time[*]<\/span> reads the shared time array from the top of the response.<\/li>\n<li>The <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">time<\/span> array also becomes a series called <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">time<\/span>, but it's ignored because no tag has that name.<\/li>\n<li><span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span> puts all requested tags into one request, which suits APIs that accept a comma-separated list.<\/li>\n<li>Tag browsing reads <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">hourly_units<\/span>, where each tag name is paired with its unit. The empty field spec <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{ }<\/span> takes the value itself (the unit text). Browsing also lists <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">time<\/span>, which you can ignore.<\/li>\n<\/ul>\n<h2 id=\"examples\" class=\"page-subheading\">More Examples<\/h2>\n<h3>Time Series: Flat List<\/h3>\n<p>One array of readings, with a nested value and a timestamp in milliseconds.<\/p>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{ \"items\": [\r\n  { \"id\": \"PMP-1.run\",\r\n    \"ts\": 1718928000000,\r\n    \"reading\": { \"value\": 12.4 },\r\n    \"meta\": { \"q\": 100 } }\r\n] }<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"rowsPath\": \"$.items[*]\",\r\n  \"emit\": {\r\n    \"name\":       { \"path\": \"id\" },\r\n    \"timestamp\":  { \"path\": \"ts\", \"format\": \"unixMilliseconds\" },\r\n    \"value\":      { \"path\": \"reading.value\", \"type\": \"decimal\" },\r\n    \"confidence\": { \"path\": \"meta.q\", \"type\": \"int\" }\r\n  }\r\n}<\/pre>\n<h3>Time Series: Tag Names as Keys<\/h3>\n<p>The response maps each tag name to its readings. <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">bindKey<\/span> saves each key as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">tagName<\/span>.<\/p>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{ \"data\": {\r\n  \"TIC-101\": [ { \"t\": \"2026-06-21T00:00:00Z\", \"v\": 12.3 } ],\r\n  \"FIC-200\": [ { \"t\": \"2026-06-21T00:00:00Z\", \"v\": 50.1 } ]\r\n} }<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"levels\": [\r\n    { \"path\": \"$.data\", \"bindKey\": \"tagName\" },\r\n    { \"path\": \"*\", \"emit\": {\r\n        \"name\":      { \"var\": \"tagName\" },\r\n        \"timestamp\": { \"path\": \"t\", \"format\": \"iso8601\" },\r\n        \"value\":     { \"path\": \"v\", \"type\": \"decimal\" }\r\n    } }\r\n  ]\r\n}<\/pre>\n<h3>Time Series: Deeply Nested Readings<\/h3>\n<p>The tag name is three levels above the readings, and each reading is an array of <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">[time, value, quality]<\/span>.<\/p>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{ \"facilities\": [ {\r\n  \"facilityId\": \"PLANT-1\",\r\n  \"areas\": [ {\r\n    \"areaName\": \"Compression\",\r\n    \"instruments\": [ {\r\n      \"tag\": \"TIC-101\",\r\n      \"samples\": [\r\n        [1718928000, 12.3, 100],\r\n        [1718928060, 12.5, 90]\r\n      ]\r\n    } ]\r\n  } ]\r\n} ] }<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"levels\": [\r\n    { \"path\": \"$.facilities[*]\" },\r\n    { \"path\": \"areas[*]\" },\r\n    { \"path\": \"instruments[*]\",\r\n      \"bind\": { \"tagName\": \"tag\" } },\r\n    { \"path\": \"samples[*]\", \"emit\": {\r\n        \"name\":       { \"var\": \"tagName\" },\r\n        \"timestamp\":  { \"index\": 0, \"format\": \"unixSeconds\" },\r\n        \"value\":      { \"index\": 1, \"type\": \"decimal\" },\r\n        \"confidence\": { \"index\": 2, \"type\": \"int\", \"default\": 100 }\r\n    } }\r\n  ]\r\n}<\/pre>\n<h3>Time Series: Separate Arrays with Bad Values<\/h3>\n<p>Times and values are in parallel arrays, the time uses a day-first format, and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">-9999<\/span> marks a bad reading.<\/p>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{ \"tag\": \"FIC-200\",\r\n  \"trend\": {\r\n    \"timestamps\": [\"21\/06\/2026 08:00:00\",\r\n                   \"21\/06\/2026 08:05:00\",\r\n                   \"21\/06\/2026 08:10:00\"],\r\n    \"values\":     [50.2, -9999, 50.4],\r\n    \"qualities\":  [100, 0, 90]\r\n} }<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"levels\": [\r\n    { \"path\": \"$\", \"bind\": { \"tagName\": \"tag\" } },\r\n    { \"path\": \"trend\", \"zip\": { \"columns\": {\r\n        \"name\":       { \"var\": \"tagName\" },\r\n        \"timestamp\":  { \"path\": \"timestamps[*]\",\r\n                        \"format\": \"custom:dd\/MM\/yyyy HH:mm:ss\" },\r\n        \"value\":      { \"path\": \"values[*]\", \"type\": \"decimal\",\r\n                        \"nullSentinels\": [-9999] },\r\n        \"confidence\": { \"path\": \"qualities[*]\", \"type\": \"int\" }\r\n    } } }\r\n  ]\r\n}<\/pre>\n<p>This produces three readings. The middle one is empty because <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">-9999<\/span> is a null sentinel.<\/p>\n<h3>Time Series: Current Values Only<\/h3>\n<p>The service returns only the latest value for each tag, with no time. Leave <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">timestamp<\/span> out of the shape; each value is stamped with the end of the requested period.<\/p>\n<p><strong>Request Path Template<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">current?tags={tags}<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"rowsPath\": \"$.values[*]\",\r\n  \"emit\": {\r\n    \"name\":  { \"path\": \"tag\" },\r\n    \"value\": { \"path\": \"v\", \"type\": \"decimal\" }\r\n  }\r\n}<\/pre>\n<h3>Time Series: GraphQL with OAuth2<\/h3>\n<p><strong>Datasource settings<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URI:             https:\/\/example.com\/graphql\r\nHTTP Method:          POST\r\nRequest Body:         {\"query\":\"{ readings(from:\\\"{startTime}\\\", to:\\\"{endTime}\\\", tags:[{tags}]) { tag ts value } }\"}\r\nAuthentication Mode:  OAuth2ClientCredentials\r\nOAuth2 Token URL:     https:\/\/example.com\/oauth\/token\r\nOAuth2 Client Id:     (your client ID)\r\nOAuth2 Client Secret: (your client secret)\r\nOAuth2 Scope:         read:timeseries<\/pre>\n<p><strong>Shape Configuration<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"rowsPath\": \"$.data.readings[*]\",\r\n  \"emit\": {\r\n    \"name\":      { \"path\": \"tag\" },\r\n    \"timestamp\": { \"path\": \"ts\", \"format\": \"unixSeconds\" },\r\n    \"value\":     { \"path\": \"value\", \"type\": \"decimal\" }\r\n  }\r\n}<\/pre>\n<h3>Dataset: Filtered by a Parameter<\/h3>\n<p>The dataset has a string parameter called <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">category<\/span>.<\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"Products?$filter=CategoryName eq 'PARAM(category,string)'\",\r\n  \"shape\": {\r\n    \"rowsPath\": \"$.value[*]\",\r\n    \"emit\": {\r\n      \"ProductID\":    { \"path\": \"ProductID\", \"type\": \"int\" },\r\n      \"ProductName\":  { \"path\": \"ProductName\" },\r\n      \"UnitPrice\":    { \"path\": \"UnitPrice\", \"type\": \"decimal\" },\r\n      \"Discontinued\": { \"path\": \"Discontinued\", \"type\": \"bool\" }\r\n    }\r\n  }\r\n}<\/pre>\n<h3>Dataset: List of Selected IDs<\/h3>\n<p>The dataset has a multi-value integer parameter called <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">ids<\/span>.<\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"Products?$filter=ProductID in (PARAMS(ids,integer))\",\r\n  \"shape\": { \"rowsPath\": \"$.value[*]\", \"emit\": {\r\n    \"ProductID\":   { \"path\": \"ProductID\", \"type\": \"int\" },\r\n    \"ProductName\": { \"path\": \"ProductName\" }\r\n  } }\r\n}<\/pre>\n<h3>Dataset: Nested Data Flattened into One Table<\/h3>\n<p>Each department contains its employees. The result has one row per employee, with the department name repeated on each row.<\/p>\n<p><strong>Response<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{ \"departments\": [\r\n  { \"name\": \"Sales\", \"employees\": [\r\n    { \"id\": 1, \"fullName\": \"A. Smith\" },\r\n    { \"id\": 2, \"fullName\": \"B. Lee\" }\r\n  ] }\r\n] }<\/pre>\n<p><strong>Dataset query<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"org\",\r\n  \"shape\": { \"levels\": [\r\n    { \"path\": \"$.departments[*]\",\r\n      \"bind\": { \"department\": \"name\" } },\r\n    { \"path\": \"employees[*]\", \"emit\": {\r\n        \"Department\": { \"var\": \"department\" },\r\n        \"EmployeeId\": { \"path\": \"id\", \"type\": \"int\" },\r\n        \"Name\":       { \"path\": \"fullName\" }\r\n    } }\r\n  ] }\r\n}<\/pre>\n<h3>Dataset: All Pages of an OData Feed<\/h3>\n<p>Set Paging Style to <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">NextLink<\/span> on the datasource and keep the default Next Link Path. The adaptor follows each <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">@odata.nextLink<\/span> until the last page.<\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"Orders?$expand=Customer\",\r\n  \"shape\": { \"rowsPath\": \"$.value[*]\", \"emit\": {\r\n    \"OrderId\":  { \"path\": \"OrderID\", \"type\": \"int\" },\r\n    \"Customer\": { \"path\": \"Customer.CompanyName\" },\r\n    \"Ordered\":  { \"path\": \"OrderDate\", \"format\": \"iso8601\" }\r\n  } }\r\n}<\/pre>\n<h3 id=\"ex-combined-paging\">Dataset: One Display Page from Several API Calls<\/h3>\n<p>The display shows 100 rows per page, but the API returns at most 25 rows per call. The adaptor makes as many calls as it needs to fill each display page.<\/p>\n<p><strong>Datasource<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">Base URL:         https:\/\/api.example.com\r\nPaging Style:     OffsetLimit\r\nOffset Parameter: $skip\r\nLimit Parameter:  $top\r\nPage Size:        25<\/pre>\n<p><strong>Dataset query<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">{\r\n  \"path\": \"Products?$orderby=ProductID\",\r\n  \"params\": [\r\n    { \"name\": \"pageNumber\", \"value\": \"PARAM(pageNumber,integer)\" },\r\n    { \"name\": \"pageSize\",   \"value\": \"100\" }\r\n  ],\r\n  \"shape\": { \"rowsPath\": \"$.value[*]\", \"emit\": {\r\n    \"ProductID\":   { \"path\": \"ProductID\", \"type\": \"int\" },\r\n    \"ProductName\": { \"path\": \"ProductName\" }\r\n  } }\r\n}<\/pre>\n<p><strong>Requests sent for page 2<\/strong><\/p>\n<pre class=\"wrap:true lang:default decode:true\">GET https:\/\/api.example.com\/Products?$orderby=ProductID&amp;$skip=100&amp;$top=25\r\nGET https:\/\/api.example.com\/Products?$orderby=ProductID&amp;$skip=125&amp;$top=25\r\nGET https:\/\/api.example.com\/Products?$orderby=ProductID&amp;$skip=150&amp;$top=25\r\nGET https:\/\/api.example.com\/Products?$orderby=ProductID&amp;$skip=175&amp;$top=25<\/pre>\n<ul>\n<li>Page 2 starts at row 101, so the first call starts at <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$skip=100<\/span>. The 100 rows of page 1 are not requested again.<\/li>\n<li>The datasource's Page Size (25) is the size of each API call. The <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pageSize<\/span> entry in <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">params<\/span> (100) is the size of the display page. Leave <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">pageSize<\/span> out to use the display's own page size.<\/li>\n<li>If a call returns fewer than 25 rows, that is the last page and the adaptor stops early.<\/li>\n<li>The adaptor adds <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$skip<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">$top<\/span> itself (URL-encoded, so they are sent as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">%24skip<\/span> and <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">%24top<\/span>). Don't put them in the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">path<\/span>.<\/li>\n<\/ul>\n<h2 id=\"troubleshooting\" class=\"page-subheading\">Troubleshooting<\/h2>\n<p><strong><span style=\"color: #800080;\">Test Connection fails, but data requests work<\/span><\/strong><br \/>\nTest Connection sends a GET to the Base URL, which many APIs don't serve. Set Verification Path to an endpoint that returns success for a GET.<\/p>\n<p><strong><span style=\"color: #800080;\">\"The dataset query must be a JSON document with a 'shape'\"<\/span><\/strong><br \/>\nThe query isn't valid JSON, or it has no <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">shape<\/span>. Check for missing commas and unescaped quotes. Inside <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">body<\/span>, write quotes as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\\\"<\/span>.<\/p>\n<p><strong><span style=\"color: #800080;\">Some tags return no data in batch mode<\/span><\/strong><br \/>\nWith <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">{tags}<\/span>, the shape must output <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">name<\/span>, and it must match the tag name exactly apart from case.<\/p>\n<p><strong><span style=\"color: #800080;\">A request fails with a conversion error<\/span><\/strong><br \/>\nA field's <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">type<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">format<\/span> doesn't match the data, for example <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"int\"<\/span> on <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"n\/a\"<\/span>. Add the bad value to <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">nullSentinels<\/span>, or use <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"string\"<\/span>.<\/p>\n<p><strong><span style=\"color: #800080;\">Times are shifted by a few hours<\/span><\/strong><br \/>\nFor requests, check Request Time Zone and include an offset in the timestamp format. For responses, a <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">custom:<\/span> format with no offset is read as UTC.<\/p>\n<p><strong><span style=\"color: #800080;\">A whole-number column shows as decimal<\/span><\/strong><br \/>\nAdd <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">\"type\": \"int\"<\/span> to the field.<\/p>\n<p><strong><span style=\"color: #800080;\">A column is missing or empty<\/span><\/strong><br \/>\nCheck the path against the actual response; paths are case-sensitive. Use <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">['name']<\/span> for property names that contain dots or symbols.<\/p>\n<p><strong><span style=\"color: #800080;\">Only part of the data comes back<\/span><\/strong><br \/>\nThe API is probably paging. Set Paging Style to match it, and check whether Max Pages was reached.<\/p>\n<p><strong><span style=\"color: #800080;\">Where to find error details<\/span><\/strong><br \/>\nFailed requests report the URL and the HTTP status from the service, and timeouts say so. Full details are written to the server log.<\/p>\n<h2 id=\"limits\" class=\"page-subheading\">Limitations<\/h2>\n<ul>\n<li>Read-only. Neither adaptor writes data back to the service.<\/li>\n<li>Responses must be JSON. XML and CSV are not supported.<\/li>\n<li>Paging applies only to GET requests in the Dataset adaptor. The Time Series adaptor makes one call per fetch, or one per tag.<\/li>\n<li>The path syntax has no filters, recursive search or slices.<\/li>\n<li>PageNumber paging always starts at page 1. APIs that number pages from 0 are not supported.<\/li>\n<li>Tag names are inserted into the URL without encoding. Tag names with spaces or symbols such as <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">&amp;<\/span> or <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">#<\/span> may need extra care.<\/li>\n<li>Loading one page at a time requires the <span style=\"font-family: Menlo, Monaco, Consolas, monospace; font-size: 0.9em; background-color: #f7f7f7; padding: 0 3px;\">params<\/span> setup described in <a href=\"#paging\">Dataset Paging<\/a>.<\/li>\n<li>OAuth2 supports the client-credentials flow only. Flows that sign in as an individual user are not supported.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Generic REST adaptors connect IFS OI Server to REST web services that return JSON, without custom code. You describe how to call the service and where the data sits in its response, and the adaptor turns that response into time series or dataset data. Related: Dataset Datasources, Tag Datasources\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/rest-adaptor\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72653","page","type-page","status-publish","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=72653"}],"version-history":[{"count":6,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72653\/revisions"}],"predecessor-version":[{"id":72708,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72653\/revisions\/72708"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=72653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=72653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=72653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}