# lol.dids.admin.setSpaceState

> 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.setSpaceState)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.setSpaceState/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.setSpaceState/examples)

## Definitions

### `lol.dids.admin.setSpaceState`

**Type**: `procedure`

Suspend or unsuspend syncing for a space: no pulls, no grants accepted, and its domains keep serving what they serve.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` (at-uri) | Yes |  |
| `state` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `ref` → `lol.dids.defs#spaceView` | Yes |  |

## Raw Schema

```json
{
  "id": "lol.dids.admin.setSpaceState",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "space",
            "state"
          ],
          "properties": {
            "space": {
              "type": "string",
              "format": "at-uri"
            },
            "state": {
              "type": "string",
              "knownValues": [
                "suspended",
                "active"
              ]
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "space"
          ],
          "properties": {
            "space": {
              "ref": "lol.dids.defs#spaceView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Suspend or unsuspend syncing for a space: no pulls, no grants accepted, and its domains keep serving what they serve."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
