API ReferenceEvents
PUT /events/:id/participants/me
Entrar em um evento
PUT
/events/:id/participants/meAuth: accessTokenAdiciona o usuário autenticado como participante do evento.
Request
Esta requisição não tem corpo.
Response
200
{
"userId": "uuid",
"eventId": "uuid",
"status": "pending",
"joinedAt": "ISO 8601"
}Erros
| Código | Descrição |
|---|---|
| 401 | Não autenticado |
| 404 | Evento não encontrado |
| 409 | Usuário já é participante do evento |
Exemplos
curl -X PUT 'https://geeksocialapi.homelab-cloud.com/events/{id}/participants/me' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN'await fetch('https://geeksocialapi.homelab-cloud.com/events/{id}/participants/me', {
method: 'PUT',
headers: { Authorization: 'Bearer ' + accessToken },
})