Remove um instrutor do curso
DELETE/api/courses/{courseId}/instructors/{memberId}
- Auth
- Requires a token
- Who can call it:
- owner
- admin
- API key:
- courses:delete
- X-CommunityId
X-CommunityIdSend the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
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`).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
courseIdrequired | path | string (uuid) | |
memberIdrequired | path | string (uuid) |
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdrequired | string (uuid) |
Responses
| Status | 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 |
curl example
curl -X DELETE "https://api.memberfy.net/api/courses/<courseId>/instructors/<memberId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"