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
}'
{
  "taskId": "<string>",
  "taskName": "<string>",
  "projectId": "<string>",
  "groupId": "<string>",
  "group": "<string>",
  "description": "<string>",
  "status": true,
  "subscribers": [
    "<string>"
  ],
  "dueDate": "<string>",
  "priority": "<string>",
  "estimateTime": 123,
  "milestoneId": 123,
  "taskUsers": [
    {
      "taskUserId": "<string>"
    }
  ]
}

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.

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.

Response

Successful task update.

taskId
string

The ID of the task

taskName
string

The Name of the task

projectId
string

The ID of the project.

groupId
string

The ID of the group.

group
string

The Group of the task.

description
string

Description of the task.

status
boolean

The Status of the task.

subscribers
string[]

List of Subscribers who Subscribe the task.

dueDate
string

The due date of the project.

priority
string

Select priority of the task.

estimateTime
integer

Estimated time required for the task (hh).

milestoneId
integer

The ID of the task milestone.

taskUsers
object[]

List of task users.