Add A Switch Port Schedule
POST {{baseUrl}}/networks/:networkId/switch/portSchedules
Add a switch port schedule #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: name| string| The name for your port schedule. Required portSchedule| object| The schedule for switch port scheduling. Schedules are applied to days of the week. When it's empty, default schedule with all days of a week are configured. Any unspecified day in the schedule is added as a default schedule configuration of the day.
Request Body
{"name"=>"<string>", "portSchedule"=>{"monday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}, "tuesday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}, "wednesday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}, "thursday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}, "friday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}, "saturday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}, "sunday"=>{"active"=>"<boolean>", "from"=>"<string>", "to"=>"<string>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cisco-Meraki-API-Key | null | ||
Content-Type | string |
RESPONSES
status: Created
{"id":"1234","networkId":"N_24329156","name":"Weekdays schedule","portSchedule":{"monday":{"active":true,"from":"9:00","to":"17:00"},"tuesday":{"active":true,"from":"9:00","to":"17:00"},"wednesday":{"active":true,"from":"9:00","to":"17:00"},"thursday":{"active":true,"from":"9:00","to":"17:00"},"friday":{"active":true,"from":"9:00","to":"17:00"},"saturday":{"active":false,"from":"0:00","to":"24:00"},"sunday":{"active":false,"from":"0:00","to":"24:00"}}}