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": "c3be2cba-2efe-4f23-88d5-1e48a36d2fda", "Global": true, "TriggerType": 0, "OnField": "4c2b8c79-3c26-4b01-aa7d-49af237f154a", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "8f1cb519-f9ae-4efb-ac30-e73ff798ab03", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "f83e00e9-6773-4b67-af89-55f1148b1d1e", "ed4e723d-627a-4121-a3f1-d23544ee4bcb" ], "EmailReceiverTeamsSelection": [ "8f320fe7-79a1-4dac-bb8d-69e9d0ad0852", "c7f90fc3-2671-4003-952f-7b6b563a1779" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "9aaa2c00-0ec4-42a7-b1fd-b7904180d2dc", "sample string 3": "480cb9a6-f707-4ea1-86b0-648c02561e5f" }, "EmailBody": "sample string 10", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TaskNotification", "id": "4b5320ac-2214-45c6-ab65-2268d15d68db", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "03685ce7-be23-42de-849e-ceaf09c71489", "_ts": 638701494866485831 }
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": "7146b68f-97b9-4276-86d2-16cbc13cb399", "Global": true, "TriggerType": 0, "OnField": "c3647b40-a402-4466-aaf3-6e8be80154f8", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "c70477b9-9a77-405d-a753-bfae56042764", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "eecab6ce-6fe9-4749-836c-c48beb776d7a", "6cd14470-1d31-45db-a5d2-cce666c23d94" ], "EmailReceiverTeamsSelection": [ "6ecbc438-2ed6-4b38-90bc-78011b2e6e05", "4f73ecf8-88e3-4d46-b336-986b8a7ed004" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "95a18cfd-6c8c-4346-b2a4-d3f77017f832", "sample string 3": "ccc6cb70-8855-4ccc-9eb3-3f701c247769" }, "EmailBody": "sample string 10", "id": "30eb6f90-5c84-4bdf-821c-b5193aa77264", "ConfigId": "c3188a37-8cc9-4acc-8bff-90d773ea7573" }