v2

latestOpenAPI 3.0.12026-07-31690160432.4 KB
Project Subtasks

Update a subtask

Update an existing subtask for a given parent task

put/v1/spaces/{spaceId}/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}

Path parameters

spaceIdinteger required

ID of the space

projectIdinteger required

ID of the project

taskIdinteger required

ID of the parent task

subtaskIdinteger required

ID of the subtask to update

Headers

X-Org-Idinteger required

Organization ID

Request body

taskTitlestring

Title of the subtask. Must be between 3 and 500 characters.

descriptionstring

Description of the subtask. Optional.

ownersinteger[]

List of owner IDs assigned to the subtask. Optional.

startDatestring date-time

Start date of the subtask. Optional.

dueDatestring date-time

Due date of the subtask. Optional.

noOfDaysinteger

Duration in working days. When sent together with startDate or dueDate, the missing date is recomputed honouring the organisation's operational hours.

completioninteger

Completion percentage of the subtask. Must be between 0 and 100. Optional.

statusstring

Status of the subtask. Optional.

prioritystring

Priority of the subtask. Optional.

tagsstring[]

List of tags associated with the subtask. Optional.

Example request

{
  "taskTitle": "Implement user authentication",
  "description": "This subtask involves implementing the user authentication module.",
  "owners": [
    1,
    2,
    3
  ],
  "startDate": "2023-10-01T00:00:00Z",
  "dueDate": "2023-10-15T00:00:00Z",
  "noOfDays": 5,
  "completion": 50,
  "status": "In Progress",
  "priority": "High",
  "tags": [
    "backend",
    "urgent"
  ]
}

Response

Subtask updated successfully

successboolean

Indicates if the operation was successful

messagestring

Message describing the result of the operation

codeinteger

HTTP status code of the response

timestampstring date-time

Timestamp of the response

Example response

{
  "success": true,
  "message": "Operation completed successfully",
  "code": 200,
  "timestamp": "2023-01-01T12:00:00Z"
}