cURL
Threads
修改线程
修改指定线程的 metadata。
cURL
Copy
curl --request POST \
--url 'https://dashscope.aliyuncs.com/api/v1/threads/{thread_id}' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"modified": "true",
"user": "abc123"
}
}
'Copy
{
"id": "thread_c7ebb0ca-2e4f-43e5-b223-6e1f8c6fccc7",
"object": "thread",
"created_at": 1711507920700,
"metadata": {
"modified": "true",
"user": "abc123"
},
"request_id": "a9ad63fa-b884-94be-9ec6-5000882de3c4"
}