Update a task
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"Review access controls","description":"Review and update access control policies","status":"todo","assigneeId":"mem_abc123","approverId":"mem_abc123","frequency":"daily","integrationScheduleFrequency":"daily","department":"it","reviewDate":"2025-01-01T00:00:00.000Z","notRelevantJustification":"This control is out of scope for our SOC 2 audit."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/tasks/tsk_abc123def456 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "Review access controls", "description": "Review and update access control policies", "status": "todo", "assigneeId": "mem_abc123", "approverId": "mem_abc123", "frequency": "daily", "integrationScheduleFrequency": "daily", "department": "it", "reviewDate": "2025-01-01T00:00:00.000Z", "notRelevantJustification": "This control is out of scope for our SOC 2 audit." }'Update a task in Varman. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
tsk_abc123def456Unique task identifier
Request Bodyrequired
Section titled “Request Bodyrequired”object
Task title
Example
Review access controlsTask description
Example
Review and update access control policiesExample
in_progressAssignee member ID, or null to unassign
Example
mem_abc123Approver member ID, or null to unassign
Example
mem_abc123Example
monthlyCadence for running the integration check attached to this task
Example
dailyBuilt-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
Example
itExample
2025-01-01T00:00:00.000ZRequired justification when marking evidence tasks as not_relevant
Example
This control is out of scope for our SOC 2 audit.Responses
Section titled “Responses”Task updated successfully
object
Unique identifier for the task
Task title
Task description
Task status
Task creation timestamp
Task last update timestamp
Task template ID
object
Cadence for running the integration check attached to this task
Last successful integration check run timestamp
object
Example
{ "id": "tsk_abc123def456", "title": "Implement user authentication", "description": "Add OAuth 2.0 authentication to the platform", "status": "todo", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T10:30:00Z", "taskTemplateId": "frk_tt_68406e353df3bc002994acef", "integrationScheduleFrequency": "daily"}Invalid request body or task not found
Task not found