Create or Update Maintenance Mode

POST https://platform-backend.squadcast.com/v2/organizations/:organizationID/services/:serviceID/maintenance

This endpoint creates the maintenance window for the given service.
Requires access_token as a Bearer {{token}} in the Authorization header with write scope.

Request Body

{"data"=>{"onMaintenance"=>true, "serviceMaintenance"=>[{"daily"=>false, "days"=>[], "maintenanceEndDate"=>"2022-03-01T11:00:00.000Z", "maintenanceEndTime"=>"16:30", "maintenanceStartDate"=>"2022-03-01T09:30:00.000Z", "maintenanceStartTime"=>"15:00", "monthly"=>false, "repeatTill"=>"2022-03-01T11:00:00.000Z", "repetition"=>false, "status"=>"New Maintenance Schedule", "weekly"=>false}]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: OK

{"result":true}