Remove um instrutor do curso
DELETE/api/courses/{courseId}/instructors/{memberId}
- Auth
- Richiede un token
- Chi può:
- owner
- admin
- Chiave API:
- courses:delete
- X-CommunityId
X-CommunityIdInvia l’X-CommunityId della community in cui avviene l’operazione.
Le descrizioni degli endpoint provengono dalla specifica dell’API e per ora sono in portoghese. L’interfaccia intorno è tradotta.
Owner, admin ou um instrutor do próprio curso (pode remover a si mesmo). Um instrutor não remove o **último** instrutor (409); owner e admin podem. Fica no registro da comunidade (`course.instructor_removed`).
Parametri
| Nome | Dove | Tipo | Descrizione |
|---|---|---|---|
courseIdobbligatorio | path | string (uuid) | |
memberIdobbligatorio | path | string (uuid) |
Header
| Nome | Tipo | Descrizione |
|---|---|---|
X-CommunityIdobbligatorio | string (uuid) |
Risposte
| Codice | Descrizione |
|---|---|
200 | Removido; `data` é a lista de instrutores que fica |
403 | Nem owner/admin nem instrutor deste curso |
404 | Curso não encontrado |
409 | Um instrutor tentou remover o último instrutor |
Esempio con curl
curl -X DELETE "https://api.memberfy.net/api/courses/<courseId>/instructors/<memberId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"