AdminAPI: Add PATCH /api/pleroma/admin/users/approve endpoint

This commit is contained in:
Alex Gleason 2020-07-14 18:02:44 -05:00
commit 20d24741af
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
7 changed files with 104 additions and 0 deletions

View file

@ -246,6 +246,24 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
}
```
## `PATCH /api/pleroma/admin/users/approve`
### Approve user
- Params:
- `nicknames`: nicknames array
- Response:
```json
{
users: [
{
// user object
}
]
}
```
## `GET /api/pleroma/admin/users/:nickname_or_id`
### Retrive the details of a user