We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae30ee5 commit 990554fCopy full SHA for 990554f
REST_API_v2/Incidents/list_incidents.py
@@ -41,7 +41,7 @@
41
USER_IDS = []
42
URGENCIES = []
43
TIME_ZONE = 'UTC'
44
-SORT_BY = []
+SORT_BY = '' # comma-delineated list; see https://v2.developer.pagerduty.com/docs/sorting
45
INCLUDE = []
46
47
@@ -62,7 +62,7 @@ def list_incidents():
62
'user_ids[]': USER_IDS,
63
'urgencies[]': URGENCIES,
64
'time_zone': TIME_ZONE,
65
- 'sort_by[]': SORT_BY,
+ 'sort_by': SORT_BY,
66
'include[]': INCLUDE
67
}
68
r = requests.get(url, headers=headers, params=payload)
0 commit comments