# app.tempomusic.staff.unsuspendAccount

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

## Definitions

### `app.tempomusic.staff.unsuspendAccount`

**Type**: `procedure`

Lift an account suspension: deletes the current state row (history stays in the audit log) and instantly readmits the account's content on the public surface. Also accepts a LAPSED suspension (removes the stale row). Cannot lift a ban. Requires the `moderator` role. Writes an `accountUnsuspended` audit row.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `reason` | `string` | No |  |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **Forbidden**: The caller is not an active moderator.
- **AccountNotSuspended**: No suspension exists for this account.
- **AccountBanned**: The account is banned — a ban cannot be lifted.

## Raw Schema

```json
{
  "id": "app.tempomusic.staff.unsuspendAccount",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "did"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "reason": {
              "type": "string",
              "maxLength": 2000
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Forbidden",
          "description": "The caller is not an active moderator."
        },
        {
          "name": "AccountNotSuspended",
          "description": "No suspension exists for this account."
        },
        {
          "name": "AccountBanned",
          "description": "The account is banned — a ban cannot be lifted."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "auditEntryId"
          ],
          "properties": {
            "auditEntryId": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Lift an account suspension: deletes the current state row (history stays in the audit log) and instantly readmits the account's content on the public surface. Also accepts a LAPSED suspension (removes the stale row). Cannot lift a ban. Requires the `moderator` role. Writes an `accountUnsuspended` audit row."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
