---
type: api
title: Set allocator settings
description: Overwrites the allocator settings with the specified settings. WARNING: Any unspecified fields are deleted.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-set-allocator-settings
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-set-allocator-settings
products:
  - Elastic Cloud Enterprise
---

# Set allocator settings

## Paths

- `PUT` `/platform/infrastructure/allocators/{allocator_id}/settings`

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

#### Path Parameters

- `allocator_id` (string)
  The allocator identifier.

## Description

Overwrites the allocator settings with the specified settings. WARNING: Any unspecified fields are deleted.

## Query String Parameters

- `version` (string)
  Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.

## Request Body

`application/json`

The allocator settings to apply

- `capacity` (integer) — optional
  A memory capacity (in MB) that overrides the capacity defined during installation - requires separate restart of Allocator services on each host to take full effect.

## Responses

#### `200`

Returns the updated settings for the specified allocator

`application/json`

- `capacity` (integer)
  A memory capacity (in MB) that overrides the capacity defined during installation - requires separate restart of Allocator services on each host to take full effect.
#### `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
PUT /platform/infrastructure/allocators/{allocator_id}/settings
```

#### curl

```curl
curl -X PUT "/platform/infrastructure/allocators/{allocator_id}/settings"
```

