teacher_favorites

Add Favorite

Add a favorite. Resolves the target per SPEC §5 origin rule.

409 if this teacher has already favorited the same target (the partial unique indexes enforce this at the DB level too).

post/teacher-favorites

Request

  • Base URL: https://api.excellence-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.excellence-ai.com/teacher-favorites
  • Auth: OAuth 2 (password, token URL api/login)

Request body

exercise_idstring required
exercise_type'public' | 'teacher' required

Response

Successful Response

idstring required
teacher_idstring required
subject'maths' | 'physique-chimie'
public_exercise_idstring nullable
teacher_exercise_idstring nullable
target_type'public' | 'teacher' required
added_atstring date-time required

Changes

No operation changes recorded.