# us.off-the-clock.subspace.putMember

> Add a member to a subspace or replace their read, write and admin values. Auth: OAuth as the authority with manage=update, or service auth from a subspace admin.

- Kind: procedure
- Authority: subspace.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.putMember)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.putMember/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.putMember/analytics)

## Procedure (`us.off-the-clock.subspace.putMember`)

Type: procedure · POST

### Input (application/json)

- `admin` (boolean): Set only by the authority.
  - Constraints: default: false
- `did` (string · did, required)
- `read` (boolean, required)
- `space` (string · space-ref, required): Reference to the subspace.
- `write` (boolean, required)

### Errors

- `SpaceNotFound`: No description in schema.
- `PolicyMismatch`: The space is not governed by the subspace policy.
- `NotAuthorized`: No description in schema.
- `ParentMembershipRequired`: The space has a parent and the DID lacks parent membership.
- `AuthorityRequired`: Setting admin, or changing an admin's entry, requires the authority.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Add a member to a subspace or replace their read, write and admin values. Auth: OAuth as the authority with manage=update, or service auth from a subspace admin.",
      "errors": [
        {
          "name": "SpaceNotFound"
        },
        {
          "description": "The space is not governed by the subspace policy.",
          "name": "PolicyMismatch"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "description": "The space has a parent and the DID lacks parent membership.",
          "name": "ParentMembershipRequired"
        },
        {
          "description": "Setting admin, or changing an admin's entry, requires the authority.",
          "name": "AuthorityRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "admin": {
              "default": false,
              "description": "Set only by the authority.",
              "type": "boolean"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "read": {
              "type": "boolean"
            },
            "space": {
              "description": "Reference to the subspace.",
              "format": "space-ref",
              "type": "string"
            },
            "write": {
              "type": "boolean"
            }
          },
          "required": [
            "space",
            "did",
            "read",
            "write"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.subspace.putMember",
  "lexicon": 1
}
```
