PUT api/Village/{village}/Task/{activityId}
Edit an existing task
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
EditTaskModelName | Description | Type | Additional information |
---|---|---|---|
Reminder |
If specified, the date and time by which the task is due |
date |
None. |
Completed |
Whether or not the task is completed |
boolean |
None. |
Comments |
List of comments to add to the activity |
Collection of string |
None. |
AssignedTo |
List of User IDs the activity should be assigned to |
Collection of globally unique identifier |
None. |
Tags |
List of tags for the activity |
Collection of string |
None. |
TimeZone |
Time Zone for the Event/Reminder |
string |
None. |
Title |
Short title for the activity |
string |
Required String length: inclusive between 0 and 255 |
Request Formats
application/json, text/json
{ "Reminder": "2025-06-03T04:28:32.692+00:00", "Completed": true, "Comments": [ "sample string 1", "sample string 2" ], "AssignedTo": [ "3ec8ff4f-db4e-4cb7-b5e5-05025a6557b8", "1fd47f26-ff2c-443b-ad16-fd6c9c79423f" ], "Tags": [ "sample string 1", "sample string 2" ], "TimeZone": "sample string 2", "Title": "sample string 3" }
application/xml, text/xml
<EditTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Title>sample string 3</Title> <AssignedTo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>3ec8ff4f-db4e-4cb7-b5e5-05025a6557b8</d2p1:guid> <d2p1:guid>1fd47f26-ff2c-443b-ad16-fd6c9c79423f</d2p1:guid> </AssignedTo> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Tags> <TimeZone>sample string 2</TimeZone> <Comments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Comments> <Completed>true</Completed> <Reminder>2025-06-03T04:28:32.6922493+00:00</Reminder> </EditTaskModel>
multipart/form-data
Response Information
Resource Description
ViewTaskModelName | Description | Type | Additional information |
---|---|---|---|
Location |
Obsolete |
string |
None. |
DueDate |
Obsolete |
date |
None. |
Description |
Obsolete |
string |
None. |
Priority |
Obsolete |
boolean |
None. |
Reminder |
If specified, the date and time by which the task is due |
date |
None. |
TimeZone |
Reminder time zone |
string |
None. |
Completed |
If set, the Date/Time at which the task was marked as completed |
date |
None. |
CompletedById |
For completed tasks, the ID of the user who completed the task |
globally unique identifier |
None. |
CompletedBy |
For completed tasks, the name of the user who completed the task |
string |
None. |
ActivityId |
Activity's unique ID |
globally unique identifier |
None. |
CreatedById |
ID of the user who created the activity |
globally unique identifier |
None. |
CreatedBy |
Name of the user who created the activity |
string |
None. |
Created |
Date/Time when the activity was created |
date |
None. |
AssignedTo |
List of users the activity is assigned to |
Collection of ActivityAssignmentModel |
None. |
Tags |
List of tags for the activity |
Collection of string |
None. |
Attachments |
File attachments |
Collection of AttachmentModel |
None. |
History |
Activity activity history |
Collection of ActivityHistoryModel |
None. |
CommentCount |
Number of entries in History which are comments |
integer |
None. |
VillageId |
The ID of the village in which this activity belongs |
globally unique identifier |
None. |
LastUpdated |
The date/time this activity was last updated; useful for handling push notifications |
date |
None. |
Cancelled |
True for activities that have been cancelled. Default value is false |
boolean |
None. |
Title |
Short title for the activity |
string |
Required String length: inclusive between 0 and 255 |
Response Formats
application/json, text/json
{ "Location": "sample string 1", "DueDate": "2025-06-03T04:28:32.723+00:00", "Description": "sample string 2", "Priority": true, "Reminder": "2025-06-03T04:28:32.723+00:00", "TimeZone": "sample string 4", "Completed": "2025-06-03T04:28:32.723+00:00", "CompletedById": "1babcc5f-258f-4ab1-bbeb-c05e0aa5f86b", "CompletedBy": "sample string 5", "ActivityId": "1568dfe5-5aa5-449f-85fc-1a97c3d9c540", "CreatedById": "7202398c-ab62-4470-a2bd-16c34b59844d", "CreatedBy": "sample string 8", "Created": "2025-06-03T04:28:32.723+00:00", "AssignedTo": [ { "UserId": "ec5983f5-d843-48ca-8557-e98446d0f3a1", "Name": "sample string 2" }, { "UserId": "ec5983f5-d843-48ca-8557-e98446d0f3a1", "Name": "sample string 2" } ], "Tags": [ "sample string 1", "sample string 2" ], "Attachments": [ { "Id": "94063708-1f9b-4635-a966-a75449330aee", "Size": 2, "FileName": "sample string 3", "ContentType": "sample string 4", "UploadedBy": "sample string 5" }, { "Id": "94063708-1f9b-4635-a966-a75449330aee", "Size": 2, "FileName": "sample string 3", "ContentType": "sample string 4", "UploadedBy": "sample string 5" } ], "History": [ { "HistoryId": "0147bf4f-6847-4cca-8799-80982ed7d3fd", "ActivityId": "98a98b23-62f1-45ea-9f8c-f231d64de19b", "PerformedById": "54decf31-94a4-4158-a9fe-b23974187784", "PerformedBy": "sample string 4", "AssignedToId": "34047e9f-88d4-4365-953e-acfb6d96fe1e", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:28:32.723+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:28:32.723+00:00", "UpdatedById": "c55a20a0-5a71-4f9b-bb24-6438a944352d", "UpdatedBy": "sample string 10" }, { "HistoryId": "0147bf4f-6847-4cca-8799-80982ed7d3fd", "ActivityId": "98a98b23-62f1-45ea-9f8c-f231d64de19b", "PerformedById": "54decf31-94a4-4158-a9fe-b23974187784", "PerformedBy": "sample string 4", "AssignedToId": "34047e9f-88d4-4365-953e-acfb6d96fe1e", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:28:32.723+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:28:32.723+00:00", "UpdatedById": "c55a20a0-5a71-4f9b-bb24-6438a944352d", "UpdatedBy": "sample string 10" } ], "CommentCount": 2, "VillageId": "37c71129-e844-4337-8b92-0fea3e5fa8e3", "LastUpdated": "2025-06-03T04:28:32.723+00:00", "Cancelled": true, "Title": "sample string 13" }
application/xml, text/xml
<ViewTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Title>sample string 13</Title> <ActivityId>1568dfe5-5aa5-449f-85fc-1a97c3d9c540</ActivityId> <AssignedTo> <ActivityAssignmentModel> <Name>sample string 2</Name> <UserId>ec5983f5-d843-48ca-8557-e98446d0f3a1</UserId> </ActivityAssignmentModel> <ActivityAssignmentModel> <Name>sample string 2</Name> <UserId>ec5983f5-d843-48ca-8557-e98446d0f3a1</UserId> </ActivityAssignmentModel> </AssignedTo> <Attachments> <AttachmentModel> <ContentType>sample string 4</ContentType> <FileName>sample string 3</FileName> <Id>94063708-1f9b-4635-a966-a75449330aee</Id> <Size>2</Size> <UploadedBy>sample string 5</UploadedBy> </AttachmentModel> <AttachmentModel> <ContentType>sample string 4</ContentType> <FileName>sample string 3</FileName> <Id>94063708-1f9b-4635-a966-a75449330aee</Id> <Size>2</Size> <UploadedBy>sample string 5</UploadedBy> </AttachmentModel> </Attachments> <Cancelled>true</Cancelled> <Created>2025-06-03T04:28:32.7234463+00:00</Created> <CreatedBy>sample string 8</CreatedBy> <CreatedById>7202398c-ab62-4470-a2bd-16c34b59844d</CreatedById> <History> <ActivityHistoryModel> <ActivityId>98a98b23-62f1-45ea-9f8c-f231d64de19b</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>34047e9f-88d4-4365-953e-acfb6d96fe1e</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:28:32.7234463+00:00</DateTime> <HistoryId>0147bf4f-6847-4cca-8799-80982ed7d3fd</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>54decf31-94a4-4158-a9fe-b23974187784</PerformedById> <Updated>2025-06-03T04:28:32.7234463+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>c55a20a0-5a71-4f9b-bb24-6438a944352d</UpdatedById> </ActivityHistoryModel> <ActivityHistoryModel> <ActivityId>98a98b23-62f1-45ea-9f8c-f231d64de19b</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>34047e9f-88d4-4365-953e-acfb6d96fe1e</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:28:32.7234463+00:00</DateTime> <HistoryId>0147bf4f-6847-4cca-8799-80982ed7d3fd</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>54decf31-94a4-4158-a9fe-b23974187784</PerformedById> <Updated>2025-06-03T04:28:32.7234463+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>c55a20a0-5a71-4f9b-bb24-6438a944352d</UpdatedById> </ActivityHistoryModel> </History> <LastUpdated>2025-06-03T04:28:32.7234463+00:00</LastUpdated> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Tags> <VillageId>37c71129-e844-4337-8b92-0fea3e5fa8e3</VillageId> <Completed>2025-06-03T04:28:32.7234463+00:00</Completed> <CompletedBy>sample string 5</CompletedBy> <CompletedById>1babcc5f-258f-4ab1-bbeb-c05e0aa5f86b</CompletedById> <Description>sample string 2</Description> <DueDate>2025-06-03T04:28:32.7234463+00:00</DueDate> <Location>sample string 1</Location> <Priority>true</Priority> <Reminder>2025-06-03T04:28:32.7234463+00:00</Reminder> <TimeZone>sample string 4</TimeZone> </ViewTaskModel>