PUT v1/goals/{goalid}/tasks/{id}/complete
Marks the specified task as completed
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
goalID |
Goal's ID |
string |
Required. |
id |
Task's ID |
string |
Required. |
Body Parameters
None.
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-24T09:51:50.9343025+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-24T09:51:50.9343025+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>