---
type: api
title: Resynchronize constructor
description: Immediately resynchronizes the search index and cache for the selected constructor.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-resync-constructor
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/operation/operation-resync-constructor
products:
  - Elastic Cloud Enterprise
---

# Resynchronize constructor

## Paths

- `POST` `/platform/infrastructure/constructors/{constructor_id}/_resync`

#### Path parameters

- `constructor_id` (string) — required
  Identifier for the constructor

## Description

Immediately resynchronizes the search index and cache for the selected constructor.

## Authentication

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

## Responses

#### `200`

The constructor resync operation executed successfully

`application/json`

Type: `object`

#### `500`

The constructor resync operation failed for allocator {constructor_id}. (code: `constructors.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/constructors/${CONSTRUCTOR_ID}/_resync" \
  -u "${USERNAME}:${PASSWORD}"
```

