Set a user's groups
POST
/auth/users/{user_id}/groups/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Put an account in these groups instead of its current ones. A reseller sets only groups they manage, on accounts below them; the account's other groups are kept.
Path parameters
user_idstring (uuid)required
Body
group_idsinteger[]required
Response
200 OK
messagestringrequireduserobjectrequiredAn account: its details, status, groups, permissions and credits.
idstring (uuid)requiredread-onlyusernamestringrequiredemailstring (email)can be nullfirst_namestringlast_namestringphone_numberstringcan be nullphone_country_codestringcan be nullis_staffbooleanDesignates whether the user can log into this admin site.
is_superuserbooleanDesignates that this user has all permissions without explicitly assigning them.
is_activebooleangroupsinteger[]groups_displaystring[]requiredread-onlycan_customize_packagesbooleanrequiredread-onlycan_customize_bouquetsbooleanrequiredread-onlyadministers_panelbooleanrequiredread-onlypermissionsstring[]requiredread-onlyEvery permission it holds, as
app.codename(for examplestreams.add_stream).credit_balancestringrequiredread-onlycan be nullcredits_unlimitedbooleanrequiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-only
groupsstring[]required
Errors
- 400
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.