Gán quy trình chăm sóc cho khách hàng
Scope yêu cầu: customer:write. Agent cần quyền sửa (crm.customer → edit) và khách hàng phải nằm trong phạm vi sửa của agent. Cùng cấu trúc body tạo mới với /customer-workflows của web app (customerId, workflowId, statusId… bắt buộc như trên web), dùng workflowId/statusId lấy từ Danh sách quy trình. Gửi kèm id → 400. Field lạ → 400 CUSTOMER_WORKFLOW_FIELD_UNKNOWN.
Headers
X-Api-Key
Request
This endpoint expects an object.
customerId
workflowId
Xem GET /workflows.
statusId
Một id trạng thái thuộc quy trình đó.
title
note
priority
startAt
dueAt
Response
{id, success} — id của bản ghi quy trình chăm sóc vừa gán.
id
success
accessToken
Chỉ có ở lượt đánh giá mở link.
expiresAt
Chỉ có ở lượt đánh giá mở link.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
502
Bad Gateway Error
503
Service Unavailable Error