Planon IoT : Axonize (stand-alone) : Rules Endpoints : Rules/Post : Request – Rules/Post – relativeMeetingSchedule Properties
Request – Rules/Post – relativeMeetingSchedule Properties
Property
Type
Description
Mandatory
Rule/relativeMeetingSchedule/deviceIds
Array of Strings
Specify the device ids for the calendars
Rule/relativeMeetingSchedule/appId
String
Specify the app id for the calendars
Rule/relativeMeetingSchedule/productId
String
Specify the product id for the calendars
Rule/relativeMeetingSchedule/relativeMeetingTimes/minutes
Int
Specify the minutes to trigger before or after the meeting
Rule/relativeMeetingSchedule/relativeMeetingTimes/meetingRelativePosition
Enum
Specify if the rule trigger time will apply to the start or end time of the meeting. 0 for start, 1 for end
Rule/relativeMeetingSchedule/relativeMeetingTimes/timeRelativePosition
Enum
Specify if the rule trigger time will apply to before or after the start or end time of the meeting. 0 for before, 1 for after
Example JSON Rules/Post Request
curl -X POST \
https://api.dev.axonize.com/odata/rules\
-H ‘Authorization: Token’ \
-H ‘Content-Type: application/json’ \
-H ‘appId: 801A048A-9F23-429F-BF0D-B6D35B22771E’ \
-d ‘{“active”:true,”name”:”BasicRule”,”description”:””,”severity”:”Warning”,
”notifyOnRestore”:false,”weeklySchedule”:{“sun”:{“active”:true,”timeRange”:null},
”mon”:{“active”:true,”timeRange”:null},”tue”:{“active”:true,”timeRange”:null},
”wed”:{“active”:true,”timeRange”:null},”thu”:{“active”:true,”timeRange”:null},
”fri”:{“active”:true,”timeRange”:null},”sat”:{“active”:true,”timeRange”:null}},
”timezone”:”Asia/Jerusalem”,”actions”:[{“type”:”AlarmInstance”},{“type”:”EventLogEntry”,”eventLogEntryProperties”:
{“message”:”{severity} alarm from {deviceName} – {triggeringEvent} {operator} {threshold} on value {value}”}}],
”conditions”:[{“name”:”ConditionName”,”type”:”Threshold”,”devices”:[{“id”:”5ab1200721b5bb23b84fa126″,”name”:”qsdas1j”}],
”typeCode”:1039,”operator”:”<“,”threshold”:”10″,”eventName”:”Soil Humidity”,”eventProductId”:”58845d33922dcf2b0cc4632a”}]}’