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-CommunityIdEnvoyez 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
| Nom | Emplacement | Type | Description |
|---|---|---|---|
idobligatoire | path | string (uuid) | |
memberIdobligatoire | path | string (uuid) |
En-têtes
| Nom | Type | Description |
|---|---|---|
X-CommunityIdobligatoire | string (uuid) |
Réponses
| Statut | Description |
|---|---|
200 | Removido; `data` é a lista que fica |
403 | Nem owner/admin nem anfitrião deste evento |
404 | Evento não encontrado |
409 | Um 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"