operate ticket
{{ common_args_desc }}
Field | Type | Required | Description |
---|---|---|---|
sn | string | YES | ticket number |
operator | string | YES | ticket operator |
action_type | string | YES | operation type:SUSPEND(suspend)/UNSUSPEND(unsuspend)/WITHDRAW(withdraw)/TERMINATE(terminate) |
action_message | string | NO | ticket operate message(suspend and terminate) |
{
"bk_app_secret": "xxxx",
"bk_app_code": "xxxx",
"bk_token": "xxxx",
"sn": "NO2019100818365320",
"operator": "zhangsan",
"action_type": "SUSPEND",
"action_message": "test"
}
{
"bk_app_secret": "xxxx",
"bk_app_code": "xxxx",
"bk_token": "xxxx",
"sn": "NO2019100818365320",
"operator": "zhangsan",
"action_type": "UNSUSPEND",
"action_message": "test"
}
{
"bk_app_secret": "xxxx",
"bk_app_code": "xxxx",
"bk_token": "xxxx",
"sn": "NO2019100818365320",
"operator": "zhangsan",
"action_type": "WITHDRAW",
"action_message": "test"
}
{
"bk_app_secret": "xxxx",
"bk_app_code": "xxxx",
"bk_token": "xxxx",
"sn": "NO2019100818365320",
"operator": "zhangsan",
"action_type": "TERMINATE",
"action_message": "test"
}
{
"message": "success",
"code": 0,
"data": [],
"result": true
}
Field | Type | Description |
---|---|---|
result | bool | true/false, indicate success or failure |
code | int | return code. 0 indicates success, other values indicate failure |
message | string | error message returned when result is false |
data | object | data returned when result is true, details are described below |