DELETE api/Preferences/{villageId}

Resets the current user's preferences for the specified village to the system defaults

Request Information

URI Parameters

NameDescriptionTypeAdditional information
villageId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

UserVillagePreferencesModel
NameDescriptionTypeAdditional information
Id

The unique ID of this Village:Villager mapping (matches the ID from the user's list of villages!)

globally unique identifier

Required

UserId

User's ID

globally unique identifier

None.

VillageId

Village ID

globally unique identifier

None.

VillagePush

Settings for Village/Village Membership Push Notifications

VillageMembership

None.

VillageEmail

Settings for Village/Village Membership Email Notifications

VillageMembership

None.

MessagingPush

Settings for Messaging Push Notifications

Messaging

None.

MessagingEmail

Settings for Messaging Email Notifications

Messaging

None.

WellnessJournalPush

Settings for Wellness Journal Push Notifications

WellnessJournal

None.

WellnessJournalEmail

Settings for Wellness Journal Email Notifications

WellnessJournal

None.

CarePlanPush

Settings for Care Plan Push Notifications

CarePlans

None.

CarePlanEmail

Settings for Care Plan Email Notifications

CarePlans

None.

EventPush

Settings for Event Push Notifications

Event

None.

EventEmail

Settings for Event Email Notifications

Event

None.

TodoPush

Settings for To Do Push Notifications

Todo

None.

TodoEmail

Settings for To Do Email Notifications

Todo

None.

DocumentPush

Settings for Document Push Notifications

Document

None.

DocumentEmail

Settings for Document Email Notifications

Document

None.

MedicationPush

Settings for Medication Push Notifications

Medications

None.

MedicationEmail

Settings for Medication Email Notifications

Medications

None.

OtherEmail

Settings for Other Email Notifications

Other

None.

OtherPush

Settings for Other Push Notifications

Other

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "af1c8f3d-1c53-44e4-b7b6-6c21d486e871",
  "UserId": "952552b7-fdcb-43b0-9bf6-f322c11d1d08",
  "VillageId": "90044a53-2754-47e8-9594-cd9ef612fac0",
  "VillagePush": 1,
  "VillageEmail": 1,
  "MessagingPush": 1,
  "MessagingEmail": 1,
  "WellnessJournalPush": 2,
  "WellnessJournalEmail": 2,
  "CarePlanPush": 1,
  "CarePlanEmail": 1,
  "EventPush": 1,
  "EventEmail": 1,
  "TodoPush": 1,
  "TodoEmail": 1,
  "DocumentPush": 1,
  "DocumentEmail": 1,
  "MedicationPush": 1,
  "MedicationEmail": 1,
  "OtherEmail": 1,
  "OtherPush": 1
}

application/xml, text/xml

Sample:
<UserVillagePreferencesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
  <CarePlanEmail>Started</CarePlanEmail>
  <CarePlanPush>Started</CarePlanPush>
  <DocumentEmail>Uploaded</DocumentEmail>
  <DocumentPush>Uploaded</DocumentPush>
  <EventEmail>Created</EventEmail>
  <EventPush>Created</EventPush>
  <MedicationEmail>TimeToTake</MedicationEmail>
  <MedicationPush>TimeToTake</MedicationPush>
  <MessagingEmail>BroadcastMessage</MessagingEmail>
  <MessagingPush>BroadcastMessage</MessagingPush>
  <OtherEmail>WeeklyDigest</OtherEmail>
  <OtherPush>WeeklyDigest</OtherPush>
  <TodoEmail>Created</TodoEmail>
  <TodoPush>Created</TodoPush>
  <VillageEmail>MemberJoin</VillageEmail>
  <VillagePush>MemberJoin</VillagePush>
  <WellnessJournalEmail>NewJournal</WellnessJournalEmail>
  <WellnessJournalPush>NewJournal</WellnessJournalPush>
  <Id>af1c8f3d-1c53-44e4-b7b6-6c21d486e871</Id>
  <UserId>952552b7-fdcb-43b0-9bf6-f322c11d1d08</UserId>
  <VillageId>90044a53-2754-47e8-9594-cd9ef612fac0</VillageId>
</UserVillagePreferencesModel>