Skip to content

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
nullable >= 3 characters <= 500 characters

Responses

200

Returns the updated comment.

object
id
string format: uuid
taskId
string format: uuid
userId
string format: uuid
content
required
string
nullable
createdDate
string format: date-time
user
object
id
string format: uuid
username
string
nullable
name
string
nullable
email
string
nullable
createdDate
string format: date-time
accessLevel
integer format: int32

400

If the request is invalid or user ID is missing.

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

403

If the user doesn’t have access to update the comment.

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

404

If the comment with the specified ID was not found.

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties