S

Saga IMOP — API Reference

Project Lumina · Backend · PostgreSQL

● Running on port 3001 86 total endpoints 8 groups

Health

1 endpoint
Method Path Description
GET /api/health Server health check

Masters

60 endpoints
Method Path Description
GET /api/masters/productCategory List all productCategory
POST /api/masters/productCategory Create productCategory
PUT /api/masters/productCategory/:id Update productCategory
DELETE /api/masters/productCategory/:id Delete productCategory
GET /api/masters/manufacturingLocation List all manufacturingLocation
POST /api/masters/manufacturingLocation Create manufacturingLocation
PUT /api/masters/manufacturingLocation/:id Update manufacturingLocation
DELETE /api/masters/manufacturingLocation/:id Delete manufacturingLocation
GET /api/masters/manufacturingArea List all manufacturingArea
POST /api/masters/manufacturingArea Create manufacturingArea
PUT /api/masters/manufacturingArea/:id Update manufacturingArea
DELETE /api/masters/manufacturingArea/:id Delete manufacturingArea
GET /api/masters/dosageForm List all dosageForm
POST /api/masters/dosageForm Create dosageForm
PUT /api/masters/dosageForm/:id Update dosageForm
DELETE /api/masters/dosageForm/:id Delete dosageForm
GET /api/masters/attribute List all attribute
POST /api/masters/attribute Create attribute
PUT /api/masters/attribute/:id Update attribute
DELETE /api/masters/attribute/:id Delete attribute
GET /api/masters/dosageFormSpec List all dosageFormSpec
POST /api/masters/dosageFormSpec Create dosageFormSpec
PUT /api/masters/dosageFormSpec/:id Update dosageFormSpec
DELETE /api/masters/dosageFormSpec/:id Delete dosageFormSpec
GET /api/masters/packSpec List all packSpec
POST /api/masters/packSpec Create packSpec
PUT /api/masters/packSpec/:id Update packSpec
DELETE /api/masters/packSpec/:id Delete packSpec
GET /api/masters/packCharacteristics List all packCharacteristics
POST /api/masters/packCharacteristics Create packCharacteristics
PUT /api/masters/packCharacteristics/:id Update packCharacteristics
DELETE /api/masters/packCharacteristics/:id Delete packCharacteristics
GET /api/masters/country List all country
POST /api/masters/country Create country
PUT /api/masters/country/:id Update country
DELETE /api/masters/country/:id Delete country
GET /api/masters/client List all client
POST /api/masters/client Create client
PUT /api/masters/client/:id Update client
DELETE /api/masters/client/:id Delete client
GET /api/masters/taskCategory List all taskCategory
POST /api/masters/taskCategory Create taskCategory
PUT /api/masters/taskCategory/:id Update taskCategory
DELETE /api/masters/taskCategory/:id Delete taskCategory
GET /api/masters/employee List all employee
POST /api/masters/employee Create employee
PUT /api/masters/employee/:id Update employee
DELETE /api/masters/employee/:id Delete employee
GET /api/masters/status List all status
POST /api/masters/status Create status
PUT /api/masters/status/:id Update status
DELETE /api/masters/status/:id Delete status
GET /api/masters/priority List all priority
POST /api/masters/priority Create priority
PUT /api/masters/priority/:id Update priority
DELETE /api/masters/priority/:id Delete priority
GET /api/masters/customerOrder List all customerOrder
POST /api/masters/customerOrder Create customerOrder
PUT /api/masters/customerOrder/:id Update customerOrder
DELETE /api/masters/customerOrder/:id Delete customerOrder

Production Schedule

5 endpoints
Method Path Description
GET /api/schedule List all schedule rows
GET /api/schedule/:id Get a single schedule row
POST /api/schedule Create schedule row
PUT /api/schedule/:id Update schedule row
DELETE /api/schedule/:id Delete schedule row

Pre Schedule

7 endpoints
Method Path Description
GET /api/pre-schedule List all pre-schedule entries
GET /api/pre-schedule/:id Get a single pre-schedule entry
POST /api/pre-schedule Create pre-schedule entries (bulk array)
PUT /api/pre-schedule/:id Update pre-schedule entry
POST /api/pre-schedule/:id/approve Approve → promotes to Production Schedule
POST /api/pre-schedule/:id/reject Reject pre-schedule entry
DELETE /api/pre-schedule/:id Delete pre-schedule entry

Kanban Tasks

5 endpoints
Method Path Description
GET /api/tasks List all tasks
GET /api/tasks/:id Get a single task
POST /api/tasks Create task
PUT /api/tasks/:id Update task
DELETE /api/tasks/:id Delete task

Comments

3 endpoints
Method Path Description
GET /api/comments/:recordType/:recordId List comments for a record (schedule / pre_schedule / task)
POST /api/comments/:recordType/:recordId Add a comment (with optional attachments)
DELETE /api/comments/:id Delete a comment

Activity

2 endpoints
Method Path Description
GET /api/activity/:recordType/:recordId Get activity log for a record
POST /api/activity/:recordType/:recordId Append an activity entry

User Column Settings

3 endpoints
Method Path Description
GET /api/user-column-settings List the acting user's saved column config for every screen
PUT /api/user-column-settings/:screenName Save the acting user's column config for a screen (their default)
DELETE /api/user-column-settings/:screenName Clear the acting user's override (revert to role default)