UpdateExperimentRun

Updated at:

Updates an experiment run.

Operation description

Calls UpdateExperimentRun to update the name, status, and task counts of an experiment record. Fields that are not specified remain unchanged. Typical sequence for offline experiments: running → progress writeback → completed.

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

PUT /api/v1/experimentruns/{agentSpace}/records/{recordId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The AgentSpace name.

al-playground-cn-hongkong

recordId

string

No

The experiment record ID.

a5397261-6e6d-4e45-bf52-feb8686f7524

Request parameters

Parameter

Type

Required

Description

Example

clientToken

string

No

Optional.

a1b2c3d4-1234-5678-90ab-cdef12345678

body

object

No

The request body. Fields that are not specified remain unchanged.

{"status": "running", "totalTasks": 20, "executedAt": 1784719439255, "recordName": "rca_benchmark_eval_experiment 2026/07/22 19:23:59"}

recordName

string

No

The experiment record name.

rca_benchmark_eval_experiment 2026/07/22 19:23:59

status

string

No

The experiment record status. Set to cancelled to cancel execution.

Valid values:

  • running :

    running

  • pending :

    pending

  • cancelled :

    cancelled

  • completed :

    completed

  • failed :

    failed

running

totalTasks

integer

No

The total number of tasks.

20

completedTasks

integer

No

The number of completed tasks.

10

failedTasks

integer

No

The number of failed tasks.

0

executedAt

integer

No

The experiment execution time. A millisecond-level UNIX timestamp.

1784719439255

completedAt

integer

No

The experiment completion time. A millisecond-level UNIX timestamp.

1784719989371

Offline experiment: start execution\n\n```json\n{

"status": "running", "totalTasks": 20, "executedAt": 1784719439255, "recordName": "rca_benchmark_eval_experiment 2026/07/22 19:23:59" }\n\n\n### Offline experiment: progress writeback\n\njson\n{ "completedTasks": 10, "failedTasks": 0, "totalTasks": 20 }\n\n\n### Offline experiment: mark as completed\n\njson\n{ "status": "completed", "completedTasks": 20, "failedTasks": 0, "totalTasks": 20, "completedAt": 1784719989371 }\n\n\n### Cancel execution\n\njson\n{ "status": "cancelled" }\n```

Response elements

Element

Type

Description

Example

object

The response for updating an experiment run.

requestId

string

The request ID.

019F89B5-1B07-3BB3-A32E-F5B007029E9C

recordId

string

The experiment record ID.

a5397261-6e6d-4e45-bf52-feb8686f7524

status

string

The status after the update (the persisted value).

Valid values:

  • running :

    running

  • pending :

    pending

  • eval_cancelled :

    eval_cancelled

  • cancelled :

    cancelled

  • completed :

    completed

  • failed :

    failed

running

message

string

The prompt message.

Experiment record updated successfully.

The status returned by this operation is the persisted value. When you query details, GetExperimentRun may display it as evaluating or eval_cancelling to indicate a computation state.\n\njson\n{ "requestId": "019F89B5-1B07-3BB3-A32E-F5B007029E9C", "recordId": "a5397261-6e6d-4e45-bf52-feb8686f7524", "status": "running", "message": "Experiment record updated successfully" }\n

Examples

Success response

JSON format

{
  "requestId": "019F89B5-1B07-3BB3-A32E-F5B007029E9C",
  "recordId": "a5397261-6e6d-4e45-bf52-feb8686f7524",
  "status": "running",
  "message": "实验记录更新成功"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.