---
type: api
title: Upgrade Kibana, APM, Integrations Server, AppSearch, Enterprise Search inside Deployment
description: > WARNING
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-upgrade-deployment-stateless-resource
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-upgrade-deployment-stateless-resource
products:
  - Elastic Cloud Enterprise
---

# Upgrade Kibana, APM, Integrations Server, AppSearch, Enterprise Search inside Deployment

Authentication: required

## Paths

- `POST` `/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_upgrade`

#### Path parameters

- `deployment_id` (string) — required
  Identifier for the Deployment.
- `stateless_resource_kind` (enum) — required
  The kind of stateless resource
  Values: `kibana`, `apm`, `appsearch`, `enterprise_search`, `integrations_server`
- `ref_id` (string) — required
  User-specified RefId for the Resource (or '_main' if there is only one).

## Description

> WARNING
> This endpoint is deprecated and scheduled to be removed in the next major version. Use [Update deployment](#update-deployment) instead.

Upgrades a running cluster.

## Query string parameters

- `validate_only` (boolean · default: false) — optional
  When `true`, returns the update version without performing the upgrade

## Responses

#### `202`

The upgrade command was issued successfully. Use the "GET" command on the /{deployment_id} resource to monitor progress

`application/json`

- `resource_id` (string)
- `stack_version` (string)
#### `404`

* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)
* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_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}/deployments/${DEPLOYMENT_ID}/kibana/${REF_ID}/_upgrade" \
  -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
{
  "resource_id": "string",
  "stack_version": "string"
}
```

#### 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"
      ]
    }
  ]
}
```

