---
type: api
title: Resynchronize allocator
description: Immediately synchronizes the allocator information in the back-end search index and caches.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-resync-allocator
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-resync-allocator
products:
  - Elastic Cloud Enterprise
---

# Resynchronize allocator

## Paths

- `POST` `/platform/infrastructure/allocators/{allocator_id}/_resync`

#### Path parameters

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

## Description

Immediately synchronizes the allocator information in the back-end search index and caches.

## Authentication

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

## Responses

#### `200`

The allocator resync operation executed successfully

`application/json`

Type: `object`

#### `500`

The allocator resync operation failed for allocator {allocator_id}. (code: `allocators.resync_failed`)

`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 POST "${API_URL}/platform/infrastructure/allocators/${ALLOCATOR_ID}/_resync" \
  -u "${USERNAME}:${PASSWORD}"
```

