Move a subscriber to another owner
POST
/api/v1/users/{id}/change-parent
prm_users_change_parent
Re-points the subscriber at a different owning manager. The destination must be a manager the caller may act on, because the owner is both the creditor on a debt and the revenue attribution. Naturally idempotent, so request_id is accepted for your own tracing but is not enforced.
نظرة سريعة
- المصادقة
- رمز موظّف أو جلسة
- تتطلب صلاحية
-
prm_users_change_parentChange user parent - حد المعدل
t_mutate
المعاملات
| المعامل | الوصف |
|---|---|
idمطلوب
path · integer
|
Subscriber id. |
parent_idمطلوب
body · integer
|
The new owning manager. |
الأخطاء
| الرمز | متى تُرجَع |
|---|---|
ERR_VALIDATION400
|
parent_id missing or not a manager in this tenant |
ERR_NOT_FOUND404
|
the subscriber or the destination manager is outside the caller's subtree |