music nerd

AdminSave the About for a report

Admin

Save the About for a report

Replaces the artist's published About and resolves the report in one step, keeping the old text in the artist's bio history and recording an about_edited activity. revision must match what Read the About for a report returned; if the About or the artist's ownership changed since, nothing is saved and the response is 409.

PUT/api/admin/bio-corrections/{id}/about
PUT/api/admin/bio-corrections/e7a5f235-4e66-40ba-9ff6-7276339fe34f/about

Replaces the artist's published About and resolves the report in one step, keeping the old text in the artist's bio history and recording an about_edited activity. revision must match what Read the About for a report returned; if the About or the artist's ownership changed since, nothing is saved and the response is 409.

Authorization

Authorizationstringrequired

A Music Nerd admin's access token. Copy it at https://musicnerd.net/access after signing in. A signed-in user who is not an admin gets 403. Kept in this tab only.

Path

idstringrequired

The correction report's ID (a UUID).

Body
cURL
curl --request PUT \
  --url 'https://musicnerd-api.vercel.app/api/admin/bio-corrections/e7a5f235-4e66-40ba-9ff6-7276339fe34f/about' \
  --header 'Content-Type: application/json' \
  --data '{
  "bio": "Bio Ritmo is a 10-piece salsa orchestra from Richmond, Virginia, formed in 1991.",
  "revision": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>. A Music Nerd admin's access token. Copy it at https://musicnerd.net/access after signing in. A signed-in user who is not an admin gets 403.

Path Parameters

idstringrequired

The correction report's ID (a UUID).

Body

application/jsonrequired
biostringrequired

The new About. Trimmed; up to 10,000 characters.

minLength: 1 · maxLength: 10000

revisionstringrequired

The revision from the read.

pattern: ^[a-f0-9]{64}$

Response

application/json

The About is saved and the report resolved.

statusstring · enumrequired

Values: "ok"

successboolean · enumrequired

Values: true