Skip to navigation

Cập nhật quy trình chăm sóc của 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. id xác định bản ghi quy trình chăm sóc cần sửa; reason là bắt buộc nếu tenant yêu cầu khi đổi trạng thái. Field lạ → 400 CUSTOMER_WORKFLOW_FIELD_UNKNOWN.

Headers

X-Api-KeystringRequired

Request

This endpoint expects an object.
idstringRequired

id bản ghi quy trình chăm sóc cần cập nhật.

statusIdstringOptional

Một id trạng thái thuộc quy trình đó.

titlestringOptional
notestringOptional
prioritystringOptional
startAtlong or nullOptional
dueAtlong or nullOptional
reasonstringOptional

Lý do đổi trạng thái.

Response

{id, success} — id của bản ghi quy trình chăm sóc đã cập nhật.

idstringOptional
successbooleanOptional
accessTokenstringOptional

Chỉ có ở lượt đánh giá mở link.

expiresAtlongOptional

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