Create or Update Maintenance Mode
POST https://api.squadcast.com/v3/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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null | ||
Content-Type | string |
RESPONSES
status: OK
{"data":"Service maintenance saved successfully"}