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

NameDescriptionTypeAdditional information
planId

globally unique identifier

Required

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": "f59421cc-1724-4716-b2be-e0901f7c33e6",
  "Global": true,
  "TriggerType": 0,
  "OnField": "74b14090-d31e-48fb-b938-dc842bc5c093",
  "FieldName": "sample string 4",
  "MatchingValue": "sample string 5",
  "WhenObject": {
    "WhenType": 0,
    "DayOfWeek": "sample string 1"
  },
  "Filter": "sample string 6",
  "EmailReceiverType": 0,
  "EmailReceiverFieldSelection": "317cac7f-128e-4ff4-a7c9-1ae0e712d983",
  "EmailReceiverFieldSelectionName": "sample string 8",
  "EmailReceiverUsersSelection": [
    "51a3622e-65da-4496-a31a-466ae0ca15c5",
    "008cd584-e35b-4106-a6ed-19b94b50a7ea"
  ],
  "EmailReceiverTeamsSelection": [
    "1725ff3c-d3c8-4fb7-85c6-88018a733e18",
    "f166b99a-0f36-4208-9436-4799b14a8265"
  ],
  "EmailSubject": "sample string 9",
  "EmailFieldsSent": {
    "sample string 1": "9475a427-40a6-4316-905a-6bcd65e238e5",
    "sample string 3": "b67fb5ba-fd6d-475c-9c44-4d220aafceb6"
  },
  "EmailBody": "sample string 10",
  "__app__": "WORKPLANNER",
  "__entity_kind__": "WorkPlanner.Models.TaskNotification",
  "id": "82978d6c-6645-4602-8c4c-bf87681ab910",
  "RestoreFromId": "00000000-0000-0000-0000-000000000000",
  "ConfigId": "081c8c74-d571-4080-9f9c-c8cdef96c06a",
  "_ts": 638648372974917542
}

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": "a77e2acf-6b41-4fdd-9450-d7e6f417a47a",
  "Global": true,
  "TriggerType": 0,
  "OnField": "a6ffd971-ddec-411a-97f5-023d9aee8252",
  "FieldName": "sample string 4",
  "MatchingValue": "sample string 5",
  "WhenObject": {
    "WhenType": 0,
    "DayOfWeek": "sample string 1"
  },
  "Filter": "sample string 6",
  "EmailReceiverType": 0,
  "EmailReceiverFieldSelection": "a4606b13-0043-46c1-a18a-4cf4a6ae6921",
  "EmailReceiverFieldSelectionName": "sample string 8",
  "EmailReceiverUsersSelection": [
    "b71a6bb2-804f-4622-a221-5a1babe31039",
    "b647f727-ccd7-4879-8465-5792363b0e9c"
  ],
  "EmailReceiverTeamsSelection": [
    "273b6254-ba1c-49b7-9c9b-e424a590758b",
    "ece8c78c-a961-4bd5-925d-6328a1c32337"
  ],
  "EmailSubject": "sample string 9",
  "EmailFieldsSent": {
    "sample string 1": "3a4b4054-8e78-42cb-a23f-736450c68275",
    "sample string 3": "89619a7b-a5d5-4b08-9fbb-a094622c9c8e"
  },
  "EmailBody": "sample string 10",
  "id": "ac406499-40fe-4008-a553-f3df5958e5b0",
  "ConfigId": "473facd5-a180-4e91-bef2-dd6389c0f69d"
}