From: Mark Felder Date: Fri, 5 Apr 2019 16:29:34 +0000 (-0500) Subject: Document the admin API endpoints for controlling follow/unfollow X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=da64a5aece131d6bd8c0d17dcda61c626b44c4d0;p=akkoma Document the admin API endpoints for controlling follow/unfollow --- diff --git a/docs/api/admin_api.md b/docs/api/admin_api.md index 53b68ffd4..86cacebb1 100644 --- a/docs/api/admin_api.md +++ b/docs/api/admin_api.md @@ -58,6 +58,26 @@ Authentication is required and the user must be an admin. - `password` - Response: User’s nickname +## `/api/pleroma/admin/user/follow` +### Make a user follow another user + +- Methods: `POST` +- Params: + - `follower`: The nickname of the follower + - `followed`: The nickname of the followed +- Response: + - "ok" + +## `/api/pleroma/admin/user/unfollow` +### Make a user unfollow another user + +- Methods: `POST` +- Params: + - `follower`: The nickname of the follower + - `followed`: The nickname of the followed +- Response: + - "ok" + ## `/api/pleroma/admin/users/:nickname/toggle_activation` ### Toggle user activation