tools.ozone.report.closeReports

ozone-lexicons.bsky.social

Documentation

Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.

main procedure

Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.

Input

Encodingapplication/json
internalNote string Optional

Optional moderator-only note recorded on each close activity. Not visible to reporters.

isAutomated boolean Optional

Set true when this action is triggered by an automated process. Defaults to false.

reportTypes array Optional

If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.

subject stringuri Required

Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.

Output

Encodingapplication/json
closedCount integer Required

Number of reports that were transitioned to closed.

reportIds array Required

IDs of the reports that were closed.

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "description": "Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.",
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "internalNote": {
          "description": "Optional moderator-only note recorded on each close activity. Not visible to reporters.",
          "type": "string"
        },
        "isAutomated": {
          "default": false,
          "description": "Set true when this action is triggered by an automated process. Defaults to false.",
          "type": "boolean"
        },
        "reportTypes": {
          "description": "If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "subject": {
          "description": "Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "subject"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "closedCount": {
          "description": "Number of reports that were transitioned to closed.",
          "type": "integer"
        },
        "reportIds": {
          "description": "IDs of the reports that were closed.",
          "items": {
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "closedCount",
        "reportIds"
      ],
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@