POST api/notifications/plan/{notificationId}/update
Update a Plan Notification by configuring a PlanNotification object
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
notificationId | string |
None. |
Body Parameters
PlanNotificationName | Description | Type | Additional information |
---|---|---|---|
NotificationScope | NotificationScope |
None. |
|
PlanType | globally unique identifier |
None. |
|
TriggerType | PlanNotificationTrigger |
None. |
|
OnField | globally unique identifier |
None. |
|
FieldName | string |
None. |
|
MatchingValue | string |
None. |
|
WhenObject | WhenObject |
None. |
|
Filter | string |
None. |
|
EmailReceiverType | PlanNotificationReceiver |
None. |
|
EmailReceiverFieldSelection | globally unique identifier |
None. |
|
EmailReceiverFieldSelectionName | string |
None. |
|
EmailReceiverSharedWithLevels | Collection of AccessLevel |
None. |
|
EmailReceiverUsersSelection | Collection of globally unique identifier |
None. |
|
EmailReceiverTeamsSelection | Collection of globally unique identifier |
None. |
|
EmailSubject | string |
None. |
|
EmailFieldsSent | Dictionary of string [key] and globally unique identifier [value] |
None. |
|
EmailBody | string |
None. |
|
UserId | globally unique identifier |
None. |
|
PlanId | globally unique identifier |
None. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "NotificationScope": 0, "PlanType": "034e4458-104d-481e-8c7a-40a224dcc656", "TriggerType": 0, "OnField": "0d7989eb-15d8-4735-a932-63933f2a8585", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "617eb3cd-5b81-4cc2-a870-49a4805f4d9e", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "c8f96e2a-71a3-4eb1-87c3-7aefd0a2f304", "56dcf8b4-9bf5-4b75-abec-9947910465f1" ], "EmailReceiverTeamsSelection": [ "7f17db31-ad52-41b4-8b2a-a08fb4aba9b6", "b940ec50-8651-46f8-82e6-aa1c1c69d4c2" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "edd70571-6616-45b1-9b21-5a59732b6880", "sample string 3": "b3a60fe6-4de2-4784-8a11-8a9c1df97406" }, "EmailBody": "sample string 9", "UserId": "b0a17cee-8584-4e28-864e-0f5ef328daf3", "PlanId": "4bdcc1c6-9f53-4c78-b5ad-28948dccc344", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.PlanNotification", "id": "2100aebe-3e71-40a0-a784-33dc94d68ac6", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "5915f517-c465-4ba9-8228-05e3344a8b4b", "_ts": 638836302850291847 }
Response Information
Resource Description
PlanNotificationName | Description | Type | Additional information |
---|---|---|---|
NotificationScope | NotificationScope |
None. |
|
PlanType | globally unique identifier |
None. |
|
TriggerType | PlanNotificationTrigger |
None. |
|
OnField | globally unique identifier |
None. |
|
FieldName | string |
None. |
|
MatchingValue | string |
None. |
|
WhenObject | WhenObject |
None. |
|
Filter | string |
None. |
|
EmailReceiverType | PlanNotificationReceiver |
None. |
|
EmailReceiverFieldSelection | globally unique identifier |
None. |
|
EmailReceiverFieldSelectionName | string |
None. |
|
EmailReceiverSharedWithLevels | Collection of AccessLevel |
None. |
|
EmailReceiverUsersSelection | Collection of globally unique identifier |
None. |
|
EmailReceiverTeamsSelection | Collection of globally unique identifier |
None. |
|
EmailSubject | string |
None. |
|
EmailFieldsSent | Dictionary of string [key] and globally unique identifier [value] |
None. |
|
EmailBody | string |
None. |
|
UserId | globally unique identifier |
None. |
|
PlanId | globally unique identifier |
None. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "NotificationScope": 0, "PlanType": "caddb93c-0d32-478a-b282-1ff296e218a6", "TriggerType": 0, "OnField": "3a627d41-0f48-457e-905c-4036d3503e5e", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "13aa55d1-f817-4720-a7ce-6fb24a65c732", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "91cd6808-f32b-4d94-9e4c-5ab62e7e14a5", "102a482f-9cc5-42d5-ade0-ff7b47250502" ], "EmailReceiverTeamsSelection": [ "65fd7cae-f8e8-4e90-835a-3ed3c41cba71", "351b8e9e-c03c-453c-a07f-3598f8f9cccb" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "a0f819e3-ee2f-4ea2-bfa5-d6a64d284204", "sample string 3": "c0eef0f0-4f05-4422-a8c8-8833216210f4" }, "EmailBody": "sample string 9", "UserId": "1cd98726-ef04-4622-9ee9-bcde58ae1694", "PlanId": "0d17b00d-30de-430d-a489-f1a8d8e387ae", "id": "470fd032-5c2b-4a85-b274-1a3de8013b36", "ConfigId": "b39cb973-d8cc-4ed8-a70e-06e48f9df511" }