亮色模式
Modify thread (v1)
POST
https://api.openai.com/v1/threads/thread_abc123Modifies a thread.
Request
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
Bearer $OPENAI_API_KEY
OpenAI-Beta
string
必需
示例值:
assistants=v1
Body 参数application/json
metadata
object
必需
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
modified
string
必需
user
string
必需
示例
{
"metadata": {
"modified": "true",
"user": "abc123"
}
}
Request samples
返回响应
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
id
string
必需
object
string
必需
created_at
integer
必需
metadata
object
必需
modified
string
必需
user
string
必需
示例
{
"id": "thread_abc123",
"object": "thread",
"created_at": 1699014083,
"metadata": {
"modified": "true",
"user": "abc123"
}
}
最后修改时间: 10 天前