Unlink a task from a control
curl --request DELETE \
--url https://api.trycomp.ai/v1/controls/{id}/tasks/{taskId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/controls/{id}/tasks/{taskId}', 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/{taskId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)Controls
Unlink a task from a control | Comp AI API
Removes a task↔control link. With ?frameworkInstanceId, only that framework instance’s link is removed; otherwise the org-wide link and derived.
DELETE
/
v1
/
controls
/
{id}
/
tasks
/
{taskId}
Unlink a task from a control
curl --request DELETE \
--url https://api.trycomp.ai/v1/controls/{id}/tasks/{taskId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/controls/{id}/tasks/{taskId}', 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/{taskId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)Authorizations
API key for authentication
Path Parameters
Task to unlink from the control
Example:
"tsk_abc123def456"
Query Parameters
Scope to one framework instance. Omit to use every instance the control belongs to.
Response
200
Was this page helpful?

