Capture

POST /api/camera/{cameraId}/capture

Headers

  • Specify effective organization_id for Admin and Group Organization Admins. This is a global header for all endpoints only taken into consideration when it makes sense (it won't be used in Auth, for example)

Path parameters

Query parameters

  • attachmentType string Required

    attachmentType

    Values are DRIVER_LICENSE_PHOTO, DRIVER_PHOTO, EXTRA_FILE, GUEST_VEHICLE_PHOTO, TIRE_PHOTO, TRAILER_INSIDE_PHOTO, TRAILER_ISSUE_PHOTO, TRAILER_LEFT_PHOTO, TRAILER_RIGHT_PHOTO, TRAILER_SEAL_PHOTO, TRUCK_ISSUE_PHOTO, or TRUCK_PHOTO.

Responses

POST /api/camera/{cameraId}/capture
curl \
 -X POST https://api-dev.gatego.io:443/api/camera/{cameraId}/capture?attachmentType=DRIVER_LICENSE_PHOTO \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "attachment": {
    "id": 42
  },
  "camera": {
    "aim": "string",
    "direction": "IN",
    "id": 42,
    "name": "string"
  }
}