Updates the role of the specified user.
https://<space_id>.repsona.com/api/user/:userId/role
Owner
Admin
Name | Type | Description |
---|---|---|
userId* | string | User ID |
Name | Type | Description |
---|---|---|
role* | enum (owner , admin , member , no-login ) | Role |
{
"requestedBy": 1,
"user": {
"createdAt": 1672498800000,
"updatedAt": 1672498800000,
"id": 1746,
"name": "Seb",
"fullName": "Seb Osborn",
"avatarUrl": "/dummy/avatar2.png",
"billingStatus": "inactive",
"role": "member",
"extra": null,
"space": 1,
"language": 1,
"timeZone": 100
}
}