# social.colibri.beta.actor.putSpaceNotification

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.putSpaceNotification)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.putSpaceNotification/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.putSpaceNotification/examples)

## Definitions

### `social.colibri.beta.actor.putSpaceNotification`

**Type**: `procedure`

Pushes one of the requesting user's social.colibri.beta.actor.spaceNotification records to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes or deletes the record in its own personal space first, then calls this.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `string` (did) | Yes | The community. |
| `level` | `string` | No | The new level. Absent together with removeLevel returns the community to the global level. |
| `removeLevel` | `boolean` | No | Removes the community's level so it follows the global one. Ignored when level is present. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `preferences` | `ref` → `social.colibri.beta.actor.defs#preferences` | Yes | The requesting user's settings, after the update. |

#### Errors

- **AuthRequired**: The request has no valid service auth.
- **InvalidRequest**: Neither level nor removeLevel is present, or level does not hold an allowed value.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Pushes one of the requesting user's social.colibri.beta.actor.spaceNotification records to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes or deletes the record in its own personal space first, then calls this.",
      "errors": [
        {
          "description": "The request has no valid service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "Neither level nor removeLevel is present, or level does not hold an allowed value.",
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "community": {
              "description": "The community.",
              "format": "did",
              "type": "string"
            },
            "level": {
              "description": "The new level. Absent together with removeLevel returns the community to the global level.",
              "knownValues": [
                "all",
                "mentionsAndReplies",
                "nothing"
              ],
              "type": "string"
            },
            "removeLevel": {
              "description": "Removes the community's level so it follows the global one. Ignored when level is present.",
              "type": "boolean"
            }
          },
          "required": [
            "community"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "preferences": {
              "description": "The requesting user's settings, after the update.",
              "ref": "social.colibri.beta.actor.defs#preferences",
              "type": "ref"
            }
          },
          "required": [
            "preferences"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.actor.putSpaceNotification",
  "lexicon": 1
}
```
