Skip to content

Remove um anfitrião do evento

DELETE/api/events/{id}/hosts/{memberId}

Auth
Requires a token
Who can call it:
owner
admin
API key:
events: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 anfitrião do próprio evento (pode remover a si mesmo). Um anfitrião que não é owner/admin não remove o **último** anfitrião (409). Fica no registro da comunidade (`event.host_removed`).

Parameters

NameInTypeDescription
idrequiredpathstring (uuid)
memberIdrequiredpathstring (uuid)

Headers

NameTypeDescription
X-CommunityIdrequiredstring (uuid)

Responses

StatusDescription
200Removido; `data` é a lista que fica
403Nem owner/admin nem anfitrião deste evento
404Evento não encontrado
409Um anfitrião tentou remover o último anfitrião

curl example

curl -X DELETE "https://api.memberfy.net/api/events/<id>/hosts/<memberId>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID"