PUT api/Village/{village}/Task/{activityId}/Complete
Mark a task as completed
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
village |
Village ID |
globally unique identifier |
Required |
activityId |
Task's Activity ID |
globally unique identifier |
Required |
Body Parameters
Whether or not the task should be completed
PrimitiveOfBooleanName | Description | Type | Additional information |
---|---|---|---|
value | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "value": true }
application/xml, text/xml
Sample:
<PrimitiveOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.API.Models"> <value>true</value> </PrimitiveOfboolean>
multipart/form-data
Sample:
Response Information
Resource Description
ActivityHistoryModelName | Description | Type | Additional information |
---|---|---|---|
HistoryId |
ID of the activity history entry |
globally unique identifier |
None. |
ActivityId |
ID of the activity in which this history belongs |
globally unique identifier |
None. |
PerformedById |
ID of the user who performed the activity |
globally unique identifier |
None. |
PerformedBy |
Name of the user who performed the activity |
string |
None. |
AssignedToId |
ID of the user to whom the activity is assigned |
globally unique identifier |
None. |
AssignedTo |
Name of the user to whom the activity is assigned |
string |
None. |
Action |
Action performed |
string |
None. |
DateTime |
Date/Time the action was performed |
date |
None. |
Comments |
Action comments |
string |
None. |
Updated |
When the record was last updated |
date |
None. |
UpdatedById |
ID of the user who updated the record |
globally unique identifier |
None. |
UpdatedBy |
Name of the user who updated the record |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "HistoryId": "be737622-2af8-45c7-a255-6d9c8870487b", "ActivityId": "89fe8c69-3251-413e-9a5e-a7f6794f8ef5", "PerformedById": "ccb94cf6-f69e-4f84-9b5e-d8d8dca93467", "PerformedBy": "sample string 4", "AssignedToId": "5ae8560c-c593-4f9e-9e2f-dbd8242c8de0", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:34:49.292+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:34:49.292+00:00", "UpdatedById": "fec9f62b-b614-4eae-b92b-c4c90beb151f", "UpdatedBy": "sample string 10" }
application/xml, text/xml
Sample:
<ActivityHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <ActivityId>89fe8c69-3251-413e-9a5e-a7f6794f8ef5</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>5ae8560c-c593-4f9e-9e2f-dbd8242c8de0</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:34:49.2924598+00:00</DateTime> <HistoryId>be737622-2af8-45c7-a255-6d9c8870487b</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>ccb94cf6-f69e-4f84-9b5e-d8d8dca93467</PerformedById> <Updated>2025-06-03T04:34:49.2924598+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>fec9f62b-b614-4eae-b92b-c4c90beb151f</UpdatedById> </ActivityHistoryModel>