# zone.stratos.admin.setActive

> Published by [lexicon.northsky.app](https://lexicon.garden/identity/did:plc:6uxgo3ypovauub7nblwylqyv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.admin.setActive)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.admin.setActive/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.admin.setActive/examples)

## Definitions

### `zone.stratos.admin.setActive`

**Type**: `procedure`

Activate or deactivate an enrolled member. Requires admin authorization. Deactivation is reversible and preserves the member's boundaries.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The member to update. |
| `active` | `boolean` | Yes | Whether the member's enrollment should be active. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `active` | `boolean` | Yes |  |

#### Errors

- **NotFound**: The DID is not enrolled.

## Raw Schema

```json
{
  "id": "zone.stratos.admin.setActive",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "active"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did",
              "description": "The member to update."
            },
            "active": {
              "type": "boolean",
              "description": "Whether the member's enrollment should be active."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "NotFound",
          "description": "The DID is not enrolled."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "active"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "active": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Activate or deactivate an enrolled member. Requires admin authorization. Deactivation is reversible and preserves the member's boundaries."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
