PUT api/Notifications/NotificationSettings
Updates the globally configured notification settings
Request Information
URI Parameters
None.
Body Parameters
The updated NotificationSettings model (profiles must be list of user ids, not objects)
WorkPoint.Core.Models.Notification.NotificationSettings| Name | Description | Type | Additional information |
|---|---|---|---|
| Enabled | boolean |
None. |
|
| NotificationPriorityTermSetId | globally unique identifier |
None. |
|
| NotificationTypeTermSetId | globally unique identifier |
None. |
|
| IsAutomaticDeletionEnabled | boolean |
None. |
|
| RetentionPeriodInDays | integer |
None. |
|
| OnlyCleanupCompletedNotifications | boolean |
None. |
|
| IsCustomizedAdaptiveCardLayoutEnabled | boolean |
None. |
|
| CustomizedAdaptiveCardLayoutJson | string |
None. |
|
| NotificationProfiles | Collection of WorkPoint.Core.Models.Notification.NotificationSettings+NotificationProfile |
None. |
|
| NotificationTeamsAppSettings | WorkPoint.Core.Models.Notification.NotificationTeamsAppSettings |
None. |
Request Formats
application/json, text/json
Sample:
{
"Enabled": true,
"NotificationPriorityTermSetId": "58e68ba1-8064-474a-9227-54145d19c5c4",
"NotificationTypeTermSetId": "71700669-be0e-419b-9850-d0f2a6cdfc46",
"IsAutomaticDeletionEnabled": true,
"RetentionPeriodInDays": 3,
"OnlyCleanupCompletedNotifications": true,
"IsCustomizedAdaptiveCardLayoutEnabled": true,
"CustomizedAdaptiveCardLayoutJson": "sample string 6",
"NotificationProfiles": [
{
"Id": "40f1ede5-1951-43b7-aba9-9e18b6158e7f",
"Name": "sample string 2",
"Target": {
"Identifier": "sample string 1",
"Name": "sample string 2"
},
"EmailSchedule": 0,
"DeliveryDayOfWeek": 0,
"SpecificDeliveryTime": "00:00:00.1234567",
"NotificationTypes": [
{
"ManagedMetadataName": "sample string 1",
"ParentManagedMetadataName": "sample string 2",
"ManagedMetadataId": "5c1b21fa-0b72-488f-bb66-0ce7222be808",
"ParentManagedMetadataId": "c2004009-108d-42b4-b44c-62b41ce71f5b",
"Enable": true,
"EnableEmail": true,
"EnableTeams": true,
"IsLocked": true
},
{
"ManagedMetadataName": "sample string 1",
"ParentManagedMetadataName": "sample string 2",
"ManagedMetadataId": "5c1b21fa-0b72-488f-bb66-0ce7222be808",
"ParentManagedMetadataId": "c2004009-108d-42b4-b44c-62b41ce71f5b",
"Enable": true,
"EnableEmail": true,
"EnableTeams": true,
"IsLocked": true
}
]
},
{
"Id": "40f1ede5-1951-43b7-aba9-9e18b6158e7f",
"Name": "sample string 2",
"Target": {
"Identifier": "sample string 1",
"Name": "sample string 2"
},
"EmailSchedule": 0,
"DeliveryDayOfWeek": 0,
"SpecificDeliveryTime": "00:00:00.1234567",
"NotificationTypes": [
{
"ManagedMetadataName": "sample string 1",
"ParentManagedMetadataName": "sample string 2",
"ManagedMetadataId": "5c1b21fa-0b72-488f-bb66-0ce7222be808",
"ParentManagedMetadataId": "c2004009-108d-42b4-b44c-62b41ce71f5b",
"Enable": true,
"EnableEmail": true,
"EnableTeams": true,
"IsLocked": true
},
{
"ManagedMetadataName": "sample string 1",
"ParentManagedMetadataName": "sample string 2",
"ManagedMetadataId": "5c1b21fa-0b72-488f-bb66-0ce7222be808",
"ParentManagedMetadataId": "c2004009-108d-42b4-b44c-62b41ce71f5b",
"Enable": true,
"EnableEmail": true,
"EnableTeams": true,
"IsLocked": true
}
]
}
],
"NotificationTeamsAppSettings": {
"AppId": "63b3dc73-a96b-438d-a9d4-b2a976668c66",
"AppShortName": "sample string 1",
"AppFullName": "sample string 2",
"AppShortDescription": "sample string 3",
"AppFullDescription": "sample string 4"
}
}
application/xml, text/xml
Sample:
<NotificationSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint.Core.Models.Notification">
<CustomizedAdaptiveCardLayoutJson>sample string 6</CustomizedAdaptiveCardLayoutJson>
<Enabled>true</Enabled>
<IsAutomaticDeletionEnabled>true</IsAutomaticDeletionEnabled>
<IsCustomizedAdaptiveCardLayoutEnabled>true</IsCustomizedAdaptiveCardLayoutEnabled>
<NotificationPriorityTermSetId>58e68ba1-8064-474a-9227-54145d19c5c4</NotificationPriorityTermSetId>
<NotificationProfiles>
<NotificationSettings.NotificationProfile>
<DeliveryDayOfWeek>Sunday</DeliveryDayOfWeek>
<EmailSchedule>SendImmediatetly</EmailSchedule>
<Id>40f1ede5-1951-43b7-aba9-9e18b6158e7f</Id>
<Name>sample string 2</Name>
<NotificationTypes>
<NotificationSettings.NotificationProfileNotificationTypes>
<Enable>true</Enable>
<EnableEmail>true</EnableEmail>
<EnableTeams>true</EnableTeams>
<IsLocked>true</IsLocked>
<ManagedMetadataId>5c1b21fa-0b72-488f-bb66-0ce7222be808</ManagedMetadataId>
<ManagedMetadataName>sample string 1</ManagedMetadataName>
<ParentManagedMetadataId>c2004009-108d-42b4-b44c-62b41ce71f5b</ParentManagedMetadataId>
<ParentManagedMetadataName>sample string 2</ParentManagedMetadataName>
</NotificationSettings.NotificationProfileNotificationTypes>
<NotificationSettings.NotificationProfileNotificationTypes>
<Enable>true</Enable>
<EnableEmail>true</EnableEmail>
<EnableTeams>true</EnableTeams>
<IsLocked>true</IsLocked>
<ManagedMetadataId>5c1b21fa-0b72-488f-bb66-0ce7222be808</ManagedMetadataId>
<ManagedMetadataName>sample string 1</ManagedMetadataName>
<ParentManagedMetadataId>c2004009-108d-42b4-b44c-62b41ce71f5b</ParentManagedMetadataId>
<ParentManagedMetadataName>sample string 2</ParentManagedMetadataName>
</NotificationSettings.NotificationProfileNotificationTypes>
</NotificationTypes>
<SpecificDeliveryTime>PT0.1234567S</SpecificDeliveryTime>
<Target>
<Identifier>sample string 1</Identifier>
<Name>sample string 2</Name>
</Target>
</NotificationSettings.NotificationProfile>
<NotificationSettings.NotificationProfile>
<DeliveryDayOfWeek>Sunday</DeliveryDayOfWeek>
<EmailSchedule>SendImmediatetly</EmailSchedule>
<Id>40f1ede5-1951-43b7-aba9-9e18b6158e7f</Id>
<Name>sample string 2</Name>
<NotificationTypes>
<NotificationSettings.NotificationProfileNotificationTypes>
<Enable>true</Enable>
<EnableEmail>true</EnableEmail>
<EnableTeams>true</EnableTeams>
<IsLocked>true</IsLocked>
<ManagedMetadataId>5c1b21fa-0b72-488f-bb66-0ce7222be808</ManagedMetadataId>
<ManagedMetadataName>sample string 1</ManagedMetadataName>
<ParentManagedMetadataId>c2004009-108d-42b4-b44c-62b41ce71f5b</ParentManagedMetadataId>
<ParentManagedMetadataName>sample string 2</ParentManagedMetadataName>
</NotificationSettings.NotificationProfileNotificationTypes>
<NotificationSettings.NotificationProfileNotificationTypes>
<Enable>true</Enable>
<EnableEmail>true</EnableEmail>
<EnableTeams>true</EnableTeams>
<IsLocked>true</IsLocked>
<ManagedMetadataId>5c1b21fa-0b72-488f-bb66-0ce7222be808</ManagedMetadataId>
<ManagedMetadataName>sample string 1</ManagedMetadataName>
<ParentManagedMetadataId>c2004009-108d-42b4-b44c-62b41ce71f5b</ParentManagedMetadataId>
<ParentManagedMetadataName>sample string 2</ParentManagedMetadataName>
</NotificationSettings.NotificationProfileNotificationTypes>
</NotificationTypes>
<SpecificDeliveryTime>PT0.1234567S</SpecificDeliveryTime>
<Target>
<Identifier>sample string 1</Identifier>
<Name>sample string 2</Name>
</Target>
</NotificationSettings.NotificationProfile>
</NotificationProfiles>
<NotificationTeamsAppSettings>
<AppFullDescription>sample string 4</AppFullDescription>
<AppFullName>sample string 2</AppFullName>
<AppId>63b3dc73-a96b-438d-a9d4-b2a976668c66</AppId>
<AppShortDescription>sample string 3</AppShortDescription>
<AppShortName>sample string 1</AppShortName>
</NotificationTeamsAppSettings>
<NotificationTypeTermSetId>71700669-be0e-419b-9850-d0f2a6cdfc46</NotificationTypeTermSetId>
<OnlyCleanupCompletedNotifications>true</OnlyCleanupCompletedNotifications>
<RetentionPeriodInDays>3</RetentionPeriodInDays>
</NotificationSettings>
Response Information
Resource Description
true if updated
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.