---
type: api
title: Resynchronize allocators
description: Asynchronously synchronizes all allocator information in the back-end search index.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-resync-allocators
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-resync-allocators
products:
  - Elastic Cloud Enterprise
---

# Resynchronize allocators

Authentication: required

## Paths

- `POST` `/platform/infrastructure/allocators/_resync`

## Description

Asynchronously synchronizes all allocator information in the back-end search index.

## Query string parameters

- `skip_matching_version` (boolean · default: true) — optional
  When true, skips the document indexing when the version matches the in-memory copy.

## Response

The ids of documents, organized by model version, that will be synchronized.

`application/json`

- `results` (map string to object)
  The results of synchronizing indices organized by model version
  Map values (object)
  - `created` (string[])
    The ids of documents created in the index by index version
  - `updated` (string[])
    The ids of documents updated in the index by index version
  - `deleted` (string[])
    The ids of documents deleted from the index by index version
  - `errors` (string[])
    The regions where document synchronization may have failed
## Code examples

#### curl

```curl
curl -X POST "${API_URL}/platform/infrastructure/allocators/_resync" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 202

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "results": {
    "key": {
      "created": [
        "string"
      ],
      "updated": [
        "string"
      ],
      "deleted": [
        "string"
      ],
      "errors": [
        "string"
      ]
    }
  }
}
```

