{
	"info": {
		"_postman_id": "fc887154-daf1-40cd-b97b-ea5c242bebd8",
		"name": "WebTSM Services API Examples",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "9046321"
	},
	"item": [
		{
			"name": "Time Series Management",
			"item": [
				{
					"name": "Time Series Definitions",
					"item": [
						{
							"name": "Find time series definitions",
							"request": {
								"method": "GET",
								"header": [
									{
										"description": "Specifies the range unit and offsets to limit the result.\n\nExample: Range: timeseries=0-10\n\nThis will return the first 10 time series objects if there are 10 of them matching the other parameters.\n\nIf there are fewer matching, then the range in the response will be modified to  reflect the returned number of objects, e.g. Content-Range: timeseries 0-5/6\n\nIf more objects exist, then the range length will be set to an asterisk, e.g. Content-Range: timeseries 0-10/*\n\nIf the range does not match any objects, e.g. Range: timeseries=1000-2000 and less than 1000 objects exists,  then the response range will be set as follows: Content-Range: timeseries */2001\n\nPlease note, that multiple ranges are not supported.",
										"key": "range",
										"value": "timeseries=0-100"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries"
									],
									"query": [
										{
											"key": "attribute",
											"value": "attributename|attributevalue",
											"description": "Filter for time series by their attribute (Can be added more than once). \n\nThe format for the search can be either 'attribute={Attributename}', to search for time series with a specific attribute, or 'attribute={Attributename}|{Attributevalue}', to search for time series with a specific attribute value.\n\nIf more than one attribute is used for the search, the attribute-parameters are connected with a logical AND operator.",
											"disabled": true
										},
										{
											"key": "attribute",
											"value": "attributename|attributevalue",
											"description": "Filter for time series by their attribute (Can be added more than once). \n\nThe format for the search can be either 'attribute={Attributename}', to search for time series with a specific attribute, or 'attribute={Attributename}|{Attributevalue}', to search for time series with a specific attribute value.\n\nIf more than one attribute is used for the search, the attribute-parameters are connected with a logical AND operator.",
											"disabled": true
										},
										{
											"key": "changedSince",
											"value": "<dateTime>",
											"description": "Filters the search result for time series, which were modified since  the given date. Date has to be set in ISO-8601  (e.g.2010-12-31T00:00:00Z) format.",
											"disabled": true
										},
										{
											"key": "description",
											"value": "<string>",
											"description": "Filter for time series by the content of their description field",
											"disabled": true
										},
										{
											"key": "field",
											"value": "<string>",
											"description": "List of fields that should be returned in the response - everything else is kept back (can be added more than once)",
											"disabled": true
										},
										{
											"key": "field",
											"value": "<string>",
											"description": "List of fields that should be returned in the response - everything else is kept back (can be added more than once)",
											"disabled": true
										},
										{
											"key": "orderBy",
											"value": "<string>",
											"description": "Specifies the ordering of the result. Multiple orderBy parameters can be specified. The ordering is then determined by the position within the query parameters.  The order direction can be optionally specified by adding 'asc' or 'desc'. The default direction is ascending. Example: orderby=TimeZone|asc&orderby=ID|desc.  This will cause the result to be ordered first by time zone in ascending order and then by ID in descending order.  The following fields are valid: ID, Name, Description, Type, Interval, Unit, Table, ArchiveTable, Formula, TimeZone, StartOfYear, StartOfDay, PreserveDuplicatedValues, Aggregation and QuotationDefaultBehavior.",
											"disabled": true
										},
										{
											"key": "orderBy",
											"value": "<string>",
											"description": "Specifies the ordering of the result. Multiple orderBy parameters can be specified. The ordering is then determined by the position within the query parameters.  The order direction can be optionally specified by adding 'asc' or 'desc'. The default direction is ascending. Example: orderby=TimeZone|asc&orderby=ID|desc.  This will cause the result to be ordered first by time zone in ascending order and then by ID in descending order.  The following fields are valid: ID, Name, Description, Type, Interval, Unit, Table, ArchiveTable, Formula, TimeZone, StartOfYear, StartOfDay, PreserveDuplicatedValues, Aggregation and QuotationDefaultBehavior.",
											"disabled": true
										},
										{
											"key": "includeAttributes",
											"value": "<boolean>",
											"description": "Setting this to \"true\" causes assigned attributes to be loaded as well and expands the property \"Attributes\" accordingly.\nBe advised that this may incur significant performance penalties. This should *only* be used when loading assigned attributes for specific time series in a subsequent request is not an option due to restrictions on the client.",
											"disabled": true
										},
										{
											"key": "includeMetaInfo",
											"value": "<boolean>",
											"description": "If set to true, additional meta information (e.g. Data Period, as available at /repositories/{repository}/timeseries/metainfo request)  will be included for each time series in the property \"MetaInfo\".",
											"disabled": true
										},
										{
											"key": "interval",
											"value": "<string>",
											"description": "Filter for time series by their interval-name (string) or  interval-ID (integer). The interval-name and the corresponding ID  can be seen in the lookup \"/intervals\".",
											"disabled": true
										},
										{
											"key": "name",
											"value": "<string>",
											"description": "Filter for time series by their name. Wildcard characters may be used. The percent sign '%' matches zero or more characters and underscore '_' a single character. By default (and thus in *almost all* cases), the escape character is backslash '\\\\'. However, for completeness sake, please be advised that the actual escape character can be configured during installation of the service and thus, other instances of the service may require the use of another character.",
											"disabled": true
										},
										{
											"key": "type",
											"value": "<string>",
											"description": "Filter for time series by their type",
											"disabled": true
										},
										{
											"key": "unit",
											"value": "<string>",
											"description": "Filter for time series by their unit",
											"disabled": true
										},
										{
											"key": "resolveFormulaReferences",
											"value": "<boolean>",
											"description": "If set to true, all referenced time series IDs in formulas will be resolved (replaced) by their respective time series names.  If not defined or false, formulas will be returned as they are (using time series IDs in references).",
											"disabled": true
										}
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										}
									]
								},
								"description": "Returns a list of all time series persisted in the repository."
							},
							"response": []
						},
						{
							"name": "Get time series definition",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts"
									],
									"query": [
										{
											"key": "resolveFormulaReferences",
											"value": "<boolean>",
											"description": "If set to true, all referenced time series IDs in formulas will be resolved (replaced) by their respective time series names.  If not defined or false, formulas will be returned as they are (using time series IDs in references).",
											"disabled": true
										}
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										}
									]
								},
								"description": "Gets the time series identified by the given name."
							},
							"response": []
						},
						{
							"name": "Create time series: full body",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"Name\": \"Time series name\",\r\n    \"Description\": \"Description\",\r\n    \"Type\": 1,\r\n    \"Interval\": {\r\n        \"Value\": 2,\r\n        \"Multiplier\": 15\r\n    },\r\n    \"Unit\": \"kW\",\r\n    \"Table\": null,\r\n    \"ArchiveTable\": null,\r\n    \"Formula\": null,\r\n    \"TimeZone\": null,\r\n    \"StartOfYear\": 1,\r\n    \"StartOfDay\": 0,\r\n    \"PreserveDuplicatedValues\": false,\r\n    \"Aggregation\": null,\r\n    \"QuotationDefaultBehavior\": null,\r\n    \"Quotation\": false,\r\n    \"Audit\": false,\r\n    \"Compressed\": false,\r\n    \"ExchangeTimeSeries\": []\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries"
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Create time series: minimum body",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"Name\": \"Time series name\",\r\n    \"Type\": 1,\r\n    \"Interval\": {\r\n        \"Value\": 2,\r\n        \"Multiplier\": 15\r\n    },\r\n    \"Unit\": \"kW\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										""
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Get assigned attributes",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts/attributes",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts",
										"attributes"
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Assign set of attributes",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "[\r\n    {\r\n        \"AttributeID\": 2,\r\n        \"Values\": {\r\n            \"1971-12-31T23:00:00Z\": \"NORTH\"\r\n        }\r\n    }\r\n]",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts/attributes",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts",
										"attributes"
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Update assigned attribute value",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "\"NORTH\"\r\n",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts/attributes/:attribute/values/:key/",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts",
										"attributes",
										":attribute",
										"values",
										":key",
										""
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										},
										{
											"key": "attribute",
											"value": "",
											"description": "ID of the attribute"
										},
										{
											"key": "key",
											"value": "1971-12-31T23:00:00Z",
											"description": "The values effective date"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Time Series Data",
					"item": [
						{
							"name": "Get meta info (data period)",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts/metainfo",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts",
										"metainfo"
									],
									"query": [
										{
											"key": "quotation",
											"value": "<dateTime>",
											"description": "Sets the quotation date (a manual date label for different dataset versions), for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactQuotation.",
											"disabled": true
										},
										{
											"key": "exactQuotation",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been marked with exactly the same date time specified in the parameter quotation. Otherwise latest quotations equal to or smaller than parameter quotation are included in the results.",
											"disabled": true
										}
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										}
									]
								},
								"description": "Returns additional data regarding the time series. Currently this only includes the period for which the time series contains data. More information may be added in later versions."
							},
							"response": []
						},
						{
							"name": "Get time series data",
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "Accept",
										"value": "application/json"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts/data?from=2021-12-31T23:00:00Z&to=2022-01-01T23:00:00Z&interval=Hour&unit=kWh",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts",
										"data"
									],
									"query": [
										{
											"key": "from",
											"value": "2021-12-31T23:00:00Z",
											"description": "(Required) Sets the start time for which to load data. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds)."
										},
										{
											"key": "to",
											"value": "2022-01-01T23:00:00Z",
											"description": "(Required) Sets the end time for which to load data. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds)."
										},
										{
											"key": "aggregation",
											"value": "<string>",
											"description": "Sets the rule (e.g. 'Sum') for aggregating values along the time axis when interval parameter differs from the time series default interval. Accepts the Name (string) or ID (integer) of any aggregation entity listed in lookup /aggregations.  For further explanations of the aggregation rules, check out the \"Getting Started\" page at https://documentation.hakom.at/doce.",
											"disabled": true
										},
										{
											"key": "exactAudit",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been changed exactly at a date time specified in the parameter audit.  Otherwise latest modifications equal to or smaller than parameter audit are included in the results.  Default: false. Must be used in combination with parameter audit.",
											"disabled": true
										},
										{
											"key": "exactQuotation",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been marked with exactly the same date time specified in the parameter quotation. Otherwise latest quotations equal to or smaller than parameter quotation are included in the results.",
											"disabled": true
										},
										{
											"key": "interval",
											"value": "Hour",
											"description": "Interval in which to load the data. If no interval and no intervalMultiplier query parameter are set in the URI, the data is being returned in intervals according to the time series.\nThe interval can be given by the interval-name (string) or the  interval-ID (integer). The interval-name and the corresponding ID can be seen in the lookup \"/intervals\". "
										},
										{
											"key": "intervalMultiplier",
											"value": "<integer>",
											"description": "Sets the multiplier for interval. Both together result in the output raster of the time series data (e.g. 15 Minutes).  This parameter must be combined with parameter interval. If interval parameter is not set, this parameter will be ignored.  If this parameter is not set, the service will apply the default Multiplier value of 1.",
											"disabled": true
										},
										{
											"key": "timeZone",
											"value": "<string>",
											"description": "Time zone in which the operation should take place. All supported time zones can be listed under \"/timezones\".",
											"disabled": true
										},
										{
											"key": "unit",
											"value": "kWh",
											"description": "Sets the unit in which data should be returned. If the unit differs from the respective time series native unit, a conversion to this unit will be attempted.  To query for already defined unit and their conversion paths for a given repository you may use /repositories/{repository}/units."
										},
										{
											"key": "audit",
											"value": "<dateTime>",
											"description": "Sets the modification date, for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactAudit.",
											"disabled": true
										},
										{
											"key": "quotation",
											"value": "<dateTime>",
											"description": "Sets the quotation date (a manual date label for different dataset versions), for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactQuotation.",
											"disabled": true
										}
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										}
									]
								},
								"description": "Gets the data for a specific time series based on the given id and a specific timespan."
							},
							"response": []
						},
						{
							"name": "Get time series data bulk",
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "Accept",
										"value": "application/json"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseriescollections/data?from=2021-12-31T23:00:00Z&name=time series name 1&name=time series name 2&to=2022-01-01T23:00:00Z",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseriescollections",
										"data"
									],
									"query": [
										{
											"key": "from",
											"value": "2021-12-31T23:00:00Z",
											"description": "(Required) Sets the start time for which to load data. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds)."
										},
										{
											"key": "id",
											"value": "<integer>",
											"description": "Defines the ID of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**",
											"disabled": true
										},
										{
											"key": "id",
											"value": "<integer>",
											"description": "Defines the ID of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**",
											"disabled": true
										},
										{
											"key": "name",
											"value": "time series name 1",
											"description": "Defines the name of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**"
										},
										{
											"key": "name",
											"value": "time series name 2",
											"description": "Defines the name of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**"
										},
										{
											"key": "to",
											"value": "2022-01-01T23:00:00Z",
											"description": "(Required) Sets the end time for which to load data. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds)."
										},
										{
											"key": "aggregation",
											"value": "<string>",
											"description": "Sets the rule (e.g. 'Sum') for aggregating values along the time axis when interval parameter differs from the time series default interval. Accepts the Name (string) or ID (integer) of any aggregation entity listed in lookup /aggregations.  For further explanations of the aggregation rules, check out the \"Getting Started\" page at https://documentation.hakom.at/doce.",
											"disabled": true
										},
										{
											"key": "exactAudit",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been changed exactly at a date time specified in the parameter audit.  Otherwise latest modifications equal to or smaller than parameter audit are included in the results.  Default: false. Must be used in combination with parameter audit.",
											"disabled": true
										},
										{
											"key": "exactQuotation",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been marked with exactly the same date time specified in the parameter quotation. Otherwise latest quotations equal to or smaller than parameter quotation are included in the results.",
											"disabled": true
										},
										{
											"key": "interval",
											"value": "Hour",
											"description": "Interval in which to load the data. If no interval and no intervalMultiplier query parameter are set in the URI, the data is being returned in intervals according to the time series.\nThe interval can be given by the interval-name (string) or the  interval-ID (integer). The interval-name and the corresponding ID can be seen in the lookup \"/intervals\". ",
											"disabled": true
										},
										{
											"key": "intervalMultiplier",
											"value": "<integer>",
											"description": "Sets the multiplier for interval. Both together result in the output raster of the time series data (e.g. 15 Minutes).  This parameter must be combined with parameter interval. If interval parameter is not set, this parameter will be ignored.  If this parameter is not set, the service will apply the default Multiplier value of 1.",
											"disabled": true
										},
										{
											"key": "timeZone",
											"value": "<string>",
											"description": "Time zone in which the operation should take place. All supported time zones can be listed under \"/timezones\".",
											"disabled": true
										},
										{
											"key": "unit",
											"value": "kWh",
											"description": "Sets the unit in which data should be returned. If the unit differs from the respective time series native unit, a conversion to this unit will be attempted.  To query for already defined unit and their conversion paths for a given repository you may use /repositories/{repository}/units.",
											"disabled": true
										},
										{
											"key": "audit",
											"value": "<dateTime>",
											"description": "Sets the modification date, for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactAudit.",
											"disabled": true
										},
										{
											"key": "quotation",
											"value": "<dateTime>",
											"description": "Sets the quotation date (a manual date label for different dataset versions), for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactQuotation.",
											"disabled": true
										}
									],
									"variable": [
										{
											"key": "repository",
											"value": "<string>"
										}
									]
								},
								"description": "Reads the data from several time series."
							},
							"response": []
						},
						{
							"name": "Write time series data",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"TimeZone\": null,\r\n    \"Interval\": {\r\n        \"Value\": 3,\r\n        \"Multiplier\": 1\r\n    },\r\n    \"Unit\": \"kW\",\r\n    \"Data\": [\r\n        {\r\n            \"From\": \"2021-12-31T23:00:00Z\",\r\n            \"Value\": 17.399,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T00:00:00Z\",\r\n            \"Value\": 12.675,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T01:00:00Z\",\r\n            \"Value\": 8.225,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T02:00:00Z\",\r\n            \"Value\": 7,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T03:00:00Z\",\r\n            \"Value\": 8.025,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T04:00:00Z\",\r\n            \"Value\": 7.15,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T05:00:00Z\",\r\n            \"Value\": 8.075,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T06:00:00Z\",\r\n            \"Value\": 15,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T07:00:00Z\",\r\n            \"Value\": 14.625,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T08:00:00Z\",\r\n            \"Value\": 16.175,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T09:00:00Z\",\r\n            \"Value\": 16.7,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T10:00:00Z\",\r\n            \"Value\": 15.825,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T11:00:00Z\",\r\n            \"Value\": 16.65,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T12:00:00Z\",\r\n            \"Value\": 15.275,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T13:00:00Z\",\r\n            \"Value\": 16.875,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T14:00:00Z\",\r\n            \"Value\": 18.375,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T15:00:00Z\",\r\n            \"Value\": 29.85,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T16:00:00Z\",\r\n            \"Value\": 31.725,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T17:00:00Z\",\r\n            \"Value\": 36.401,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T18:00:00Z\",\r\n            \"Value\": 37,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T19:00:00Z\",\r\n            \"Value\": 34.925,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T20:00:00Z\",\r\n            \"Value\": 20.525,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T21:00:00Z\",\r\n            \"Value\": 18.325,\r\n            \"Flag\": 9\r\n        },\r\n        {\r\n            \"From\": \"2022-01-01T22:00:00Z\",\r\n            \"Value\": 11.5,\r\n            \"Flag\": 9\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseries/:ts/data",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseries",
										":ts",
										"data"
									],
									"variable": [
										{
											"key": "repository",
											"value": "{{repository}}"
										},
										{
											"key": "ts",
											"value": "",
											"description": "Time series name or ID"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Time Series Data Aggregations",
					"item": [
						{
							"name": "Aggregate time series by assigned attributes",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/repositories/:repository/timeseriescollections/data/sum?attribute=attributename|attributevalue&attribute=attributename|attributevalue&from=2021-12-31T23:00:00Z&to=2022-01-01T23:00:00Z&interval=Hour",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"repositories",
										":repository",
										"timeseriescollections",
										"data",
										"sum"
									],
									"query": [
										{
											"key": "attribute",
											"value": "attributename|attributevalue",
											"description": "(Required) Filter for time series by their attribute (Can be added more than once). The format for the search can be either \"attribute={Attributename}\", to search for time series with a specific attribute, or \"attribute={Attributename}|{Attributevalue}\", to search for time series with a specific attribute value. If more than one attribute is used for the search, the attribute-parameters are connected with a logical AND operator, meaning that those time series will be read which have all attributes assigned. **This parameter is only required if the parameter \"id\" is not specified.**"
										},
										{
											"key": "attribute",
											"value": "attributename|attributevalue",
											"description": "(Required) Filter for time series by their attribute (Can be added more than once). The format for the search can be either \"attribute={Attributename}\", to search for time series with a specific attribute, or \"attribute={Attributename}|{Attributevalue}\", to search for time series with a specific attribute value. If more than one attribute is used for the search, the attribute-parameters are connected with a logical AND operator, meaning that those time series will be read which have all attributes assigned. **This parameter is only required if the parameter \"id\" is not specified.**"
										},
										{
											"key": "from",
											"value": "2021-12-31T23:00:00Z",
											"description": "(Required) Sets the start time for which to load data. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds)."
										},
										{
											"key": "to",
											"value": "2022-01-01T23:00:00Z",
											"description": "(Required) Sets the end time for which to load data. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds)."
										},
										{
											"key": "interval",
											"value": "Hour",
											"description": "Interval in which to load the data. If no interval and no intervalMultiplier query parameter are set in the URI, the data is being returned in intervals according to the time series.\nThe interval can be given by the interval-name (string) or the  interval-ID (integer). The interval-name and the corresponding ID can be seen in the lookup \"/intervals\". "
										},
										{
											"key": "id",
											"value": "<integer>",
											"description": "Defines the ID of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**",
											"disabled": true
										},
										{
											"key": "id",
											"value": "<integer>",
											"description": "Defines the ID of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**",
											"disabled": true
										},
										{
											"key": "name",
											"value": "<string>",
											"description": "Defines the name of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**",
											"disabled": true
										},
										{
											"key": "name",
											"value": "<string>",
											"description": "Defines the name of the time series which should be read. It can be set more than once. **The request should contain at least one 'id' or 'name' parameter.**",
											"disabled": true
										},
										{
											"key": "aggregation",
											"value": "<string>",
											"description": "Sets the rule (e.g. 'Sum') for aggregating values along the time axis when interval parameter differs from the time series default interval. Accepts the Name (string) or ID (integer) of any aggregation entity listed in lookup /aggregations.  For further explanations of the aggregation rules, check out the \"Getting Started\" page at https://documentation.hakom.at/doce.",
											"disabled": true
										},
										{
											"key": "audit",
											"value": "<dateTime>",
											"description": "Sets the modification date, for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactAudit.",
											"disabled": true
										},
										{
											"key": "quotation",
											"value": "<dateTime>",
											"description": "Sets the quotation date (a manual date label for different dataset versions), for which data is being requested. Accepts ISO-8601 date string (YYYY-MM-DDTHH:mm:SSZ), to use seconds or milliseconds since Unix epoch (on Jan. 1st 1970 00:00h UTC)  instead, you may set the parameter 'dateformat' in Media Type header to 'Epoch' (seconds) or 'EpochMilliseconds' (milliseconds). Also check parameter exactQuotation.",
											"disabled": true
										},
										{
											"key": "exactAudit",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been changed exactly at a date time specified in the parameter audit.  Otherwise latest modifications equal to or smaller than parameter audit are included in the results.  Default: false. Must be used in combination with parameter audit.",
											"disabled": true
										},
										{
											"key": "exactQuotation",
											"value": "<boolean>",
											"description": "If set to true data will be requested that has been marked with exactly the same date time specified in the parameter quotation. Otherwise latest quotations equal to or smaller than parameter quotation are included in the results.",
											"disabled": true
										},
										{
											"key": "intervalMultiplier",
											"value": "<integer>",
											"description": "Sets the multiplier for interval. Both together result in the output raster of the time series data (e.g. 15 Minutes).  This parameter must be combined with parameter interval. If interval parameter is not set, this parameter will be ignored.  If this parameter is not set, the service will apply the default Multiplier value of 1.",
											"disabled": true
										},
										{
											"key": "unit",
											"value": "<string>",
											"description": "Sets the unit in which data should be returned. If the unit differs from the respective time series native unit, a conversion to this unit will be attempted.  To query for already defined unit and their conversion paths for a given repository you may use /repositories/{repository}/units.",
											"disabled": true
										},
										{
											"key": "timeZone",
											"value": "<string>",
											"description": "Time zone in which the operation should take place. All supported time zones can be listed under \"/timezones\".",
											"disabled": true
										}
									],
									"variable": [
										{
											"key": "repository",
											"value": "<string>"
										}
									]
								},
								"description": "Reads the aggregated data from several time series. If no unit and no time zone are specified, a performance-optimized aggregation takes place.  However, this requires that the unit, interval and time zone of all time series concerned  are identical."
							},
							"response": []
						}
					]
				}
			]
		},
		{
			"name": "Attribute Management",
			"item": [
				{
					"name": "Get all attribute types",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/attributetypes",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"attributetypes"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get all attributes",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/repositories/:repository/attributes",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"repositories",
								":repository",
								"attributes"
							],
							"query": [
								{
									"key": "name",
									"value": "<string>",
									"description": "Filters the attributes by name.",
									"disabled": true
								},
								{
									"key": "description",
									"value": "<string>",
									"description": "Filters the attributes by description.",
									"disabled": true
								},
								{
									"key": "type",
									"value": "<string>",
									"description": "Filters the attributes by type.",
									"disabled": true
								}
							],
							"variable": [
								{
									"key": "repository",
									"value": "{{repository}}"
								}
							]
						},
						"description": "Lists all attributes stored in the repository."
					},
					"response": []
				},
				{
					"name": "Create new attribute",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n        \"Name\": \"Attribute Name\",\r\n        \"Description\": \"Attribute Description\",\r\n        \"Type\": 2\r\n    }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}/repositories/:repository/attributes",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"repositories",
								":repository",
								"attributes"
							],
							"variable": [
								{
									"key": "repository",
									"value": "{{repository}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Lookups",
			"item": [
				{
					"name": "List flags",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/flags",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"flags"
							]
						}
					},
					"response": []
				},
				{
					"name": "List intervals",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/intervals",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"intervals"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Health",
			"item": [
				{
					"name": "Health check: live",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://api.powertsm.com/api/health/live",
							"protocol": "https",
							"host": [
								"api",
								"powertsm",
								"com"
							],
							"path": [
								"api",
								"health",
								"live"
							]
						}
					},
					"response": []
				},
				{
					"name": "Health check: ready",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://api.powertsm.com/api/health/ready",
							"protocol": "https",
							"host": [
								"api",
								"powertsm",
								"com"
							],
							"path": [
								"api",
								"health",
								"ready"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Get accessible repositories",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{baseUrl}}/repositories",
					"host": [
						"{{baseUrl}}"
					],
					"path": [
						"repositories"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "scope",
				"value": "",
				"type": "string"
			},
			{
				"key": "password",
				"value": "",
				"type": "string"
			},
			{
				"key": "username",
				"value": "",
				"type": "string"
			},
			{
				"key": "clientSecret",
				"value": "",
				"type": "string"
			},
			{
				"key": "clientId",
				"value": "",
				"type": "string"
			},
			{
				"key": "accessTokenUrl",
				"value": "",
				"type": "string"
			},
			{
				"key": "tokenName",
				"value": "WebTSM Services API Token",
				"type": "string"
			},
			{
				"key": "tokenType",
				"value": "Bearer",
				"type": "string"
			},
			{
				"key": "accessToken",
				"value": "",
				"type": "string"
			},
			{
				"key": "challengeAlgorithm",
				"value": "S256",
				"type": "string"
			},
			{
				"key": "grant_type",
				"value": "password_credentials",
				"type": "string"
			},
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			},
			{
				"key": "client_authentication",
				"value": "body",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "baseUrl",
			"value": "",
			"type": "string"
		},
		{
			"key": "repository",
			"value": "",
			"type": "string"
		}
	]
}