Skip to Content
dropshelf
REST API

Upload my picture

The body is the image: PNG, JPEG or WebP, declared in Content-Type and checked against the bytes, at most profiles.maxAvatarBytes. The bytes decide: an image whose content does not match its declared type is refused rather than stored under either name. Replaces the previous one.

PUT
/api/v1/me/avatar

The body is the image: PNG, JPEG or WebP, declared in Content-Type and checked against the bytes, at most profiles.maxAvatarBytes. The bytes decide: an image whose content does not match its declared type is refused rather than stored under either name. Replaces the previous one.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Request Body

The image bytes. The declared type must match what the bytes actually are.

body*file
Formatbinary

Response Body

The caller, avatarUrl set.

application/json
  1. response
admin*boolean
avatarUrl*|

Where the uploaded picture is served, with its hash as the cache key. null when none is uploaded; picture is the fallback.

bio*string

The member's own text. Empty when they have not written one.

email*string
id*string

ULID.

name*string
picture?string

URL from the identity provider, when it sent one.

Example Request
curl -X PUT 'https://drop.example.com/api/v1/me/avatar'
Example Response
{  "admin": true,  "avatarUrl": "string",  "bio": "string",  "email": "string",  "id": "string",  "name": "string",  "picture": "string"}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.