PUT v1/goals/{goalid}/tasks/{id}

Modifies task information

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
goalID

Goal's ID

string

Required.

id

Task's ID

string

Required.

Body Parameters

Information about the updated task

UpdateGoalTaskModel
NameDescriptionTypeAdditional 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:42:57.0456979+00:00"
}

application/xml, text/xml

Sample:
<UpdateGoalTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1">
  <DueDate>2025-05-24T10:42:57.0456979+00:00</DueDate>
  <Text>sample string 1</Text>
</UpdateGoalTaskModel>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "ID": "sample string 1",
  "Text": "sample string 2",
  "DueDate": "2025-05-24T10:42:57.0456979+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:42:57.0456979+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>