Task Management
Example overview
Search tasks by many parameters
Default behaviour for requests by user: return list of tasks, where current user is assignee or watcher.
HTTP Request
Method: GET
Endpoint: {url}/{tenantName}/{instanceName}/tasks
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks
Deprecated parameters
assigneeId
path
replased to assigneeIds
No
UUID (or comma separated list of UUID)
patientId
path
replased to patientIds
No
UUID
status
path
replased to statuses
No
[TODO, IN_PROGRESS, COMPLETED, CANCELED] - one or more comma separated
priority
path
replased to priorities
No
[LOW, MEDIUM, HIGH, URGENT] - one or more comma separated
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveLooks for tasks with template. String (or comma separated list of string)
["template1","templates2"]Looks for tasks without template
trueassigneeIds
["20eb246e-8099-4c7c-854c-5e0f9a366ddb","03a87f5b-3a04-4be8-b0ad-7a34a5b2892d"]Looks for tasks related to patient. UUID (or comma separated list of UUID)
Looks for tasks with status [TODO, IN_PROGRESS, COMPLETED, CANCELED] - one or more comma separated
["TODO","COMPLETED","CANCELED","IN_PROGRESS"]Looks for tasks with priority [LOW, MEDIUM, HIGH, URGENT] - one or more comma separated
["LOW","MEDIUM","HIGH","URGENT"]Looks for tasks whose deadline is up to the specified day. Datetime in ISO-8601 format
2021-12-01T00:00:00.0ZLooks for tasks whose deadline is after the specified day. Datetime in ISO-8601 format
2021-12-31T00:00:00.0ZLooks for tasks created by user ( UUID)
03a87f5b-3a04-4be8-b0ad-7a34a5b2892dLooks for tasks whose deadline is on the specified day. Datetime in ISO-8601 format
2021-01-01T00:00:00.000ZSearch by name or description
NewLooks for tasks whose descriptions partially matches the specified one
CreateLooks for tasks monitored by the specified user (UUID)
03a87f5b-3a04-4be8-b0ad-7a34a5b2892d20Example: 200Example: 0Paginated search results
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/tasks HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}
],
"metaInfo": {
"page": 1,
"pageSize": 1,
"totalElements": 1,
"numberOfElements": 1
}
}Example overview
A new task is created with the name Patient Review with the description New Patient Profile Review and the priority URGENT and comment Lorem ipsum.... The task assigned to user with id 20eb246e-8099-4c7c-854c-5e0f9a366ddb. The task visible for users specified in the fields author, assignee, watchers (in our example, this is the same user). The task must be completed by May 20, 2021.
The method allows you to add a comment to the task being created. This update allows adding comments to tasks through the API on behalf of a patient. If patient information is not included, the comment will default to being attributed to the API client.
HTTP Request
Method: POST
Endpoint: {url}/{tenantName}/{instanceName}/tasks
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks
Parameters
tenantName
path
Name of tenant
Yes
string
instanceName
path
Name of instance
Yes
string
name
body
Short name of the task
Yes
string
description
body
Detailed text description of the task
No
string
priority
body
task priority
Yes
LOW, MEDIUM, HIGH, URGENT
status
body
task status
Yes
TODO, IN_PROGRESS, COMPLETED, CANCELED
assignee
body
user responsible for the task
Yes
{"id": ""}
patient
body
task-related patient
No
{"id": ""}
watchers
body
users subscribed to task notifications
No
[{"id": ""}]
comments
body
simple text comments to task
No
[{"text": ""}]
Responses
201
Created
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
livePOINT_OF_CONTACTPossible values: Task created
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
POST /{tenantName}/{instanceName}/tasks HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 776
{
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Example overview
Update tasks status for list of tasks (only one task in example). Method returns a list of updated tasks.
HTTP Request
Method: PATCH
Endpoint: {url}/{tenantName}/{instanceName}/tasks
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a
Parameters
tenantName
path
Name of tenant
Yes
string
instanceName
path
Name of instance
Yes
string
taskIds
body
Task identifiers
Yes
[UUID]
status
body
task status
Yes
TODO, IN_PROGRESS, COMPLETED, CANCELED
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUpdated tasks
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PATCH /{tenantName}/{instanceName}/tasks HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"taskIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"status": "TODO"
}[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}
]Example overview
Get complete information about one task by ID
HTTP Request
Method: GET
Endpoint: {url}/{tenantName}/{instanceName}/tasks/{taskId}
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the task
Task
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/tasks/{taskId} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Example overview
Updated name, dueDate, status, priority fields
HTTP Request
Method: PATCH
Endpoint: {url}/{tenantName}/{instanceName}/tasks/{taskId}
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a
Parameters
tenantName
path
Name of tenant
Yes
string
instanceName
path
Name of instance
Yes
string
taskId
path
Task identifier
Yes
UUID
name
body
Short name of the task
Yes
string
description
body
Detailed text description of the task
No
string
priority
body
task priority
Yes
LOW, MEDIUM, HIGH, URGENT
status
body
task status
Yes
TODO, IN_PROGRESS, COMPLETED, CANCELED
assignee
body
user responsible for the task
Yes
{"id": ""}
patient
body
task-related patient
No
{"id": ""}
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the task
Partial update — all fields optional.
Updated task
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PATCH /{tenantName}/{instanceName}/tasks/{taskId} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Example overview
The method allows you to subscribe the specified user to task update notifications. Method returns task with new watchers.
HTTP Request
Method: PATCH
Endpoint: {url}/{tenantName}/{instanceName}/tasks/{taskId}/watchers
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a/watchers
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the task
Task with watcher added
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PATCH /{tenantName}/{instanceName}/tasks/{taskId}/watchers HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Example overview
The method allows you to unsubscribe the specified user from task. Method returns task without removed watchers.
HTTP Request
Method: DELETE
Endpoint: {url}/{tenantName}/{instanceName}/tasks/{taskId}/watchers/{watcherId}
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a/watchers/20745195-bf3d-46af-9e74-db60c19b7e7b
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the task
watcherId path parameter
Task with watcher removed
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
DELETE /{tenantName}/{instanceName}/tasks/{taskId}/watchers/{watcherId} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Example overview
The method allows you to add a comment to a specific task.
If only "text" is passed in the request body, the Care Portal will display that the comment was added by an API-client.
If a “user” block is passed in the request body, the Care Portal will display that the comment was added by the user whose id is specified in the request
If a “patient” block is passed in the request body, the Care Portal will display that the comment was added by the patient whose id is specified in the request
HTTP Request
Method: PATCH
Endpoint: {url}/{tenantName}/{instanceName}/tasks/{taskId}/comments
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a/comments
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the task
Task with comment added
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PATCH /{tenantName}/{instanceName}/tasks/{taskId}/comments HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 236
{
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Example overview
The method allows you to remove unnecessary comments. Method returns task without removed watchers.
HTTP Request
Method: DELETE
Endpoint: {url}/{tenantName}/{instanceName}/tasks/{taskId}/comments/{commentId}
in our example it would be: https://api.live.welkincloud.io/gh/sb-demo/tasks/28b38060-db66-4183-bcaa-34751308573a/comments/20745195-bf3d-46af-9e74-db60c19b7e7b
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the task
commentId path parameter
Task with comment removed
POINT_OF_CONTACTPossible values: Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
DELETE /{tenantName}/{instanceName}/tasks/{taskId}/comments/{commentId} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"dueDate": "2026-01-01T00:00:00.000Z",
"status": "TODO",
"priority": "LOW",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"assignee": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"watchers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
}
],
"comments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"author": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true
},
"text": "text",
"patient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
}
],
"goalId": "123e4567-e89b-12d3-a456-426614174000",
"templateName": "text",
"createdType": "AUTOMATION",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"sourceType": "ASSESSMENT",
"hiddenPhi": true,
"watchersType": "POINT_OF_CONTACT"
}Last updated
Was this helpful?