X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=docs%2FAdmin-API.md;h=2edb31f3c2e71c6ac4b4a63083e386960c3cc80f;hb=a3a9cec4835738216800d2cebd295fb8dbf10f34;hp=508981d38353fc2dc99185ca0f58ba290e5fe404;hpb=90a24fbf950f9da80ff30259a9d54317a9d2662e;p=akkoma diff --git a/docs/Admin-API.md b/docs/Admin-API.md index 508981d38..2edb31f3c 100644 --- a/docs/Admin-API.md +++ b/docs/Admin-API.md @@ -7,17 +7,26 @@ Authentication is required and the user must be an admin. ### List users - Method `GET` +- Query Params: + - `query`: **string** *optional* search term + - `local_only`: **bool** *optional* whether to return only local users + - `page`: **integer** *optional* page number + - `page_size`: **integer** *optional* number of users per page (default is `50`) - Response: ```JSON -[ +{ + "page_size": integer, + "count": integer, + "users": [ { - "deactivated": bool, - "id": integer, - "nickname": string + "deactivated": bool, + "id": integer, + "nickname": string }, ... -] + ] +} ``` ## `/api/pleroma/admin/user` @@ -49,9 +58,9 @@ Authentication is required and the user must be an admin. ```JSON { - "deactivated": bool, - "id": integer, - "nickname": string + "deactivated": bool, + "id": integer, + "nickname": string } ``` @@ -81,8 +90,8 @@ Authentication is required and the user must be an admin. ```JSON { - "is_moderator": bool, - "is_admin": bool + "is_moderator": bool, + "is_admin": bool } ``` @@ -98,8 +107,8 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret ```JSON { - "is_moderator": bool, - "is_admin": bool + "is_moderator": bool, + "is_admin": bool } ```