aboutsummaryrefslogtreecommitdiff
path: root/docs/api/admin_api.md
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-10-07 15:01:18 +0300
committerMaxim Filippov <colixer@gmail.com>2019-10-07 15:39:07 +0300
commit7aceaa517be7b109a9acc15fb4914535b536b66c (patch)
tree61f2d13f34cc5d14707dba41211529f76b1b6931 /docs/api/admin_api.md
parent8dcc2f9f5ecbbc81bc026c85582695de4fbc1a0f (diff)
downloadpleroma-7aceaa517be7b109a9acc15fb4914535b536b66c.tar.gz
Admin API: Reports, grouped by status
Diffstat (limited to 'docs/api/admin_api.md')
-rw-r--r--docs/api/admin_api.md30
1 files changed, 22 insertions, 8 deletions
diff --git a/docs/api/admin_api.md b/docs/api/admin_api.md
index 045686bf4..e8232225c 100644
--- a/docs/api/admin_api.md
+++ b/docs/api/admin_api.md
@@ -468,18 +468,32 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
}
]
}
- ],
- "totalGroupedReports": 1,
- "groupedReports": [
+ ]
+}
+```
+
+## `GET /api/pleroma/admin/grouped_reports`
+
+### Get a list of reports, grouped by status
+
+- Params: none
+- On success: JSON, returns a list of reports, where:
+ - `date`: date of the latest report
+ - `account`: the user who has been reported (see `/api/pleroma/admin/reports` for reference)
+ - `status`: reported status (see `/api/pleroma/admin/reports` for reference)
+ - `actors`: users who had reported this status (see `/api/pleroma/admin/reports` for reference)
+ - `reports`: reports (see `/api/pleroma/admin/reports` for reference)
+
+```json
+ "reports": [
{
- "date": "2019-01-01", // date of the latest report
- "account": { ... }, // author of the reported status
- "status": { ... }, // reported status
- "actors": [{ ... }, { ... }], // accounts that sent reports on the status
+ "date": "2019-10-07T12:31:39.615149Z",
+ "account": { ... },
+ "status": { ... },
+ "actors": [{ ... }, { ... }],
"reports": [{ ... }]
}
]
-}
```
## `GET /api/pleroma/admin/reports/:id`