# dev.cartridge.claims.setupAdmin

> Published by [cartridge.dev](https://lexicon.garden/identity/did:plc:4mrwcmxk266itsdn33leqljq)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4mrwcmxk266itsdn33leqljq/dev.cartridge.claims.setupAdmin)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4mrwcmxk266itsdn33leqljq/dev.cartridge.claims.setupAdmin/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4mrwcmxk266itsdn33leqljq/dev.cartridge.claims.setupAdmin/examples)

## Definitions

### `dev.cartridge.claims.setupAdmin`

**Type**: `procedure`

Bootstrap the claims admin space or add a member to it. Creates the admin space on first call; subsequent calls can add new admin DIDs.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `adminDid` | `string` (did) | No | DID to add as admin. Omit on first call to just create the space. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `created` | `boolean` | No | True if the admin space was created by this call |
| `spaceUri` | `string` (at-uri) | Yes |  |
| `memberAdded` | `boolean` | No | True if adminDid was added as a member |

## Raw Schema

```json
{
  "id": "dev.cartridge.claims.setupAdmin",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "properties": {
            "adminDid": {
              "type": "string",
              "format": "did",
              "description": "DID to add as admin. Omit on first call to just create the space."
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "spaceUri"
          ],
          "properties": {
            "created": {
              "type": "boolean",
              "description": "True if the admin space was created by this call"
            },
            "spaceUri": {
              "type": "string",
              "format": "at-uri"
            },
            "memberAdded": {
              "type": "boolean",
              "description": "True if adminDid was added as a member"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Bootstrap the claims admin space or add a member to it. Creates the admin space on first call; subsequent calls can add new admin DIDs."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
