curl --request DELETE \
--url https://api.ceboelha.com/problematic-foods/507f1f77bcf86cd799439011 \
--header 'Authorization: Bearer YOUR_TOKEN'
{
"success": true,
"message": "Alimento removido da lista de problemáticos"
}
Completely remove a food from the problematic foods list
curl --request DELETE \
--url https://api.ceboelha.com/problematic-foods/507f1f77bcf86cd799439011 \
--header 'Authorization: Bearer YOUR_TOKEN'
{
"success": true,
"message": "Alimento removido da lista de problemáticos"
}
Bearer YOUR_TOKENcurl --request DELETE \
--url https://api.ceboelha.com/problematic-foods/507f1f77bcf86cd799439011 \
--header 'Authorization: Bearer YOUR_TOKEN'
{
"success": true,
"message": "Alimento removido da lista de problemáticos"
}
DELETE /problematic-foods/{id}/incidents/{incidentId}
Show properties
confirmed to suspected if incidents drop below 3).curl --request DELETE \
--url https://api.ceboelha.com/problematic-foods/507f1f77bcf86cd799439011/incidents/507f1f77bcf86cd799439012 \
--header 'Authorization: Bearer YOUR_TOKEN'
{
"success": true,
"message": "Incidente removido com sucesso",
"data": {
"_id": "507f1f77bcf86cd799439011",
"userId": "507f191e810c19729de860ea",
"foodId": 1234,
"foodName": "Onion",
"totalIncidents": 2,
"lastIncident": "2024-03-10",
"status": "suspected",
"incidents": [
{
"diaryEntryId": "507f1f77bcf86cd799439013",
"date": "2024-03-10",
"symptomTypes": ["bloating", "gas"],
"intensity": 3
},
{
"diaryEntryId": "507f1f77bcf86cd799439014",
"date": "2024-03-05",
"symptomTypes": ["bloating"],
"intensity": 2
}
],
"createdAt": "2024-03-05T10:30:00.000Z",
"updatedAt": "2024-03-15T14:25:00.000Z"
}
}
triggersIdentified) are automatically updated after deletionconfirmed to suspected (incidents drop below 3), user stats are recalculatedincidentId parameter in the incident removal endpoint refers to the diaryEntryId field of the incident