POST /api/v1/events/{event_id}/comments
Creates a new top-level comment on an event.
Authentication​
Required. Bearer token in Authorization header.
Request​
Path Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
event_id | integer | Yes | Event ID |
Body Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | Comment text |
parent_id | integer | No | Parent comment ID for replies (optional) |
Example​
curl -X POST https://intotes.com/api/v1/events/42/comments \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"content": "Great event! I think YES has good value here."
}'
Response​
201 Created​
Returns the ID of the created comment.
{
"id": 3
}
Errors​
| Status | Code | Description |
|---|---|---|
| 400 | bad_request | Missing or invalid text field |
| 401 | unauthorized | Missing or invalid authentication token |
| 404 | not_found | Event not found |
| 500 | internal_error | Server failed to create comment |