From b780066232bece5669ca4b8547bb43932a0caa69 Mon Sep 17 00:00:00 2001 From: Mahan Date: Wed, 4 Sep 2024 08:10:53 +0000 Subject: [PATCH] Update rule_ids type in /v1/reports (#1467) * Update rule_ids type in /v1/reports * add reference to the ID docs --- content/en/methods/reports.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/methods/reports.md b/content/en/methods/reports.md index 26cdaf1..db6c52f 100644 --- a/content/en/methods/reports.md +++ b/content/en/methods/reports.md @@ -57,7 +57,7 @@ category : String. Specify if the report is due to `spam`, `legal` (illegal content), `violation` of enumerated instance rules, or some `other` reason. Defaults to `other`. Will be set to `violation` if `rule_ids[]` is provided (regardless of any category value you provide). rule_ids[] -: Array of Integer. For `violation` category reports, specify the ID of the exact rules broken. Rules and their IDs are available via [GET /api/v1/instance/rules]({{< relref "methods/instance#rules" >}}) and [GET /api/v1/instance]({{< relref "methods/instance#get" >}}). +: Array of String. For `violation` category reports, specify the ID of the exact rules broken. Rules and their IDs are available via [GET /api/v1/instance/rules]({{< relref "methods/instance#rules" >}}) and [GET /api/v1/instance]({{< relref "methods/instance#get" >}}). See [Handling and sorting IDs]({{< relref "api/guidelines/#id" >}}) for more information. #### Response ##### 200: OK @@ -153,4 +153,4 @@ Alternatively (Mastodon 3.5), the `category` was set to something other than `vi ## See also -{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/reports_controller.rb" caption="app/controllers/api/v1/reports_controller.rb" >}} \ No newline at end of file +{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/reports_controller.rb" caption="app/controllers/api/v1/reports_controller.rb" >}}