Skip to main content

Workflow Task Rejection API

Walk you through the basics of workflow task rejection api

Updated this week

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 Parameters:

Parameter

Required

Type

Description

instance_id

Yes

string

Corresponding workflow instance

task_id

Yes

string

Task instance ID

username

Yes

string

The username associated with the task

comment

No

string

Approval comment (optional)

Request Example:

{ 
"instance_id": "64c72a03561073000755afd8",

"task_id": "64c72a03561073000755b001",

"username": "jodoo-90ahnts5a6rh",

"comment": "Rejected"
}

Response Parameters:

Parameter

Type

Description

status

string

Request result status:
- success: API call succeeded

- failure: API call failed (includes error code and message)

code

number

Error code

message

string

Error message description

Response Example (Success):

{ 
"status": "success"
}

Response Example (Error):

{ 
"status": "failure",
"code": 5004,
"message": "No comment for approval."
}
Did this answer your question?