PUT api/Village/{village}/Task/{activityId}/Assign
Adds the specified users to the existing task assignment
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
User IDs to assign the task to
Collection of globally unique identifierRequest Formats
application/json, text/json
Sample:
[ "b0c9cf8b-e95d-48bd-b51f-a429f2825724", "aab9bb70-5868-4d62-bacc-1400ee876258" ]
application/xml, text/xml
Sample:
<ArrayOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <guid>b0c9cf8b-e95d-48bd-b51f-a429f2825724</guid> <guid>aab9bb70-5868-4d62-bacc-1400ee876258</guid> </ArrayOfguid>
multipart/form-data
Sample:
Response Information
Resource Description
Collection of 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": "6904d7f1-9fb1-4fa0-9b46-5fb264d28eca", "ActivityId": "f6109db2-69e5-4030-a808-93dd57ec4510", "PerformedById": "7af0bcaa-cfa6-4989-998c-9ae5583b7744", "PerformedBy": "sample string 4", "AssignedToId": "455cc162-a2e3-46e2-a5ce-33d86306d592", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:22:15.593+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:22:15.593+00:00", "UpdatedById": "7326ccdc-8f7d-4ca2-92f3-5fa8e5aa5b2d", "UpdatedBy": "sample string 10" }, { "HistoryId": "6904d7f1-9fb1-4fa0-9b46-5fb264d28eca", "ActivityId": "f6109db2-69e5-4030-a808-93dd57ec4510", "PerformedById": "7af0bcaa-cfa6-4989-998c-9ae5583b7744", "PerformedBy": "sample string 4", "AssignedToId": "455cc162-a2e3-46e2-a5ce-33d86306d592", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:22:15.593+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:22:15.593+00:00", "UpdatedById": "7326ccdc-8f7d-4ca2-92f3-5fa8e5aa5b2d", "UpdatedBy": "sample string 10" } ]
application/xml, text/xml
Sample:
<ArrayOfActivityHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <ActivityHistoryModel> <ActivityId>f6109db2-69e5-4030-a808-93dd57ec4510</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>455cc162-a2e3-46e2-a5ce-33d86306d592</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:22:15.5935998+00:00</DateTime> <HistoryId>6904d7f1-9fb1-4fa0-9b46-5fb264d28eca</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>7af0bcaa-cfa6-4989-998c-9ae5583b7744</PerformedById> <Updated>2025-06-03T04:22:15.5935998+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>7326ccdc-8f7d-4ca2-92f3-5fa8e5aa5b2d</UpdatedById> </ActivityHistoryModel> <ActivityHistoryModel> <ActivityId>f6109db2-69e5-4030-a808-93dd57ec4510</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>455cc162-a2e3-46e2-a5ce-33d86306d592</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:22:15.5935998+00:00</DateTime> <HistoryId>6904d7f1-9fb1-4fa0-9b46-5fb264d28eca</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>7af0bcaa-cfa6-4989-998c-9ae5583b7744</PerformedById> <Updated>2025-06-03T04:22:15.5935998+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>7326ccdc-8f7d-4ca2-92f3-5fa8e5aa5b2d</UpdatedById> </ActivityHistoryModel> </ArrayOfActivityHistoryModel>