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
TaskNotification| Name | 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": "7a3dc876-e060-4412-9594-fa84a64c404d",
"Global": true,
"TriggerType": 0,
"OnField": "b1d5afaa-aca6-4a88-ab9e-7b4d4579852a",
"FieldName": "sample string 4",
"MatchingValue": "sample string 5",
"WhenObject": {
"WhenType": 0,
"DayOfWeek": "sample string 1"
},
"Filter": "sample string 6",
"EmailReceiverType": 0,
"EmailReceiverFieldSelection": "755c4b14-037c-4bee-b78d-9c995c45e79f",
"EmailReceiverFieldSelectionName": "sample string 8",
"EmailReceiverUsersSelection": [
"1d897c4d-709d-4e68-8aec-2f6eb6bab683",
"bcf0dd6c-8462-419b-9f3e-ef85097481f6"
],
"EmailReceiverTeamsSelection": [
"4d0f664a-6613-4b90-9b25-286dcd7a8883",
"6c060410-d29f-4f0a-9d41-feb2d7dfcf09"
],
"EmailSubject": "sample string 9",
"EmailFieldsSent": {
"sample string 1": "54298bc8-c49a-4130-8f9d-21b98c50dc3e",
"sample string 3": "2981d6ee-11bd-4188-9433-baaa7d6c083a"
},
"EmailBody": "sample string 10",
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TaskNotification",
"id": "938f1e52-02b2-4d17-b6df-eb920843eb41",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "16927764-52b5-4bae-9029-8ac6f38a6e29",
"_ts": 638972462368524149
}
Response Information
Resource Description
TaskNotification| Name | 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": "6a08450a-fd3c-45df-b2ae-b9a9740fb50f",
"Global": true,
"TriggerType": 0,
"OnField": "f2543323-eade-483c-94f0-a8ae685cb383",
"FieldName": "sample string 4",
"MatchingValue": "sample string 5",
"WhenObject": {
"WhenType": 0,
"DayOfWeek": "sample string 1"
},
"Filter": "sample string 6",
"EmailReceiverType": 0,
"EmailReceiverFieldSelection": "ec881db6-1f54-44eb-ad06-2a929d4bc1d3",
"EmailReceiverFieldSelectionName": "sample string 8",
"EmailReceiverUsersSelection": [
"af290d35-fce8-46a3-8bfc-ebbc46c0e8ff",
"91907832-1959-4911-be6f-4c72d7401b64"
],
"EmailReceiverTeamsSelection": [
"92e594bf-5bdd-4390-8db4-8d812785ae82",
"ebb45a32-f539-413e-a478-1a689033d76d"
],
"EmailSubject": "sample string 9",
"EmailFieldsSent": {
"sample string 1": "64490ded-22e4-46ab-a87c-c24b0abfae67",
"sample string 3": "b24e1d6b-d98d-46c7-8335-3b2b5a222e06"
},
"EmailBody": "sample string 10",
"id": "01032dc6-a0c4-4ed5-b2cb-7633b8e939e4",
"ConfigId": "6ec4a451-6054-4b44-b9e8-8c308adb9943"
}