修改线程
POST
https://api.openai.com/v1/threads/{thread_id }
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
thread_id
string
必需
Body 参数application/json
metadata
object
可选
modified
string
可选
user
string
可选
示例
{
"metadata": {
"modified": "true",
"user": "abc123"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/threads/' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"modified": "true",
"user": "abc123"
}
}'
返回响应
🟢200成功
application/json
Body
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"
}
}
修改于 2024-06-28 05:43:44