UpdateAgentSessionTitle

Updated at:

Modifies the title of an agent session accessible to the current identity without changing the task execution status.

Operation description

Modifies the title of an agent session accessible to the current identity without changing the task execution status.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:UpdateAgentSessionTitle

none

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Jsonrpc

string

No

The JSON-RPC protocol version. Valid value: 2.0.

2.0

Id

string

No

The JSON-RPC correlation ID for the current request. This ID is specified by the caller and used to associate the request with the response.

updateagentsessiontitle-rpc-001

Params

object

No

The request parameters for modifying the session title, including the target session ID and the new title.

SessionId

string

Yes

The ID of the agent session that belongs to the current account.

123e4567-e89b-42d3-a456-426614174000

Title

string

Yes

The new title. The length must be 1 to 512 characters after leading and trailing whitespace is removed.

New title

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The unique ID of the current OpenAPI request. You can use this ID to troubleshoot request issues.

01A0B6E0-E005-1465-B5DE-5CD17677426F

JsonRpcResponse

object

The JSON-RPC response. It returns Result on success and Error on protocol errors.

Jsonrpc

string

The JSON-RPC protocol version.

2.0

Id

string

The JSON-RPC correlation ID for the current request. This ID is passed by the caller and returned as is.

updateagentsessiontitle-rpc-001

Timestamp

integer

The response time. It is a UNIX timestamp in milliseconds.

1789549200000

Result

object

The operation result.

SessionId

string

The ID of the agent session whose title is modified. This corresponds to the SessionId in the request.

123e4567-e89b-42d3-a456-426614174000

Title

string

The saved session title after modification. Leading and trailing whitespace characters are removed.

New title

Error

object

The JSON-RPC fault message. This field is not returned on success.

Code

integer

The JSON-RPC error code.

500

ErrorCode

string

The business error code.

0x4883300000000019

Message

string

The error message.

The session does not exist or the current account does not have access permissions. Return to the session list and select another session

Data

any

The optional additional error information. The content depends on the error type.

{}

Examples

Success response

JSON format

{
  "RequestId": "01A0B6E0-E005-1465-B5DE-5CD17677426F",
  "JsonRpcResponse": {
    "Jsonrpc": "2.0",
    "Id": "updateagentsessiontitle-rpc-001",
    "Timestamp": 1789549200000,
    "Result": {
      "SessionId": "123e4567-e89b-42d3-a456-426614174000",
      "Title": "New title"
    },
    "Error": {
      "Code": 500,
      "ErrorCode": "0x4883300000000019",
      "Message": "The session does not exist or the current account does not have access permissions. Return to the session list and select another session",
      "Data": "{}"
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.