UpdateThread
Modifies the title, status, and custom attributes of a specified thread under a DataAgent.
Operation description
You can use this operation to modify the title, status, and custom attributes of a thread. The Simple Log Service project and workspace (variables) associated with the thread during creation cannot be modified by using this operation. The message content in the thread cannot be modified here. To query historical messages, call GetThreadData. To delete a thread, call DeleteThread.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:UpdateThread |
update |
*DataAgent
|
None | None |
Request syntax
PUT /dataagents/{name}/threads/{threadId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the DataAgent. This parameter is passed in the request path to specify the DataAgent to which the thread belongs. |
order-analysis-agent |
| threadId |
string |
No |
The ID of the thread to be modified. This parameter is passed in the request path and is returned by the CreateThread operation. |
thread-tiirv9-irwdoal8t4rm |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. Specify at least one thread field to be modified. |
|
| attributes |
object |
No |
The updated custom attributes of the thread. Both keys and values are strings. |
{"date":"2026-08"} |
|
string |
No |
The attribute value, which is of the string type. |
2026-08 |
|
| status |
string |
No |
The updated status of the thread. The valid values are the same as those of the status response parameter. For example, you can set this parameter to archived to archive the thread. |
archived |
| title |
string |
No |
The updated title of the thread. |
Order exception cause analysis |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The ID of the request. You can use this ID to locate the call for troubleshooting. |
5B0A6B60BB6EE39764D458B5 |
| threadId |
string |
Id of the request |
thread-tiirv9-irwdoal8t4rm |
| version |
integer |
The version number of the thread after the update. |
4 |
Examples
Success response
JSON format
{
"requestId": "5B0A6B60BB6EE39764D458B5",
"threadId": "thread-tiirv9-irwdoal8t4rm",
"version": 4
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.