POST,PATCH /tms/deliveries/form¶
What it does¶
/tms/deliveries/form accepts POST,PATCH and is declared in app/systems/TMS/delivery/api_routes.php:2132 as a path.
The route handler delegates to tmsDeliveryApiFormMutation(). That function is the owner of
this behaviour; the route entry is only dispatch.
Call chain:
- →
tmsDeliveryApiFormMutation()—app/systems/TMS/delivery/api_routes.php:1875 - ↳
tmsDeliveryApiHasOfficeAccess()—app/systems/TMS/delivery/api_routes.php:956 - ↳
isSuperAdmin()—config/config.php:1477
Who calls it¶
Called from:
frontend/pages/system/TMS/delivery/driver-operation.phppublic/assets/js/modules/shared/popup.core.jspublic/assets/js/modules/tms/delivery-submit-modal.js
A caller is the strongest available evidence of the intended use.
Input¶
| Where | Key |
|---|---|
query |
context |
query |
mode |
Request bodies must not use TYPE, ACTION or USERNAME as contract fields.
Output¶
| Key |
|---|
T_DELIVERY |
T_DRIVER_LOG |
T_EQUIPMENT |
T_EQUIPMENT_LOAD |
Success is { "data": …, "requestId": "…" }.
Failure is { "error": { "code", "message" }, "requestId": "…" }.
Data¶
No table reference is visible in the owner function body.
Access¶
- module-gated on
tms.delivery, so tenant module access applies