POST api/notifications/plan/{notificationId}/update
Update a Plan Notification by configuring a PlanNotification object
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
notificationId | string |
None. |
Body Parameters
PlanNotificationName | Description | Type | Additional 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": "03f8519d-caa8-47b8-b4a4-1ce2e3dab0f1", "TriggerType": 0, "OnField": "e40e54da-a70d-4fb4-8cfc-ed0ea7c080ee", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "1214d110-47a7-44ba-91c4-a3c3deeabc73", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "b37cef72-0da0-46e2-847b-c22f8082a679", "fff407e9-3a37-43ed-a457-85157375feb7" ], "EmailReceiverTeamsSelection": [ "d1832545-25fe-4bdb-8eaa-cb36c1c7205f", "f3162d30-b4bc-486a-9115-83a5c387fc4b" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "c9f4e58e-9663-4f40-977d-c5c94c90e51a", "sample string 3": "99f927dd-e74e-4361-9d09-04d0bcc290ca" }, "EmailBody": "sample string 9", "UserId": "5ec8db04-1370-43f2-84c1-cc6992e418a8", "PlanId": "03b8b0f6-a239-4756-b8ab-8e15b4514424", "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.PlanNotification", "id": "90814d13-cd5b-447b-ae28-a36ac5ae62fd", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "442ff546-6c8f-45d6-989f-127b71c0b771", "_ts": 638701477019609572 }
Response Information
Resource Description
PlanNotificationName | Description | Type | Additional 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": "6e5818b1-fe61-40c1-80ea-b3aad6e94e1d", "TriggerType": 0, "OnField": "266513a2-75e0-4dc2-923e-600ed1694fe7", "FieldName": "sample string 3", "MatchingValue": "sample string 4", "WhenObject": { "WhenType": 0, "DayOfWeek": "sample string 1" }, "Filter": "sample string 5", "EmailReceiverType": 0, "EmailReceiverFieldSelection": "4a7ebda0-1e5b-49d9-9df2-887441b56fd3", "EmailReceiverFieldSelectionName": "sample string 7", "EmailReceiverSharedWithLevels": [ 0, 0 ], "EmailReceiverUsersSelection": [ "9770ca93-c113-4b26-898e-d5fd8ef7c9cd", "78b3c2e7-9a59-432f-9544-8d66453881aa" ], "EmailReceiverTeamsSelection": [ "6d89227a-f573-4766-914d-67f3915e0272", "9317df18-ece2-42c9-ba14-e9aed3e27ca8" ], "EmailSubject": "sample string 8", "EmailFieldsSent": { "sample string 1": "1ef8c6b0-c3f2-4904-8aae-4356a0210c51", "sample string 3": "4794bf4c-5a33-43ec-afe4-0fa2471c0393" }, "EmailBody": "sample string 9", "UserId": "94297f9d-5b45-43db-839c-8948a648440c", "PlanId": "1210b79a-4a8d-4017-a786-4bf900b3b032", "id": "7182f931-6bf9-407e-b4a6-6a2bd657d83e", "ConfigId": "18103cc4-c34b-4766-bd45-52ef4273f781" }