บทสนทนาPOST
Mark conversation as unread
Marks a conversation as unread. Pass conversation_id in the JSON body.
https://api.unifyport.ai/v1/accounts/{account_id}/conversations/unreadส่วนหัว
X-Api-Keystringจำเป็น
API key ของพื้นที่ทำงาน ระบบจะระบุพื้นที่ทำงานจากส่วนหัวนี้
Content-Typestringจำเป็น
ใช้ application/json เมื่อต้องส่งเนื้อหาของคำขอเป็น JSON
พารามิเตอร์ใน path
account_idstringจำเป็น
ตัวระบุที่ใช้ใน route ของ conversations
เนื้อหาของคำขอ
conversation_idstringจำเป็น
ตัวระบุบทสนทนาเป้าหมาย
เนื้อหาการตอบกลับ
okboolean
เป็น true เสมอเมื่อการดำเนินการสำเร็จ ส่วนกรณีล้มเหลวจะคืนสถานะที่ไม่ใช่ 2xx แทน
การตอบกลับ
200200 OK
คำขอสำเร็จ ดูตัวอย่างเนื้อหาตอบกลับด้านบน
400Bad Request
เนื้อหาของคำขอ path หรือพารามิเตอร์ไม่ถูกต้อง
401Unauthorized
ส่วนหัว X-Api-Key หายไปหรือไม่ถูกต้อง
404Not Found
ไม่พบทรัพยากรของ provider ที่ร้องขอ
409Conflict
การดำเนินการขัดแย้งกับบัญชีของผู้ให้บริการหรือทรัพยากรที่มีอยู่
500Internal Server Error
บริการพบข้อผิดพลาดที่ไม่คาดคิด
501Not Implemented
provider ที่เลือกยังไม่รองรับการดำเนินการนี้
502Bad Gateway
อะแดปเตอร์หรือ upstream provider ไม่สามารถทำรายการให้เสร็จได้
คำขอ
curl -X POST https://api.unifyport.ai/v1/accounts/{account_id}/conversations/unread \
-H "X-Api-Key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"conversation_id": "peer_example"
}'การตอบกลับ
{
"data": {
"ok": true
}
}