POST Access check: require_login
Submit a new report.
Handler: submit_report()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/reports" src/domains/reports/routes.php:102
GET Access check: require_admin
Return a paginated report list for moderation.
Handler: get_reports_list()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports" src/domains/reports/routes.php:389
GET Access check: require_admin
Return a single report.
Handler: get_single_report()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/{id}" DELETE Access check: require_admin
Delete a report.
Handler: delete_report()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/{id}" src/domains/reports/routes.php:403
POST Access check: require_admin
Take an action on a report.
Handler: take_action()
Parameters of POST /reports/{id}/action Parameter Type Required Default or allowed values action string Yes — metadata object No array()
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/{id}/action" \
-H "Content-Type: application/json" \
-d '{"action": "…"}' src/domains/reports/routes.php:441
GET Access check: require_admin
Return the audit log for a report.
Handler: get_audit_log()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/{id}/audit-log" src/domains/reports/routes.php:571
GET Access check: require_admin
Return every other report on the same target as a given report.
Handler: get_sibling_reports()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/{id}/siblings" src/domains/reports/routes.php:586
PUT PATCH Access check: require_admin
Update the report status.
Handler: update_status()
Parameters of PUT/PATCH /reports/{id}/status Parameter Type Required Default or allowed values status string Yes —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/{id}/status" \
-H "Content-Type: application/json" \
-d '{"status": "…"}' src/domains/reports/routes.php:421
GET Public
Return the active category tree.
Handler: get_categories()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/reports/categories" src/domains/reports/routes.php:75
GET Access check: require_login
Return the current user's own report history.
Handler: get_my_reports()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/mine" src/domains/reports/routes.php:198
DELETE Access check: require_login
Withdraw the current user's own report.
Handler: withdraw_report()
Parameters of DELETE /reports/mine/{id} Parameter Type Required Default or allowed values id integer Yes —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/mine/{id}" src/domains/reports/routes.php:230
GET Access check: require_login
Return the current user's existing report(s) for a single target — see register_mine_routes()'s docblock on this route.
Handler: get_my_reports_for_target()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/mine/for-target" src/domains/reports/routes.php:217
GET Access check: require_admin
Return live report counts per status — see register_moderation_routes()'s docblock on this route.
Handler: get_status_counts()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/status-counts" src/domains/reports/routes.php:376
GET Access check: require_admin
Return reports for a target entity.
Handler: get_by_target()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/reports/target/{type}/{id}" src/domains/reports/routes.php:628