Set the device sync provider
curl --request POST \
--url https://api.trycomp.ai/v1/integrations/sync/device-sync-provider \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"provider": "fleet"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: 'fleet'})
};
fetch('https://api.trycomp.ai/v1/integrations/sync/device-sync-provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/sync/device-sync-provider"
payload = { "provider": "fleet" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Integrations
Set the device sync provider | Comp AI API
Set the device sync provider in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables, and collect.
POST
/
v1
/
integrations
/
sync
/
device-sync-provider
Set the device sync provider
curl --request POST \
--url https://api.trycomp.ai/v1/integrations/sync/device-sync-provider \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"provider": "fleet"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: 'fleet'})
};
fetch('https://api.trycomp.ai/v1/integrations/sync/device-sync-provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/sync/device-sync-provider"
payload = { "provider": "fleet" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Device sync provider to use, or null to clear it
Provider slug to use for device sync (must have the "device_sync" capability in its manifest and an active connection — call list-providers to see options). Pass null to disable device sync for this org.
Example:
"fleet"
Response
201 - undefined
Was this page helpful?

