Link tasks to control
POST
/v1/controls/{id}/tasks/link
const url = 'https://api.varman.io/v1/controls/example/tasks/link?frameworkInstanceId=example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"taskIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://api.varman.io/v1/controls/example/tasks/link?frameworkInstanceId=example' \ --header 'Content-Type: application/json' \ --data '{ "taskIds": [ "example" ] }'Link compliance tasks to a control so implementation work, evidence collection, and review status stay connected.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”frameworkInstanceId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
taskIds
required
Task IDs to link to the control
Array<string>
Example generated
{ "taskIds": [ "example" ]}