PUT api/Village/{village}/Event/{activityId}
Edit an existing 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 |
Body Parameters
EditEventModelName | Description | Type | Additional information |
---|---|---|---|
Description |
Full description of the event |
string |
Data type: MultilineText String length: inclusive between 0 and 4000 |
Priority |
Whether or not the event is priority |
boolean |
None. |
NeedAssignees |
Event requires assignees (i.e. Assignees is toggled on) |
boolean |
None. |
StartTime |
Event's start Date and Time |
date |
Required |
EndTime |
Events end Date and Time |
date |
Required |
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 |
String length: inclusive between 0 and 255 |
Address |
Event Location Address |
OptionalAddressModel |
None. |
ReminderInterval |
Event reminder interval |
integer |
None. |
Recurrence |
For recurring events, the recurrence definition. null, otherwise. |
EditEventRecurrenceModel |
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
{ "Description": "sample string 1", "Priority": true, "NeedAssignees": true, "StartTime": "2025-06-03T04:43:50.976+00:00", "EndTime": "2025-06-03T04:43:50.976+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" }, "ReminderInterval": 1, "Recurrence": { "EventId": "a82f9dfb-cc33-4a90-b837-19cc87d22b7b", "EndDate": "2025-06-03T04:43:50.976+00:00", "Count": 2, "Frequency": 0, "Interval": 3, "Weekdays": 1 }, "Comments": [ "sample string 1", "sample string 2" ], "AssignedTo": [ "4a660dac-4cce-4ee2-89ba-0d3b02758607", "b2a561da-ef83-430a-a9a5-2a1d4a860c56" ], "Tags": [ "sample string 1", "sample string 2" ], "TimeZone": "sample string 8", "Title": "sample string 9" }
application/xml, text/xml
<EditEventModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Title>sample string 9</Title> <AssignedTo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>4a660dac-4cce-4ee2-89ba-0d3b02758607</d2p1:guid> <d2p1:guid>b2a561da-ef83-430a-a9a5-2a1d4a860c56</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 8</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> <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-03T04:43:50.9769704+00:00</EndTime> <Location>sample string 7</Location> <NeedAssignees>true</NeedAssignees> <Priority>true</Priority> <Recurrence> <Count>2</Count> <EndDate>2025-06-03T04:43:50.9769704+00:00</EndDate> <EventId>a82f9dfb-cc33-4a90-b837-19cc87d22b7b</EventId> <Frequency>None</Frequency> <Interval>3</Interval> <Weekdays>Sunday</Weekdays> </Recurrence> <ReminderInterval>1</ReminderInterval> <StartTime>2025-06-03T04:43:50.9769704+00:00</StartTime> </EditEventModel>
multipart/form-data
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-03T04:43:51.008+00:00", "EndTime": "2025-06-03T04:43:51.008+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-03T04:43:51.008+00:00", "Completed": "2025-06-03T04:43:51.008+00:00", "CompletedById": "7760836a-5af9-4f62-b7db-853fae26ae23", "CompletedBy": "sample string 1" }, "ReminderInterval": 1, "Recurrence": { "StartDate": "2025-06-03T04:43:51.008+00:00", "Exceptions": [ { "Date": "2025-06-03T04:43:51.008+00:00" }, { "Date": "2025-06-03T04:43:51.008+00:00" } ], "EventId": "4c56df21-b19e-4087-8930-0768ac9a6ec1", "EndDate": "2025-06-03T04:43:51.008+00:00", "Count": 3, "Frequency": 0, "Interval": 4, "Weekdays": 1 }, "TimeZone": "sample string 8", "ActivityId": "04250458-caa0-4463-823e-1f97b21d6367", "CreatedById": "9bed523a-3f63-48d7-9bb5-3ae77e85dd68", "CreatedBy": "sample string 11", "Created": "2025-06-03T04:43:51.008+00:00", "AssignedTo": [ { "UserId": "a8a47d4a-babe-44f5-ae0a-00af1dc429b1", "Name": "sample string 2" }, { "UserId": "a8a47d4a-babe-44f5-ae0a-00af1dc429b1", "Name": "sample string 2" } ], "Tags": [ "sample string 1", "sample string 2" ], "Attachments": [ { "Id": "2425c8e4-ca74-47be-8feb-0c325b2450c5", "Size": 2, "FileName": "sample string 3", "ContentType": "sample string 4", "UploadedBy": "sample string 5" }, { "Id": "2425c8e4-ca74-47be-8feb-0c325b2450c5", "Size": 2, "FileName": "sample string 3", "ContentType": "sample string 4", "UploadedBy": "sample string 5" } ], "History": [ { "HistoryId": "5f8c4020-f3b4-4545-be94-d4e5ad86874e", "ActivityId": "2e252ad8-e07b-425c-844a-fe097858c409", "PerformedById": "4e1af1f2-ced9-4a50-b419-f4618b750716", "PerformedBy": "sample string 4", "AssignedToId": "c091aea3-0fde-4cac-b93d-487e58153fc6", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:43:51.008+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:43:51.008+00:00", "UpdatedById": "17c2b846-7630-496a-9040-1b77e1519189", "UpdatedBy": "sample string 10" }, { "HistoryId": "5f8c4020-f3b4-4545-be94-d4e5ad86874e", "ActivityId": "2e252ad8-e07b-425c-844a-fe097858c409", "PerformedById": "4e1af1f2-ced9-4a50-b419-f4618b750716", "PerformedBy": "sample string 4", "AssignedToId": "c091aea3-0fde-4cac-b93d-487e58153fc6", "AssignedTo": "sample string 5", "Action": "Comment", "DateTime": "2025-06-03T04:43:51.008+00:00", "Comments": "sample string 7", "Updated": "2025-06-03T04:43:51.008+00:00", "UpdatedById": "17c2b846-7630-496a-9040-1b77e1519189", "UpdatedBy": "sample string 10" } ], "CommentCount": 2, "VillageId": "18020ea5-d0a4-443f-a6c4-0795bdc22306", "LastUpdated": "2025-06-03T04:43:51.008+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>04250458-caa0-4463-823e-1f97b21d6367</ActivityId> <AssignedTo> <ActivityAssignmentModel> <Name>sample string 2</Name> <UserId>a8a47d4a-babe-44f5-ae0a-00af1dc429b1</UserId> </ActivityAssignmentModel> <ActivityAssignmentModel> <Name>sample string 2</Name> <UserId>a8a47d4a-babe-44f5-ae0a-00af1dc429b1</UserId> </ActivityAssignmentModel> </AssignedTo> <Attachments> <AttachmentModel> <ContentType>sample string 4</ContentType> <FileName>sample string 3</FileName> <Id>2425c8e4-ca74-47be-8feb-0c325b2450c5</Id> <Size>2</Size> <UploadedBy>sample string 5</UploadedBy> </AttachmentModel> <AttachmentModel> <ContentType>sample string 4</ContentType> <FileName>sample string 3</FileName> <Id>2425c8e4-ca74-47be-8feb-0c325b2450c5</Id> <Size>2</Size> <UploadedBy>sample string 5</UploadedBy> </AttachmentModel> </Attachments> <Cancelled>true</Cancelled> <Created>2025-06-03T04:43:51.0082325+00:00</Created> <CreatedBy>sample string 11</CreatedBy> <CreatedById>9bed523a-3f63-48d7-9bb5-3ae77e85dd68</CreatedById> <History> <ActivityHistoryModel> <ActivityId>2e252ad8-e07b-425c-844a-fe097858c409</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>c091aea3-0fde-4cac-b93d-487e58153fc6</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:43:51.0082325+00:00</DateTime> <HistoryId>5f8c4020-f3b4-4545-be94-d4e5ad86874e</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>4e1af1f2-ced9-4a50-b419-f4618b750716</PerformedById> <Updated>2025-06-03T04:43:51.0082325+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>17c2b846-7630-496a-9040-1b77e1519189</UpdatedById> </ActivityHistoryModel> <ActivityHistoryModel> <ActivityId>2e252ad8-e07b-425c-844a-fe097858c409</ActivityId> <AssignedTo>sample string 5</AssignedTo> <AssignedToId>c091aea3-0fde-4cac-b93d-487e58153fc6</AssignedToId> <Comments>sample string 7</Comments> <DateTime>2025-06-03T04:43:51.0082325+00:00</DateTime> <HistoryId>5f8c4020-f3b4-4545-be94-d4e5ad86874e</HistoryId> <PerformedBy>sample string 4</PerformedBy> <PerformedById>4e1af1f2-ced9-4a50-b419-f4618b750716</PerformedById> <Updated>2025-06-03T04:43:51.0082325+00:00</Updated> <UpdatedBy>sample string 10</UpdatedBy> <UpdatedById>17c2b846-7630-496a-9040-1b77e1519189</UpdatedById> </ActivityHistoryModel> </History> <LastUpdated>2025-06-03T04:43:51.0082325+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>18020ea5-d0a4-443f-a6c4-0795bdc22306</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-03T04:43:51.0082325+00:00</EndTime> <Location>sample string 7</Location> <NeedAssignees>true</NeedAssignees> <Priority>true</Priority> <Recurrence> <Count>3</Count> <EndDate>2025-06-03T04:43:51.0082325+00:00</EndDate> <EventId>4c56df21-b19e-4087-8930-0768ac9a6ec1</EventId> <Frequency>None</Frequency> <Interval>4</Interval> <Weekdays>Sunday</Weekdays> <Exceptions> <EventRecurrenceExceptionsModel> <Date>2025-06-03T04:43:51.0082325+00:00</Date> </EventRecurrenceExceptionsModel> <EventRecurrenceExceptionsModel> <Date>2025-06-03T04:43:51.0082325+00:00</Date> </EventRecurrenceExceptionsModel> </Exceptions> <StartDate>2025-06-03T04:43:51.0082325+00:00</StartDate> </Recurrence> <Reminder> <Completed>2025-06-03T04:43:51.0082325+00:00</Completed> <CompletedBy>sample string 1</CompletedBy> <CompletedById>7760836a-5af9-4f62-b7db-853fae26ae23</CompletedById> <Reminder>2025-06-03T04:43:51.0082325+00:00</Reminder> </Reminder> <ReminderInterval>1</ReminderInterval> <StartTime>2025-06-03T04:43:51.0082325+00:00</StartTime> <TimeZone>sample string 8</TimeZone> </ViewEventModel>