POST api/notifications/plan/create
Create a Plan Notification by configuring a PlanNotification object
Request Information
URI Parameters
None.
Body Parameters
PlanNotification| Name | 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": "f54c5b63-3386-4a1c-a42e-11bfe8ec4af8",
"TriggerType": 0,
"OnField": "0a3d44c7-a3d9-466d-a06e-a17e267e4e32",
"FieldName": "sample string 3",
"MatchingValue": "sample string 4",
"WhenObject": {
"WhenType": 0,
"DayOfWeek": "sample string 1"
},
"Filter": "sample string 5",
"EmailReceiverType": 0,
"EmailReceiverFieldSelection": "9d10da38-4305-46fb-9690-ee10d64c14ef",
"EmailReceiverFieldSelectionName": "sample string 7",
"EmailReceiverSharedWithLevels": [
0,
0
],
"EmailReceiverUsersSelection": [
"7327acc5-425e-4257-b4ab-8c400c52de06",
"80f6f0a4-1756-4b89-a207-3ca68ee1462a"
],
"EmailReceiverTeamsSelection": [
"2dca0b7d-6a3b-4fdb-879a-7d411d6f5a28",
"61aede73-f918-4e2f-977d-7905f39d56fc"
],
"EmailSubject": "sample string 8",
"EmailFieldsSent": {
"sample string 1": "f46b6e1f-52a0-43f8-b201-3908f1c6e708",
"sample string 3": "9a14aa4f-6fe7-443b-aab2-6b35fbf7e5ef"
},
"EmailBody": "sample string 9",
"UserId": "9b56ad9d-e505-40eb-8566-09415a30750e",
"PlanId": "0abf734d-1c8e-4cc2-8dbd-bb4b4fb45790",
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.PlanNotification",
"id": "013e063d-f364-4aa6-b40f-3f03805864cd",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "12e67afd-2344-40e7-ad55-38451ccb310f",
"_ts": 638970641283805764
}
Response Information
Resource Description
PlanNotification| Name | 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": "bafd7c9a-e2a3-427c-9812-5159bd840356",
"TriggerType": 0,
"OnField": "9210a6da-bd1c-45ec-b214-a6c5e3082670",
"FieldName": "sample string 3",
"MatchingValue": "sample string 4",
"WhenObject": {
"WhenType": 0,
"DayOfWeek": "sample string 1"
},
"Filter": "sample string 5",
"EmailReceiverType": 0,
"EmailReceiverFieldSelection": "ff64d120-4332-442b-8d00-210c93319c4b",
"EmailReceiverFieldSelectionName": "sample string 7",
"EmailReceiverSharedWithLevels": [
0,
0
],
"EmailReceiverUsersSelection": [
"2c70760b-de18-4d26-966f-b720e1d8720c",
"4733ea58-973a-44f1-8c46-3709ba024999"
],
"EmailReceiverTeamsSelection": [
"03508b3e-c74a-48ea-9a13-b52b5ac79caa",
"f8e61430-9d6b-4db5-949e-2a73b8a982ef"
],
"EmailSubject": "sample string 8",
"EmailFieldsSent": {
"sample string 1": "12f7411f-ed81-4df1-ab4f-0e289d476762",
"sample string 3": "e2ccc69a-d0e1-448f-bf4f-77296dd0fa6c"
},
"EmailBody": "sample string 9",
"UserId": "fb864908-9b15-4ddf-b731-94fb47da5cd5",
"PlanId": "2e276476-8398-43f5-a37c-702073c82a36",
"id": "22c06332-0190-452e-a7d2-daa74af2ccc8",
"ConfigId": "5cecd10f-3750-49ba-ac86-56059128a1e0"
}