Config packages provide a structured, three-step mechanism for bulk configuration management in Dragon Guard WMS. Administrators can export the current configuration state of any supported entity into a portable package, modify it offline or review it in tooling, submit it to the preview endpoint to inspect the proposed diff before committing, and finally apply the package to persist changes to the database. This pattern ensures that bulk configuration changes are auditable and reversible before they take effect. All config package endpoints are restricted to admin-level roles.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_WEB/llms.txt
Use this file to discover all available pages before exploring further.
The export → preview → apply pattern
Export current configuration
Call the
export-config endpoint (GET or POST) for the target entity. The response contains a portable configuration package representing the current state of that entity’s data. Save or download this package for review and editing.Edit the configuration package
Modify the exported package according to the desired changes — add records, update field mappings, change default values, or remove obsolete entries. The package format is designed to be human-readable and diff-friendly.
Preview proposed changes
Submit the modified package to the
preview-config endpoint. The backend returns a detailed diff showing what will be created, updated, or removed — without persisting anything. Review the diff carefully before proceeding.Endpoints overview
| Entity | Export | Preview | Apply |
|---|---|---|---|
| Receipt Headers | GET/POST /api/ReceivingHeaders/export-config | GET/POST /api/ReceivingHeaders/preview-config | GET/POST /api/ReceivingHeaders/apply-config |
| Receipt Lines | GET/POST /api/receivinglines/export-config | GET/POST /api/receivinglines/preview-config | GET/POST /api/receivinglines/apply-config |
| Shipment Headers | GET/POST /api/shipmentheaders/export-config | GET/POST /api/shipmentheaders/preview-config | GET/POST /api/shipmentheaders/apply-config |
| Shipment Lines | GET/POST /api/shipmentlines/export-config | GET/POST /api/shipmentlines/preview-config | GET/POST /api/shipmentlines/apply-config |
Each endpoint supports both
GET (to retrieve the current config or schema) and POST (to submit a package for preview or application). Use GET for initial discovery and POST to submit a modified package.Receipt Headers config package
Export
ReceivingHeaders records. Use GET to export without filters, or POST to scope the export to a subset of records.
Example POST request body
Preview
Apply
Receipt Lines config package
Export
ReceivingLines. Scoped to a specific header with a POST body or returned in full with GET.
Preview
Apply
Shipment Headers config package
Export
shipmentheaders records.
Preview
Apply
Shipment Lines config package
Export
Preview
Apply
Common request and response fields
All config package endpoints share the same structural conventions for their request bodies and responses.Package request body (POST)
Scopes the export, preview, or apply operation to a single company. Omit for cross-company admin operations (SUPERADMIN_SUPREMO only).
For preview and apply: the array of configuration records to process. Each record corresponds to one document or line entity.
For export: whether to include inactive records in the exported package. Defaults to
false.Package response fields
Identifies the entity type this package belongs to (e.g.,
ReceivingHeaders, shipmentlines).ISO 8601 timestamp of when the export or apply operation was performed.
(Preview only) Records that will be inserted when the package is applied.
(Preview only) Records and field-level changes that will be updated when the package is applied.
(Preview only) Records that will be removed when the package is applied.
Non-blocking advisory messages returned during preview or apply.
(Apply only) Count of records affected by each operation type.
Access control
All config package endpoints are restricted to admin-level roles. Tenant users without admin privileges will receive
401 Unauthorized. For Shipments config packages, see also Shipments API.Error codes
| HTTP Status | Meaning |
|---|---|
400 | Validation error — malformed package, missing companyId, incompatible record schema |
401 | Missing, expired, or insufficiently privileged JWT token |
500 | Internal server error during package processing |