music nerd

VaultRemove sources

Vault

Remove sources

Deletes several of the artist's sources at once and starts a Lore refresh. Nothing is deleted unless every ID belongs to the artist. Returns how many were deleted.

DEL/api/artist/{id}/knowledge/sources
DEL/api/artist/{id}/knowledge/sources

Deletes several of the artist's sources at once and starts a Lore refresh. Nothing is deleted unless every ID belongs to the artist. Returns how many were deleted.

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.

Body
cURL
curl --request DELETE \
  --url 'https://musicnerd-api.vercel.app/api/artist/{id}/knowledge/sources' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceIds": [
    "2c6f1c6e-4f0a-4b9b-8a6a-3b1f0b2d9e71",
    "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
  ]
}'

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.

Body

application/jsonrequired
sourceIdsarray<string>required

The sources to delete.

minItems: 1 · maxItems: 200

Item properties for sourceIds

string

Response

application/json

The sources were deleted.

statusstring · enumrequired

Values: "ok"

countintegerrequired

How many sources were deleted.

minimum: 1