schedules

Org Schedules List

GET
Gets list of organization schedules.

Query parameters

created_by_idstringOptional
Creator ID the filter matches.
cursorstringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
limitintegerOptional
Max number of organization schedules returned in a page. Default is 50.
modeenumOptional
The iteration mode to use, otherwise if not set, then "after" is used.
Allowed values: afterbefore
statusenumOptional
The organization schedule statuses the filter matches.
Allowed values: archiveddraftpublished

Response

This endpoint returns an object
org_schedules
list of objects
The list of organization schedules.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
GET
1curl https://api.devrev.ai/org-schedules.list \
2 -H "Authorization: <apiKey>"
200
Retrieved
1{
2 "org_schedules": [
3 {
4 "id": "id",
5 "status": "archived",
6 "created_date": "2023-01-01T12:00:00Z",
7 "display_id": "display_id",
8 "min_valid_days": 1,
9 "modified_date": "2023-01-01T12:00:00Z",
10 "name": "name",
11 "org_schedule_fragments": [
12 {}
13 ],
14 "timezone": "timezone",
15 "valid_until": "2023-01-01T12:00:00Z",
16 "weekly_org_schedules": [
17 {}
18 ]
19 }
20 ],
21 "next_cursor": "next_cursor",
22 "prev_cursor": "prev_cursor"
23}