dev.knotless.uploadAvatar
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Uploads the body, a PNG, JPEG, WebP or GIF, 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: one that is not a PNG or JPEG, or is over 1,000,000 bytes, is drawn again as a JPEG that fits, at most 2000 pixels on its longest side. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.",
"errors": [
{
"description": "No picture, or one that is not a PNG, JPEG, WebP or GIF.",
"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
}
Metadata
- DID
-
did:plc:yqsg7znbbhfmj3a2nrpnaerk - CID
-
bafyreiaxs3khdqujnni7no7eofcudryhqwj4nvp2af3vogy77lb5mq2xuu - Indexed At
- 2026-10-28 23:15 UTC
- AT-URI
-
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.uploadAvatar
Version History (2 versions)
- 2026-10-28 23:15 UTC (current)
- 2026-10-28 21:21 UTC diff
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.uploadImage procedure
Uploads a picture to show in a pull, an issue or a comment, as the account logged in to this appview's pages.
-
dev.knotless.updateProfile procedure
Changes how the account logged in to this appview's pages shows on knotless.
-
dev.knotless.getAvatar query
An account's own picture.
-
app.didpic.write.uploadBlob procedure
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 …
-
fyi.opensocial.uploadImage procedure
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 …