UpdateTaskPriority

Updated at:

Description: Updates the priority of a single task.

Path: rpa/openapi/raas/task/UpdateTaskPriority

Method: POST

Usage notes:

  • You can update a task's priority only when the task is in the pending state.

  • A higher value indicates a higher priority, and the task is executed first.

Request parameters:

Parameter

Type

Required

Example

Description

TaskId

String

Yes

3226a05a -****-****-****- b8fb7e4561c6

The task ID.

TaskPriority

Integer

Yes

90

The task's new priority. Valid values: 1 to 100.

Response parameters:

For common response parameters, see Return results. The data field for this operation is null.

Request example:

https://console-rpa.aliyun.com/rpa/openapi/raas/task/UpdateTaskPriority?
&TaskId=db23a4a0-****-****-****-667453882246
&TaskPriority=90
&

Response example:

{
	"requestId": "d6e1f995-****-****-****-4378047e70b7",
	"success": false,
	"code": 36109,
	"msg": "The priority of a task in a final state cannot be changed.",
	"msgCode": "raas.task.finalStateTaskCannotUpdatePriority",
	"data": null,
	"pager": null,
	"instanceId": null
}