Remove um instrutor do curso
DELETE/api/courses/{courseId}/instructors/{memberId}
- Auth
- Token erforderlich
- Wer darf:
- owner
- admin
- API-Schlüssel:
- courses:delete
- X-CommunityId
X-CommunityIdSende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.
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`).
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
courseIdPflicht | path | string (uuid) | |
memberIdPflicht | path | string (uuid) |
Header
| Name | Typ | Beschreibung |
|---|---|---|
X-CommunityIdPflicht | string (uuid) |
Antworten
| Status | Beschreibung |
|---|---|
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 |
curl-Beispiel
curl -X DELETE "https://api.memberfy.net/api/courses/<courseId>/instructors/<memberId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"