Skip to content

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-CommunityId Send 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

NameInTypeDescription
courseIdrequiredpathstring (uuid)
memberIdrequiredpathstring (uuid)

Headers

NameTypeDescription
X-CommunityIdrequiredstring (uuid)

Responses

StatusDescription
200Removido; `data` é a lista de instrutores que fica
403Nem owner/admin nem instrutor deste curso
404Curso não encontrado
409Um 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"