# fyi.opensocial.updateSpace

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.updateSpace)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.updateSpace/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.updateSpace/examples)

## Definitions

### `fyi.opensocial.updateSpace`

**Type**: `procedure`

Change a space's config: its name, who can read it, and which roles may act as the group in it. Requires space.configure.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `credentialScopes` | `array` | No | Replace which roles may act as the group in this space, and for which collections. Omitted means unchanged. |
| `group` | `string` (did) | Yes | The group DID. Every method is served by the group's host and authorized against that group's roles. |
| `name` | `string` | No |  |
| `readableBy` | `array` | No |  |
| `space` | `string` (space-ref) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Change a space's config: its name, who can read it, and which roles may act as the group in it. Requires space.configure.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "credentialScopes": {
              "description": "Replace which roles may act as the group in this space, and for which collections. Omitted means unchanged.",
              "items": {
                "ref": "fyi.opensocial.access#roleScopes",
                "type": "ref"
              },
              "type": "array"
            },
            "group": {
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
              "format": "did",
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "readableBy": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "space": {
              "format": "space-ref",
              "type": "string"
            }
          },
          "required": [
            "group",
            "space"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.updateSpace",
  "lexicon": 1
}
```
