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": "acc8c210-c819-469c-b509-53660416244e", "TriggerType": 0, "OnField": "0a505635-7ebd-4bae-9b13-3cc81f20ff6f", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "851a35bc-2c13-491c-8665-8433f6a3b535", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "59789459-9363-4ca8-a539-f248bf9a9da3", "beff5d25-48f9-4f21-8379-7322a5303e36" ], "EmailReceiverTeamsSelection": [ "8c7b5be1-80a8-4ec8-b59a-ac9b96edf5ba", "46532fd2-de55-4cee-95b6-6eb71791b01c" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "8962bf63-fb59-4a0b-b995-074fd9be7136", "sample string 3": "5592bf1e-b5f3-4ba5-947f-6a3dec8c62c7" }, "EmailBody": "sample string 9", "UserId": "ecb7413b-b1df-4cdd-9ae6-128a04582bda", "PlanId": "2f58a73e-809f-4897-83cd-4dda577522e6", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.PlanNotification", "id": "f1fb835e-e289-4e63-80e1-85e10f3e654e", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "7fb6aa39-a86c-4bfb-868f-c04eedaf2038", "_ts": 638952302520835714 }
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": "873c5a41-afee-4bf8-84cb-a45db466b8f5", "TriggerType": 0, "OnField": "4cd30da4-e611-496a-969d-205601ae1371", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "02c6c1f3-b33b-483a-bf74-98934daba860", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "16f782a1-2ef5-4921-8b2c-277ceda8a8ed", "ef00f5dc-b0a2-44cb-8ebd-cb0a92ec04fe" ], "EmailReceiverTeamsSelection": [ "6aa7b8f7-ad16-4129-84d8-4744df5df1e6", "6359d7e4-e8a8-4d3f-ac53-24dba8110822" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "77ab2505-0108-432c-9ae4-442453163ed0", "sample string 3": "8168cc64-1cd5-42f7-b70d-4a90701465ec" }, "EmailBody": "sample string 9", "UserId": "0888078c-48c3-4714-a037-6ee11391cd1c", "PlanId": "162d10a2-d2cc-4a77-8c5a-2029d99e7765", "id": "4d5a72f4-d6d9-4157-9f04-cafbd6cf32b6", "ConfigId": "20610981-83e6-45df-9584-5ccd6f6e5b89" }