This genset API endpoint allows querying for one genset.

Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Genset Not Found
500 Internal Server Error.

Examples

curl "https://app.octopi.co/api/v1/gensets/MYGENSET123.json" -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=ADD TOKEN HERE"
{
  "genset": {
    "id": 1234,
    "number": "G000123",
    "seal": null,
    "chassis": null,
    "has_battery": true,
    "created_by": null,
    "updated_by": null,
    "created_at": "2022-09-23T11:09:57.098-04:00",
    "updated_at": "2022-09-23T11:09:57.098-04:00",
    "equipment_condition": null,
    "fuel_level": null,
    "container": null,
    "current_location": null,
    "active": true,
    "shipping_line": null,
    "hours": null
  }
}