---
title: "Update cloud connector"
method: PUT
path: "/api/fleet/cloud_connectors/{cloudConnectorId}"
tags: ["Fleet cloud connectors"]
---

# Update cloud connector

`PUT /api/fleet/cloud_connectors/{cloudConnectorId}`

**Spaces method and path for this operation:**

<div><span class="operation-verb put">put</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/cloud_connectors/{cloudConnectorId}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Update a cloud connector by ID.<br/><br/>[Required authorization] Route required privileges: fleet-agent-policies-all OR integrations-all.

## Path parameters

- `cloudConnectorId` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `accountType` 'single-account' | 'organization-account' — The account type: single-account (single account/subscription) or organization-account (organization-wide).
  - `name` string — The name of the cloud connector.
  - `vars` object

## Response `200`

Successful response

- object
  - `item` object, required
    - `accountType` string
    - `cloudProvider` string, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `namespace` string
    - `packagePolicyCount` number, required
    - `updated_at` string, required
    - `vars` object, required
    - `verification_failed_at` string
    - `verification_started_at` string
    - `verification_status` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
