---
type: api
title: Update a connector
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-put-actions-action-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-put-actions-action-id
products:
  - Kibana
---

# Update a connector

deprecated

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `PUT` `/api/actions/action/{id}`
- `PUT` `/s/{space_id}/api/actions/action/{id}`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `id` (string) — required
  An identifier for the connector.

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Request body

`application/json`

- `config` (map string to object · default: {}) — optional
- `name` (string) — required
- `secrets` (map string to object · default: {}) — optional

## Response

Indicates a successful call.

`application/json`

- `config` (map string to object)
- `connector_type_id` (string)
  The connector type identifier.
- `id` (string)
  The identifier for the connector.
- `is_deprecated` (boolean)
  Indicates whether the connector is deprecated.
- `is_missing_secrets` (boolean)
  Indicates whether the connector is missing secrets.
- `is_preconfigured` (boolean)
  Indicates whether the connector is preconfigured. If true, the `config` and `is_missing_secrets` properties are omitted from the response.
- `is_system_action` (boolean)
  Indicates whether the connector is used for system actions.
- `name` (string)
   The name of the rule.
## Code examples

#### Console

```console
PUT kbn:/api/actions/action/ID
{
  "name": "string"
}
```

#### curl

```curl
curl -X PUT "${KIBANA_URL}/api/actions/action/${ID}" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'
```

## Response examples

#### 200

`application/json`

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

```json
{
  "config": {},
  "connector_type_id": "string",
  "id": "string",
  "is_deprecated": false,
  "is_missing_secrets": false,
  "is_preconfigured": false,
  "is_system_action": false,
  "name": "string"
}
```

