# dev.knotless.updateProfile

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

Changes how the account logged in to this appview's pages shows on knotless.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.updateProfile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.updateProfile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.updateProfile/examples)

## Definitions

### `dev.knotless.updateProfile`

**Type**: `procedure`

Changes the dev.knotless.profile record of the account logged in to this appview's web pages, as `knotless profile` does: a field left out stays as it is, and one given empty is taken out, so the Bluesky profile's shows again. A profile left with nothing in it is deleted. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `description` | `string` | No | Free text about the account: its bio. |
| `displayName` | `string` | No | The name shown over the account's handle. |
| `links` | `array` | No | The links to show, in order, in place of those there were; none shows the Bluesky profile's. |
| `pronouns` | `string` | No | Free-form pronouns text. |
| `removeAvatar` | `boolean` | No | Takes the picture out, so the Bluesky profile's shows again. dev.knotless.uploadAvatar sets one. |

#### Output

**Encoding**: `application/json`

#### Errors

- **InvalidRequest**: A field is too long, or a link is no http or https address.
- **AuthenticationRequired**: No account is logged in to the pages, or its session has ended.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Changes the dev.knotless.profile record of the account logged in to this appview's web pages, as `knotless profile` does: a field left out stays as it is, and one given empty is taken out, so the Bluesky profile's shows again. A profile left with nothing in it is deleted. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.",
      "errors": [
        {
          "description": "A field is too long, or a link is no http or https address.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "description": "Free text about the account: its bio.",
              "maxGraphemes": 256,
              "maxLength": 2560,
              "type": "string"
            },
            "displayName": {
              "description": "The name shown over the account's handle.",
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "links": {
              "description": "The links to show, in order, in place of those there were; none shows the Bluesky profile's.",
              "items": {
                "ref": "dev.knotless.defs#link",
                "type": "ref"
              },
              "maxLength": 10,
              "type": "array"
            },
            "pronouns": {
              "description": "Free-form pronouns text.",
              "maxGraphemes": 20,
              "maxLength": 200,
              "type": "string"
            },
            "removeAvatar": {
              "description": "Takes the picture out, so the Bluesky profile's shows again. dev.knotless.uploadAvatar sets one.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.getOwnProfile#ownProfile",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Changes how the account logged in to this appview's pages shows on knotless.",
  "id": "dev.knotless.updateProfile",
  "lexicon": 1
}
```
