dev.knotless.uploadAvatar

lexicons.knotless.dev

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Uploads the body, a PNG or JPEG of at most 1,000,000 bytes, as a blob of the account logged in to this appview's web pages, and names it as the picture of its dev.knotless.profile record, as `knotless profile --avatar` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.",
      "errors": [
        {
          "description": "No picture, one neither a PNG nor a JPEG, or one too large.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "*/*"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.getOwnProfile#ownProfile",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Sets the picture of the account logged in to this appview's pages.",
  "id": "dev.knotless.uploadAvatar",
  "lexicon": 1
}

Validate Record

Validate a record against dev.knotless.uploadAvatar

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:yqsg7znbbhfmj3a2nrpnaerk
CID
bafyreiaafgpzdz25hbrxymqdc6sazlsb65clabvpgwln5ywcy5iv57bf7y
Indexed At
2026-10-28 21:21 UTC
AT-URI
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.uploadAvatar

Version History (2 versions)

Referenced Schemas (1)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Uploads a picture to show in a pull, an issue or a comment, as the account logged in to this appview's pages.

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

  • An account's own picture.

  • Upload raw image bytes to the authenticated viewer's own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). Mirrors com.atproto.repo.uploadBlob. The returned blob ref is passed …

  • Upload an image for the profile avatar or banner. Requires group.configure. Binary input like com.atproto.repo.uploadBlob; the group is a parameter because the blob has to land in that group's repo for a profile record …

Lexicon Garden

@