# social.grain.unspecced.addSpaceMember

> Share an existing private gallery with another account. Adds them to the space's member list on the author's PDS, which is what the authority consults when it mints a credential.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.addSpaceMember)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.addSpaceMember/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.addSpaceMember/analytics)

## Procedure (`social.grain.unspecced.addSpaceMember`)

Type: procedure · POST

### Input (application/json)

- `actor` (string, required): Handle or DID of the account to share with.
- `space` (string, required)

### Output (application/json)

- `did` (string · did, required)

### Errors

- `NotAuthorized`: Only the gallery's author may add members.
- `ActorNotFound`: The handle could not be resolved.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Share an existing private gallery with another account. Adds them to the space's member list on the author's PDS, which is what the authority consults when it mints a credential.",
      "errors": [
        {
          "description": "Only the gallery's author may add members.",
          "name": "NotAuthorized"
        },
        {
          "description": "The handle could not be resolved.",
          "name": "ActorNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actor": {
              "description": "Handle or DID of the account to share with.",
              "type": "string"
            },
            "space": {
              "type": "string"
            }
          },
          "required": [
            "space",
            "actor"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "did"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.unspecced.addSpaceMember",
  "lexicon": 1
}
```
