# lol.dids.admin.setDomainState

> Published by [ngerakines.me](https://lexicon.garden/identity/did:plc:cbkjy5n7bk3ax2wplmtjofq2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.setDomainState)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.setDomainState/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.setDomainState/examples)

## Definitions

### `lol.dids.admin.setDomainState`

**Type**: `procedure`

Suspend, unsuspend, or force-release a domain.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `state` | `string` | Yes |  |
| `domain` | `string` | Yes | The hostname. |
| `reason` | `string` | No | Recorded on the domain's event log. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `domain` | `ref` → `lol.dids.defs#domainView` | Yes |  |

## Raw Schema

```json
{
  "id": "lol.dids.admin.setDomainState",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "domain",
            "state"
          ],
          "properties": {
            "state": {
              "type": "string",
              "knownValues": [
                "suspended",
                "active",
                "released"
              ]
            },
            "domain": {
              "type": "string",
              "maxLength": 253,
              "description": "The hostname."
            },
            "reason": {
              "type": "string",
              "description": "Recorded on the domain's event log."
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "domain"
          ],
          "properties": {
            "domain": {
              "ref": "lol.dids.defs#domainView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Suspend, unsuspend, or force-release a domain."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
