v1
latestOpenAPI 3.1.02026-07-14159142161.9 KBtasksService
Complete the task
Complete the task. Sets different statuses depending on who initiated the action. Available to users related to the task.
patch/tasks/v1/tasks/{taskId}/ready
Path parameters
taskIdstring required
Task id
Request body
Example request
{
"resultCommentId": 11
}Response
OK
Example response
{
"id": "5",
"parentId": "2",
"title": "Describe swagger api for tasksService",
"deadline": 1654180120,
"closedDate": 1654180120,
"createdBy": "1",
"closedBy": "1",
"createdDate": 1654180120,
"responsibleId": "1",
"body": "<b>need use swagger-ui@4.x</b>",
"kanbanStageId": "2",
"acceptResult": true,
"requiredResult": true,
"resultCommentId": "1",
"departmentId": "1",
"groupId": "1",
"setterId": "1",
"timeEstimate": 1654180120,
"templateId": "2",
"taskType": "task",
"files": [
{
"id": 1,
"entityType": "post",
"entityId": 1,
"uploadId": "369c4620-adee-4526-a0d8-a1db20bcf5b2",
"originalFilename": "sample.jpg",
"lastModified": 1664629542,
"size": 123456,
"url": "https://aws.s3.amazonaws.com/my-bucket/61/dd/61ddc0045c05ba7537b63e63184b9203.jpg"
}
],
"accomplicesIds": [
"2",
"3"
],
"auditorsIds": [
"4",
"5"
]
}