Skip to main content
PUT
/
task
/
updateTask
/
{taskId}
cURL
curl --request PUT \
  --url https://back.teamcamp.app/api/v1/task/updateTask/{taskId} \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "projectId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "priority": 0,
  "dueDate": "2023-12-25",
  "groupId": "<string>",
  "taskUsers": [
    "<string>"
  ],
  "files": [
    {
      "fileType": "<string>",
      "href": "<string>",
      "name": "<string>",
      "size": "<string>"
    }
  ],
  "estimateTime": 123,
  "milestoneId": 123,
  "statusId": "<string>"
}'
{
  "_id": "<string>",
  "Name": "<string>",
  "ProjectId": "<string>",
  "Subscribers": [
    "<string>"
  ],
  "GroupId": "<string>",
  "Labels": [
    "<string>"
  ],
  "TaskUsers": [
    {
      "_id": "<string>",
      "CreatedBy": "<string>",
      "CreatedTime": "2023-11-07T05:31:56Z",
      "UpdatedBy": "<string>",
      "UpdatedTime": "2023-11-07T05:31:56Z"
    }
  ],
  "Files": [
    {
      "file_type": "<string>",
      "href": "<string>",
      "size": "<string>",
      "name": "<string>",
      "uploadFileType": 123
    }
  ],
  "Comments": [
    {
      "_id": "<string>",
      "IsGithub": true,
      "Comment": "<string>",
      "Assignee": "<string>",
      "PreviousPriority": 123,
      "Priority": 123,
      "Type": 123,
      "DueDate": "2023-11-07T05:31:56Z",
      "PreviousDueDate": "2023-11-07T05:31:56Z",
      "Group": "<string>",
      "PreviousGroup": "<string>",
      "CreatedBy": "<string>",
      "CreatedTime": "2023-11-07T05:31:56Z",
      "UpdatedBy": "<string>",
      "UpdatedTime": "2023-11-07T05:31:56Z",
      "Status": true,
      "EstimateTime": 123,
      "IsArchived": true,
      "Reactions": [
        {
          "ReactionType": "<string>",
          "UserId": "<string>",
          "_id": "<string>"
        }
      ],
      "Audio": {
        "Url": "<string>",
        "Duration": "<string>"
      },
      "Files": [
        {
          "file_type": "<string>",
          "href": "<string>",
          "size": "<string>",
          "name": "<string>",
          "uploadFileType": 123
        }
      ],
      "Reply": {
        "id": "<string>",
        "CreatedTime": "2023-11-07T05:31:56Z",
        "message": "<string>",
        "files": [
          {
            "file_type": "<string>",
            "href": "<string>",
            "size": "<string>",
            "name": "<string>",
            "uploadFileType": 123
          }
        ],
        "Sender_id": "<string>"
      }
    }
  ],
  "CreatedBy": "<string>",
  "CreatedTime": "2023-11-07T05:31:56Z",
  "UpdatedBy": "<string>",
  "UpdatedTime": "2023-11-07T05:31:56Z",
  "Desc": "<string>",
  "StatusId": "<string>",
  "Status": true,
  "TaskNumber": 123,
  "ParentTaskId": "<string>",
  "Priority": 123,
  "DueDate": "2023-11-07T05:31:56Z"
}

Authorizations

apiKey
string
header
required

Path Parameters

taskId
string
required

The unique identifier of the task to update.

Minimum length: 10

Body

application/json

Fields to update in the task.

projectId
string
required

The ID of the project to which the task belongs.

name
string

The Name of the task.

description
string

The Description of the task, if applicable.

priority
enum<integer>

Priority of the task. Valid values are: 0 = No Priority 1 = Urgent 2 = High 3 = Medium 4 = Low

Available options:
0,
1,
2,
3,
4
dueDate
string<date>

The due date of the task, We expect yyyy-MM-dd.

groupId
string

The ID of the task group.

taskUsers
string[]

An array of user IDs associated with the task [ Task Assignee ].

files
object[]

An array of files associated with the task. Each file includes properties such as file type, href, name, and size.

estimateTime
integer

Estimated time required for the task (hh), if applicable.

milestoneId
integer

The ID of the task's milestone, if applicable.

statusId
string

The ID of the task status.

Response

Successful task update.

_id
string

Id of Task

Name
string

Name of the Task

ProjectId
string

ProjectId of the Task

Subscribers
string[]

List of Subscribers who Subscribe the task.

GroupId
string | null

The ID of the group.

Labels
string[]

LabelIds of the Task

TaskUsers
object[]

Task users [ Task Assignee ] for this task

Files
object[]

Files which are uploaded into this task

Comments
object[]

Comments of the Task

CreatedBy
string
CreatedTime
string<date-time>
UpdatedBy
string
UpdatedTime
string<date-time>
Desc
string

Rich text HTML

StatusId
string
Status
boolean
TaskNumber
integer
ParentTaskId
string
Priority
integer
DueDate
string<date-time>
I