Skip to main content

Endpoints

MethodPathAuth Required
GET/api/attendancesNone (public)
GET/api/attendances/{id}None (public)
POST/api/attendancesUSER, ADMIN, or ORGANIZER
PUT/api/attendances/{id}USER, ADMIN, or ORGANIZER
DELETE/api/attendances/{id}USER, ADMIN, or ORGANIZER

GET /api/attendances

Returns a paginated list of all attendances. Supports optional search filtering. Auth: None required.

Query Parameters

searchTerm
string
Optional search string to filter attendances. Defaults to an empty string (returns all).
page
integer
Page number for pagination. Defaults to 1.

Response Fields

status
boolean
Indicates whether the request was successful.
statusCode
integer
HTTP status code of the response.
message
string
Human-readable message describing the result.
data
array
List of attendance objects.

Example

curl -X GET "https://api.meetpoint.com/api/attendances?page=1"

GET /api/attendances/

Returns a single attendance record by its UUID. Auth: None required.

Path Parameters

id
string (UUID)
required
The unique identifier of the attendance record.

Response Fields

data
object
The attendance object.

Example

curl -X GET "https://api.meetpoint.com/api/attendances/3fa85f64-5717-4562-b3fc-2c963f66afa6"

POST /api/attendances

Registers a new attendance for a user at an event. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.

Request Body

userId
string
The ID of the user registering attendance. Typically resolved from the authenticated token.
eventId
string (UUID)
required
The ID of the event to attend.
state
string
required
The attendance state. Must be one of: CONFIRMADO, PENDIENTE, CANCELADO.

Response Fields

data
object
The newly created attendance object.

Example

curl -X POST "https://api.meetpoint.com/api/attendances" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "user-id-string",
    "eventId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "state": "CONFIRMADO"
  }'

PUT /api/attendances/

Updates the state of an existing attendance record. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.

Path Parameters

id
string (UUID)
required
The unique identifier of the attendance record to update.

Request Body

state
string
required
The new attendance state. Must be one of: CONFIRMADO, PENDIENTE, CANCELADO.

Response Fields

data
object
The updated attendance object.

Example

curl -X PUT "https://api.meetpoint.com/api/attendances/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "CANCELADO"
  }'

DELETE /api/attendances/

Deletes an attendance record. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.

Path Parameters

id
string (UUID)
required
The unique identifier of the attendance record to delete.

Response Fields

data
object
The deleted attendance object.

Example

curl -X DELETE "https://api.meetpoint.com/api/attendances/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>"

Build docs developers (and LLMs) love