-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelft-fews-webservices-rest-api-v1-oas3.json
More file actions
9149 lines (9149 loc) · 373 KB
/
delft-fews-webservices-rest-api-v1-oas3.json
File metadata and controls
9149 lines (9149 loc) · 373 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi" : "3.0.3",
"info" : {
"title" : "Delft-FEWS Web Services REST API v1",
"description" : "Delft-FEWS Web Services REST API v1. For more information see: https://publicwiki.deltares.nl/x/fwNdBw",
"version" : "v1-2025-06-20T17:11:44Z"
},
"servers" : [ {
"url" : "/FewsWebServices/rest/fewspiservice/v1",
"description" : "API server"
} ],
"paths" : {
"/filters" : {
"get" : {
"tags" : [ "filters" ],
"summary" : "Get filters that are a subfilter of the default filter",
"description" : "Get filters that are a subfilter of the default filter. An existing subfilter of the default filter id can be specified as well.",
"operationId" : "filters",
"parameters" : [ {
"name" : "filterId",
"description" : "An existing subfilter of the default filter id",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "documentFormat",
"description" : "Supported Document Format: PI_XML, PI_JSON, ",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "PI_XML", "PI_JSON" ],
"type" : "string"
}
}, {
"name" : "documentVersion",
"description" : "Document Version. Latest version is: 1.34",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "schemas/pirest/pi_rest_filters.json"
}
},
"application/xml" : {
"schema" : {
"title" : "PI_XML",
"description" : "https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_filters.xsd",
"type" : "object",
"xml" : {
"name" : "filters"
},
"example" : "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<filters xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.wldelft.nl/fews/PI\" xsi:schemaLocation=\"http://www.wldelft.nl/fews/PI https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_filter.xsd\" version=\"1.23\">\n <filter id=\"Countries\">\n <name>Countries</name>\n <description></description>\n <child id=\"All\">\n <name>All</name>\n <description></description>\n </child>\n <child id=\"Netherlands\">\n <name>Netherlands</name>\n <description></description>\n </child>\n </filter>\n</filters>"
}
}
}
},
"400" : {
"$ref" : "#/components/responses/badRequestInvalidParameter"
},
"401" : {
"$ref" : "#/components/responses/unAuthorizedError"
},
"403" : {
"$ref" : "#/components/responses/forbiddenError"
},
"500" : {
"$ref" : "#/components/responses/internalServerError"
}
}
}
},
"/locations/label" : {
"get" : {
"tags" : [ "locations" ],
"summary" : "Get the label for a set of locations",
"description" : "Get the label for a set of locations",
"operationId" : "locations/label",
"parameters" : [ {
"name" : "filterId",
"description" : "An existing sub filter of the default filter id",
"in" : "query",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "parameterId",
"description" : "the parameter id",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "documentFormat",
"description" : "Supported Document Format: PI_JSON, ",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "PI_JSON" ],
"type" : "string"
}
}, {
"name" : "documentVersion",
"description" : "Document Version. Latest version is: 1.34",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "schemas/pirest/pi_rest_locations_labels.json"
}
}
}
},
"400" : {
"$ref" : "#/components/responses/badRequestInvalidParameter"
},
"401" : {
"$ref" : "#/components/responses/unAuthorizedError"
},
"403" : {
"$ref" : "#/components/responses/forbiddenError"
},
"500" : {
"$ref" : "#/components/responses/internalServerError"
}
}
}
},
"/locations" : {
"get" : {
"tags" : [ "locations" ],
"summary" : "Get locations that are available for the 'filterId' argument",
"description" : "Get locations that are available for the 'filterId' argument. Locations are also returned if no time series are available for a location in the filter. If not filterId is passed then all locations configured in the pre-defined filter will be returned.",
"operationId" : "locations",
"parameters" : [ {
"name" : "filterId",
"description" : "An existing subfilter of the default filter id",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "parameterIds",
"description" : "One or more parameters which will be used to filter the time series sets in the filter",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "locationIds",
"description" : "Get selected locations.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "parameterGroupId",
"description" : "The parameter group id which will be used to filter the time series sets in the filter",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "showAttributes",
"description" : "Show location attributes",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "attributeIds",
"description" : "One or more attribute ids",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "showParentLocations",
"description" : "Show parent locations",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "showThresholds",
"description" : "include the threshold crossings in the response",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "includeIconNames",
"description" : "Include the name of the icon configured for a location. Can be used in combination with the resources/icons/{iconName} endpoint to retrieve the icon.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "includeLocationRelations",
"description" : "Include location relations",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "includeTimeDependency",
"description" : "Include time depency",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "documentFormat",
"description" : "Supported Document Format: PI_XML, PI_JSON, GEO_JSON, ",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "PI_XML", "PI_JSON", "GEO_JSON" ],
"type" : "string"
}
}, {
"name" : "documentVersion",
"description" : "Document Version. Latest version is: 1.34",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "schemas/pirest/pi_rest_locations.json"
}
},
"application/geojson" : {
"schema" : {
"$ref" : "schemas/pirest/pi_rest_locations.geo.json"
}
},
"application/xml" : {
"schema" : {
"title" : "PI_XML",
"description" : "https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_locations.xsd",
"type" : "object",
"xml" : {
"name" : "Locations"
},
"example" : "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Locations xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.wldelft.nl/fews/PI\" xsi:schemaLocation=\"http://www.wldelft.nl/fews/PI https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_locations.xsd\" version=\"1.27\">\n <geoDatum>Ordnance Survey Great Britain 1936</geoDatum>\n <location locationId=\"000008\">\n <shortName>Harley Logger</shortName>\n <lat>53.48101390524398</lat>\n <lon>-1.440921590684395</lon>\n <x>437200.0</x>\n <y>398400.0</y>\n </location>\n</Locations>"
}
}
}
},
"400" : {
"$ref" : "#/components/responses/badRequestInvalidParameter"
},
"401" : {
"$ref" : "#/components/responses/unAuthorizedError"
},
"403" : {
"$ref" : "#/components/responses/forbiddenError"
},
"500" : {
"$ref" : "#/components/responses/internalServerError"
}
}
}
},
"/locations/tooltip" : {
"get" : {
"tags" : [ "locations" ],
"summary" : "Get the tooltip for a location",
"description" : "Get the tooltip for a location. The response can either be in plain text or in html.",
"operationId" : "locations/tooltip",
"parameters" : [ {
"name" : "filterId",
"description" : "An existing subfilter of the default filter id",
"in" : "query",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "locationId",
"description" : "The location for which to get the tooltip",
"in" : "query",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "",
"content" : {
"text/plain" : {
"schema" : {
"title" : "text/plain",
"type" : "string"
}
},
"text/html" : {
"schema" : {
"title" : "text/html",
"type" : "string"
}
}
}
},
"400" : {
"$ref" : "#/components/responses/badRequestInvalidParameter"
},
"401" : {
"$ref" : "#/components/responses/unAuthorizedError"
},
"403" : {
"$ref" : "#/components/responses/forbiddenError"
},
"500" : {
"$ref" : "#/components/responses/internalServerError"
}
}
}
},
"/parameters" : {
"get" : {
"tags" : [ "parameters" ],
"summary" : "Get parameters that are available for the 'filterId' argument",
"description" : "Get parameters that are available for the 'filterId' argument. Parameters are also returned if no time series are available for a parameter in the filter. If no filterId is passed then all parameters configured in the pre-defined filter will be returned.",
"operationId" : "parameters",
"parameters" : [ {
"name" : "filterId",
"description" : "An existing subfilter of the default filter id",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "showAttributes",
"description" : "Show parameter attributes",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "documentFormat",
"description" : "Supported Document Format: PI_XML, PI_JSON, ",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "PI_XML", "PI_JSON" ],
"type" : "string"
}
}, {
"name" : "documentVersion",
"description" : "Document Version. Latest version is: 1.34",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "schemas/pirest/pi_rest_parameters.json"
}
},
"application/xml" : {
"schema" : {
"title" : "PI_XML",
"description" : "https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_parameter.xsd",
"type" : "object",
"xml" : {
"name" : "timeseriesparameters"
},
"example" : "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<timeseriesparameters xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.wldelft.nl/fews/PI\" xsi:schemaLocation=\"http://www.wldelft.nl/fews/PI https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_timeseriesparameters.xsd\" version=\"1.27\">\n <parameter id=\"P.obs\" parameterGroup=\"Precipitation\">\n <name>Observed Precipitation</name>\n <parameterType>accumulative</parameterType>\n <unit>mm</unit>\n <displayUnit>mm</displayUnit>\n <usesDatum>false</usesDatum>\n </parameter>\n</timeseriesparameters> "
}
}
}
},
"400" : {
"$ref" : "#/components/responses/badRequestInvalidParameter"
},
"401" : {
"$ref" : "#/components/responses/unAuthorizedError"
},
"403" : {
"$ref" : "#/components/responses/forbiddenError"
},
"500" : {
"$ref" : "#/components/responses/internalServerError"
}
}
}
},
"/parameters/nodes" : {
"get" : {
"tags" : [ "parameters" ],
"summary" : "Get all parameter nodes and its parameters that are available in the region config",
"description" : "Get all parameter nodes and its parameters that are available in the region config. For each parameterNode the parent node, children nodes and all parameter ids are provided.",
"operationId" : "parameters/nodes",
"parameters" : [ {
"name" : "documentFormat",
"description" : "Supported Document Format: PI_XML, PI_JSON, ",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "PI_XML", "PI_JSON" ],
"type" : "string"
}
}, {
"name" : "documentVersion",
"description" : "Document Version. Latest version is: 1.34",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "schemas/pirest/pi_rest_parameters_nodes.json"
}
},
"application/xml" : {
"schema" : {
"title" : "PI_XML",
"description" : "https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_parameter_nodes.xsd",
"type" : "object",
"xml" : {
"name" : "parameterNodes"
},
"example" : "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<parameterNodes xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.wldelft.nl/fews/PI\" xsi:schemaLocation=\"http://www.wldelft.nl/fews/PI https://fewsdocs.deltares.nl/schemas/version1.0/pi-schemas/pi_parameter_nodes.xsd\">\n <parameterNode id=\"All parameters\">\n <name>All parameters</name>\n <description></description>\n <parameters>\n <parameter>Ntot_mass_sum_day</parameter>\n <parameter>Ntot</parameter>\n <parameter>Q_sum</parameter>\n <parameter>VSA_n</parameter>\n <parameter>Q</parameter>\n <parameter>Ntot_mass_sum_year</parameter>\n <parameter>Ntot_mass</parameter>\n <parameter>PTB_TansleyS</parameter>\n <parameter>VSM_g</parameter>\n <parameter>Ptot</parameter>\n <parameter>Q_period</parameter>\n </parameters>\n <parent>Parameters</parent>\n </parameterNode>\n <parameterNode id=\"Hydrobiological\">\n <name>Hydrobiological</name>\n <description></description>\n <parameters>\n <parameter>VSA_n</parameter>\n <parameter>PTB_TansleyS</parameter>\n <parameter>VSM_g</parameter>\n </parameters>\n <parent>Parameters</parent>\n </parameterNode>\n <parameterNode id=\"Quantity\">\n <name>Quantity</name>\n <description></description>\n <parameters>\n <parameter>Q_sum</parameter>\n <parameter>Q</parameter>\n <parameter>Q_period</parameter>\n </parameters>\n <parent>Parameters</parent>\n </parameterNode>\n <parameterNode id=\"Quality\">\n <name>Quality</name>\n <description></description>\n <parameters>\n <parameter>Ntot_mass_sum_day</parameter>\n <parameter>Ntot</parameter>\n <parameter>Ntot_mass_sum_year</parameter>\n <parameter>Ntot_mass</parameter>\n <parameter>Ptot</parameter>\n </parameters>\n <parent>Parameters</parent>\n </parameterNode>\n <parameterNode id=\"Parameters\">\n <name>Parameters</name>\n <description></description>\n <parameters>\n <parameter>Amount</parameter>\n <parameter>Amount_period</parameter>\n <parameter>Amount_sum</parameter>\n </parameters>\n <children>\n <child>All parameters</child>\n <child>Hydrobiological</child>\n <child>Quantity</child>\n <child>Quality</child>\n </children>\n </parameterNode>\n</parameterNodes>"
}
}
}
},
"400" : {
"$ref" : "#/components/responses/badRequestInvalidParameter"
},
"401" : {
"$ref" : "#/components/responses/unAuthorizedError"
},
"403" : {
"$ref" : "#/components/responses/forbiddenError"
},
"500" : {
"$ref" : "#/components/responses/internalServerError"
}
}
}
},
"/timeseries" : {
"get" : {
"tags" : [ "timeseries" ],
"summary" : "Get timeseries that are part of the default filter",
"description" : "Get timeseries that are part of the default filter. The HEAD request is also supported. It is recommended to use the HEAD request when using the taskRunIds parameter to check if the timeseries are available before using the GET request<p><h2>parameters</h2>\nNot all parameters can be combined. The following combinations are commonly used valid combinations of parameters. The main way to filter timeseries is by using filter ids or taskrun ids.<p>\n<table border='1'>\n <tr>\n <th>Use cases</th>\n <th>filterId</th>\n <th>taskRunIds</th>\n <th>startTime, endTime</th>\n <th>startCreationTime, endCreationTime</th>\n <th>startForecastTime, endForecastTime</th>\n </tr>\n <tr>\n <td>Apply a filter to the time series. The requested period will be set to the current time minus one day and one hour ago until the current time plus one day and one hour</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td></td>\n <td></td>\n </tr>\n <tr>\n <td>Get all time series created by one or more taskRuns. All time steps of the matching time series are returned.</td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td></td>\n </tr>\n <tr>\n <td>Get the time series created by a taskrun and apply a filter from the Filters configuration. startTime and endTime cannot be specified. The complete time series will be returned. Since\n 2020.01.\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td></td>\n </tr>\n <tr>\n <td>Apply a filter to the time series and return time steps that are in the startTime and endTime range. If the startTime or endTime doesn't match a timestamp of the time series, the closest time step before startTime and/or after endTime is returned as well.</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Only time series created during the startCreationTime and endCreationTime period will be returned. All time steps of the matching time series are\n returned.\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Return only time series created during the creation time period. Only return timesteps in the startTime and endTime range.</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Return only time series with external forecast times in the startForecastTime and endForecastTime period. Only return timesteps in the startTime and\n endTime range.\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Return only time series with external forecast times in the startForecastTime and endForecastTime period that were created in the creation time period.\n Only return time steps in the startTime and endTime range.\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Return only time series created during the creation time period. All time steps of the matching time series are returned. (before 2020.01 startTime and\n endTime had to be specified).\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Return only time series with external forecast times in the startForecastTime and endForecastTime period. All time steps of the matching time series are\n returned.\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n </tr>\n <tr>\n <td>Apply a filter to the time series. Return only time series created during the creation time period and with external forecast times in the startForecastTime and endForecastTime period. All\n time steps of the matching time series are returned..\n </td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td></td>\n <td></td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n <td style=\"background-color: LightGray; text-align: center;\"> X</td>\n </tr>\n</table>\n\n<h2>no data vs no time series</h2>\nIf a timeseries query has matching timeseries sets a http 200 code will be returned and the headers of all matching time series sets will be returned.\nIf there is any data for the requested period, the headers will be followed by the actual events that contain the data. So even if no data is available at all the headers are always returned.\n\nIt is also possible that a timeseries query doesn't match any time series sets at all. This is seen as in invalid request and will result in a HTTP 400 response code.\nThe following are examples of use cases where this might occur:\n<ul>\n <li>query parameters don't occur in filter. For example: the default filter has subfilters: filterA and filterB. filterA contains timeseries sets with module instance id moduleInstanceA and filterB contains timeseries sets with module instance id moduleInstanceB.\n If a timeseries query is done with parameters: filterId=filterA and moduleInstanceId=moduleInstanceB, this will return in a HTTP 400 response</li>\n <li>no timeseries for creation period. For example: if a query is using startCreationTime and endCreationTime and no time series have been produced during that period, this is seen as an invalid request and a HTTP 400 response is returned.</li>\n</ul>\n\n<h2>availability of new timeseries</h2>\nWhen new timeseries have been created, it can take some time before they can be found by the WebServices. The web services updates its indexes every second (every five seconds before 2023.01). Once the indexes have been updated, newly created time series can be found. So it typically can take a few seconds before newly created time series can be found. <h3>array of string</h3> For an array of strings the query parameter can be repeated, or added once with values in a comma separated fashion",
"operationId" : "timeseries",
"parameters" : [ {
"name" : "filterId",
"description" : "An existing subfilter of the default filter id",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "locationIds",
"description" : "One or more location ids.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "parameterIds",
"description" : "One or more parameter ids.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "moduleInstanceIds",
"description" : "One or more module instance ids",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "qualifierIds",
"description" : "One or more qualifier ids. Subset of qualifiers for which to retrieve time series. All time series that have any of the specified qualifierIds will be returned. To indicate that no qualifier is available, use qualifierIds: \"none\"",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "taskRunIds",
"description" : "One or more taskRunIds. Since 2024.01 a response code 206 may be returned if one of the task runs is not completely available to the webservice (either not completed yet, or not available due to index files not up to date). In that case a client should retry the request. It is advised to use the HEAD method to check if the time series are available before using the GET method.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated"
}
}, {
"name" : "startTime",
"description" : "Start time of search period that looks for timeseries values that are within this period. If the startTime doesn't match a timestamp of the time series, the closest timestamp before the startTime, will also be returned. Format: yyyy-MM-ddTHH:mm:ssZ. Take note that if no startTime and endTime are specified, the requested period will be set to the current time minus one day and one hour ago until the current time plus one day and one hour. If only the startTime is specified, the requested period will be set to the startTime until the startTime time plus one day and one hour. If only the endTime is specified, the requested period will be set to the endTime minus one day and one hour until the endTime.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"description" : "Date-time string that adheres to RFC 3339.",
"format" : "date-time",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "endTime",
"description" : "End time of search period that looks for timeseries values that are within this period. If the endTime doesn't match a timestamp of the time series, the closest timestamp after the endTime, will also be returned. Format: yyyy-MM-ddTHH:mm:ssZ. Take note that if no startTime and endTime are specified, the requested period will be set to the current time minus one day and one hour ago until the current time plus one day and one hour. If only the startTime is specified, the requested period will be set to the startTime until the startTime time plus one day and one hour. If only the endTime is specified, the requested period will be set to the endTime minus one day and one hour until the endTime.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"description" : "Date-time string that adheres to RFC 3339.",
"format" : "date-time",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "beforeStartTimeCount",
"description" : "Extra time steps that are returned before the specified start time",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number",
"example" : "5"
}
}, {
"name" : "afterEndTimeCount",
"description" : "Extra time steps that are returned after the specified end time",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number",
"example" : "5"
}
}, {
"name" : "startCreationTime",
"description" : "Creation start time. Format: yyyy-MM-ddTHH:mm:ssZ",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"description" : "Date-time string that adheres to RFC 3339.",
"format" : "date-time",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "endCreationTime",
"description" : "Creation end time. Format: yyyy-MM-ddTHH:mm:ssZ",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"description" : "Date-time string that adheres to RFC 3339.",
"format" : "date-time",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "forecastCount",
"description" : "Number of forecasts that will be searched for when startForecastTime and endForecastTime have been specified. Default 1",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number",
"example" : "1"
}
}, {
"name" : "startForecastTime",
"description" : "Start time of search period that looks for time series produced by forecasts that have their forecast time within this period. Format: yyyy-MM-ddTHH:mm:ssZ. If left empty all forecasts up to the endForecastTime will be used as search period.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"description" : "Date-time string that adheres to RFC 3339.",
"format" : "date-time",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "endForecastTime",
"description" : "End time of search period that looks for time series produced by forecasts that have their forecast time within this period. Format: yyyy-MM-ddTHH:mm:ssZ. If left empty all forecasts starting from the startForecastTime will be used as search period.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"description" : "Date-time string that adheres to RFC 3339.",
"format" : "date-time",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "leadTime",
"description" : "Available since 2025.01. Optional field. The lead time of the forecast. The lead time is the time difference between the forecast time and the time of the forecasted event. The lead time is expressed in milliseconds. Can be used in combination of startTime and endtime, or startForecastTime and endForecastTime, but not both. Has to be a valid time step for the requested time series.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number",
"example" : "3600000"
}
}, {
"name" : "externalForecastTimes",
"description" : "One or more external forecast times. Format: yyyy-MM-ddTHH:mm:ssZ",
"in" : "query",
"required" : false,
"schema" : {
"type" : "array",
"items" : {
"type" : "string"
},
"description" : "The parameter can be repeated",
"example" : "2020-03-18T15:00:00Z"
}
}, {
"name" : "ensembleId",
"description" : "Ensemble Id. Ensemble identifier of time series",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "ensembleMemberId",
"description" : "Ensemble MemberId. Ensemble member identifier of time series. Only allowed in combination with ensembleId <i>Since: 2022.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "timeStepId",
"description" : "Time Step Id. Filter time series by the time step that has been configured in the TimeSteps.xml. N.B.: It is not required to use the timeStepId's in the filter configurations to be able to use them as long as they have been configured in the TimeSteps.xml. <i>Since: 2018.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "thinning",
"description" : "Thinning is used to retrieve the visually interesting time steps of timeSeries. It tries to keep the peaks and gaps and minimizes the number of time steps that have to be retrieved. It is typically used for visualizations. The value to be specified should be equal to the view period in milliseconds of the timeSeries that is visualized divided by the number of pixels that are available for display. For example: visualizing a view period of 5 years (157784760000 milliseconds) on a display of 1024 pixels, the thinning parameter should be set to 157784760000/1024 = 15408668. unit ms/pixel.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number",
"example" : "15408668"
}
}, {
"name" : "exportIdMap",
"description" : "Name of the id map that should be used as exportIdMap. This parameter will overrule a configured exportIdMap. <i>Since: 2022.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "exportUnitConversionId",
"description" : "Export Unit Conversion Id. Overrules any configured exportUnitConversionId in the WebServices.xml. <i>Since: 2022.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number"
}
}, {
"name" : "timeZoneName",
"description" : "Name of the timezone. Overrules any configured timeZone configuration in the WebServices.xml. Should comply to timeZoneStringType as defined in: https://fewsdocs.deltares.nl/schemas/version1.0/sharedTypes.xsd <i>Since: 2022.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "timeSeriesId",
"description" : "time series id. Default value is null in which case the id is not used. <i>Since: 2023.01</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "number"
}
}, {
"name" : "defaultRequestParametersId",
"description" : "Since 2022.02. If this parameter is set, a defaultRequestParameters element is expected to be configured with the specified id in the piRestService element of the WebServices.xml. All request parameters configured will be used as the default request parameters for the timeseries endpoint. If a parameter is explicitly added to the timeseries endpoint, it will overrule the entry that was set in the defaultRequestParameters configuration. <i>Since: 2022.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "resamplingMethod",
"description" : "Since 2023.02. If this parameter is set, resampling is applied using the passed method. It is required to also specify a resamplingTimeStepId. For information about the different methods, see: https://publicwiki.deltares.nl/x/xJUYBw <i>Since: 20232.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "minimum", "maximum", "mean", "mean_over_time", "sum", "instantaneous", "percentile" ],
"type" : "string"
}
}, {
"name" : "resamplingTimeStepId",
"description" : "Since 2023.02. The target sampling time step id. The time step id must be configured in the TimeSeriesDisplay in the resampling element that refer to time steps that are configured in the TimeSteps.xml. It is required to also specify a resamplingMethod. <i>Since: 20232.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "resamplingOmitMissing",
"description" : "Since 2023.02. When resampling omit missing values. Default is true. <i>Since: 20232.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "downloadAsFile",
"description" : "Since 2024.01. Set the name of the file without extension to download as an attachment. Can be used in the testpage to avoid the response being rendered in the browser.",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "matchAsQualifierSet",
"description" : "Since 2023.01. If this option is to true the qualifier from time series selected from the filter must contain all of the given qualifiers ids and only consist only of the given qualifiers ids",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "importFromExternalDataSource",
"description" : "import data from external data source, defaults to true.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "convertDatum",
"description" : "Convert values from relative location height to absolute height values",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "convertValuesToEnumerationLabels",
"description" : "Convert values to enumeration labels. This is only relevant for parameters that are configured as enumeration in the parameter group.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "showEnsembleMemberIds",
"description" : "Show ensemble member ids instead of ensemble member indices.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "useDisplayUnits",
"description" : "Export values using display units.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "showThresholds",
"description" : "Option to toggle the returning of threshold information in the headers.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitMissing",
"description" : "Toggle omitting or returning of missing values in response.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitEmptyTimeSeries",
"description" : "Toggle omitting or returning headers of empty timeSeries. Default is false. <i>Since: 2020.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitOriginalReliable",
"description" : "Toggle omitting or returning of original reliable values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitOriginalDoubtful",
"description" : "Toggle omitting or returning of original doubtful values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitOriginalUnreliable",
"description" : "Toggle omitting or returning of original unreliable values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitCompletedReliable",
"description" : "Toggle omitting or returning of completed reliable values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitCompletedDoubtful",
"description" : "Toggle omitting or returning of completed doubtful values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitCompletedUnreliable",
"description" : "Toggle omitting or returning of completed unreliable values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitCorrectedReliable",
"description" : "Toggle omitting or returning of corrected reliable values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitCorrectedDoubtful",
"description" : "Toggle omitting or returning of corrected doubtful values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "omitCorrectedUnreliable",
"description" : "Toggle omitting or returning of corrected unreliable values in response. <i>Since: 2023.02</i>",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "onlyManualEdits",
"description" : "Toggle to return only manual edits.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "onlyHeaders",
"description" : "Toggle to return only header information or also data.",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],
"type" : "string"
}
}, {
"name" : "onlyForecasts",
"description" : "Toggle to return only forecast timeSeries (Since 2017.02).",
"in" : "query",
"required" : false,
"schema" : {
"enum" : [ "true", "false" ],