Skip to content

Adds a new comment to a task

POST
/api/v1/Task/{taskId}/comments

Sample request:

POST /api/v1/Task/{taskId}/comments
{
    "content": "This is a comment on the task"
}

Authorizations

Parameters

Path Parameters

taskId
required
string format: uuid

The unique identifier of the task

Request Body

Comment creation request

object
content
required
string
<= 500 characters

Responses

201

Comment successfully added

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

Invalid comment data

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

403

User does not have access to comment on this task

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

404

Comment not found

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