POST v1/goals/{goalid}/tasks
Creates a new task for the specified goal
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
goalID |
Goal's ID |
string |
Required. |
Body Parameters
Information about the new task
NewGoalTaskModelName | Description | Type | Additional Information |
---|---|---|---|
Text |
The text of the task. It describes the action that needs to be taken. |
string |
Required. |
DueDate |
The due date of the task. |
date |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "Text": "sample string 1", "DueDate": "2025-05-24T10:12:43.291038+00:00" }
application/xml, text/xml
Sample:
<NewGoalTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1"> <DueDate>2025-05-24T10:12:43.291038+00:00</DueDate> <Text>sample string 1</Text> </NewGoalTaskModel>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
{ "ID": "sample string 1", "Text": "sample string 2", "DueDate": "2025-05-24T10:12:43.291038+00:00", "IsCompleted": true, "Goal": { "ID": "sample string 1", "Name": "sample string 2" } }
application/xml, text/xml
Sample:
<GoalTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1"> <DueDate>2025-05-24T10:12:43.291038+00:00</DueDate> <Goal> <ID>sample string 1</ID> <Name>sample string 2</Name> </Goal> <ID>sample string 1</ID> <IsCompleted>true</IsCompleted> <Text>sample string 2</Text> </GoalTaskModel>