Unable To Use Maintenance Mode API

Unable to use Maintenance Mode API - Error 400 Bad Request

Issue Description: Using UiPath.WebApi.13.0

Example: api/Maintenance/Start?phase=Draining&force=true&killJobs=false

Resolution: Check to ensure that

  • The Force parameter is set to false if being used for /api/Maintenance/Start
  • Admin and Write permissions are required
  • The Maintenance mode is only available to the Host Tenant.

Investigation Steps: Test with Swagger.

  • API call fails if the force parameter is set to true for /api/Maintenance/Start .

Example: api/Maintenance/Start?phase=Draining&force=false&killJobs=false


Read more on the below: