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": "5fdcd81f-94f4-43d2-a528-e5b140f870fb", "Global": true, "TriggerType": 0, "OnField": "938347e9-84f8-4c13-9610-6d34f57f801c", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "a7904f9f-f4f6-4440-8af8-02810c7ac96b", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "726e9fb6-c76e-4326-9547-429d2b75ae77", "480059c1-f70f-4db8-a4e7-cf228d534795" ], "EmailReceiverTeamsSelection": [ "11d36a36-ef05-4772-b911-1cc271e83f56", "30077070-af30-4ca8-a49a-f177acc1fa4c" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "c0c11d8c-f800-4ddd-bed8-e58a4e94a830", "sample string 3": "b78e5928-0be6-49d3-b99e-c4b8297887a4" }, "EmailBody": "sample string 10", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TaskNotification", "id": "0416c33e-6525-4a71-a583-889b1d004877", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "9476ab20-8ecc-4a66-abe7-8273d72bb760", "_ts": 638882639758907581 }
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": "fbed6c1e-db2f-47a7-9525-d6e993fafb5c", "Global": true, "TriggerType": 0, "OnField": "c5102837-73ac-4a2a-8ced-9cf08cfdaa8c", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "9024fd9e-945d-4830-bec3-c8c98191160e", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "59bc2f12-353d-4304-a948-1cf2d6ae6e91", "2fdf16e9-3f9a-4981-8e32-c585142403a2" ], "EmailReceiverTeamsSelection": [ "667eee52-f9e8-4bef-8eec-d0be2ff1d862", "ec7c7096-d30f-4266-9bc9-d53f580026bc" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "51bc1b20-3490-4dd5-900a-69254d19e94f", "sample string 3": "1132789b-5785-462f-8c61-ba38e0ee30dd" }, "EmailBody": "sample string 10", "id": "5769f12c-2b75-4875-8495-76c365d1cc12", "ConfigId": "63fc2ef9-2028-4719-b79e-6e500449540c" }