API REFERENCE
Pin Artist
On this page
/api/artists/{id}/pinPin 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 POST \
--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.
Parameters
Path parameters
idstringrequiredArtist ID.
Responses
200Artist pinned.+
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": "Pin 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 pinned.",
"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"
}
}
}
}
}
}