Change user permissions
PUT/v1/users/:username/permissions
Change user permissions
Request
Path Parameters
username stringrequired
The username
- application/json
Body
required
The users new permissions
permissions string[]required
Responses
- 200
- 400
- 401
- 404
User successfully updated
Invalid request
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "string",
"missingPermission": "string"
}
User not found
Loading...