What is a Workflow Task Rejection API?
The Workflow Task Rejection API is used to reject workflow tasks.
API Calling
This API is used to reject workflow tasks.
Request URL: https://api.jodoo.com/api/v1/workflow/task/reject
Request Frequency: 20 times per second
Request Method: POST
Request Parameters:
Parameter | Required | Type | Description |
| Yes | string | Corresponding workflow instance |
| Yes | string | Task instance ID |
| Yes | string | The username associated with the task |
| No | string | Approval comment (optional) |
Request Example:
{
"instance_id": "64c72a03561073000755afd8",
"task_id": "64c72a03561073000755b001",
"username": "jodoo-90ahnts5a6rh",
"comment": "Rejected"
}
Response Parameters:
Parameter | Type | Description |
| string | Request result status: - |
| number | Error code |
| string | Error message description |
Response Example (Success):
{
"status": "success"
}
Response Example (Error):
{
"status": "failure",
"code": 5004,
"message": "No comment for approval."
}