Unstar a Solution
DELETE
/api/solutions/{slug}/favorite/
const url = 'http://localhost:8000/api/solutions/example/favorite/';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8000/api/solutions/example/favorite/ \ --header 'Authorization: Bearer <token>'Remove this Solution from the requesting coach’s favorites.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Responses
Section titled “Responses”Media typeapplication/json
POST / DELETE /api/solutions/<slug>/favorite/ — new star state.
object
isFavorite
required
boolean
Examplegenerated
{ "isFavorite": true}Media typeapplication/json
object
detail
required
Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).
string
Examplegenerated
{ "detail": "example"}