Routes verified from the controller 2026-07-21. Class-level [Authorize]; admin/Settings access required.


Admin/Custom_NotificationsController — [Admin/Custom_Notifications] (10)

Read / form bootstrap

Method Route Purpose
GET View/New Bootstrap the create form.
GET View/Edit Bootstrap the edit form.
GET GetTypes The notification types (event categories).
GET GetValidStages The valid stages (Creation/Approval/Rejection).
GET GetEntities The pickable recipient roles (admin tiers + custom roles).
GET Select List configured rules.

Write

Method Route Purpose
POST Add Create a rule (type × stage → roles).
POST Update Edit a rule's recipients.
POST Enable Turn a rule on.
POST Disable Turn a rule off.

No Delete — rules are toggled, not removed. (RFD-003)


Request shape (conceptual)

Add:  { customNotificationTypeId, stage (1|2|3), recipients: [roleId, …] }

GetEntities returns customNotificationEntitySelect — the role options. Stages come from GetValidStages (Creation=1, Approval=2, Rejection=3). Types from GetTypes, grouped by module in the UI.

Recipient resolution

GetEntities = hardcoded admin-tier list + MembershipService.GetRoleList(false) (custom roles). ⚠️ Ids 4-6 collide on one role (RFD-002).

Not in this API

Auth & tenancy

Authorization: Bearer <token>; tenant from claims (Identity). Rules are CompanyId-scoped (TenantDb); recipient roles resolved from the role catalog.