tenant: add member management APIs
This commit is contained in:
@@ -151,3 +151,23 @@ Authorization: Bearer {{ token }}
|
||||
"reason": "联调充值",
|
||||
"idempotency_key": "topup-{{ topupUserID }}-001"
|
||||
}
|
||||
|
||||
### Tenant Admin - Join a user to tenant (add member)
|
||||
@joinUserID = 3
|
||||
POST {{ host }}/t/{{ tenantCode }}/v1/admin/users/{{ joinUserID }}/join
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
### Tenant Admin - Set member role
|
||||
PATCH {{ host }}/t/{{ tenantCode }}/v1/admin/users/{{ joinUserID }}/role
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
{
|
||||
"role": "tenant_admin"
|
||||
}
|
||||
|
||||
### Tenant Admin - Tenant members list
|
||||
GET {{ host }}/t/{{ tenantCode }}/v1/admin/users?page=1&limit=20
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
Reference in New Issue
Block a user