• About
    • For Developers
  • API Reference
    • Changelog
  • Guides
    • Account creation
    • Agents async API
    • Links
API Referenceschedules

POST
https://api.devrev.ai/org-schedules.update
POST
/org-schedules.update
1curl -X POST https://api.devrev.ai/org-schedules.update \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "string"
6}'
Try it
1{
2 "org_schedule": {
3 "id": "string",
4 "status": "archived",
5 "created_by": {
6 "display_id": "string",
7 "id": "string",
8 "display_name": "string",
9 "display_picture": {
10 "display_id": "string",
11 "id": "string",
12 "file": {
13 "type": "string",
14 "name": "string",
15 "size": 1
16 }
17 },
18 "email": "string",
19 "full_name": "string",
20 "state": "active"
21 },
22 "created_date": "2023-01-01T12:00:00.000Z",
23 "default_weekly_org_schedule": {},
24 "display_id": "string",
25 "min_valid_days": 1,
26 "modified_by": {
27 "display_id": "string",
28 "id": "string",
29 "display_name": "string",
30 "display_picture": {
31 "display_id": "string",
32 "id": "string",
33 "file": {
34 "type": "string",
35 "name": "string",
36 "size": 1
37 }
38 },
39 "email": "string",
40 "full_name": "string",
41 "state": "active"
42 },
43 "modified_date": "2023-01-01T12:00:00.000Z",
44 "name": "string",
45 "org_schedule_fragments": [
46 {}
47 ],
48 "timezone": "string",
49 "valid_until": "2023-01-01T12:00:00.000Z",
50 "weekly_org_schedules": [
51 {}
52 ]
53 }
54}
Updates an organization schedule.
Was this page helpful?
Previous

Create Part

Next
Built with
Create Part
Updates an organization schedule.

Headers

AuthorizationstringRequired
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Request

This endpoint expects an object.
idstringRequiredformat: "id"
Organization schedule ID.
default_weekly_org_scheduleobjectOptional
min_valid_dayslongOptional
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.
namestringOptionalformat: "text"
Human-readable name.
org_schedule_fragmentslist of objectsOptional
List of organization schedule fragments with no overlaps or gaps.
timezonestringOptionalformat: "text"
Timezone in which the organization schedule applies. Expected to be a valid IANA time zone name such as America/New_York.
weekly_org_scheduleslist 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

Success.
org_scheduleobject

Errors

Update Org Schedule

Human-readable name.

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

Bearer authentication of the form Bearer <token>, where token is your auth token.