# app.tempomusic.staff.restoreSubject

> 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.restoreSubject)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.staff.restoreSubject/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.staff.restoreSubject/examples)

## Definitions

### `app.tempomusic.staff.restoreSubject`

**Type**: `procedure`

Flip `moderation_status` back to 0 on a previously taken-down subject row. Writes a `subjectRestore` audit row. Trivially symmetric with takedownSubject — both act on the subject row only; lifting an account-wide sanction is unsuspendAccount's job (bans are permanent). Requires the caller to be an active moderator.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reason` | `string` | Yes |  |
| `subject` | `union` | Yes |  |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **Forbidden**: Caller is not an active moderator.
- **SubjectNotFound**
- **NotTakenDown**: The subject is not currently under a moderation hold; nothing to restore.

## Raw Schema

```json
{
  "id": "app.tempomusic.staff.restoreSubject",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "subject",
            "reason"
          ],
          "properties": {
            "reason": {
              "type": "string",
              "maxLength": 1000
            },
            "subject": {
              "refs": [
                "app.tempomusic.moderation.defs#postSubject",
                "app.tempomusic.moderation.defs#replySubject",
                "app.tempomusic.moderation.defs#accountSubject"
              ],
              "type": "union"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Forbidden",
          "description": "Caller is not an active moderator."
        },
        {
          "name": "SubjectNotFound"
        },
        {
          "name": "NotTakenDown",
          "description": "The subject is not currently under a moderation hold; nothing to restore."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "auditEntryId"
          ],
          "properties": {
            "auditEntryId": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Flip `moderation_status` back to 0 on a previously taken-down subject row. Writes a `subjectRestore` audit row. Trivially symmetric with takedownSubject — both act on the subject row only; lifting an account-wide sanction is unsuspendAccount's job (bans are permanent). Requires the caller to be an active moderator."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
