# tools.ozone.report.getAssignments

> Get assignments for reports.

- Kind: query
- Authority: report.ozone.tools
- Lexicon: 1
- Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.getAssignments)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.getAssignments/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.getAssignments/analytics)

## Query (`tools.ozone.report.getAssignments`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `dids` (array): If specified, returns assignments for these moderators only.
  - Constraints: maxLength: 50
  - `items` (string · did)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `onlyActive` (boolean): When true, only returns active assignments.
  - Constraints: default: true
- `reportIds` (array): If specified, returns assignments for these reports only.
  - Constraints: maxLength: 50
  - `items` (integer)

### Output (application/json)

- `assignments` (array, required)
  - `items` (ref)
    - Reference: `tools.ozone.report.defs#assignmentView`
- `cursor` (string)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get assignments for reports.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "assignments": {
              "items": {
                "ref": "tools.ozone.report.defs#assignmentView",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "type": "string"
            }
          },
          "required": [
            "assignments"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "dids": {
            "description": "If specified, returns assignments for these moderators only.",
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "onlyActive": {
            "default": true,
            "description": "When true, only returns active assignments.",
            "type": "boolean"
          },
          "reportIds": {
            "description": "If specified, returns assignments for these reports only.",
            "items": {
              "type": "integer"
            },
            "maxLength": 50,
            "type": "array"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "tools.ozone.report.getAssignments",
  "lexicon": 1
}
```
