Added privilege modification to the API

This commit is contained in:
2021-03-12 15:04:01 +11:00
parent cbd3ed9d3e
commit 61ddd5b38f
4 changed files with 38 additions and 2 deletions
+9
View File
@@ -77,4 +77,13 @@ Content-Type: application/json
"password": "helloworld"
}
//DOCS: Sets the privilege of the specified user; usable only by admins
DELETE /auth/deletion
Authorization: Bearer accessToken
Content-Type: application/json
{
"username": "example",
"privilege: "administrator"
}
```