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

NameDescriptionTypeAdditional information
planId

globally unique identifier

Required

notificationId

string

None.

Body Parameters

TaskNotification
NameDescriptionTypeAdditional 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": "645e9f1f-e929-4bef-b29c-e8d70a9fea3b",
  "Global": true,
  "TriggerType": 0,
  "OnField": "2fedbbee-35d9-4586-af67-aea79b5eca3b",
  "FieldName": "sample string 4",
  "MatchingValue": "sample string 5",
  "WhenObject": {
    "WhenType": 0,
    "DayOfWeek": "sample string 1"
  },
  "Filter": "sample string 6",
  "EmailReceiverType": 0,
  "EmailReceiverFieldSelection": "b5da1610-4762-458d-ba6a-fe40d46d3b86",
  "EmailReceiverFieldSelectionName": "sample string 8",
  "EmailReceiverUsersSelection": [
    "c8169a81-7bb5-4d7e-b810-4b6bcd7cf3b7",
    "6953f350-8d61-44be-8eb3-76e6f3de8e71"
  ],
  "EmailReceiverTeamsSelection": [
    "1fd05504-ff49-462a-99d0-0169e9a9ec9d",
    "acc566d9-f5a7-41f3-b765-bced2f847934"
  ],
  "EmailSubject": "sample string 9",
  "EmailFieldsSent": {
    "sample string 1": "969181a6-48d9-4c69-bbd5-51fa199d1c12",
    "sample string 3": "ff17cd88-b9d0-4a50-a954-938648537170"
  },
  "EmailBody": "sample string 10",
  "__app__": "WORKPLANNER",
  "__entity_kind__": "WorkPlanner.Models.TaskNotification",
  "id": "72faa679-d324-4937-bea3-01fa4afe5a1e",
  "RestoreFromId": "00000000-0000-0000-0000-000000000000",
  "ConfigId": "e4de59e0-32c7-4716-9edb-bbeabb568de5",
  "_ts": 638701498662134231
}

Response Information

Resource Description

TaskNotification
NameDescriptionTypeAdditional 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": "ca02b65a-3c4c-4bde-acfa-5b3ce16fb937",
  "Global": true,
  "TriggerType": 0,
  "OnField": "5d73b5a2-c41b-4eb9-a7df-356568a9d446",
  "FieldName": "sample string 4",
  "MatchingValue": "sample string 5",
  "WhenObject": {
    "WhenType": 0,
    "DayOfWeek": "sample string 1"
  },
  "Filter": "sample string 6",
  "EmailReceiverType": 0,
  "EmailReceiverFieldSelection": "cf32c24c-d46d-4b07-a869-ab90c82d292f",
  "EmailReceiverFieldSelectionName": "sample string 8",
  "EmailReceiverUsersSelection": [
    "cdadae0f-9ac7-4a0b-9a8b-5ce07cd80a4b",
    "7151c278-cd6b-4bee-9bfb-b095aa5537a0"
  ],
  "EmailReceiverTeamsSelection": [
    "38a1ddb9-2037-4c7d-8dbf-0c051eec0e5b",
    "2a827282-c064-4275-b7f6-1d162207383a"
  ],
  "EmailSubject": "sample string 9",
  "EmailFieldsSent": {
    "sample string 1": "71629305-7a93-47e8-91ca-1a25c8099fdc",
    "sample string 3": "5aab352e-f0c8-42f0-896d-17352744cc3c"
  },
  "EmailBody": "sample string 10",
  "id": "eddacd3e-ebc1-4f87-9e3b-7d460e7ea6ed",
  "ConfigId": "606170ae-c3de-4031-9858-f0b522b5ad68"
}