# app.bivri.actor.updateProfile

> Published by [lexicons.bivri.app](https://lexicon.garden/identity/did:plc:uqat5a7hrbww3snbbinxgwah)

✓ This is the authoritative definition for this NSID.

## Description

Update the authenticated user's profile. Requires OAuth session.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.actor.updateProfile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.actor.updateProfile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.actor.updateProfile/examples)

## Definitions

### `app.bivri.actor.updateProfile`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `bio` | `string` | No | New profile description. Send null to clear it; omit the field to leave it unchanged. |
| `links` | `array` | No | Replacement set of external links. Send null to clear them; omit the field to leave them unchanged. |
| `avatar` | `blob` | No | Blob reference for the new avatar. Send null to clear it; omit the field to leave it unchanged. |
| `banner` | `blob` | No | Blob reference for the new banner. Send null to clear it; omit the field to leave it unchanged. |
| `displayName` | `string` | No | New display name. Send null to clear it; omit the field to leave it unchanged. |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **Unauthenticated**
- **InvalidProfile**

## Raw Schema

```json
{
  "id": "app.bivri.actor.updateProfile",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "nullable": [
            "displayName",
            "bio",
            "avatar",
            "banner",
            "links"
          ],
          "properties": {
            "bio": {
              "type": "string",
              "maxLength": 2560,
              "description": "New profile description. Send null to clear it; omit the field to leave it unchanged.",
              "maxGraphemes": 256
            },
            "links": {
              "type": "array",
              "items": {
                "ref": "app.bivri.actor.profile#link",
                "type": "ref"
              },
              "maxLength": 10,
              "description": "Replacement set of external links. Send null to clear them; omit the field to leave them unchanged."
            },
            "avatar": {
              "type": "blob",
              "accept": [
                "image/png",
                "image/jpeg",
                "image/webp"
              ],
              "maxSize": 1000000,
              "description": "Blob reference for the new avatar. Send null to clear it; omit the field to leave it unchanged."
            },
            "banner": {
              "type": "blob",
              "accept": [
                "image/png",
                "image/jpeg",
                "image/webp"
              ],
              "maxSize": 1000000,
              "description": "Blob reference for the new banner. Send null to clear it; omit the field to leave it unchanged."
            },
            "displayName": {
              "type": "string",
              "maxLength": 640,
              "description": "New display name. Send null to clear it; omit the field to leave it unchanged.",
              "maxGraphemes": 64
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Unauthenticated"
        },
        {
          "name": "InvalidProfile"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Update the authenticated user's profile. Requires OAuth session."
}
```
