Remove the system from the caller's favorites. It succeeds when the system was not starred, and also for a system the caller can no longer see or that was archived, so a stale favorite can always be removed.
Refused with an API key and with an impersonation token.
DELETE
/systems/{id}/favorite
curl \
--request DELETE 'https://my.nethesis.it/backend/api/systems/sys_123456789/favorite' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "system removed from favorites",
"data": {
"system_id": "sys_123456789",
"is_favorite": false
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}