Remove um instrutor do curso
DELETE/api/courses/{courseId}/instructors/{memberId}
- Auth
- Jeton requis
- Qui peut l’appeler:
- owner
- admin
- Clé d’API:
- courses:delete
- X-CommunityId
X-CommunityIdEnvoyez le X-CommunityId de la communauté où l’opération a lieu.
Les descriptions des endpoints viennent directement de la spécification de l’API et sont en portugais pour l’instant. L’interface autour est traduite.
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`).
Paramètres
| Nom | Emplacement | Type | Description |
|---|---|---|---|
courseIdobligatoire | path | string (uuid) | |
memberIdobligatoire | path | string (uuid) |
En-têtes
| Nom | Type | Description |
|---|---|---|
X-CommunityIdobligatoire | string (uuid) |
Réponses
| Statut | Description |
|---|---|
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 |
Exemple curl
curl -X DELETE "https://api.memberfy.net/api/courses/<courseId>/instructors/<memberId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"