Share custom connector
/connector/{slug}/share
Grants a user, team, or the whole organization access to an org-owned connector at a level: `view` < `use` < `edit`, the same ladder every shareable resource uses. `use` means creating connections from this connector; `edit` additionally means changing its config and its own grants. Requires `edit` access or ownership, and `connector:share`.
Path Parameters
Connector slug of an org-owned connector.
curl -X POST 'https://api.elaichi.ai/connector/<slug>/share' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/connector/<slug>/share', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/connector/<slug>/share"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())