music nerd

Artist linksSave the artist's link order

Artist links

Save the artist's link order

Saves the order of the artist's links or support section, for the claimant or an admin. Every name must be spotify, deezer or a supported platform; the next profile render uses the order.

PUT/api/artist/link-order
PUT/api/artist/link-order

Saves the order of the artist's links or support section, for the claimant or an admin. Every name must be spotify, deezer or a supported platform; the next profile render uses the order.

Authorization

Authorizationstringrequired

The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. Link writes need the artist's approved claimant or a Music Nerd admin; removeArtistData accepts any whitelisted user too. Kept in this tab only.

Body
cURL
curl --request PUT \
  --url 'https://musicnerd-api.vercel.app/api/artist/link-order' \
  --header 'Content-Type: application/json' \
  --data '{
  "artistId": "6cb3d81a-3d02-4c57-a711-bb7902a9af1b",
  "section": "links",
  "order": [
    "spotify",
    "instagram",
    "youtube"
  ]
}'

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. Link writes need the artist's approved claimant or a Music Nerd admin; removeArtistData accepts any whitelisted user too.

Body

application/jsonrequired
artistIdstringrequired

format: uuid

sectionstring · enumrequired

Which link group was reordered.

Values: "links", "support"

orderarray<string>required

Platform names (urlmap siteNames) in display order, no duplicates.

maxItems: 100

Item properties for order

string

Response

application/json

Saved.

statusstring · enumrequired

Values: "ok"

successboolean · enumrequired

Values: true