# ai.newnal.illi.parent.uploadProfileImage

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

## Definitions

### `ai.newnal.illi.parent.uploadProfileImage`

**Type**: `procedure`

Upload a profile photo to the PARENT's PDN with the parent's delegated session, so the blob belongs to the parent. Query parameters homeId and slot name the parent; the body is the image.

#### Input

**Encoding**: `*/*`

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blob` | `blob` | Yes |  |

#### Errors

- **UnsupportedMedia**
- **MediaTooLarge**
- **ParentNotLinked**
- **DelegationUnavailable**
- **ScopeMissing**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Upload a profile photo to the PARENT's PDN with the parent's delegated session, so the blob belongs to the parent. Query parameters homeId and slot name the parent; the body is the image.",
      "errors": [
        {
          "name": "UnsupportedMedia"
        },
        {
          "name": "MediaTooLarge"
        },
        {
          "name": "ParentNotLinked"
        },
        {
          "name": "DelegationUnavailable"
        },
        {
          "name": "ScopeMissing"
        }
      ],
      "input": {
        "encoding": "*/*"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blob": {
              "accept": [
                "image/jpeg",
                "image/png",
                "image/webp"
              ],
              "maxSize": 5000000,
              "type": "blob"
            }
          },
          "required": [
            "blob"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "homeId": {
            "format": "tid",
            "type": "string"
          },
          "slot": {
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "homeId",
          "slot"
        ],
        "type": "params"
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.parent.uploadProfileImage",
  "lexicon": 1
}
```
