POST api/notifications/plan/create

Create a Plan Notification by configuring a PlanNotification object

Request Information

URI Parameters

None.

Body Parameters

PlanNotification
NameDescriptionTypeAdditional information
NotificationScope

NotificationScope

None.

PlanType

globally unique identifier

None.

TriggerType

PlanNotificationTrigger

None.

OnField

globally unique identifier

None.

FieldName

string

None.

MatchingValue

string

None.

WhenObject

WhenObject

None.

Filter

string

None.

EmailReceiverType

PlanNotificationReceiver

None.

EmailReceiverFieldSelection

globally unique identifier

None.

EmailReceiverFieldSelectionName

string

None.

EmailReceiverSharedWithLevels

Collection of AccessLevel

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.

UserId

globally unique identifier

None.

PlanId

globally unique identifier

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "NotificationScope": 0,
  "PlanType": "0e3f99d0-4643-4898-8dd4-7a1ed86ace45",
  "TriggerType": 0,
  "OnField": "90f902bf-cfe4-48d6-82c8-bf4c5c2642b8",
  "FieldName": "sample string 3",
  "MatchingValue": "sample string 4",
  "WhenObject": {
    "WhenType": 0,
    "DayOfWeek": "sample string 1"
  },
  "Filter": "sample string 5",
  "EmailReceiverType": 0,
  "EmailReceiverFieldSelection": "b8833dfd-4923-4864-b600-15f4f6322f1d",
  "EmailReceiverFieldSelectionName": "sample string 7",
  "EmailReceiverSharedWithLevels": [
    0,
    0
  ],
  "EmailReceiverUsersSelection": [
    "aca70b89-121d-45ec-b473-bed62c509afe",
    "5fc0de21-02b5-419b-ac73-5c8f7b633f57"
  ],
  "EmailReceiverTeamsSelection": [
    "bbefeabb-2d8a-49e5-993d-26a04f1d20bb",
    "ea6dfa83-717b-4f68-a023-df5cb50873dd"
  ],
  "EmailSubject": "sample string 8",
  "EmailFieldsSent": {
    "sample string 1": "52cf1570-7ff8-467a-98ae-a77a40c3979a",
    "sample string 3": "71d92786-5603-4bee-886d-2c51c94b706b"
  },
  "EmailBody": "sample string 9",
  "UserId": "7495ce6f-1c43-4f34-9c0f-a449dccb0ae2",
  "PlanId": "9d994db9-edee-4bc5-9189-bc8d16f245d9",
  "__app__": "WORKPLANNER",
  "__entity_kind__": "WorkPlanner.Models.PlanNotification",
  "id": "a0786d6e-10f6-4aea-96d7-993f2b63a097",
  "RestoreFromId": "00000000-0000-0000-0000-000000000000",
  "ConfigId": "27b4be2b-523c-4795-a09e-3c3135c65fab",
  "_ts": 638648373260485753
}

Response Information

Resource Description

PlanNotification
NameDescriptionTypeAdditional information
NotificationScope

NotificationScope

None.

PlanType

globally unique identifier

None.

TriggerType

PlanNotificationTrigger

None.

OnField

globally unique identifier

None.

FieldName

string

None.

MatchingValue

string

None.

WhenObject

WhenObject

None.

Filter

string

None.

EmailReceiverType

PlanNotificationReceiver

None.

EmailReceiverFieldSelection

globally unique identifier

None.

EmailReceiverFieldSelectionName

string

None.

EmailReceiverSharedWithLevels

Collection of AccessLevel

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.

UserId

globally unique identifier

None.

PlanId

globally unique identifier

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "NotificationScope": 0,
  "PlanType": "af339710-37a2-4c6a-8d47-e65c3700d9ad",
  "TriggerType": 0,
  "OnField": "ae662b43-eb16-4849-a084-01b752ffbe78",
  "FieldName": "sample string 3",
  "MatchingValue": "sample string 4",
  "WhenObject": {
    "WhenType": 0,
    "DayOfWeek": "sample string 1"
  },
  "Filter": "sample string 5",
  "EmailReceiverType": 0,
  "EmailReceiverFieldSelection": "252f49f0-96c8-41be-8cd7-d9ad8aa9d7af",
  "EmailReceiverFieldSelectionName": "sample string 7",
  "EmailReceiverSharedWithLevels": [
    0,
    0
  ],
  "EmailReceiverUsersSelection": [
    "f992c964-4d8f-408b-b264-355c6af96f56",
    "9de25839-bd7e-4b21-8ded-42448aedf32b"
  ],
  "EmailReceiverTeamsSelection": [
    "b8865db4-a961-4e73-8acf-fe72fa995010",
    "337b6509-8f4a-4508-8c38-59dd033c10ed"
  ],
  "EmailSubject": "sample string 8",
  "EmailFieldsSent": {
    "sample string 1": "46ead382-8751-4d50-8359-cd0a65fac6b2",
    "sample string 3": "5fc56ac0-845a-4354-8683-fdd0cf3f658a"
  },
  "EmailBody": "sample string 9",
  "UserId": "17db629d-cd72-4a3b-aa5d-7dc94e84b183",
  "PlanId": "2a6b2b87-4782-40ea-9a08-4f7cd4b6859e",
  "id": "92c98772-cd72-4c90-bf64-41b21ef84b39",
  "ConfigId": "80fdaf4d-0d32-413d-b12f-b57de88b6349"
}