All Products
Search
Document Center

Cloud Phone:PauseAgentTask

Last Updated:Jun 04, 2026

Pauses running agent tasks on Mobile nodes.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

TaskIds

array

Yes

A list of task IDs.

string

Yes

The task ID.

t-bp67acfmxazb4p****

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The request ID.

E38B41A8-8E00-5AE4-A957-6636ACB8****

Code

string

The status code.

200

Message

string

The response message.

Success.

Tasks

array<object>

A list of tasks.

object

A task object.

TaskId

string

The unique ID of the task.

t-imr0fufqd7cle****

InstanceId

string

The ID of the Mobile node.

acp-anzzuho371azi44xr

PreviousStatus

string

The status of the task before the pause request. The only valid value is:

RUNNING: The task is running.

RUNNING

CurrentStatus

string

The current status of the task. The following are possible values:

PENDING: The task is being created.

RUNNING: The task is running.

COMPLETED: The task is completed.

FAILED: The task failed.

TIMEOUT: The task timed out.

PAUSING: The task is being paused.

PAUSED: The task is paused.

PAUSING

PausingAt

string

The time when the pause request was initiated, in ISO 8601 format.

2026-04-13T17:42:19Z

FailedReason

string

The reason the task failed to pause.

Task status [COMPLETED] does not support pause, only RUNNING tasks can be paused.

Examples

Success response

JSON format

{
  "RequestId": "E38B41A8-8E00-5AE4-A957-6636ACB8****",
  "Code": "200",
  "Message": "Success.",
  "Tasks": [
    {
      "TaskId": "t-imr0fufqd7cle****",
      "InstanceId": "acp-anzzuho371azi44xr",
      "PreviousStatus": "RUNNING",
      "CurrentStatus": "PAUSING",
      "PausingAt": "2026-04-13T17:42:19Z",
      "FailedReason": "Task status [COMPLETED] does not support pause, only RUNNING tasks can be paused."
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.