POST /api/attachment

POST /api/attachment

Query parameters

  • type string

    Values are TRAILER_LEFT_PHOTO, TRAILER_RIGHT_PHOTO, TRAILER_INSIDE_PHOTO, TRAILER_SEAL_PHOTO, TRAILER_ISSUE_PHOTO, REAR_TRAILER_PHOTO, LICENSE_PLATE_PHOTO, WASH_OUT_SLIP_PHOTO, BILL_OF_LADING_PHOTO, TRUCK_PHOTO, TRUCK_ISSUE_PHOTO, TRUCK_CARRIER_INFO_PHOTO, TIRE_PHOTO, GUEST_VEHICLE_PHOTO, DRIVER_PHOTO, DRIVER_LICENSE_PHOTO, VISITOR_PERSON_PHOTO, or EXTRA_FILE.

multipart/form-data

Body

  • file object

    Additional properties are allowed.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • name string
    • type string

      Values are TRAILER_LEFT_PHOTO, TRAILER_RIGHT_PHOTO, TRAILER_INSIDE_PHOTO, TRAILER_SEAL_PHOTO, TRAILER_ISSUE_PHOTO, REAR_TRAILER_PHOTO, LICENSE_PLATE_PHOTO, WASH_OUT_SLIP_PHOTO, BILL_OF_LADING_PHOTO, TRUCK_PHOTO, TRUCK_ISSUE_PHOTO, TRUCK_CARRIER_INFO_PHOTO, TIRE_PHOTO, GUEST_VEHICLE_PHOTO, DRIVER_PHOTO, DRIVER_LICENSE_PHOTO, VISITOR_PERSON_PHOTO, or EXTRA_FILE.

    • Additional properties are allowed.

      Hide inference attributes Show inference attributes object
  • Not Authorized

  • Not Allowed

POST /api/attachment
curl \
 -X POST https://api-dev.gatego.io/api/attachment \
 -H "Content-Type: multipart/form-data" \
 -F 'file={}'
Response examples (200)
{
  "id": 42,
  "name": "string",
  "type": "TRAILER_LEFT_PHOTO",
  "inference": {
    "type": "TRAILER_NUMBER_ROBOFLOW",
    "status": "OK",
    "result": "string",
    "confidence": 42.0
  }
}