FoodGuard Mobile API
  1. Phase 3: Sample Evaluation
FoodGuard Mobile API
  • Authentication
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • Branches
      • List
      • Show
    • Suppliers
      • List
      • Show
    • List Food Categories
      GET
  • Batch Management
    • List Batches
      GET
    • Create Batch
      POST
    • Get Batch Details
      GET
  • Phase 1: Truck Inspection
    • Submit Truck Inspection
      POST
  • Phase 2: Label Analysis
    • Analyze Label (OCR)
      POST
  • Phase 3: Sample Evaluation
    • List Batch Samples
      GET
    • Add Sample to Batch
      POST
  • Phase 4: Finalize
    • Finalize Batch Inspection
      POST
  • Dashboard & History
    • Get Dashboard Stats
      GET
    • Get Inspection History
      GET
  • Settings
    • Get Quality Thresholds
      GET
  1. Phase 3: Sample Evaluation

Add Sample to Batch

POST
/batches/{batch_id}/samples
Adds a new sample to a pending batch.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params multipart/form-dataRequired

Responses

🟢201
application/json
Sample added successfully
Body

Example
{
    "success": true,
    "message": "string",
    "data": {}
}
🟠422
Modified at 2025-12-31 17:12:06
Previous
List Batch Samples
Next
Finalize Batch Inspection
Built with