summaryrefslogtreecommitdiff
path: root/docs/development/API/admin_api.md
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2021-12-26 16:41:17 +0100
committerLain Soykaf <lain@lain.com>2021-12-26 16:41:17 +0100
commit6efbd088546d7b95126b3100bca57b41e9482211 (patch)
treeefc8663deebf8df648e2c3ccb657742ce102d823 /docs/development/API/admin_api.md
parent4e98ba3c3a96548fe6d7fa8705898c660b788fea (diff)
parent2e2fb5f8026a8d70f5d64dcc94f8253a5db24020 (diff)
downloadpleroma-6efbd088546d7b95126b3100bca57b41e9482211.tar.gz
pleroma-6efbd088546d7b95126b3100bca57b41e9482211.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into finch
Diffstat (limited to 'docs/development/API/admin_api.md')
-rw-r--r--docs/development/API/admin_api.md40
1 files changed, 40 insertions, 0 deletions
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