Collections

จัดกลุ่ม recording

Collections

ใช้ group recording — เช่น "training set", "QA Q2", "top performers" เป็นแบบ one-to-many: recording หนึ่งเข้าได้หลาย collection

GET /collections

List collection

Scopes: view_recording_all · view_recording_self · manage_recording_collection

POST /collections

สร้าง collection

Scopes: manage_recording_collection

ParamTypeNote
namestringrequired
descriptionstringoptional
color#RRGGBBoptional
curl -X POST https://phone.mcloud.co.th/api/v1/collections \
  -H "Authorization: Bearer crk_..." \
  -H "Content-Type: application/json" \
  -d '{"name":"QA Q2","color":"#D6FF3A"}'

GET /collections/{id}

ดึง collection + items

Scopes: view_recording_all · view_recording_self · manage_recording_collection

PATCH /collections/{id}

แก้ name / description / color

Scopes: manage_recording_collection

DELETE /collections/{id}

ลบ collection (item rows ถูก cascade, recording ยังอยู่)

Scopes: manage_recording_collection

POST /collections/{id}/items

เพิ่ม recording เข้า collection

Scopes: manage_recording_collection

ParamTypeNote
callRecordingIdsarray<uuid>required (1-1000)

DELETE /collections/{id}/items

เอา recording ออก — ?callRecordingId=A&callRecordingId=B

Scopes: manage_recording_collection

เอกสาร API