Cria ou executa events
POST/api/events
- Auth
- Requires a token
- 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.
Sujeito a verificação de papel (RBAC). Além disso, respeita o `canCreate` do space: `staff` aceita owner, admin e moderator; `admins` aceita owner e admin; `anyone` não restringe. Fora da regra, 403 com `errors[0].param = "spaceId"`. SuperAdmin sempre passa.
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdoptional | string (uuid) | ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade. |
Request body application/json
| Name | Type | Description |
|---|---|---|
spaceIdoptional | string (uuid) | Valid space ID required if provided |
slugrequired | string | Slug is required |
titlerequired | string | Title is required |
typeoptional | online | hybrid | in_person | Type must be online, hybrid, or in_person |
locationoptional | string | Location must be a string |
placeIdoptional | string | Place ID must be a string |
streetoptional | string | Street must be a string |
numberoptional | string | Number must be a string |
neighborhoodoptional | string | Neighborhood must be a string |
cityoptional | string | City must be a string |
stateoptional | string | State must be a string |
countryoptional | string | Country must be a string |
postalCodeoptional | string | Postal code must be a string |
latitudeoptional | number | Latitude must be a number |
longitudeoptional | number | Longitude must be a number |
streamingUrloptional | string (uri) | Streaming URL must be valid |
streamingServiceoptional | youtube | vimeo | mux | Streaming service must be youtube, vimeo, or mux |
bannerUrloptional | string (uri) | Banner URL must be valid |
featuredImageUrloptional | string (uri) | Featured image URL must be valid |
videoTeaserUrloptional | string (uri) | Video teaser URL must be valid |
hostIdsoptional | —[] | hostIds must be an array |
hostIds.*optional | string (uuid) | Each hostId must be a valid UUID |
organizerIdsoptional | —[] | organizerIds must be an array |
organizerIds.*optional | string (uuid) | Each organizerId must be a valid UUID |
timezoneoptional | string | Timezone must be a string |
audienceoptional | string | Audience must be a string |
visibilityoptional | public | members | plan | Visibility must be public, members, or plan |
Responses
| Status | Description |
|---|---|
201 | Operação realizada com sucesso. |
400 | Requisição inválida — falha de validação. |
401 | Token ausente, inválido ou expirado. |
403 | Autenticado, mas sem permissão para esta operação. |
500 | Erro interno do servidor. |
curl example
curl -X POST "https://api.memberfy.net/api/events" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID" \
-H "Content-Type: application/json" \
-d '{"slug":"string","title":"string"}'