Aller au contenu

Remove um anfitrião do evento

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

Auth
Jeton requis
Qui peut l’appeler:
owner
admin
Clé d’API:
events:delete
X-CommunityId
X-CommunityId Envoyez 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 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`).

Paramètres

NomEmplacementTypeDescription
idobligatoirepathstring (uuid)
memberIdobligatoirepathstring (uuid)

En-têtes

NomTypeDescription
X-CommunityIdobligatoirestring (uuid)

Réponses

StatutDescription
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

Exemple curl

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