projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'global-status-expiration' into 'develop'
[akkoma]
/
docs
/
API
/
admin_api.md
diff --git
a/docs/API/admin_api.md
b/docs/API/admin_api.md
index 6202c5a1a005d8f9b9a14488d9d585108880b5bb..92816baf9cd6014db6f16ddb37a27410c56b1b42 100644
(file)
--- a/
docs/API/admin_api.md
+++ b/
docs/API/admin_api.md
@@
-409,6
+409,7
@@
Note: Available `:permission_group` is currently moderator and admin. 404 is ret
### Get a password reset token for a given nickname
### Get a password reset token for a given nickname
+
- Params: none
- Response:
- Params: none
- Response:
@@
-427,6
+428,14
@@
Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- `nicknames`
- Response: none (code `204`)
- `nicknames`
- Response: none (code `204`)
+## PUT `/api/pleroma/admin/users/disable_mfa`
+
+### Disable mfa for user's account.
+
+- Params:
+ - `nickname`
+- Response: User’s nickname
+
## `GET /api/pleroma/admin/users/:nickname/credentials`
### Get the user's email, password, display and settings-related fields
## `GET /api/pleroma/admin/users/:nickname/credentials`
### Get the user's email, password, display and settings-related fields
@@
-502,7
+511,23
@@
Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- `discoverable`
- `actor_type`
- `discoverable`
- `actor_type`
-- Response: none (code `200`)
+- Response:
+
+```json
+{"status": "success"}
+```
+
+```json
+{"errors":
+ {"actor_type": "is invalid"},
+ {"email": "has invalid format"},
+ ...
+ }
+```
+
+```json
+{"error": "Unable to update user."}
+```
## `GET /api/pleroma/admin/reports`
## `GET /api/pleroma/admin/reports`
@@
-522,7
+547,7
@@
Note: Available `:permission_group` is currently moderator and admin. 404 is ret
```json
{
```json
{
- "total
Reports
" : 1,
+ "total" : 1,
"reports": [
{
"account": {
"reports": [
{
"account": {
@@
-743,7
+768,7
@@
Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- 400 Bad Request `"Invalid parameters"` when `status` is missing
- On success: `204`, empty response
- 400 Bad Request `"Invalid parameters"` when `status` is missing
- On success: `204`, empty response
-## `
POST
/api/pleroma/admin/reports/:report_id/notes/:id`
+## `
DELETE
/api/pleroma/admin/reports/:report_id/notes/:id`
### Delete report note
### Delete report note
@@
-755,6
+780,17
@@
Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- 400 Bad Request `"Invalid parameters"` when `status` is missing
- On success: `204`, empty response
- 400 Bad Request `"Invalid parameters"` when `status` is missing
- On success: `204`, empty response
+## `GET /api/pleroma/admin/statuses/:id`
+
+### Show status by id
+
+- Params:
+ - `id`: required, status id
+- Response:
+ - On failure:
+ - 404 Not Found `"Not Found"`
+ - On success: JSON, Mastodon Status entity
+
## `PUT /api/pleroma/admin/statuses/:id`
### Change the scope of an individual reported status
## `PUT /api/pleroma/admin/statuses/:id`
### Change the scope of an individual reported status