Routes verified from the controllers 2026-07-20; host by live capture. Class-level [Authorize].

Live: the survey list loaded from middleware-dev.paidhr.com/admin/surveys/select; core-backend also exposes Admin/Surveys/*. Split not fully mapped — technical §6.


Admin/SurveysController — [Admin/Surveys] (27)

Templates

Method Route Purpose
POST Add_Template / Finish_Template Create / finalise a template.
POST Add_Template_Question / Edit_Template_Question / Move_Template_Question / Delete_Template_Question Template question CRUD + reorder.
POST Delete_Template / Restore_Template / Remove_Template Soft-delete / restore / remove.
GET CheckTemplate Validation.
GET SelectCustomTemplates / SelectDefaultTemplates List company vs platform templates.

Surveys

Method Route Purpose
GET View/Index · Get · Select Bootstrap / detail / list.
POST Add [templateId?] Create a survey (optionally from a template).
POST Add_Question / Edit_Question / Move_Question / Delete_Question Question CRUD + reorder.
POST Finish Finalise (New → Ready).
POST Assign Assign to employees → EmployeeSurvey.
POST Delete / Restore / Remove Soft-delete lifecycle.
POST Save_Response / Submit (also used by the take flow) persist / finalise responses.

SurveyController — [Survey] (3)

Shared/public survey surface (view/take).

Employee/SurveysController — [Employee/Surveys] (2)

Method Route Purpose
GET View/Detail View an assigned survey.
(take) Answer + submit.

Key flow

Add_Template → Add_Template_Question(×n) → Finish_Template
Add(survey, [templateId]) → Add_Question/Edit/Move → Finish (Ready)
Assign → EmployeeSurvey(per person)
(employee) Save_Response(×n) → Submit → SurveyResponse

Not in this API

Auth & tenancy

Authorization: Bearer <token>; tenant from claims (Identity). Surveys are CompanyId-scoped (TenantDb); default templates are org/platform (MembershipDb).