Create new Task Comment

Prev Next
Post
/task-comments/

Operation is used to create new task comment.

Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Task Comment to be created

object

Information about Task Comment

comment
string Required

Comment

createdBy
integer

Id of user who created the task comment.

createdByName
string

Complete name or username of the user who created the task comment.

task
integer Required

Task id

Responses
201

A newly created TaskComment

{
  "comment": "This is a test comment",
  "createdBy": 456,
  "createdByName": "Test User",
  "createdTs": "2023-03-21T05:23:22.239Z",
  "id": 123,
  "task": 66
}
object

Information about Task Comment

comment
string

Comment

createdBy
integer

Id of user who created the task comment.

createdByName
string

Complete name or username of the user who created the task comment.

createdTs
string (date-time)

Creation date and time of task comment.

id
integer

Unique id of task comment.

task
integer

Task id

400

There was an error in request. Usually field validation failed.

{
  "comment": [
    "This field is required."
  ],
  "task": [
    "This field is required."
  ]
}
object

Fields which failed validation

property*
Array of string additionalProperties

List of validation errors for this fieldname

string

Validation error

401

Authentication credentials are missing or invalid

{
  "details": "Authentication credentials were not provided"
}
object
details
string

Detailed description of error