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

# Resynchronize runner

## Paths

- `POST` `/platform/infrastructure/runners/{runner_id}/_resync`

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

#### Path Parameters

- `runner_id` (string)
  The identifier for the runner

## Description

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

## Responses

#### `200`

The runner resync operation executed successfully

`application/json`

Type: `EmptyResponse`

#### `500`

The runner resync operation failed for runner {runner_id}. (code: `runners.resync_failed`)

`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
POST /platform/infrastructure/runners/{runner_id}/_resync
```

#### curl

```curl
curl -X POST "/platform/infrastructure/runners/{runner_id}/_resync"
```

