Events
Post Event Comment
Posts a new comment (and optional rating) on a published event on behalf of the authenticated customer.
POST
Post Event Comment
Documentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
Post Event Comment
Submits a new comment and optional star rating on a published event. Only available when the event’sAllowComments flag is true. After a successful post the event detail data should be refetched to display the new comment.
This endpoint uses the
/en/ legacy route prefix rather than /api/public/.Authentication
Requires a valid customer bearer token.Request Body
The integer ID of the event to comment on. Obtained as
Event.Id from GET /api/public/events/{id}.The text body of the comment.
Optional title or headline for the comment.
Optional numeric rating (e.g.
1–5). Pass null to submit without a rating.Response
Returns an empty200 OK on success. Refetch GET /api/public/events/{id} to see the new comment in the Event.Comments array.
Examples
Post a comment with a rating
Post a comment without a rating
TypeScript Integration
Usage in Portal
| Context | Source file |
|---|---|
Event detail page comment form (/events/{id}) | src/views/events/details/data.ts |
Error Responses
The customer is not authenticated or the session has expired.
Missing required field
Id or comment, or the event does not allow comments (AllowComments is false).No event with the specified
Id exists.Related Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/public/events/{id} | Event detail — includes Comments array and AllowComments flag |
POST | /en/events/deleteComment | Delete a comment previously posted by the customer |
Post Event Comment