修改留言
POST
https://api.openai.com/v1/threads/{thread_id}/messages/{message_id }
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/threads//messages/' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"modified": "true",
"user": "abc123"
}
}'
响应示例响应示例
{
"id": "msg_abc123",
"object": "thread.message",
"created_at": 1699017614,
"thread_id": "thread_abc123",
"role": "user",
"content": [
{
"type": "text",
"text": {
"value": "How does AI work? Explain it in simple terms.",
"annotations": []
}
}
],
"file_ids": [],
"assistant_id": null,
"run_id": null,
"metadata": {
"modified": "true",
"user": "abc123"
}
}
请求参数
Path 参数
thread_id
string
必需
message_id
string
必需
Body 参数application/json
返回响应
修改于 2023-11-09 07:25:29