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": "8cea91cb-34f3-4220-a1eb-6624d1d99062", "TriggerType": 0, "OnField": "52ddbdf3-9433-471a-9602-b89d3b56ca00", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "96a80b2b-06e2-436a-84de-f09c3c8cdcdc", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "afc00dec-dda1-44a3-8c50-71c3c0983726", "26244aa4-f00d-4081-a18b-2c8b27e44edb" ], "EmailReceiverTeamsSelection": [ "f1a8be30-8a16-4806-86fa-189840c285e7", "8fc9ec35-acbc-4688-9f01-c34d6d5e0b13" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "7b19c32a-3bf1-42af-a14e-b72cb3023881", "sample string 3": "350c38a8-cbb4-4ec4-a6c3-91dfb10bbfbe" }, "EmailBody": "sample string 9", "UserId": "7f98759a-7063-4819-895c-725d4c0ce97f", "PlanId": "00261615-dffd-472a-9b51-af5c5fa10c19", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.PlanNotification", "id": "dfcae045-0c49-40f0-a745-a10f5167f163", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "86f5357e-1874-4f24-a1e6-9a266a64f02b", "_ts": 638836282608126455 }
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": "b6a51924-b129-4416-a283-1e8abc3f95f1", "TriggerType": 0, "OnField": "68d2d740-4e1a-4dd0-8240-e5f1ae685b0e", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "1c0790bd-658f-48e4-90cd-c078280ad6c6", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "56306ae4-c0e2-4b2f-a5cc-38c2384ae805", "590ef1ef-ccef-4443-9231-97ccaa69f10a" ], "EmailReceiverTeamsSelection": [ "a3e8a67e-1930-4c22-a3cc-33f60c49cb0b", "b5dd435e-2f31-4363-a302-a9d609ca1175" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "989cc1f1-fcd3-4a04-9ac3-a51c4be939ed", "sample string 3": "ea215321-c5e2-48b2-bd88-d73c72ec0e3e" }, "EmailBody": "sample string 9", "UserId": "a2a195fa-fe35-4220-9316-809e106668da", "PlanId": "012dd5e0-0385-48de-bba9-c8f214b9a6f3", "id": "60aab585-2bfa-4038-a857-094a4cc7aa70", "ConfigId": "293b890d-b4ba-4015-b177-c56ab049a40f" }