Set services enabled on a connection
curl --request PUT \
--url https://api.trycomp.ai/v1/integrations/connections/{id}/services \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"services": [
"s3",
"iam",
"cloudtrail"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({services: ['s3', 'iam', 'cloudtrail']})
};
fetch('https://api.trycomp.ai/v1/integrations/connections/{id}/services', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/connections/{id}/services"
payload = { "services": ["s3", "iam", "cloudtrail"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Integrations
Set services enabled on a connection | Comp AI API
Set services enabled on a connection in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables.
PUT
/
v1
/
integrations
/
connections
/
{id}
/
services
Set services enabled on a connection
curl --request PUT \
--url https://api.trycomp.ai/v1/integrations/connections/{id}/services \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"services": [
"s3",
"iam",
"cloudtrail"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({services: ['s3', 'iam', 'cloudtrail']})
};
fetch('https://api.trycomp.ai/v1/integrations/connections/{id}/services', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/connections/{id}/services"
payload = { "services": ["s3", "iam", "cloudtrail"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Path Parameters
Body
application/json
Service IDs to enable on this connection. Any service IDs from the provider's manifest that are NOT in this list become disabled. Pass an empty array to disable all services.
Example:
["s3", "iam", "cloudtrail"]
Auto-resolved from your API key / session. You can omit this; it is ignored by the server.
Response
200 - undefined
Was this page helpful?

