---
type: api
title: Update allocator settings
description: Applies the settings as a patch. Only the fields that are referenced in the update are altered.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-update-allocator-settings
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-update-allocator-settings
products:
  - Elastic Cloud Enterprise
---

# Update allocator settings

## Paths

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

#### Path parameters

- `allocator_id` (string) — required
  The allocator identifier.

## Description

Applies the settings as a patch. Only the fields that are referenced in the update are altered.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Query string parameters

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

## Request body

The allocator settings to update

`application/json`

Type: `string`


## Responses

#### `200`

Returns the updated settings for the specified allocator

`application/json`

- `capacity` (integer · format: int32)
  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` (object[])
  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

#### curl

```curl
curl -X PATCH "${API_URL}/platform/infrastructure/allocators/${ALLOCATOR_ID}/settings" \
  -u "${USERNAME}:${PASSWORD}" \
  -H "Content-Type: application/json" \
  -d '"string"'
```

