---
type: api
title: Stop maintenance mode
description: Stops maintenance mode on the allocator.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-stop-allocator-maintenance-mode
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-stop-allocator-maintenance-mode
products:
  - Elastic Cloud Enterprise
---

# Stop maintenance mode

## Paths

- `POST` `/platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#apikey)

#### Path Parameters

- `allocator_id` (string)
  The allocator identifier.

## Description

Stops maintenance mode on the allocator.

## Query String Parameters

- `reason` (string)
  Provides a reason for changing the maintenance mode which will appear as a message on the allocator.

## Responses

#### `202`

The stop maintenance mode command was issued successfully

`application/json`

Type: `EmptyResponse`

#### `403`

The stop maintenance mode command was prohibited for the given allocator. (code: `root.unauthorized.rbac`)

`application/json`

- `errors` ([] BasicFailedReplyElement)
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` ([] string)
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response Headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

#### `404`

The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)

`application/json`

- `errors` ([] BasicFailedReplyElement)
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` ([] string)
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response Headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code Examples

#### Console

```console
POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop
```

#### curl

```curl
curl -X POST "/platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop"
```

