Updates an existing comment.
PUT
/api/v1/Comments/{commentId}
Sample request:
PUT /api/v1/comments/{commentId}
{
"content": "Updated comment text"
}
Only the comment owner or an admin can update the comment.
Authorizations
Parameters
Path Parameters
commentId
required
string format: uuid
The ID of the comment to update.
Request Body
The update request containing the new comment content.
object
content
required
string
object
content
required
string
object
content
required
string
object
content
required
string
Responses
200
Returns the updated comment.
object
id
string format: uuid
taskId
string format: uuid
userId
string format: uuid
content
required
string
createdDate
string format: date-time
user
object
id
string format: uuid
username
string
name
string
email
string
createdDate
string format: date-time
accessLevel
integer format: int32
object
id
string format: uuid
taskId
string format: uuid
userId
string format: uuid
content
required
string
createdDate
string format: date-time
user
object
id
string format: uuid
username
string
name
string
email
string
createdDate
string format: date-time
accessLevel
integer format: int32
object
id
string format: uuid
taskId
string format: uuid
userId
string format: uuid
content
required
string
createdDate
string format: date-time
user
object
id
string format: uuid
username
string
name
string
email
string
createdDate
string format: date-time
accessLevel
integer format: int32
400
If the request is invalid or user ID is missing.
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
403
If the user doesn’t have access to update the comment.
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
404
If the comment with the specified ID was not found.
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties