---
type: api
title: Promote a coordinator candidate
description: Promotes a coordinator candidate.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-promote-coordinator-candidate
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-promote-coordinator-candidate
products:
  - Elastic Cloud Enterprise
---

# Promote a coordinator candidate

Authentication: required

## Paths

- `POST` `/platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote`

#### Path parameters

- `coordinator_candidate_id` (string) — required
  The identifier for the coordinator candidate

## Description

Promotes a coordinator candidate.

## Responses

#### `202`

Accepted promote of coordinator candidate.

`application/json`

- `name` (string)
  Name of this coordinator candidate.
- `public_hostname` (string)
  Public hostname of this coordinator candidate
- `acl` (object)
  Represents a Zookeeper ACL permission
  - `perms` (integer · format: int32)
    ZK static permissions for admin/all/create/read/write/delete
  - `scheme` (string)
    Zookeeper ACL scheme
  - `id` (string)
    Identity within provided scheme
- `id` (integer · format: int32)
  Zookeeper server identifier corresponding to this coordinator candidate
- `attributes` (map string to string)
  Attributes of this coordinator candidate
- `state` (enum)
  State of the candidate
  Values: `accepted`, `pending`
#### `404`

Unable to find coordinator candidate {coordinator_id}. Edit your request, then try again. (code: `coordinators.candidate_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 POST "${API_URL}/platform/infrastructure/coordinators/candidates/${COORDINATOR_CANDIDATE_ID}/_promote" \
  -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
{
  "name": "string",
  "public_hostname": "string",
  "acl": {
    "perms": 0,
    "scheme": "string",
    "id": "string"
  },
  "id": 0,
  "attributes": {
    "key": "string"
  },
  "state": "accepted"
}
```

#### 404

`application/json`

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

```json
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
```

