Link tasks to control
curl --request POST \
--url https://api.trycomp.ai/v1/controls/{id}/tasks/link \
--header 'Content-Type: application/json' \
--data '
{
"taskIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/controls/{id}/tasks/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/controls/{id}/tasks/link"
payload = { "taskIds": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Controls
Link tasks to control | Comp AI API
Link compliance tasks to a control so implementation work, evidence collection, and review status stay connected.
POST
/
v1
/
controls
/
{id}
/
tasks
/
link
Link tasks to control
curl --request POST \
--url https://api.trycomp.ai/v1/controls/{id}/tasks/link \
--header 'Content-Type: application/json' \
--data '
{
"taskIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/controls/{id}/tasks/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/controls/{id}/tasks/link"
payload = { "taskIds": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

