GET api/Village/{village}/Event/{activityId}?withHistory={withHistory}
Get a specific event
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
village |
Village ID |
globally unique identifier |
Required |
activityId |
Event's Activity ID |
globally unique identifier |
Required |
withHistory |
If true, the event history (comments, assignments, etc.) will be included in the result; defaults to true |
boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
ViewEventModelName | Description | Type | Additional information |
---|---|---|---|
Description |
Full description of the event |
string |
None. |
NeedAssignees |
Event requires assignees (i.e. Assignees is toggled on) |
boolean |
None. |
Priority |
Whether or not the event is priority |
boolean |
None. |
StartTime |
Event's start Date and Time |
date |
None. |
EndTime |
Events end Date and Time |
date |
None. |
AllDay |
If true, this is an all day event and the time portion of StartTime/EndTime are not relevant |
boolean |
None. |
Location |
Location of event |
string |
None. |
Address |
Event Location Address |
OptionalAddressModel |
None. |
Reminder |
For Events which are actually ToDo reminders, contains the rest of the ToDo information |
ReminderModel |
None. |
ReminderInterval |
For Events which are events, the #minutes before the start to send a reminder |
integer |
None. |
Recurrence |
For recurring events, the recurrence definition. null, otherwise. |
ViewEventRecurrenceModel |
None. |
TimeZone |
Time Zone for the Event |
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
{ "Description": "sample string 1", "NeedAssignees": true, "Priority": true, "StartTime": "2025-06-03T05:10:07.742+00:00", "EndTime": "2025-06-03T05:10:07.742+00:00", "AllDay": true, "Location": "sample string 7", "Address": { "Address1": "sample string 1", "Address2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "Country": "sample string 6" }, "Reminder": { "Reminder": "2025-06-03T05:10:07.742+00:00", "Completed": "2025-06-03T05:10:07.742+00:00", "CompletedById": "75158756-101a-4d3c-add5-ac16c4157d74", "CompletedBy": "sample string 1" }, "ReminderInterval": 1, "Recurrence": { "StartDate": "2025-06-03T05:10:07.742+00:00", "Exceptions": [ { "Date": "2025-06-03T05:10:07.742+00:00" }, { "Date": "2025-06-03T05:10:07.742+00:00" } ], "EventId": "64c3a41a-08f0-44bd-acbb-1562d65b8771", "EndDate": "2025-06-03T05:10:07.742+00:00", "Count": 3, "Frequency": 0, "Interval": 4, "Weekdays": 1 }, "TimeZone": "sample string 8", "ActivityId": "7f8e8d7b-eefc-41fa-a2c0-3ab7a9ca9c83", "CreatedById": "dc546d70-e70c-4ab5-9e2b-bc4f9f0a91b1", "CreatedBy": "sample string 11", "Created": "2025-06-03T05:10:07.742+00:00", "AssignedTo": [ { "UserId": "2ffa6e64-d8d3-4e9d-803e-83dcbc5b1632", "Name": "sample string 2" }, { "UserId": "2ffa6e64-d8d3-4e9d-803e-83dcbc5b1632", "Name": "sample string 2" } ], "Tags": [ "sample string 1", "sample string 2" ], "Attachments": [ { "Id": "5bd5caac-733d-4334-8290-293aaafc82e7", "Size": 2, "FileName": "sample string 3", "ContentType": "sample string 4", "UploadedBy": "sample string 5" }, { "Id": "5bd5caac-733d-4334-8290-293aaafc82e7", "Size": 2, "FileName": "sample string 3", "ContentType": "sample string 4", "UploadedBy": "sample string 5" } ], "History": [ { "HistoryId": "ed726f9a-555a-424e-81e6-4207cf80c9bd", "ActivityId": "86e64c5e-31ab-46d7-9e0d-628a9151dc2b", "PerformedById": "35f1881f-33af-479c-93ec-25aaa7919203", "PerformedBy": "sample string 4", "AssignedToId": "ace1bbae-afab-47cf-9328-8ac98f9f622d", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T05:10:07.742+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T05:10:07.742+00:00", "UpdatedById": "39ef8aa3-097a-4c7a-a686-67cdc69338c3", "UpdatedBy": "sample string 10" }, { "HistoryId": "ed726f9a-555a-424e-81e6-4207cf80c9bd", "ActivityId": "86e64c5e-31ab-46d7-9e0d-628a9151dc2b", "PerformedById": "35f1881f-33af-479c-93ec-25aaa7919203", "PerformedBy": "sample string 4", "AssignedToId": "ace1bbae-afab-47cf-9328-8ac98f9f622d", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T05:10:07.742+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T05:10:07.742+00:00", "UpdatedById": "39ef8aa3-097a-4c7a-a686-67cdc69338c3", "UpdatedBy": "sample string 10" } ], "CommentCount": 2, "VillageId": "0a095129-6dc7-453f-95b4-3534fe4ee311", "LastUpdated": "2025-06-03T05:10:07.742+00:00", "Cancelled": true, "Title": "sample string 16" }
application/xml, text/xml
<ViewEventModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Title>sample string 16</Title> <ActivityId>7f8e8d7b-eefc-41fa-a2c0-3ab7a9ca9c83</ActivityId> <AssignedTo> <ActivityAssignmentModel> <Name>sample string 2</Name> <UserId>2ffa6e64-d8d3-4e9d-803e-83dcbc5b1632</UserId> </ActivityAssignmentModel> <ActivityAssignmentModel> <Name>sample string 2</Name> <UserId>2ffa6e64-d8d3-4e9d-803e-83dcbc5b1632</UserId> </ActivityAssignmentModel> </AssignedTo> <Attachments> <AttachmentModel> <ContentType>sample string 4</ContentType> <FileName>sample string 3</FileName> <Id>5bd5caac-733d-4334-8290-293aaafc82e7</Id> <Size>2</Size> <UploadedBy>sample string 5</UploadedBy> </AttachmentModel> <AttachmentModel> <ContentType>sample string 4</ContentType> <FileName>sample string 3</FileName> <Id>5bd5caac-733d-4334-8290-293aaafc82e7</Id> <Size>2</Size> <UploadedBy>sample string 5</UploadedBy> </AttachmentModel> </Attachments> <Cancelled>true</Cancelled> <Created>2025-06-03T05:10:07.742041+00:00</Created> <CreatedBy>sample string 11</CreatedBy> <CreatedById>dc546d70-e70c-4ab5-9e2b-bc4f9f0a91b1</CreatedById> <History> <ActivityHistoryModel> <ActivityId>86e64c5e-31ab-46d7-9e0d-628a9151dc2b</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>ace1bbae-afab-47cf-9328-8ac98f9f622d</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T05:10:07.742041+00:00</DateTime> <HistoryId>ed726f9a-555a-424e-81e6-4207cf80c9bd</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>35f1881f-33af-479c-93ec-25aaa7919203</PerformedById> <Updated>2025-06-03T05:10:07.742041+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>39ef8aa3-097a-4c7a-a686-67cdc69338c3</UpdatedById> </ActivityHistoryModel> <ActivityHistoryModel> <ActivityId>86e64c5e-31ab-46d7-9e0d-628a9151dc2b</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>ace1bbae-afab-47cf-9328-8ac98f9f622d</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T05:10:07.742041+00:00</DateTime> <HistoryId>ed726f9a-555a-424e-81e6-4207cf80c9bd</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>35f1881f-33af-479c-93ec-25aaa7919203</PerformedById> <Updated>2025-06-03T05:10:07.742041+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>39ef8aa3-097a-4c7a-a686-67cdc69338c3</UpdatedById> </ActivityHistoryModel> </History> <LastUpdated>2025-06-03T05:10:07.742041+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>0a095129-6dc7-453f-95b4-3534fe4ee311</VillageId> <Address xmlns:d2p1="http://schemas.datacontract.org/2004/07/CaringVillage.Utilities"> <d2p1:Address1>sample string 1</d2p1:Address1> <d2p1:Address2>sample string 2</d2p1:Address2> <d2p1:City>sample string 3</d2p1:City> <d2p1:Country>sample string 6</d2p1:Country> <d2p1:State>sample string 4</d2p1:State> <d2p1:Zip>sample string 5</d2p1:Zip> </Address> <AllDay>true</AllDay> <Description>sample string 1</Description> <EndTime>2025-06-03T05:10:07.742041+00:00</EndTime> <Location>sample string 7</Location> <NeedAssignees>true</NeedAssignees> <Priority>true</Priority> <Recurrence> <Count>3</Count> <EndDate>2025-06-03T05:10:07.742041+00:00</EndDate> <EventId>64c3a41a-08f0-44bd-acbb-1562d65b8771</EventId> <Frequency>None</Frequency> <Interval>4</Interval> <Weekdays>Sunday</Weekdays> <Exceptions> <EventRecurrenceExceptionsModel> <Date>2025-06-03T05:10:07.742041+00:00</Date> </EventRecurrenceExceptionsModel> <EventRecurrenceExceptionsModel> <Date>2025-06-03T05:10:07.742041+00:00</Date> </EventRecurrenceExceptionsModel> </Exceptions> <StartDate>2025-06-03T05:10:07.742041+00:00</StartDate> </Recurrence> <Reminder> <Completed>2025-06-03T05:10:07.742041+00:00</Completed> <CompletedBy>sample string 1</CompletedBy> <CompletedById>75158756-101a-4d3c-add5-ac16c4157d74</CompletedById> <Reminder>2025-06-03T05:10:07.742041+00:00</Reminder> </Reminder> <ReminderInterval>1</ReminderInterval> <StartTime>2025-06-03T05:10:07.742041+00:00</StartTime> <TimeZone>sample string 8</TimeZone> </ViewEventModel>