POST api/Users/Settings
Update a users settings for the current user.
Request Information
URI Parameters
None.
Body Parameters
Model containing the users settings
WorkPoint.Core.Models.UserSettings.UserSettings| Name | Description | Type | Additional information |
|---|---|---|---|
| NotificationProfile | WorkPoint.Core.Models.UserSettings.NotificationProfile |
None. |
|
| AdminFavorites | Collection of string |
None. |
|
| MyProcessSettings | WorkPoint.Core.Models.ProcessManagement.MyProcessSettings |
None. |
Request Formats
application/json, text/json
Sample:
{
"NotificationProfile": {
"NotificationTypes": [
{
"ManagedMetadataName": "sample string 1",
"ParentManagedMetadataName": "sample string 2",
"ManagedMetadataId": "6cc9ddad-31cd-44fe-b50a-c9f631368ce1",
"ParentManagedMetadataId": "fe9b4e78-08ce-488e-9800-c8a4e4399406",
"Enable": true,
"EnableEmail": true,
"EnableTeams": true,
"IsLocked": true
},
{
"ManagedMetadataName": "sample string 1",
"ParentManagedMetadataName": "sample string 2",
"ManagedMetadataId": "6cc9ddad-31cd-44fe-b50a-c9f631368ce1",
"ParentManagedMetadataId": "fe9b4e78-08ce-488e-9800-c8a4e4399406",
"Enable": true,
"EnableEmail": true,
"EnableTeams": true,
"IsLocked": true
}
]
},
"AdminFavorites": [
"sample string 1",
"sample string 2"
],
"MyProcessSettings": {
"PushNotificationSettings": {
"Completed": true,
"AwaitingInput": true,
"Failed": true
},
"ProcessDateRange": 1
}
}
application/xml, text/xml
Sample:
<UserSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint.Core.Models.UserSettings">
<AdminFavorites xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</AdminFavorites>
<MyProcessSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/WorkPoint.Core.Models.ProcessManagement">
<d2p1:ProcessDateRange>1</d2p1:ProcessDateRange>
<d2p1:PushNotificationSettings>
<d2p1:AwaitingInput>true</d2p1:AwaitingInput>
<d2p1:Completed>true</d2p1:Completed>
<d2p1:Failed>true</d2p1:Failed>
</d2p1:PushNotificationSettings>
</MyProcessSettings>
<NotificationProfile>
<NotificationTypes xmlns:d3p1="http://schemas.datacontract.org/2004/07/WorkPoint.Core.Models.Notification">
<d3p1:NotificationSettings.NotificationProfileNotificationTypes>
<d3p1:Enable>true</d3p1:Enable>
<d3p1:EnableEmail>true</d3p1:EnableEmail>
<d3p1:EnableTeams>true</d3p1:EnableTeams>
<d3p1:IsLocked>true</d3p1:IsLocked>
<d3p1:ManagedMetadataId>6cc9ddad-31cd-44fe-b50a-c9f631368ce1</d3p1:ManagedMetadataId>
<d3p1:ManagedMetadataName>sample string 1</d3p1:ManagedMetadataName>
<d3p1:ParentManagedMetadataId>fe9b4e78-08ce-488e-9800-c8a4e4399406</d3p1:ParentManagedMetadataId>
<d3p1:ParentManagedMetadataName>sample string 2</d3p1:ParentManagedMetadataName>
</d3p1:NotificationSettings.NotificationProfileNotificationTypes>
<d3p1:NotificationSettings.NotificationProfileNotificationTypes>
<d3p1:Enable>true</d3p1:Enable>
<d3p1:EnableEmail>true</d3p1:EnableEmail>
<d3p1:EnableTeams>true</d3p1:EnableTeams>
<d3p1:IsLocked>true</d3p1:IsLocked>
<d3p1:ManagedMetadataId>6cc9ddad-31cd-44fe-b50a-c9f631368ce1</d3p1:ManagedMetadataId>
<d3p1:ManagedMetadataName>sample string 1</d3p1:ManagedMetadataName>
<d3p1:ParentManagedMetadataId>fe9b4e78-08ce-488e-9800-c8a4e4399406</d3p1:ParentManagedMetadataId>
<d3p1:ParentManagedMetadataName>sample string 2</d3p1:ParentManagedMetadataName>
</d3p1:NotificationSettings.NotificationProfileNotificationTypes>
</NotificationTypes>
</NotificationProfile>
</UserSettings>
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.