Skip to content

Adiciona um anfitrião ao evento

POST/api/events/{id}/hosts

Auth
Requires a token
Who can call it:
owner
admin
moderator
finance
API key:
events:write
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 (moderador e financeiro que não são anfitriões, 403). Qualquer membro ativo da comunidade pode ser anfitrião. O anfitrião vê o evento em rascunho, edita, publica, vê os inscritos, faz check-in, exporta a lista e pode excluir o evento — só daquele evento. Ingressos pagos e preço continuam com owner e admin. Idempotente (quem já é anfitrião devolve 200). Fica no registro da comunidade (`event.host_added`).

Parameters

NameInTypeDescription
idrequiredpathstring (uuid)

Headers

NameTypeDescription
X-CommunityIdrequiredstring (uuid)

Request body application/json

NameTypeDescription
memberIdrequiredstring (uuid)O perfil (membro) desta comunidade.

Responses

StatusDescription
200Já era anfitrião; `data` é a lista
201Adicionado; `data` é a lista de anfitriões
403Nem owner/admin nem anfitrião deste evento
404Evento ou membro não encontrado nesta comunidade

curl example

curl -X POST "https://api.memberfy.net/api/events/<id>/hosts" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID" \
  -H "Content-Type: application/json" \
  -d '{"memberId":"00000000-0000-0000-0000-000000000000"}'