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-CommunityIdSend 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
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string (uuid) | |
memberIdrequired | path | string (uuid) |
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdrequired | string (uuid) |
Responses
| Status | 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 |
curl example
curl -X DELETE "https://api.memberfy.net/api/events/<id>/hosts/<memberId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"