diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-04-05 11:29:34 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-04-05 11:29:34 -0500 |
commit | da64a5aece131d6bd8c0d17dcda61c626b44c4d0 (patch) | |
tree | ba36d13149f72d6cc897012cf0ca428155e90d53 /docs/api/admin_api.md | |
parent | 7895ee37fae82de26b3c06e69a96788d8c88d139 (diff) | |
download | pleroma-da64a5aece131d6bd8c0d17dcda61c626b44c4d0.tar.gz |
Document the admin API endpoints for controlling follow/unfollow
Diffstat (limited to 'docs/api/admin_api.md')
-rw-r--r-- | docs/api/admin_api.md | 20 |
1 files changed, 20 insertions, 0 deletions
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 |