Create Care Plan Tasks

Create tasks for the benefits, goals and also at a care plan level.

Resource 

1/connect/careplan/care-plans/${carePlanId}/tasks

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v56.0/connect/careplan/care-plans/{carePlanId}/tasks

Available Version 

56.0

HTTP Methods 

POST

Request Body for POST 

<CarePlanTasksInputRepresentation>

JSON Example 

1{
2  "tasks": {
3    "records": [
4      {
5        "subject": "Update CP Edit GOAL ASSIGNEMENT Task 990",
6        "dueDate": "2023-19-08T00:00:00.000Z",
7        "status": "Not Started",
8        "priority": "Low",
9        "comment": "Update CP Edit GOAL ASSIGNEMENT Task 990",
10        "assignedTo": "005xx000001YkA1AAK",
11        "id": "00Txx000003rMTcEAM"
12      }
13    ]
14  }
15}

Properties 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
carePlanIdStringID of the care plan or case for a given care team.Required56.0
subjectStringSubject of the task assigned to the care plan.Optional56.0
dueDateStringDue date of the task assigned to the care plan.Optional56.0
statusStringStatus of the task assigned to the care plan, such as In Progress or Completed.Optional56.0
priorityStringPriority of the task assigned to the care plan.Optional56.0
commentStringComments made on the care plan task.Optional56.0
assignedToStringID of the user who is assigned the task.Optional56.0
idStringID of the task record assigned to the care plan.Optional56.0

Response Body for POST 

Create Care Plan Task Output