POST api/notifications/task/{planId}/{notificationId}/update
Update 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 |
|
notificationId | string |
None. |
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": "02bf9c0d-bdf2-4767-af87-43ddc910cf55", "Global": true, "TriggerType": 0, "OnField": "1fe597c1-20b7-4059-af64-1a412f4d3877", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "1679beb6-6a9b-46c8-9d9f-2bcfa4f40324", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "3d5b0d9f-0c77-4562-a336-6b97264e566f", "301518c5-6a82-4263-a957-c1e5863b1131" ], "EmailReceiverTeamsSelection": [ "d76091d9-5564-43c2-b7c8-0acf4b4b2713", "7512a904-16f4-4f65-aea5-33ae64c83f3a" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "2d03a08c-55dc-4251-aac7-1478910a8ef5", "sample string 3": "17b94c9e-6eac-4c00-8a5c-243e5e6aafa9" }, "EmailBody": "sample string 10", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TaskNotification", "id": "54ecd34b-2259-4cd3-87b3-1db464715d81", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "a08a2b8f-1ad3-4e25-86a2-fa67b13fadec", "_ts": 638882648095799451 }
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": "680514e3-847f-422e-8dc0-53bdc31c8048", "Global": true, "TriggerType": 0, "OnField": "22092312-164f-48f9-b8f0-eae9dd4603d8", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "9b7eba18-2248-4f54-b4b4-1ce11b9c8bba", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "34c97e26-9baa-4b77-9326-c27ed83774e8", "ce71e4a4-4aa9-4994-9623-00d9841fce60" ], "EmailReceiverTeamsSelection": [ "5838f350-b469-401d-90a7-d507daae9cc5", "6af59e64-b2df-44f7-8fa8-1ccc20f7ebf5" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "6c8eb394-e125-4edc-aec9-5a2ab85d86b6", "sample string 3": "9e2489c5-22aa-4c34-b88c-3676669156ea" }, "EmailBody": "sample string 10", "id": "e1822870-c3f7-4fe9-a1af-c55a002ca06e", "ConfigId": "39627c4d-2daa-4fd9-847b-dff04e5d2b11" }