Add tasks to a project
POST
/v1/projects/{projectId}/tasks
const url = 'https://api.varman.io/v1/projects/prj_abc123def456/tasks';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"taskIds":["tsk_abc123"]}'};
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/projects/prj_abc123def456/tasks \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "taskIds": [ "tsk_abc123" ] }'Adds compliance tasks to a project. A task belongs to one project at most, so tasks already in another project are moved here.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Example
prj_abc123def456Unique project identifier
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
taskIds
required
Task IDs to add to the project (moved from any other project)
Array<string>
Example
[ "tsk_abc123"]