music nerd

Artist imagesUpload a profile image

Artist images

Upload a profile image

Uploads a PNG, JPEG or WebP of at most 5 MB as the artist's profile photo and returns its public URL. The file's bytes must match its declared type.

POST/api/artist/profile-image
POST/api/artist/profile-image

Uploads a PNG, JPEG or WebP of at most 5 MB as the artist's profile photo and returns its public URL. The file's bytes must match its declared type.

This one can’t run in the browser. Copy the curl and run it from a terminal.

Authorization

Authorizationstringrequired

The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. The user must be the artist's approved claimant or a Music Nerd admin. Kept in this tab only.

Body
cURL
curl --request POST \
  --url 'https://musicnerd-api.vercel.app/api/artist/profile-image' \
  --header 'Content-Type: multipart/form-data' \
  --data '{
  "artistId": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3"
}'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>. The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. The user must be the artist's approved claimant or a Music Nerd admin.

Body

multipart/form-datarequired
filestringrequired

The image: image/png, image/jpeg or image/webp, at most 5 MB.

format: binary

artistIdstringrequired

The artist's ID (a UUID).

format: uuid

Response

application/json

The image is stored and the artist's photo points at it.

statusstring · enumrequired

Values: "ok"

successboolean · enumrequired

Values: true

imagePathstringrequired

The stored image's public URL, now the artist's customImage.

format: uri