{ "lexicon": 1, "id": "place.hud.uploadBlob", "description": "Upload an image to the person's PDS.", "defs": { "main": { "type": "procedure", "description": "Upload an image (JPEG, PNG, WebP or HEIC, at most 2,000,000 bytes) to the person's PDS as their blob, as com.atproto.repo.uploadBlob does, for a record they write next (a post's images, a gallery's photos). Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.", "input": { "encoding": "image/*" }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "blob" ], "properties": { "blob": { "type": "blob", "description": "The blob, as the PDS answered it: to put in a record as it is." } } } }, "errors": [ { "name": "InvalidRequest", "description": "The body is not a JPEG, PNG, WebP or HEIC image, or not sent as one (Content-Type image/*)." }, { "name": "BlobTooLarge", "description": "The body is over 2,000,000 bytes." }, { "name": "UpstreamFailure", "description": "The person's PDS could not be reached, refused the blob, or answered something that is not one." }, { "name": "AuthRequired", "description": "No live session, or its sign-in at the person's PDS ended: sign in again." } ] } } }