Remove um anfitrião do evento
DELETE/api/events/{id}/hosts/{memberId}
- Auth
- Token erforderlich
- Wer darf:
- owner
- admin
- API-Schlüssel:
- events:delete
- X-CommunityId
X-CommunityIdSende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.
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`).
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | path | string (uuid) | |
memberIdPflicht | path | string (uuid) |
Header
| Name | Typ | Beschreibung |
|---|---|---|
X-CommunityIdPflicht | string (uuid) |
Antworten
| Status | Beschreibung |
|---|---|
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 |
curl-Beispiel
curl -X DELETE "https://api.memberfy.net/api/events/<id>/hosts/<memberId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"