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": "3c01f097-35fa-4f92-8bd5-18187ffcb951", "Global": true, "TriggerType": 0, "OnField": "a13d8ebf-1c14-4f75-beb8-fcd553d5a418", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "4527f2d2-7eb0-4d16-942d-4449580a3d81", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "b11df2c5-5519-48d3-abb1-b38039bbef5a", "dea2add3-f085-48b5-af55-36c67945ace4" ], "EmailReceiverTeamsSelection": [ "225c5d0a-ac3f-40b8-9f04-4bdae2dfbbec", "8a772e35-7867-4bd2-b3a8-ca2aef06b0b7" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "8601b757-ba61-4ee9-b84b-60cf35944627", "sample string 3": "62263207-b485-4796-894e-6a7cc9190904" }, "EmailBody": "sample string 10", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TaskNotification", "id": "cff829ec-3f7d-45e5-a240-d3659e2fe523", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "9914a3cf-3af7-41d7-b380-5328675cff5b", "_ts": 638836281584055265 }
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": "4aa82c76-ca8c-4161-b0dc-191e99db1cdb", "Global": true, "TriggerType": 0, "OnField": "6542be11-50f3-4e7b-8516-eb78b1f18537", "FieldName": "sample string 4", "MatchingValue": "sample string 5", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 6", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "e633b1f1-1f53-4a8a-bac5-504de3698d08", "EmailReceiverFieldSelectionName": "sample string 8", "EmailReceiverUsersSelection": [ "7ae9dde5-2e29-4ab4-a1c7-aa1df19b7ea5", "aa3610d3-c590-4591-bedd-a2438361f55a" ], "EmailReceiverTeamsSelection": [ "1f96b77b-6e34-4589-bddc-af99b1061b5b", "946a6181-302e-48b3-9846-31588208c6f1" ], "EmailSubject": "sample string 9", "EmailFieldsSent": { "sample string 1": "3f19c6cb-e18e-4c8e-b16e-6f7600ea068f", "sample string 3": "515eb3e7-f47c-45ee-8f48-357356c29da6" }, "EmailBody": "sample string 10", "id": "79549fe6-23c3-4c85-ab88-b053b803798d", "ConfigId": "59cd78d2-2142-433e-b169-31d9127dcdc1" }