REST API Test Page
Operation
PUT
on
/setup/calendar/days
Update a calendar day.
Produces
: application/json
Parameters
Name
Type
Value
Description
(JSON)
Request Body
{ "label" : "a calendar day label", "type" : "WORK_DAY", "dayTimeTriggers" : [ { "startActionGroupTimeTrigger" : { "triggerType" : "DAWN", "minutes" : 1, "hours" : 1, "metadata" : "some metadata", "enabled" : false, "duskOffset" : 1, "dawnOffset" : 1, "randomTimeOffset" : 8, "alwaysBeforeHours" : 5, "alwaysBeforeMinutes" : 7, "alwaysAfterHours" : 4, "alwaysAfterMinutes" : 9, "actionGroupOID" : "an action group OID", "localActionGroup" : { "label" : "a managed action group label", "metadata" : "some metadata", "shortcut" : true, "notificationTypeMask" : 1, "notificationCondition" : "ALWAYS", "notificationText" : "a notification text", "notificationTitle" : "a notification title", "targetEmailAddresses" : [ "some target email addresses" ], "targetPhoneNumbers" : [ "some target phone numbers" ], "targetPushSubscriptions" : [ "some target push subscriptions" ], "actions" : [ { "deviceURL" : "device URL (<protocol>://<gatewayId>/<deviceAddress>[#<subsystemId>])", "commands" : [ { "type" : 1, "name" : "a command name", "parameters" : [ "some parameters" ], "sensitiveParametersIndexes" : [ 1 ], "authentication" : "an authentication", "delay" : 1, "lockLevel" : 13 } ] } ], "oid" : "the managed action group UUID" } } } ], "metadata" : "some metadata", "oid" : "the calendar day UUID" }
*
Json description of the calendar day to update
Result
HTTP Status :