X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=docs%2Fdevelopment%2FAPI%2Fadmin_api.md;h=f140818934a05fe41761a9f65ce92d4765357e18;hb=bd853199d93e03fedf43397455939c6d633fa36b;hp=82483fae71deaf9f82c8ff6afb3ef2f913183083;hpb=e2772d6bf1317616ef5a27396101bf44f123ee7e;p=akkoma diff --git a/docs/development/API/admin_api.md b/docs/development/API/admin_api.md index 82483fae7..f14081893 100644 --- a/docs/development/API/admin_api.md +++ b/docs/development/API/admin_api.md @@ -261,6 +261,46 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret } ``` +## `PATCH /api/v1/pleroma/admin/users/suggest` + +### Suggest a user + +Adds the user(s) to follower recommendations. + +- Params: + - `nicknames`: nicknames array +- Response: + +```json +{ + users: [ + { + // user object + } + ] +} +``` + +## `PATCH /api/v1/pleroma/admin/users/unsuggest` + +### Unsuggest a user + +Removes the user(s) from follower recommendations. + +- Params: + - `nicknames`: nicknames array +- Response: + +```json +{ + users: [ + { + // user object + } + ] +} +``` + ## `GET /api/v1/pleroma/admin/users/:nickname_or_id` ### Retrive the details of a user