# ai.newnal.illi.parent.putProfile

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

## Definitions

### `ai.newnal.illi.parent.putProfile`

**Type**: `procedure`

Write a linked parent's My Data profile (ai.newnal.mydata.dev.profile, rkey self) into the PARENT's repo in the family sphere, in the parent's name through delegation, and an ILLI dataEntry (who entered it) into the caller's repo. Root/main admins, or the parent from the device (07 F-05).

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `birthCalendar` | `string` | No |  |
| `birthDate` | `string` | No |  |
| `homeId` | `string` (tid) | Yes |  |
| `name` | `string` | Yes |  |
| `note` | `string` | No |  |
| `photo` | `blob` | No |  |
| `slot` | `integer` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `entryUri` | `string` (at-uri) | No |  |
| `uri` | `string` (at-uri) | Yes |  |

#### Errors

- **NotAdmin**
- **ParentNotLinked**
- **DelegationUnavailable**
- **PdsUnavailable**
- **HomeNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Write a linked parent's My Data profile (ai.newnal.mydata.dev.profile, rkey self) into the PARENT's repo in the family sphere, in the parent's name through delegation, and an ILLI dataEntry (who entered it) into the caller's repo. Root/main admins, or the parent from the device (07 F-05).",
      "errors": [
        {
          "name": "NotAdmin"
        },
        {
          "name": "ParentNotLinked"
        },
        {
          "name": "DelegationUnavailable"
        },
        {
          "name": "PdsUnavailable"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "birthCalendar": {
              "knownValues": [
                "solar",
                "lunar"
              ],
              "type": "string"
            },
            "birthDate": {
              "maxLength": 10,
              "type": "string"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "name": {
              "maxGraphemes": 40,
              "maxLength": 400,
              "type": "string"
            },
            "note": {
              "maxLength": 200,
              "type": "string"
            },
            "photo": {
              "accept": [
                "image/jpeg",
                "image/png",
                "image/webp"
              ],
              "maxSize": 5000000,
              "type": "blob"
            },
            "slot": {
              "maximum": 2,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "homeId",
            "slot",
            "name"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "entryUri": {
              "format": "at-uri",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.parent.putProfile",
  "lexicon": 1
}
```
