Skip to content

Add tasks to a project

POST
/v1/projects/{projectId}/tasks
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.

projectId
required
string

Example

prj_abc123def456

Unique project identifier

X-Organization-Id
string
Media typeapplication/json
object
taskIds
required

Task IDs to add to the project (moved from any other project)

Array<string>

Example

[
"tsk_abc123"
]