The Comments API lets you create, read, update, and delete user comments attached to places. Each comment belongs to a place (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jparra-amell/api_solsql/llms.txt
Use this file to discover all available pages before exploring further.
place_id) and a user (id). You can build threaded discussions by setting parent_comment_id to the ID of an existing comment; leave it null for a top-level comment.
GET /api/Comments
Returns all comments in the system.Response
Unique identifier for the comment.
ID of the place the comment belongs to.
Display name of the place.
ID of the user who posted the comment.
Display name of the user.
The comment text.
ID of the parent comment if this is a reply;
null for top-level comments.ISO 8601 timestamp of when the comment was posted.
GET /api/Comments/
Returns a single comment by its ID.Path parameters
The unique ID of the comment to retrieve.
Response
Returns a singleComments object. See field descriptions under GET /api/Comments.
Error codes
| Code | Description |
|---|---|
| 404 | No comment found with the given id. |
| 500 | Internal server error. |
GET /api/Comments/byLugar/
Returns all comments for a specific place. The response uses theCommentsPlace view, which includes the commenter’s name alongside comment content. This is the recommended endpoint for displaying a comment thread on a place detail page.
Path parameters
The ID of the place whose comments you want to retrieve.
Response
Unique identifier for the comment.
ID of the parent comment for replies;
null for top-level comments.Display name of the user who posted the comment.
The comment text.
ISO 8601 timestamp of when the comment was posted.
Error codes
| Code | Description |
|---|---|
| 404 | No comments found for the given place_id. |
| 500 | Internal server error. |
POST /api/Comments
Creates a new comment on a place. Setparent_comment_id to the ID of an existing comment to post a reply; omit it or pass null for a top-level comment.
Request body
ID of the place to comment on.
ID of the user posting the comment.
The comment text.
ID of the comment this reply is responding to. Omit or set to
null for a top-level comment.ISO 8601 timestamp representing when the comment was made.
Response
Returns200 OK with a plain-text success message on success.
Top-level comment
Error codes
| Code | Description |
|---|---|
| 500 | Internal server error. |
The
comment_date field should be provided by the client and typically reflects the time the user submitted the form.PUT /api/Comments/
Updates the text of an existing comment. Only thecomment field can be changed.
Path parameters
The ID of the comment to update.
Request body
The updated comment text.
Response
Returns200 OK with a success message on update.
Error codes
| Code | Description |
|---|---|
| 404 | No comment found with the given id. |
| 500 | Internal server error. |
DELETE /api/Comments/
Deletes a comment by its ID.Path parameters
The ID of the comment to delete.
Response
Returns200 OK with a success message on deletion.
Error codes
| Code | Description |
|---|---|
| 404 | No comment found with the given id. |
| 500 | Internal server error. |