# Update custom connector

> Source: https://elaichi.ai/docs/api-reference/custom-connectors/connector/patchcustomconnector/

`PATCH /connector/{slug}`

Resource: **Connector** · API: **Custom connectors**

## Path parameters

- **`slug`** _(string, required)_
  Connector slug of an org-owned connector.

## Request body

- **`label`** _(string)_
- **`category`** _(string,null)_
- **`config`** _(object)_
  Replaces the stored config entirely. Refused on a remote MCP connector.
- **`logo`** _(string)_
  Remote MCP connectors only. An https URL.
- **`description`** _(string)_
  Remote MCP connectors only.
- **`auth_config`** _(object)_
  Remote MCP connectors with `custom` sign-in only.
- **`client_id`** _(string)_
  Remote MCP connectors with `oauth_client` sign-in only.
- **`client_secret`** _(string)_
  As `client_id`. Write-only.
- **`omit_refresh_scope`** _(boolean)_
  Remote MCP connectors with OAuth sign-in only. `true`: a token refresh sends no scope; `false`: back to the default. Members do not need to reconnect.
- **`connect_notes`** _(string,null)_
  Remote MCP connectors with OAuth sign-in only. Markdown shown before sign-in (trimmed). `null` clears it.
- **`connect_notes_link`** _(string,null)_
  As `connect_notes`. An https link with no credentials. `null` clears it.

## Code examples

### curl

```bash
curl -X PATCH 'https://api.elaichi.ai/connector/<slug>' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"label":"your_label","config":{},"logo":"your_logo","description":"your_description","auth_config":{},"client_id":"your_client_id","client_secret":"your_client_secret","omit_refresh_scope":true}'
```

### JavaScript

```javascript
const body = {
  "label": "your_label",
  "config": {},
  "logo": "your_logo",
  "description": "your_description",
  "auth_config": {},
  "client_id": "your_client_id",
  "client_secret": "your_client_secret",
  "omit_refresh_scope": true
};

const response = await fetch('https://api.elaichi.ai/connector/<slug>', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/connector/<slug>"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}
payload = {
    "label": "your_label",
    "config": {},
    "logo": "your_logo",
    "description": "your_description",
    "auth_config": {},
    "client_id": "your_client_id",
    "client_secret": "your_client_secret",
    "omit_refresh_scope": True
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
```
