Approve a task
POST
/v1/tasks/{taskId}/approve
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/approve';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
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/tasks/tsk_abc123def456/approve \ --header 'X-API-Key: <X-API-Key>'Approve a task that is in review. Only the assigned approver can approve. Moves status to done and creates an audit comment.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Unique task identifier
Responses
Section titled “Responses”Task approved successfully
Task is not in review
Not the assigned approver