POST api/notifications/task/{planId}/create
Create a Task Notification by configuring a TaskNotification object and passing in the Plan Id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
planId | globally unique identifier |
Required |
Body Parameters
TaskNotificationName | Description | Type | Additional information |
---|---|---|---|
PlanId | globally unique identifier |
None. |
|
Global | boolean |
None. |
|
TriggerType | TriggerType |
None. |
|
OnField | globally unique identifier |
None. |
|
FieldName | string |
None. |
|
MatchingValue | string |
None. |
|
WhenObject | WhenObject |
None. |
|
Filter | string |
None. |
|
EmailReceiverType | EmailReceiverType |
None. |
|
EmailReceiverFieldSelection | globally unique identifier |
None. |
|
EmailReceiverFieldSelectionName | string |
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. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "PlanId": "6d23a895-d970-4f20-80ca-8bfba3c249b3", "Global": true, "TriggerType": 0, "OnField": "83bcb7b6-7f7a-4604-a156-e50e5bfc9fc4", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "729c1090-7aa5-4efb-b0ca-f6d5a5dc044d", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "153b0167-cc0a-4562-b120-31288e0281d8", "a2b26ab1-ccff-4519-9bfc-ab5157ba8b3f" ], "EmailReceiverTeamsSelection": [ "b5e1c9c9-2a35-4fd1-bb84-f9d314ff4bb0", "a748d882-434d-4a34-a385-21f499332da5" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "8e1c3076-2ce4-4e3f-8631-1dbd6cc040a6", "sample string 3": "0dbff568-f612-4f3c-b9b3-ffb77df44562" }, "EmailBody": "sample string 10", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TaskNotification", "id": "c2ccc656-6eef-4134-bc23-d3e4b30ea2b2", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "865ccc3e-cddf-4c00-a9a6-3be67cfdf260", "_ts": 638968501075580363 }
Response Information
Resource Description
TaskNotificationName | Description | Type | Additional information |
---|---|---|---|
PlanId | globally unique identifier |
None. |
|
Global | boolean |
None. |
|
TriggerType | TriggerType |
None. |
|
OnField | globally unique identifier |
None. |
|
FieldName | string |
None. |
|
MatchingValue | string |
None. |
|
WhenObject | WhenObject |
None. |
|
Filter | string |
None. |
|
EmailReceiverType | EmailReceiverType |
None. |
|
EmailReceiverFieldSelection | globally unique identifier |
None. |
|
EmailReceiverFieldSelectionName | string |
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. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "PlanId": "c3d43e59-6c92-48a2-966a-d03bb4f91de3", "Global": true, "TriggerType": 0, "OnField": "fc107851-f925-4bdf-a6b2-e825e180c672", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "b6240427-dc55-49e2-8c41-9bd2be9cb153", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "19076ddc-614a-47fd-9067-f6e9fcc47043", "f2825ebe-2048-4878-bb34-3f48bc752760" ], "EmailReceiverTeamsSelection": [ "0192c5b5-ba06-4ed2-a6e5-843d9149d3d7", "2a81afd7-a18a-4dfd-99e8-746a11353fb0" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "1f3b262b-7185-46aa-94bf-89495a5b55dc", "sample string 3": "e34591a5-f4e0-40f6-9df5-025bbaa0a7b5" }, "EmailBody": "sample string 10", "id": "5e76c003-28bb-4120-858a-ad30b7f30c27", "ConfigId": "bbf8cea4-60bc-4228-a231-72723fa26b03" }