Create Comment
POST/comments
Creates a new comment
Request
Query Parameters
user_id stringrequired
The user ID of the user making the request
- application/json
Body
required
entityType comment_entity_type (string)required
Possible values: [Track]
Type of entity that can be commented on
entityId integerrequired
ID of the entity being commented on
body stringrequired
Possible values: <= 500 characters
Comment text
commentId integer
Optional ID for the comment (will be generated if not provided)
parentId integer
Parent comment ID if this is a reply
trackTimestampS integer
Timestamp in the track where the comment was made (in seconds)
mentions integer[]
Possible values: <= 10
Array of user IDs mentioned in the comment (max 10)
Responses
- 201
- 400
- 401
- 500
Comment created successfully
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Whether the comment was created successfully
transaction_hash string
The blockchain transaction hash
comment_id string
The ID of the created comment
{
"success": true,
"transaction_hash": "string",
"comment_id": "string"
}
Bad request
Unauthorized
Server error
Loading...