# social.colibri.beta.actor.putSpaceModeration

> Pushes one of the requesting user's social.colibri.beta.actor.spaceModeration 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.

- Kind: procedure
- Authority: actor.beta.colibri.social
- Lexicon: 1
- Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.putSpaceModeration)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.putSpaceModeration/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.putSpaceModeration/analytics)

## Procedure (`social.colibri.beta.actor.putSpaceModeration`)

Type: procedure · POST

### Input (application/json)

- `community` (string · did, required): The community.
- `hideModeratedMessages` (boolean): The new option for this community. Absent together with remove returns the community to the global option.
- `remove` (boolean): Removes the community's options so it follows the global ones. Ignored when hideModeratedMessages is present.

### Output (application/json)

- `preferences` (ref, required): The requesting user's settings, after the update.
  - Reference: `social.colibri.beta.actor.defs#preferences`

### Errors

- `AuthRequired`: The request has no valid service auth.
- `InvalidRequest`: Neither hideModeratedMessages nor remove is present.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Pushes one of the requesting user's social.colibri.beta.actor.spaceModeration 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 hideModeratedMessages nor remove is present.",
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "community": {
              "description": "The community.",
              "format": "did",
              "type": "string"
            },
            "hideModeratedMessages": {
              "description": "The new option for this community. Absent together with remove returns the community to the global option.",
              "type": "boolean"
            },
            "remove": {
              "description": "Removes the community's options so it follows the global ones. Ignored when hideModeratedMessages 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.putSpaceModeration",
  "lexicon": 1
}
```
