aboutsummaryrefslogtreecommitdiff
path: root/docs/API/admin_api.md
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-06-08 19:21:07 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-06-08 19:21:07 +0300
commit604a83ae3efe21b231fb524203a883a062102546 (patch)
tree610d04900503ec700fe7307fb73fd90bb5865009 /docs/API/admin_api.md
parent1be6b3056e97654612f377eaf3c8d80de6d8d77f (diff)
parentd1924926585a477682b8fcc3176521dacb0766dd (diff)
downloadpleroma-604a83ae3efe21b231fb524203a883a062102546.tar.gz
merge develop
Diffstat (limited to 'docs/API/admin_api.md')
-rw-r--r--docs/API/admin_api.md22
1 files changed, 19 insertions, 3 deletions
diff --git a/docs/API/admin_api.md b/docs/API/admin_api.md
index fa74e7460..7b423653b 100644
--- a/docs/API/admin_api.md
+++ b/docs/API/admin_api.md
@@ -511,7 +511,23 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- `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`
@@ -531,7 +547,7 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
```json
{
- "totalReports" : 1,
+ "total" : 1,
"reports": [
{
"account": {
@@ -752,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
-## `POST /api/pleroma/admin/reports/:report_id/notes/:id`
+## `DELETE /api/pleroma/admin/reports/:report_id/notes/:id`
### Delete report note