Update custom connector
/connector/{slug}
**`config` is REPLACED wholesale when present** — send the complete definition, since anything omitted is gone. `label` and `category` are ordinary merge-patch fields. Org-owned connectors only, and the caller needs edit access (ownership or an `edit` share). Existing connections keep working, but tools removed from the config stop resolving in every toolbox that names them.
Path Parameters
Connector slug of an org-owned connector.
Request Body
Replaces the stored config entirely.
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":{}}'const body = {
"label": "your_label",
"config": {}
};
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);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": {}
}
response = requests.patch(url, headers=headers, json=payload)
print(response.json())