Approval Process Cancellation
# Description
Cancel an approval process
# Request Specification
Method: POST + application/json
Endpoint: https://${cloud domain}/cgi/crm/v2/special/approval/instance/cancel?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | Data map |
| objectId | String | Yes | Data ID |
| entityId | String | Yes | Object API name |
| cancelReason | String | Yes | Cancellation reason |
# Request Example
{
"data": {
"entityId": "AccountObj",
"cancelReason": "Cancel approval",
"objectId": "5f06cdb75f9da10001f5877b"
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error codes |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the message field in the response for logical judgment, as errorMessage may change;