Reject a task review
POST
/v1/tasks/{taskId}/reject
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/reject';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/reject \ --header 'X-API-Key: <X-API-Key>'Reject a task that is in review. Only the assigned approver can reject. Reverts status to the previous status 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 rejected successfully
Task is not in review
Not the assigned approver