Create a manager
POST
/api/v1/managers
prm_managers_create
Creates a staff or reseller account. A manager needs at least one login identity, so email or username must be present.
نظرة سريعة
- المصادقة
- رمز موظّف أو جلسة
- تتطلب صلاحية
-
prm_managers_createCreate managers - حد المعدل
t_mutate
المعاملات
| المعامل | الوصف |
|---|---|
email
body · string
|
Login email. Unique within the tenant. Required unless username is given. |
username
body · string
|
Login username. Required unless email is given. |
passwordمطلوب
body · string
|
Hashed with Argon2id before storage, unlike a subscriber's. |
parent_manager_id
body · integer
|
Defaults to the caller. Never null — a tenant keeps exactly one root manager, its owner. A named parent must be one the caller may act on. |
الأخطاء
| الرمز | متى تُرجَع |
|---|---|
ERR_CONFLICT409
|
the email is already registered in this tenant |
ERR_CONFLICT409
|
the licensed manager ceiling is reached |