Update Comment
PUT/comments/:comment_id
Updates a comment
Request
Path Parameters
comment_id stringrequired
A Comment ID
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
The updated comment text
mentions integer[]
Possible values: <= 10
Array of user IDs mentioned in the comment (max 10)
Responses
- 200
- 401
- 404
- 500
Comment updated successfully
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Whether the operation was successful
transaction_hash string
The blockchain transaction hash
{
"success": true,
"transaction_hash": "string"
}
Unauthorized
Comment not found
Server error
Loading...