Gán người liên quan
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. action: ADD thêm vào (agent đã có sẵn thì bỏ qua, không lỗi), action: REMOVE gỡ ra.
Headers
X-Api-Key
Request
This endpoint expects an object.
customerId
id (UUIDv7) hoặc uid (11 ký tự [0-9A-Z]) của khách hàng.
action
Allowed values:
agentIds
uid nhân viên (xem GET /agents).
changeReason
Response
Khách hàng sau khi cập nhật.
id
uid
tenantId
lifecycleStages
status
fullName
phone
Có thể đã bị che.
email
Có thể đã bị che.
attributes
Khoá theo fieldCode.
assignedAgentId
createdAt
Epoch millis.
lastModifiedAt
Epoch millis.
createdBy
lastModifiedBy
createdVia
Kênh tự động đã thực hiện thao tác ghi; null nếu nhân viên thao tác trực tiếp.
lastModifiedVia
Kênh tự động đã thực hiện thao tác ghi; null nếu nhân viên thao tác trực tiếp.
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