Update DGT record
PUT/truckers/dgt/:id
Updates an existing DGT record. Allows modifying:
- DGT Code
- Status (pending/resolved)
Requirements:
- Valid DGT record ID
- The record must belong to the authenticated carrier
- At least one of the editable fields must be provided
Usage examples:
- Correct an incorrectly entered DGT code
- Mark record as resolved when the process is completed
- Update status for internal tracking
Notes:
- Does not modify associated deliveries
- Fields not provided retain their current value
- Requires valid JWT authentication
Request
Responses
- 200
- 400
- 401
- 404
- 500
DGT record successfully updated
Error in input data:
- Empty DGT code
- Invalid status (must be pending or resolved)
- No fields provided for update
Unauthorized - Invalid or missing JWT token
Record not found. Possible causes:
- Incorrect ID
- The record does not belong to the user
Internal server error while processing the request