{
  "$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
}
