Updated on 2025-03-31 GMT+08:00

Changing the Task Status

Description

This interface is invoked to change the task status. By default, the task status is not in strict mode and can be switched to any status as required.

Method

POST

URI

https://Domain name/service/AICC__Case/1.0.0/openapi/task/status/update (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

Content-Type

String

Yes

Request body type, which is JSON

2

access-token

String

Yes

Token for a user to access a tenant space. For details, see 2.

Table 2 Request body parameters

No.

Parameter

Type

Length (Bytes)

Mandatory or Not

Description

1

id

String

20

Yes

Task ID

2

creatorId

String

20

Yes

Handler ID

3

status

String

128

Yes

Task status

dataType: SingleSelect

Value range:

  • Completed
  • Pending
  • Processing

Response Description

  • Status code: 200

Example

Scenario: Change the task status.

URL: https://Domain name/service/AICC__Case/1.0.0/openapi/task/status/update

  • Request header
{
 "Content-Type": "application/json",
 "access-token": "0000000000************7bm63KsRmEztTvyA="
}
  • Request body
{
    "id": "ccqG0000014iXvGKONQO",
    "status": "Processing",
    "creatorId": "10gg00000148QvgpaLAm"
}
  • Response header
{ "connection": "keep-alive",
 "Content-Length": "16",
"Content-Type": "application/json%3Bcharset=UTF-8"}
  • Response parameters
{"resCode": "0","resMsg": "Success"}