# ai.newnal.illi.parent.requestCreation

> 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.requestCreation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.parent.requestCreation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.parent.requestCreation/examples)

## Definitions

### `ai.newnal.illi.parent.requestCreation`

**Type**: `procedure`

The root admin asks the device to create the second parent's Newnal ID (07 F-06); the name and honorific given here fill the new parentSlot. The device learns of it by SSE or getState.pendingRequests and completes it with account.parent.signIn {slot: 2}.

#### 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 |
|----------|------|----------|-------------|
| `deviceOnline` | `boolean` | Yes |  |
| `expiresAt` | `string` (datetime) | Yes |  |
| `requestId` | `string` | Yes |  |

#### Errors

- **NotRootAdmin**
- **ParentLimitReached**
- **ParentAlreadyLinked**
- **HomeNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The root admin asks the device to create the second parent's Newnal ID (07 F-06); the name and honorific given here fill the new parentSlot. The device learns of it by SSE or getState.pendingRequests and completes it with account.parent.signIn {slot: 2}.",
      "errors": [
        {
          "name": "NotRootAdmin"
        },
        {
          "name": "ParentLimitReached"
        },
        {
          "name": "ParentAlreadyLinked"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "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": 2,
              "type": "integer"
            }
          },
          "required": [
            "homeId",
            "slot",
            "name",
            "honorific"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deviceOnline": {
              "type": "boolean"
            },
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "requestId": {
              "type": "string"
            }
          },
          "required": [
            "requestId",
            "expiresAt",
            "deviceOnline"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.parent.requestCreation",
  "lexicon": 1
}
```
