POST api/notifications/plan/create
Create a Plan Notification by configuring a PlanNotification object
Request Information
URI Parameters
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": "44043c11-b208-4225-87df-38282bd94f09", "TriggerType": 0, "OnField": "cb5d2826-fb7f-4b43-8abd-0297b55e69b1", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "eb45af30-d95e-41cd-8743-914c516e00b4", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "85b5ad2a-e427-4501-be52-af5d7f7baa39", "11f28680-f64c-4335-90d3-00eb5c5f0d61" ], "EmailReceiverTeamsSelection": [ "2614f88d-6a52-4439-bf91-5532a0b59c05", "2e915fc1-9e1a-4694-9ad7-39fef7bf1e74" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "539f258d-8789-444b-a36a-f668cd7ba678", "sample string 3": "69999dcd-7ef3-4cd3-b528-091fac4879ca" }, "EmailBody": "sample string 9", "UserId": "24897272-1b32-463a-a69c-74ad8267cfee", "PlanId": "32ddaae8-5af7-48f6-9ef8-f0556bb3aa82", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.PlanNotification", "id": "64de034f-5408-43a1-a1a6-7c8755dd0953", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "eeecddca-4fa7-45f5-b5b1-a1d1c3fcce48", "_ts": 638882649831726460 }
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": "0b61a395-c070-43eb-9405-a73bf71e170a", "TriggerType": 0, "OnField": "e06fb463-b7ab-40be-baf9-9991158129a9", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "b98d99f3-76d1-43ac-8746-e12560f97bde", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "a63800e1-7cf9-4c23-80f1-ecd7577f60f7", "e23e4a98-acd7-4fc4-b0b2-06e83629f9b4" ], "EmailReceiverTeamsSelection": [ "0397571a-e58d-4fe8-902e-1480b01791a2", "3a7b3e57-b016-4f90-af15-d242fd582d1b" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "dd81958e-168a-4f03-965d-e5e65ec93692", "sample string 3": "8730e81b-6ded-47f4-8b5c-75e94ef05c0e" }, "EmailBody": "sample string 9", "UserId": "948d0ceb-9271-4fa1-b845-f4c243218166", "PlanId": "8b518a90-c15f-49e3-8835-e52e4f9afac6", "id": "870e7162-2ab5-42f7-948a-a3e256567951", "ConfigId": "9b6901b1-5a99-4601-9c0a-1a3103c32eb3" }