# ai.newnal.illi.parent.putSlot

> Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.parent.putSlot)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.parent.putSlot/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.parent.putSlot/examples)

## Definitions

### `ai.newnal.illi.parent.putSlot`

**Type**: `procedure`

Set the name and honorific of a linked parent as the family and the device show them (root or main admin). Writes a new parentSlot record into the caller's repo in the family sphere; the newest record per slot wins.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `homeId` | `string` (tid) | Yes |  |
| `honorific` | `string` | Yes |  |
| `name` | `string` | Yes |  |
| `slot` | `integer` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `slot` | `integer` | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |

#### Errors

- **NotAdmin**
- **ParentSlotEmpty**
- **HomeNotFound**
- **PdsUnavailable**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Set the name and honorific of a linked parent as the family and the device show them (root or main admin). Writes a new parentSlot record into the caller's repo in the family sphere; the newest record per slot wins.",
      "errors": [
        {
          "name": "NotAdmin"
        },
        {
          "name": "ParentSlotEmpty"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "PdsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "honorific": {
              "maxLength": 32,
              "type": "string"
            },
            "name": {
              "maxLength": 64,
              "type": "string"
            },
            "slot": {
              "maximum": 2,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "homeId",
            "slot",
            "name",
            "honorific"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "slot": {
              "type": "integer"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid",
            "slot"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.parent.putSlot",
  "lexicon": 1
}
```
