schedules

Org Schedules Update

POST
Updates an organization schedule.

Request

This endpoint expects an object.
id
stringRequired
Organization schedule ID.
default_weekly_org_schedule
objectOptional
min_valid_days
integerOptional
Organization schedule must be valid for at least this many days in the future. Meaning organization schedule fragments must cover this period. 0 if omitted.
name
stringOptional
Human-readable name.
org_schedule_fragments
list of objectsOptional
List of organization schedule fragments with no overlaps or gaps.
timezone
stringOptional

Timezone in which the organization schedule applies. Expected to be a valid IANA time zone name such as America/New_York.

weekly_org_schedules
list of objectsOptional
If this day belongs to a named period according to the currently active organization schedule fragment, a weekly organization schedule from this list with the corresponding name will apply.

Response

This endpoint returns an object
org_schedule
object
POST
1curl -X POST https://api.devrev.ai/org-schedules.update \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id"
6}'
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}