PUT api/Village/{village}
Edit a village
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
village |
Village ID |
globally unique identifier |
Required |
Body Parameters
Village data model
VillageModelName | Description | Type | Additional information |
---|---|---|---|
FirstName |
First name of the person for whom the village is being created |
string |
Required String length: inclusive between 0 and 120 |
LastName |
Last name of the person for whom the village is being created |
string |
Required String length: inclusive between 0 and 120 |
Name |
Name of the Village (FirstName + LastName) |
string |
None. |
DOB |
Date of Birth of the person being taken care of |
date |
Data type: Date |
Address |
Primary address of the person being taken care of |
OptionalAddressModel |
None. |
TimeZone |
Time Zone of the Village (Care Recipient) |
string |
None. |
Request Formats
application/json, text/json
{ "FirstName": "sample", "LastName": "string 3", "Name": "sample string 3", "DOB": "2025-06-03", "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" }, "TimeZone": "sample string 4" }
application/xml, text/xml
<VillageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <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> <DOB>2025-06-03T04:32:45.3502551+00:00</DOB> <FirstName>sample</FirstName> <LastName>string 3</LastName> <Name>sample string 3</Name> <TimeZone>sample string 4</TimeZone> </VillageModel>
multipart/form-data
Response Information
Resource Description
VillageViewModelName | Description | Type | Additional information |
---|---|---|---|
Id |
The unique ID of this Village:Villager mapping (For invitations, this is the Invitation ID) |
globally unique identifier |
None. |
VillageId |
Village's Unique ID |
globally unique identifier |
None. |
VillagerId |
Villager's Unique ID (For invitations, this will always be Guid.Empty) |
globally unique identifier |
None. |
Members |
Number of members in the village |
integer |
None. |
Role |
User's role in the village |
UserVillageRole |
None. |
RoleName |
User's role in the village, long form |
string |
None. |
Features |
The features which are enabled for the village |
VillageFeatures |
None. |
OwnerId |
Village Owner's ID |
globally unique identifier |
None. |
IsDemoVillage |
If true, the village is a demo village and can be reset |
boolean |
None. |
BusinessId |
For business villages, the ID of the business |
globally unique identifier |
None. |
BusinessName |
For Business villages, the name of the business |
string |
None. |
BusinessRole |
For business villages, the role of the user in the business |
BusinessUserRole |
None. |
CandidateId |
If exists, is the ID of the user asked to be the new village owner |
globally unique identifier |
None. |
TransferRequest |
The associated trasnfer request, if any |
TransferRequestModel |
None. |
TotalFileSize |
Total size of all documents/attachments in the village |
integer |
None. |
Subscription |
Village subscription details (from User subscription) |
VillageSubscriptionModel |
None. |
Created |
Date/Time the village was created |
date |
None. |
Updated |
Date/Time the primary village record was last updated |
date |
None. |
FirstName |
First name of the person for whom the village is being created |
string |
Required String length: inclusive between 0 and 120 |
LastName |
Last name of the person for whom the village is being created |
string |
Required String length: inclusive between 0 and 120 |
Name |
Name of the Village (FirstName + LastName) |
string |
None. |
DOB |
Date of Birth of the person being taken care of |
date |
Data type: Date |
Address |
Primary address of the person being taken care of |
OptionalAddressModel |
None. |
TimeZone |
Time Zone of the Village (Care Recipient) |
string |
None. |
Response Formats
application/json, text/json
{ "Id": "7504417c-b76c-49d6-b73e-c12648562c22", "VillageId": "7c29113a-fba6-4396-adb9-1f0ae68b7491", "VillagerId": "9b719a9a-877e-41cf-8c61-af371b660ab9", "Members": 4, "Role": 0, "RoleName": "Revoked", "Features": 0, "OwnerId": "e01c5755-db45-4721-96e6-17ad406c3c19", "IsDemoVillage": true, "BusinessId": "226f83c4-cf65-489c-9595-d0241565451e", "BusinessName": "sample string 7", "BusinessRole": 1, "CandidateId": "7a140a82-9474-4d81-8f72-2c237894f737", "TransferRequest": { "Id": "a61be721-077b-4899-bd54-621e03b6a67b", "CandidateId": "3a94373c-4bac-4b99-b276-18c82daa40a6", "Candidate": "sample string 3", "RequestedBy": "sample string 4", "VillageId": "681d5ae5-4eac-43d6-ae61-6411b72a621a", "VillageName": "sample string 6" }, "TotalFileSize": 8, "Subscription": { "MaxFileSize": 1, "MaxStorage": 2, "MaxJournalPhotos": 3, "PremiumFeatures": 0, "Cancelled": true, "SubscriptionStartDate": "2025-06-03T04:32:45.350+00:00", "ExpirationDate": "2025-06-03T04:32:45.350+00:00", "Expired": false, "MaxVillagers": 7 }, "Created": "2025-06-03T04:32:45.350+00:00", "Updated": "2025-06-03T04:32:45.350+00:00", "FirstName": "sample", "LastName": "string 13", "Name": "sample string 13", "DOB": "2025-06-03", "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" }, "TimeZone": "sample string 14" }
application/xml, text/xml
<VillageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <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> <DOB>2025-06-03T04:32:45.3502551+00:00</DOB> <FirstName>sample</FirstName> <LastName>string 13</LastName> <Name>sample string 13</Name> <TimeZone>sample string 14</TimeZone> <BusinessId>226f83c4-cf65-489c-9595-d0241565451e</BusinessId> <BusinessName>sample string 7</BusinessName> <BusinessRole>Client</BusinessRole> <CandidateId>7a140a82-9474-4d81-8f72-2c237894f737</CandidateId> <Created>2025-06-03T04:32:45.3502551+00:00</Created> <Features>None</Features> <Id>7504417c-b76c-49d6-b73e-c12648562c22</Id> <IsDemoVillage>true</IsDemoVillage> <Members>4</Members> <OwnerId>e01c5755-db45-4721-96e6-17ad406c3c19</OwnerId> <Role>Revoked</Role> <Subscription> <Cancelled>true</Cancelled> <ExpirationDate>2025-06-03T04:32:45.3502551+00:00</ExpirationDate> <MaxFileSize>1</MaxFileSize> <MaxJournalPhotos>3</MaxJournalPhotos> <MaxStorage>2</MaxStorage> <MaxVillagers>7</MaxVillagers> <PremiumFeatures>None</PremiumFeatures> <SubscriptionStartDate>2025-06-03T04:32:45.3502551+00:00</SubscriptionStartDate> </Subscription> <TotalFileSize>8</TotalFileSize> <TransferRequest> <Candidate>sample string 3</Candidate> <CandidateId>3a94373c-4bac-4b99-b276-18c82daa40a6</CandidateId> <Id>a61be721-077b-4899-bd54-621e03b6a67b</Id> <RequestedBy>sample string 4</RequestedBy> <VillageId>681d5ae5-4eac-43d6-ae61-6411b72a621a</VillageId> <VillageName>sample string 6</VillageName> </TransferRequest> <Updated>2025-06-03T04:32:45.3502551+00:00</Updated> <VillageId>7c29113a-fba6-4396-adb9-1f0ae68b7491</VillageId> <VillagerId>9b719a9a-877e-41cf-8c61-af371b660ab9</VillagerId> </VillageViewModel>