Fans
Remove a tag from a fan
DELETE
/v1/accounts/{account_id}/fans/{fan_id}/tags/{tag_id}Removes this tag from the fan. Removing a tag the fan does not carry also returns 204.
Required scope
write:tagsRate limit60 requests per minute
curl -X DELETE 'https://api.fansquare.so/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/fans/a6df8022-e509-4575-ad28-e29c2d1d42dc/tags/58368a92-838b-4cb0-ab37-d54ce826ea11' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"type": "https://developers.offmy.co/errors/validation_failed",
"title": "Validation failed",
"status": 400,
"detail": "limit: Number must be less than or equal to 200",
"instance": "/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/fans/a6df8022-e509-4575-ad28-e29c2d1d42dc/tags/12345",
"errors": [
{
"keyword": "invalid_string",
"instancePath": "/tag_id",
"schemaPath": "#/tag_id/invalid_string",
"params": {
"issue": {
"code": "invalid_string",
"validation": "uuid",
"path": [
"tag_id"
],
"message": "Invalid uuid"
}
},
"message": "Invalid uuid",
"path": "tag_id"
}
]
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Path
account_idstringrequiredMYM account id (
account.external_idin GET /v1/creators).min length 1fan_idstringrequiredMYM fan id.
format uuidtag_idstringrequiredFansquare tag id, from GET /v1/tags.
format uuid
Response
No content
No response body
curl -X DELETE 'https://api.fansquare.so/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/fans/a6df8022-e509-4575-ad28-e29c2d1d42dc/tags/58368a92-838b-4cb0-ab37-d54ce826ea11' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"type": "https://developers.offmy.co/errors/validation_failed",
"title": "Validation failed",
"status": 400,
"detail": "limit: Number must be less than or equal to 200",
"instance": "/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/fans/a6df8022-e509-4575-ad28-e29c2d1d42dc/tags/12345",
"errors": [
{
"keyword": "invalid_string",
"instancePath": "/tag_id",
"schemaPath": "#/tag_id/invalid_string",
"params": {
"issue": {
"code": "invalid_string",
"validation": "uuid",
"path": [
"tag_id"
],
"message": "Invalid uuid"
}
},
"message": "Invalid uuid",
"path": "tag_id"
}
]
}