Skip to content

Star a Solution

POST
/api/solutions/{slug}/favorite/
curl --request POST \
--url http://localhost:8000/api/solutions/example/favorite/ \
--header 'Authorization: Bearer <token>'

Add this Solution to the requesting coach’s favorites.

slug
required
string
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"
}