music nerd

VaultUpdate a source

Vault

Update a source

Approves or rejects one of the artist's sources, or changes its type. A status change starts a Lore refresh, so the artist's Lore follows the decision.

PATCH/api/artist/{id}/knowledge/sources/{sourceId}
PATCH/api/artist/{id}/knowledge/sources/{sourceId}

Approves or rejects one of the artist's sources, or changes its type. A status change starts a Lore refresh, so the artist's Lore follows the decision.

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.

Path

idstringrequired

The artist's ID.

sourceIdstringrequired

The source's ID. It must belong to the artist.

Body
cURL
curl --request PATCH \
  --url 'https://musicnerd-api.vercel.app/api/artist/{id}/knowledge/sources/{sourceId}' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "approved",
  "expectedStatus": "pending"
}'

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.

Path Parameters

idstringrequired

The artist's ID.

sourceIdstringrequired

The source's ID. It must belong to the artist.

Body

application/jsonrequired
statusstring · enum

The review decision.

Values: "approved", "rejected"

expectedStatusstring · enum

Apply status only if the source is still pending. Send it from a review queue so a second reviewer doesn't overwrite the first. Needs status.

Values: "pending"

typestring · enum

The source's type.

Values: "article", "interview", "review", "profile", "document", "image", "audio", "video", "data", "social", "website", "music"

Response

application/json

The source was updated.

statusstring · enumrequired

Values: "ok"