POST api/Village/{village}/Task/{activityId}/Assign
Backwards Compatability Only - 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:
[ "bc216bd2-c821-4668-b70d-1f025699f2c1", "ccdcb266-598f-4a46-aadb-184e972a8acf" ]
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>bc216bd2-c821-4668-b70d-1f025699f2c1</guid> <guid>ccdcb266-598f-4a46-aadb-184e972a8acf</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": "038d78fa-8120-4d19-b633-71f32ec056f8", "ActivityId": "5a0f50c9-b7bd-46c8-978d-43b8c39272fb", "PerformedById": "dec97989-b52a-4360-b276-81aaaa196d86", "PerformedBy": "sample string 4", "AssignedToId": "05828bd2-ff1d-4f51-b744-dd498e84e915", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:20:49.622+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:20:49.622+00:00", "UpdatedById": "178181f3-8bf3-4875-b23c-1518c2d7b53f", "UpdatedBy": "sample string 10" }, { "HistoryId": "038d78fa-8120-4d19-b633-71f32ec056f8", "ActivityId": "5a0f50c9-b7bd-46c8-978d-43b8c39272fb", "PerformedById": "dec97989-b52a-4360-b276-81aaaa196d86", "PerformedBy": "sample string 4", "AssignedToId": "05828bd2-ff1d-4f51-b744-dd498e84e915", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:20:49.622+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:20:49.622+00:00", "UpdatedById": "178181f3-8bf3-4875-b23c-1518c2d7b53f", "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>5a0f50c9-b7bd-46c8-978d-43b8c39272fb</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>05828bd2-ff1d-4f51-b744-dd498e84e915</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:20:49.6227725+00:00</DateTime> <HistoryId>038d78fa-8120-4d19-b633-71f32ec056f8</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>dec97989-b52a-4360-b276-81aaaa196d86</PerformedById> <Updated>2025-06-03T04:20:49.6227725+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>178181f3-8bf3-4875-b23c-1518c2d7b53f</UpdatedById> </ActivityHistoryModel> <ActivityHistoryModel> <ActivityId>5a0f50c9-b7bd-46c8-978d-43b8c39272fb</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>05828bd2-ff1d-4f51-b744-dd498e84e915</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:20:49.6227725+00:00</DateTime> <HistoryId>038d78fa-8120-4d19-b633-71f32ec056f8</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>dec97989-b52a-4360-b276-81aaaa196d86</PerformedById> <Updated>2025-06-03T04:20:49.6227725+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>178181f3-8bf3-4875-b23c-1518c2d7b53f</UpdatedById> </ActivityHistoryModel> </ArrayOfActivityHistoryModel>