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.
Input
*/*Accepts raw binary data
Output
application/jsonErrors
InvalidRequest
No picture, or one that is not a PNG, JPEG, WebP or GIF. AuthenticationRequired
No account is logged in to the pages, or its session has ended. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"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"
}