Set the permissions given to a user
PUT
/auth/users/{id}/permissions/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Replace the permissions given to the account itself (its groups' stay) and answer the full list again. You can give only permissions you hold. Needs the permission to change users.
Path parameters
idstring (uuid)required
Body
permission_idsinteger[]requiredEvery permission given to the account itself (not through a group). An empty list clears them.
Response
200 OK
categorystringrequiredThe area the permission belongs to, as
app.model.modelstringrequiredappstringrequiredpermissionsobject[]requiredidintegerrequirednamestringrequiredcodenamestringrequiredsourcestringrequiredWhere the account gets it: only a
directone can be taken away here.group- From a groupdirect- Given to the accountboth- Both
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 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.