# app.tempomusic.staff.triageReport

> Published by [lexicons.tempomusic.fan](https://lexicon.garden/identity/did:plc:pxsuqmultto34oks44m2lgxm)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.staff.triageReport)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.staff.triageReport/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.staff.triageReport/examples)

## Definitions

### `app.tempomusic.staff.triageReport`

**Type**: `procedure`

Claim a report for review. Transitions status `open` → `underReview` atomically; if the report has already been claimed by another moderator, returns `AlreadyTriaged`. Writes a `reportTriaged` audit row. Requires the caller to be an active moderator.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reportId` | `integer` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `status` | `ref` → `app.tempomusic.staff.defs#reportStatus` | Yes |  |
| `auditEntryId` | `integer` | Yes |  |

#### Errors

- **Forbidden**: Caller is not an active moderator.
- **NotFound**
- **AlreadyTriaged**: The report is no longer in the `open` state. Another moderator has claimed it or it has been resolved.

## Raw Schema

```json
{
  "id": "app.tempomusic.staff.triageReport",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "reportId"
          ],
          "properties": {
            "reportId": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Forbidden",
          "description": "Caller is not an active moderator."
        },
        {
          "name": "NotFound"
        },
        {
          "name": "AlreadyTriaged",
          "description": "The report is no longer in the `open` state. Another moderator has claimed it or it has been resolved."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "status",
            "auditEntryId"
          ],
          "properties": {
            "status": {
              "ref": "app.tempomusic.staff.defs#reportStatus",
              "type": "ref"
            },
            "auditEntryId": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Claim a report for review. Transitions status `open` → `underReview` atomically; if the report has already been claimed by another moderator, returns `AlreadyTriaged`. Writes a `reportTriaged` audit row. Requires the caller to be an active moderator."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
