COVID-19 Update: A message to our Customers, Partners, and SALTO Systems Community. Read more.

Update time schedules for an access group

This endpoint allows to update the time schedule for an access group. Uses the same body as the POST command.

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Endpoint: "/v1.1/sites/{site_id}/access_groups/{access_group_id}/time_schedules/{time_schedule_id}"
Method: PATCH

Parameters:
Path {
site_id;
type: string, format: uuid;
required

Id of the site

site_id
}(string) Path {
access_group_id;
type: string, format: uuid;
required

Id of the access group whose schedule is being updated

access_group_id
}(string) Path {
time_schedule_id;
type: string, format: uuid;
required

Id of the time schedule to be updated

time_schedule_id
}(string) Body (application/json): {
monday;
type: boolean

Whether this timeschedule is valid on a Monday between start and end datetimes

"monday"
: boolean,
tuesday;
type: boolean

Whether this timeschedule is valid on a Tuesday between start and end datetimes

"tuesday"
: boolean,
wednesday;
type: boolean

Whether this timeschedule is valid on a Wednesday between start and end datetimes

"wednesday"
: boolean,
thursday;
type: boolean

Whether this timeschedule is valid on a Thursday between start and end datetimes

"thursday"
: boolean,
friday;
type: boolean

Whether this timeschedule is valid on a Friday between start and end datetimes

"friday"
: boolean,
saturday;
type: boolean

Whether this timeschedule is valid on a Saturday between start and end datetimes

"saturday"
: boolean,
sunday;
type: boolean

Whether this timeschedule is valid on a Sunday between start and end datetimes

"sunday"
: boolean,
start_time;
type: string

The start of the time span on which this timeschedule is valid, for the selected days and date span.

"start_time"
: "string",
end_time;
type: string

The end of the time span on which this timeschedule is valid, for the selected days and date span.

"end_time"
: "string",
start_date;
type: string, format: date-time;

The date at which the timeschedule starts beeing valid

"start_date"
: "string",
end_date;
type: string, format: date-time;

The date at which the timeschedule stops being valid

"end_date"
: "string" }
Response Content Type (application/json):
{
  
id;
type: string, format: uuid;

Access schedule Id

"id"
: "string",
monday;
type: boolean

TimeSchedule enabled on monday flag, set to true if enabled

"monday"
: boolean,
tuesday;
type: boolean

TimeSchedule enabled on tuesday flag, set to true if enabled

"tuesday"
: boolean,
wednesday;
type: boolean

TimeSchedule enabled on wednesday flag, set to true if enabled

"wednesday"
: boolean,
thursday;
type: boolean

TimeSchedule enabled on thursday flag, set to true if enabled

"thursday"
: boolean,
friday;
type: boolean

TimeSchedule enabled on friday flag, set to true if enabled

"friday"
: boolean,
saturday;
type: boolean

TimeSchedule enabled on saturday flag, set to true if enabled

"saturday"
: boolean,
sunday;
type: boolean

TimeSchedule enabled on sunday flag, set to true if enabled

"sunday"
: boolean,
start_time;
type: string

TimeSchedule start time

"start_time"
: "string",
end_time;
type: string

TimeSchedule end time

"end_time"
: "string",
start_date;
type: string, format: date-time;

TimeSchedule start date

"start_date"
: "string",
end_date;
type: string, format: date-time;

TimeSchedule end date

"end_date"
: "string" }