schedules

Org Schedules Set Future

POST
Sets next organization schedule fragment which must begin the day the last existing fragment ends.

Request

This endpoint expects an object.
id
stringRequired
Organization schedule ID.
org_schedule_fragment_id
stringRequired
Organization schedule Fragment ID.

Response

This endpoint returns an object
org_schedule
object
POST
1curl -X POST https://api.devrev.ai/org-schedules.set-future \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id",
6 "org_schedule_fragment_id": "org_schedule_fragment_id"
7}'
200Successful
1{
2 "org_schedule": {
3 "id": "id",
4 "status": "archived",
5 "created_date": "2023-01-01T12:00:00Z",
6 "default_weekly_org_schedule": {
7 "default_weekly_org_schedule": {
8 "key": "value"
9 }
10 },
11 "display_id": "display_id",
12 "min_valid_days": 1,
13 "modified_date": "2023-01-01T12:00:00Z",
14 "name": "name",
15 "org_schedule_fragments": [
16 {}
17 ],
18 "timezone": "timezone",
19 "valid_until": "2023-01-01T12:00:00Z",
20 "weekly_org_schedules": [
21 {}
22 ]
23 }
24}