API REFERENCE
Unpin Artist
On this page
/api/artists/{id}/pinUnpin an artist. This updates the caller's pinned preference for the artist.
Authentication
See the authentication guide for API key and account access requirements.
Request
curl --request DELETE \
--url 'https://api.recoupable.dev/api/artists/YOUR_ID/pin' \
--header 'x-api-key: YOUR_API_KEY'Replace the YOUR_ placeholders with your values. Required query parameters are included; optional parameters are listed below.
Try it
Fill in the fields, send the request from your browser, and read the live response. The curl below updates as you type.
Kept in this browser tab only and cleared when it closes.
curl --request DELETE \
--url 'https://recoup-api.vercel.app/api/artists/{id}/pin'Parameters
Path parameters
idstringrequiredArtist ID.
Responses
200Artist unpinned.+
application/json
successbooleanrequiredWhether the request succeeded
artistIdstringrequiredThe artist ID
format: uuid
pinnedbooleanrequiredThe current pinned state
400Bad request - invalid artist ID path parameter+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
missing_fieldsarray<string>List of missing or invalid field names
Item properties for missing_fields
string
errorstringrequiredError message describing what went wrong
401Unauthorized - missing or invalid authentication+
No response body schema is specified.
403Forbidden - the authenticated account cannot access this artist+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
missing_fieldsarray<string>List of missing or invalid field names
Item properties for missing_fields
string
errorstringrequiredError message describing what went wrong
404Artist not found+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
missing_fieldsarray<string>List of missing or invalid field names
Item properties for missing_fields
string
errorstringrequiredError message describing what went wrong
Full specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download releases.jsonView operation source
{
"description": "Unpin an artist. This updates the caller's pinned preference for the artist.",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Artist ID.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Artist unpinned.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PinArtistResponse"
}
}
}
},
"400": {
"description": "Bad request - invalid artist ID path parameter",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PinArtistErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized - missing or invalid authentication"
},
"403": {
"description": "Forbidden - the authenticated account cannot access this artist",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PinArtistErrorResponse"
}
}
}
},
"404": {
"description": "Artist not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PinArtistErrorResponse"
}
}
}
}
}
}