{"components":{"parameters":{"V1DispatchRouteIdOrExternalIdParam":{"description":"ID of the route. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"route_id_or_external_id","required":true,"schema":{"type":"string"}},"V1assetHistoryEndTimeParam":{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}},"V1assetHistoryStartTimeParam":{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},"V1assetIdParam":{"description":"ID of the asset. Must contain only digits 0-9.","in":"path","name":"asset_id","required":true,"schema":{"format":"int64","type":"integer"}},"V1dataInputEndTimeParam":{"description":"Timestamp in unix milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs. Defaults to nowMs.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},"V1dataInputIdParam":{"description":"ID of the data input. Must contain only digits 0-9.","in":"path","name":"data_input_id","required":true,"schema":{"format":"int64","type":"integer"}},"V1dataInputStartTimeParam":{"description":"Timestamp in unix milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs. defaults to nowMs.","in":"query","name":"startMs","schema":{"format":"int64","type":"integer"}},"V1documentQueryByParam":{"description":"Retrieve most recent documents based on either driver creation time or driver update time. If no value is provided, the default is `\"created\"`.","in":"query","name":"queryBy","schema":{"enum":["created","updated"],"format":"string","type":"string"}},"V1documentsDurationMsParam":{"description":"Time in milliseconds that represents the duration before endMs to query. Defaults to 24 hours.","in":"query","name":"durationMs","schema":{"format":"int64","type":"integer"}},"V1documentsEndMsParam":{"description":"Time in unix milliseconds that represents the oldest documents to return. Used in combination with durationMs. Defaults to now.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},"V1getMessagesDurationMsParam":{"description":"Time in milliseconds that represents the duration before endMs to query. Defaults to 24 hours.","in":"query","name":"durationMs","schema":{"format":"int64","type":"integer"}},"V1getMessagesEndMsParam":{"description":"Time in unix milliseconds that represents the end of time range of messages to return. Used in combination with durationMs. Defaults to now.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},"V1harshEventMsParam":{"description":"Timestamp in milliseconds representing the timestamp of a harsh event.","in":"query","name":"timestamp","required":true,"schema":{"format":"int64","type":"integer"}},"V1paginationEndingBeforeParam":{"description":"Pagination parameter indicating the cursor position to return results before. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'startingAfter' parameter.","in":"query","name":"endingBefore","schema":{"type":"string"}},"V1paginationLimitParam":{"description":"Pagination parameter indicating the number of results to return in this request. Used in conjunction with either 'startingAfter' or 'endingBefore'.","in":"query","name":"limit","schema":{"format":"int64","type":"number"}},"V1paginationStartingAfterParam":{"description":"Pagination parameter indicating the cursor position to continue returning results after. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'endingBefore' parameter.","in":"query","name":"startingAfter","schema":{"type":"string"}},"V1routeDurationParam":{"description":"Time in milliseconds that represents the duration before end_time to query. Defaults to 24 hours.","in":"query","name":"duration","schema":{"format":"int64","type":"integer"}},"V1routeEndTimeParam":{"description":"Time in unix milliseconds that represents the end time of the requested time interval. See above for a description of how routes are returned. Defaults to now.","in":"query","name":"end_time","schema":{"format":"int64","type":"integer"}},"V1routeHistoryEndTimeParam":{"description":"Timestamp representing the end of the period to fetch, inclusive. Used in combination with start_time. Defaults to nowMs.","in":"query","name":"end_time","schema":{"format":"int64","type":"integer"}},"V1routeHistoryStartTimeParam":{"description":"Timestamp representing the start of the period to fetch, inclusive. Used in combination with end_time. Defaults to 0.","in":"query","name":"start_time","schema":{"format":"int64","type":"integer"}},"V1safetyScoreEndMsParam":{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs. Total duration (endMs - startMs) must be greater than or equal to 1 hour.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}},"V1safetyScoreStartMsParam":{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs. Total duration (endMs - startMs) must be greater than or equal to 1 hour.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},"V1visionCameraIdParam":{"description":"The camera_id should be valid for the given accessToken.","in":"path","name":"camera_id","required":true,"schema":{"format":"int64","type":"integer"}},"V1visionDurationMsParam":{"description":"DurationMs is a required param. This works with the EndMs parameter. Indicates the duration in which the visionRuns will be fetched","in":"query","name":"durationMs","required":true,"schema":{"format":"int64","type":"integer"}},"V1visionEndMsParam":{"description":"EndMs is an optional param. It will default to the current time.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},"V1visionIncludeParam":{"description":"Include is a filter parameter. Accepts 'pass', 'reject' or 'no_read'.","in":"query","name":"include","schema":{"type":"string"}},"V1visionLimitParam":{"description":"Limit is an integer value from 1 to 1,000.","in":"query","name":"limit","schema":{"format":"int64","type":"integer"}},"V1visionProgramIdParam":{"description":"The configured program's ID on the camera.","in":"query","name":"program_id","schema":{"format":"int64","type":"integer"}},"V1visionProgramIdPathParam":{"description":"The configured program's ID on the camera.","in":"path","name":"program_id","required":true,"schema":{"format":"int64","type":"integer"}},"V1visionStartAtMsParam":{"description":"EndMs is an optional param. It will default to the current time.","in":"query","name":"startedAtMs","schema":{"format":"int64","type":"integer"}},"V1visionStartAtMsPathParam":{"description":"Started_at_ms is a required param. Indicates the start time of the run to be fetched.","in":"path","name":"started_at_ms","required":true,"schema":{"format":"int64","type":"integer"}},"decorationStatTypes":{"description":"Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.\n\nYou may list ***up to 2*** decorations using comma-separated format. If multiple stats are listed in the `types` parameter, the decorations will be added to each one. For example: `types=engineStates,obdOdometerMeters,faultCodes&decorations=gps,fuelPercents` will list GPS and fuel decorations for each engine state change, each odometer reading, and each fault code. See the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nNote that decorations may significantly increase the response payload size.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in 'blast mode'.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"decorations","schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","batteryMilliVolts","barometricPressurePa","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"},"driverActivationStatusParam":{"description":"If value is `deactivated`, only drivers that are deactivated will appear in the response. This parameter will default to `active` if not provided (fetching only active drivers).","in":"query","name":"driverActivationStatus","schema":{"enum":["active","deactivated"],"type":"string"}},"equipmentStatTypes":{"description":"The types of equipment stats you want to query. Currently, you may submit up to 4 types.\r\n\r\n- `engineRpm`: The revolutions per minute of the engine.\r\n- `fuelPercents`: The percent of fuel in the unit of equipment.\r\n- `obdEngineSeconds`: The number of seconds the engine has been running as reported directly from on-board diagnostics. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14.\r\n- `gatewayEngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the asset gateway has been receiving power with an offset provided manually through the Samsara cloud dashboard. This is supported with the following hardware configurations: \r\n  - AG24/AG26/AG46P + APWR cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required) \r\n  - AG52 + BPWR/BEQP cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required). \r\n- `gatewayJ1939EngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the AG26 device is receiving power via J1939/CAT cable and an offset provided manually through the Samsara cloud dashboard.\r\n- `obdEngineStates`: The state of the engine read from on-board diagnostics. Can be `Off`, `On`, or `Idle`.\r\n- `gatewayEngineStates`: An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Can be `Off` or `On`.\r\n- `gpsOdometerMeters`: An approximation of odometer reading based on GPS calculations since the AG26 was activated, and a manual odometer offset provided in the Samsara cloud dashboard. Valid values: `Off`, `On`.\r\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address. \r\n- `engineTotalIdleTimeMinutes`: Total time in minutes that the engine has been idling.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["gatewayEngineStates","obdEngineStates","fuelPercents","engineRpm","gatewayEngineSeconds","obdEngineSeconds","gatewayJ1939EngineSeconds","gpsOdometerMeters","gps","engineTotalIdleTimeMinutes"],"format":"string","type":"string"},"type":"array"},"style":"form"},"isDeactivatedParam":{"description":"If value is true, only drivers that are deactivated will appear in the response. This parameter will default to false if not provided (fetching only active drivers).","in":"query","name":"isDeactivated","schema":{"type":"boolean"}},"vehicleStatTypes":{"description":"The stat types you want this endpoint to return information on. See also the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nYou may list ***up to 3*** types using comma-separated format. For example: `types=gps,engineStates,obdOdometerMeters`.\n\n*Note:* `auxInput3`-`auxInput10` count as a single type against the limit of 3. For example, you could list `types=engineStates,obdOdometerMeters,auxInput3,auxInput4` because `auxInput3` and `auxInput4` count as a single stat type. `auxInput1` and `auxInput2` still count as their own individual types.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `defLevelMilliPercent`: The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `gpsOdometerMeters`: Odometer reading provided by GPS calculations when OBD odometer cannot be pulled automatically. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the [PATCH /fleet/vehicles/{id}](ref:updatevehicle) endpoint or through the <a href=\"https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading\" target=\"_blank\">cloud dasbhoard</a>. Odometer readings that are manually set will update as GPS trip data is gathered. Try combining with `obdOdometerMeters`.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use [the Idling Events API](https://developers.samsara.com/reference/getvehicleidlingreports).\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in ‘blast mode’.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","barometricPressurePa","batteryMilliVolts","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","gpsOdometerMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","syntheticEngineSeconds","evStateOfChargeMilliPercent","evChargingStatus","evChargingEnergyMicroWh","evChargingVoltageMilliVolt","evChargingCurrentMilliAmp","evConsumedEnergyMicroWh","evRegeneratedEnergyMicroWh","evBatteryVoltageMilliVolt","evBatteryCurrentMilliAmp","evBatteryStateOfHealthMilliPercent","evAverageBatteryTemperatureMilliCelsius","evDistanceDrivenMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"}},"requestBodies":{"V1DispatchRouteApplyToFutureRoutesParam":{"content":{"application/json":{"schema":{"properties":{"apply_to_future_routes":{"description":"This is only for a recurring route.  If set to true, delete all following runs of the route.  If set to false, only delete the current route.","example":true,"type":"boolean"}},"type":"object"}}},"required":false},"V1createDvirParam":{"content":{"application/json":{"schema":{"properties":{"inspectionType":{"description":"Only type 'mechanic' is currently accepted.","enum":["mechanic"],"example":"mechanic","type":"string"},"mechanicNotes":{"description":"Any notes from the mechanic.","example":"Replaced headlight on passenger side.","type":"string"},"odometerMiles":{"description":"The current odometer of the vehicle.","example":38426,"type":"integer"},"previousDefectsCorrected":{"description":"Whether any previous defects were corrected. If this vehicle or trailer was previously marked unsafe, and this DVIR marks it as safe, either previousDefectsCorrected or previousDefectsIgnored must be true.","example":true,"type":"boolean"},"previousDefectsIgnored":{"description":"Whether any previous defects were ignored. If this vehicle or trailer was previously marked unsafe, and this DVIR marks it as safe, either previousDefectsCorrected or previousDefectsIgnored must be true.","example":false,"type":"boolean"},"resolvedDefectIds":{"description":"List of defect IDs to resolve.  The defects must be associated with the provided vehicle or trailer.","example":[18,19],"items":{"format":"int64","type":"integer"},"type":"array"},"safe":{"description":"Whether or not this vehicle or trailer is safe to drive.","enum":["safe","unsafe"],"example":"safe","type":"string"},"trailerId":{"description":"Id of trailer being inspected. Either vehicleId or trailerId must be provided.","example":11,"type":"integer"},"userEmail":{"description":"The Samsara login email for the person creating the DVIR. The email must correspond to a Samsara user's email.","example":"j.smith@yahoo.com","type":"string"},"vehicleId":{"description":"Id of vehicle being inspected. Either vehicleId or trailerId must be provided.","example":10,"type":"integer"}},"required":["inspectionType","safe","userEmail"],"type":"object"}}},"description":"DVIR creation body","required":true},"V1createMessagesParam":{"content":{"application/json":{"schema":{"properties":{"driverIds":{"description":"IDs of the drivers for whom the messages are sent to.","example":[111,222,333],"items":{"example":555,"format":"int64","type":"number"},"type":"array"},"text":{"description":"The text sent in the message. Max 2500 characters allowed.","example":"This is a message.","type":"string"}},"required":["driverIds","text"],"type":"object"}}},"description":"Text to send to a list of driverIds.","required":true},"V1documentCreateParam":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1DocumentCreate"}}},"description":"To create a document for a given document type, provide the `documentTypeUuid` of the type of document you'd like to create. Then, pass in the `fields` of the document in the same order that they show up in the given document type.","required":true},"V1sensorParam":{"content":{"application/json":{"schema":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"}}},"description":"List of sensor IDs to query.","required":true},"inline_object":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object"}}},"required":false},"inline_object_1":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_1"}}},"required":false},"inline_object_2":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_2"}}},"required":true},"inline_object_3":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_3"}}},"required":true},"inline_object_4":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_4"}}},"required":true},"inline_object_5":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_5"}}},"required":true},"inline_object_6":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_6"}}},"required":true},"inline_object_7":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_7"}}},"required":true},"inline_object_8":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_object_8"}}},"required":true}},"schemas":{"AccessoryResponseObjectResponseBody":{"description":"An object containing information about an accessory connected to the VG.","properties":{"model":{"description":"Product model name of the device","example":"EM11","type":"string"},"serial":{"description":"The serial number of the accessory device.","example":"ABCD-123-EFG","type":"string"}},"type":"object"},"ActionObjectRequestBody":{"description":"Action to take.","properties":{"actionParams":{"$ref":"#/components/schemas/ActionParamsObjectRequestBody"},"actionTypeId":{"description":"The id of the of the action type. Reference the following list for the ids:\nThe following action types are in Beta:\nDriver App Push = 5\nFunctions = 14\nThe following action types are Stable:\nNotification (Email, Text, Samsara Fleet Push) = 1\nDashboard Notification = 3\nWebhook = 4\nSlack = 6\n","example":1,"format":"int32","type":"integer"}},"required":["actionTypeId"],"type":"object"},"ActionObjectResponseBody":{"description":"Action to take.","properties":{"actionParams":{"$ref":"#/components/schemas/ActionParamsObjectResponseBody"},"actionTypeId":{"description":"The id of the of the action type. Reference the following list for the ids:\nThe following action types are in Beta:\nDriver App Push = 5\nFunctions = 14\nThe following action types are Stable:\nNotification (Email, Text, Samsara Fleet Push) = 1\nDashboard Notification = 3\nWebhook = 4\nSlack = 6\n","example":1,"format":"int32","type":"integer"}},"required":["actionTypeId"],"type":"object"},"ActionParamsObjectRequestBody":{"description":"The action type specific details. Set webhookIds for Slack or Webhook actions. Set recipients for Notifications. Set driverAppNotification for Driver App Push. Other action types don't need to set a param.","properties":{"driverAppNotification":{"$ref":"#/components/schemas/DriverAppNotificationObjectRequestBody"},"recipients":{"description":"Recipient of the action.","items":{"$ref":"#/components/schemas/RecipientObjectRequestBody"},"type":"array"},"webhooks":{"$ref":"#/components/schemas/WebhookParamsObjectRequestBody"}},"type":"object"},"ActionParamsObjectResponseBody":{"description":"The action type specific details. Set webhookIds for Slack or Webhook actions. Set recipients for Notifications. Set driverAppNotification for Driver App Push. Other action types don't need to set a param.","properties":{"driverAppNotification":{"$ref":"#/components/schemas/DriverAppNotificationObjectResponseBody"},"recipients":{"description":"Recipient of the action.","items":{"$ref":"#/components/schemas/RecipientObjectResponseBody"},"type":"array"},"webhooks":{"$ref":"#/components/schemas/WebhookParamsObjectResponseBody"}},"type":"object"},"Address":{"description":"An Address object.","properties":{"addressTypes":{"description":"Reporting location type associated with the address (used for ELD reporting purposes). Valid values: `yard`, `shortHaul`, `workforceSite`, `riskZone`, `industrialSite`, `alertsOnly`, `agricultureSource`, `avoidanceZone`, `knownGPSJammingZone`, `authorizedZone`, `unauthorizedZone`, `vendor`, `inventory`.","items":{"enum":["yard","shortHaul","workforceSite","riskZone","industrialSite","alertsOnly","agricultureSource","avoidanceZone","knownGPSJammingZone","authorizedZone","unauthorizedZone","vendor","inventory","customerSite"],"example":"yard","type":"string"},"type":"array"},"contacts":{"description":"An array Contact mini-objects that are associated the Address.","items":{"$ref":"#/components/schemas/contactTinyResponse"},"type":"array"},"createdAtTime":{"description":"The date and time this address was created in RFC 3339 format.","example":"2019-05-18T20:27:35Z","format":"date-time","type":"string"},"externalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"properties":{},"type":"object"},"formattedAddress":{"description":"The full street address for this address/geofence, as it might be recognized by Google Maps.","example":"350 Rhode Island St, San Francisco, CA","maxLength":1024,"type":"string"},"geofence":{"$ref":"#/components/schemas/AddressGeofence"},"id":{"description":"ID of the Address.","example":"22408","type":"string"},"latitude":{"description":"Latitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":37.765363,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":-122.4029238,"format":"double","type":"number"},"name":{"description":"Name of the address.","example":"Samsara HQ","maxLength":255,"type":"string"},"notes":{"description":"Notes about the address.","example":"Hours of operation: 8am - 6pm; Truck entrance on the Rhode Island street side.","maxLength":280,"type":"string"},"tags":{"description":"An array of all tag mini-objects that are associated with the given address entry.","items":{"$ref":"#/components/schemas/tagTinyResponse"},"type":"array"}},"required":["formattedAddress","geofence","id","name"],"type":"object"},"AddressGeofence":{"description":"The geofence that defines this address and its bounds. This can either be a circle or a polygon, but not both.","properties":{"circle":{"$ref":"#/components/schemas/AddressGeofence_circle"},"polygon":{"$ref":"#/components/schemas/AddressGeofence_polygon"},"settings":{"$ref":"#/components/schemas/AddressGeofence_settings"}},"type":"object"},"AddressGeofence_circle":{"description":"Information about a circular geofence. This field is only needed if the geofence is a circle.","properties":{"latitude":{"description":"Latitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":37.765363,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":-122.4029238,"format":"double","type":"number"},"radiusMeters":{"description":"The radius of the circular geofence in meters.","example":25,"format":"int64","type":"integer"}},"required":["radiusMeters"],"type":"object"},"AddressGeofence_polygon":{"description":"Information about a polygon geofence. This field is only needed if the geofence is a polygon.","properties":{"vertices":{"description":"The vertices of the polygon geofence. These geofence vertices describe the perimeter of the polygon, and must consist of at least 3 vertices and less than 40.","example":[{"latitude":37.765363,"longitude":-122.403098},{"latitude":38.765363,"longitude":-122.403098},{"latitude":37.765363,"longitude":-123.403098}],"items":{"$ref":"#/components/schemas/AddressGeofence_polygon_vertices"},"maxItems":40,"minItems":3,"type":"array"}},"required":["vertices"],"type":"object"},"AddressGeofence_polygon_vertices":{"properties":{"latitude":{"description":"The latitude of a geofence vertex in decimal degrees.","format":"double","type":"number"},"longitude":{"description":"The longitude of a geofence vertex in decimal degrees.","format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"AddressGeofence_settings":{"description":"Information about a geofence's settings.","properties":{"showAddresses":{"description":"If this property is set to true, then underlying geofence addresses will be shown in reports instead of a geofence's name.","example":false,"type":"boolean"}},"type":"object"},"AddressResponse":{"description":"An Address response body.","properties":{"data":{"$ref":"#/components/schemas/Address"}},"required":["data"],"type":"object"},"AddressResponseResponseBody":{"description":"Closest address that the GPS latitude and longitude match to.","properties":{"city":{"description":"The name of the city","example":"New York","type":"string"},"country":{"description":"The country","example":"USA","type":"string"},"neighborhood":{"description":"The name of the neighborhood if one exists","example":"Mission District","type":"string"},"pointOfInterest":{"description":"Point that may be of interest to the user","example":"The Eiffel Tower","type":"string"},"postalCode":{"description":"The zip code","example":"10010","type":"string"},"state":{"description":"The name of the state","example":"New York","type":"string"},"street":{"description":"The street name","example":"Main Street","type":"string"},"streetNumber":{"description":"Street number of the address","example":"16","type":"string"}},"type":"object"},"AdvancedIdlingGetIdlingEventsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsResponseBody":{"properties":{"data":{"description":"List of idling event objects.","items":{"$ref":"#/components/schemas/IdlingEventObject_V2025_10_23ResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AdvancedIdlingGetIdlingEventsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AdvancedIdlingGetIdlingEventsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListResponseBody":{"properties":{"Fleet":{"$ref":"#/components/schemas/AempFleetListResponseBody"}},"required":["Fleet"],"type":"object"},"AempEquipmentGetAempEquipmentListServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentGetAempEquipmentListUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AempEquipmentWithAdditionalFieldsResponseBody":{"description":"Contains equipment fields.","properties":{"CumulativeOperatingHours":{"$ref":"#/components/schemas/CumulativeOperatingHoursResponseBody"},"DEFRemaining":{"$ref":"#/components/schemas/DEFRemainingResponseBody"},"Distance":{"$ref":"#/components/schemas/DistanceResponseBody"},"EngineStatus":{"$ref":"#/components/schemas/EngineStatusResponseBody"},"EquipmentHeader":{"$ref":"#/components/schemas/EquipmentHeaderWithAdditionalFieldsResponseBody"},"FuelRemaining":{"$ref":"#/components/schemas/FuelRemainingResponseBody"},"Location":{"$ref":"#/components/schemas/LocationResponseBody"}},"required":["EquipmentHeader","Location"],"type":"object"},"AempFleetListResponseBody":{"description":"Contains a list of equipment objects and links","properties":{"Equipment":{"description":"The list of Equipment objects.","items":{"$ref":"#/components/schemas/AempEquipmentWithAdditionalFieldsResponseBody"},"type":"array"},"Links":{"description":"The list of links associated with the current API request.","items":{"$ref":"#/components/schemas/AempLinkResponseBody"},"type":"array"},"snapshotTime":{"description":"Date and time at which the snapshot of the fleet was created in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"version":{"description":"The version of the ISO/TS 15143-3 standard","example":"1","type":"string"}},"required":["Equipment","Links","snapshotTime","version"],"type":"object"},"AempLinkResponseBody":{"description":"Contains a list of relevant links","properties":{"href":{"description":"The hyperlink of the relationship.","example":"https://api.samsara.com/aemp/Fleet/1","type":"string"},"rel":{"description":"The link relationship to the current call.","example":"self","type":"string"}},"required":["href","rel"],"type":"object"},"AgentStudioVoiceSessionCallEventResponseBody":{"description":"A lifecycle event that occurred during a voice session.","properties":{"happenedAtTime":{"description":"Time at which the event occurred, in RFC 3339 format.","example":"2026-05-19T14:23:12Z","format":"date-time","type":"string"},"type":{"description":"Human-readable description of the lifecycle event.","example":"call_connected","type":"string"}},"required":["happenedAtTime","type"],"type":"object"},"AgentStudioVoiceSessionDetailResponseBody":{"description":"Full detail of a voice agent session.","properties":{"agentId":{"description":"Identifier of the Agent Studio agent that handled the session.","example":"agt_01HX0000000000000000000001","type":"string"},"agentName":{"description":"Display name of the agent that handled the session.","example":"Pole Yard Intake","type":"string"},"callEvents":{"description":"Lifecycle events that occurred during the session, ordered by time ascending.","items":{"$ref":"#/components/schemas/AgentStudioVoiceSessionCallEventResponseBody"},"type":"array"},"durationMilliseconds":{"description":"Duration of the session, in milliseconds.","example":87420,"format":"int64","type":"integer"},"happenedAtTime":{"description":"Time at which the session started, in RFC 3339 format.","example":"2026-05-19T14:23:11Z","format":"date-time","type":"string"},"id":{"description":"Unique identifier for the voice session.","example":"ses_01HX9Z7VKQ8N3B2YQ1F4E5R6T7","type":"string"},"recipient":{"description":"Human-readable name of the call recipient (driver name, dashboard user name, or phone number). Empty string when the recipient could not be resolved.","example":"Driver Bob","type":"string"},"recordingUrl":{"description":"Presigned URL for the call recording. Empty string when no recording is available (e.g. the session has not completed). Expires at recordingUrlExpiresAtTime.","example":"https://samsara-voice-recordings.s3.amazonaws.com/...","type":"string"},"recordingUrlExpiresAtTime":{"description":"Time at which recordingUrl stops working, in RFC 3339 format. Empty string when recordingUrl is empty.","example":"2026-05-26T14:23:11Z","type":"string"},"sessionStatus":{"description":"Lifecycle status of the session.  Valid values: `completed`, `running`, `failed`, `unknown`","enum":["completed","running","failed","unknown"],"example":"completed","type":"string"},"toolCalls":{"description":"Tool calls made by the agent during the session, ordered by start time ascending.","items":{"$ref":"#/components/schemas/AgentStudioVoiceSessionToolCallResponseBody"},"type":"array"},"transcript":{"description":"Conversation transcript, ordered by start time ascending.","items":{"$ref":"#/components/schemas/AgentStudioVoiceSessionTranscriptEntryResponseBody"},"type":"array"},"triggerType":{"description":"Human-readable name of the trigger that initiated the session, as configured in Automations. Empty string when no trigger is associated with the session.","example":"geofence","type":"string"},"updatedAtTime":{"description":"Time at which the session was last updated, in RFC 3339 format.","example":"2026-05-19T14:24:38Z","format":"date-time","type":"string"}},"required":["agentId","agentName","callEvents","durationMilliseconds","happenedAtTime","id","recipient","recordingUrl","recordingUrlExpiresAtTime","sessionStatus","toolCalls","transcript","triggerType","updatedAtTime"],"type":"object"},"AgentStudioVoiceSessionSummaryResponseBody":{"description":"Summary of a voice agent session.","properties":{"agentId":{"description":"Identifier of the Agent Studio agent that handled the session.","example":"agt_01HX0000000000000000000001","type":"string"},"agentName":{"description":"Display name of the agent that handled the session.","example":"Pole Yard Intake","type":"string"},"durationMilliseconds":{"description":"Duration of the session, in milliseconds.","example":87420,"format":"int64","type":"integer"},"happenedAtTime":{"description":"Time at which the session started, in RFC 3339 format.","example":"2026-05-19T14:23:11Z","format":"date-time","type":"string"},"id":{"description":"Unique identifier for the voice session.","example":"ses_01HX9Z7VKQ8N3B2YQ1F4E5R6T7","type":"string"},"recipient":{"description":"Human-readable name of the call recipient (driver name, dashboard user name, or phone number). Empty string when the recipient could not be resolved.","example":"Driver Bob","type":"string"},"sessionStatus":{"description":"Lifecycle status of the session.  Valid values: `completed`, `running`, `failed`, `unknown`","enum":["completed","running","failed","unknown"],"example":"completed","type":"string"},"triggerType":{"description":"Human-readable name of the trigger that initiated the session, as configured in Automations. Empty string when no trigger is associated with the session.","example":"geofence","type":"string"},"updatedAtTime":{"description":"Time at which the session was last updated, in RFC 3339 format.","example":"2026-05-19T14:24:38Z","format":"date-time","type":"string"}},"required":["agentId","agentName","durationMilliseconds","happenedAtTime","id","recipient","sessionStatus","triggerType","updatedAtTime"],"type":"object"},"AgentStudioVoiceSessionToolCallResponseBody":{"description":"A tool invocation made by the agent during a voice session.","properties":{"arguments":{"description":"Arguments passed to the tool, as a JSON-encoded string.","example":"{\"deliveryId\":\"DLV-1234\"}","type":"string"},"durationMilliseconds":{"description":"Wall-clock duration of the tool call, in milliseconds. Zero when the duration is unknown.","example":820,"format":"int64","type":"integer"},"name":{"description":"Name of the tool that was invoked.","example":"lookup_delivery_status","type":"string"},"output":{"description":"Output returned by the tool, as a string. Empty when the tool produced no output.","example":"{\"status\":\"out_for_delivery\"}","type":"string"},"startMilliseconds":{"description":"Offset from the start of the session at which the tool call started, in milliseconds.","example":4100,"format":"int64","type":"integer"},"status":{"description":"Outcome of the tool call. Defaults to `unknown` when the outcome could not be determined.  Valid values: `success`, `error`, `unknown`","enum":["success","error","unknown"],"example":"success","type":"string"}},"required":["arguments","durationMilliseconds","name","output","startMilliseconds","status"],"type":"object"},"AgentStudioVoiceSessionTranscriptEntryResponseBody":{"description":"A single utterance in a voice session transcript.","properties":{"endMilliseconds":{"description":"Offset from the start of the session at which this utterance ended, in milliseconds. Approximated from the start of the next utterance (or the end of the session for the final utterance).","example":3200,"format":"int64","type":"integer"},"speakerType":{"description":"Who produced this utterance. Defaults to `unknown` when the speaker cannot be confidently classified.  Valid values: `agent`, `driver`, `admin`, `unknown`","enum":["agent","driver","admin","unknown"],"example":"agent","type":"string"},"startMilliseconds":{"description":"Offset from the start of the session at which this utterance began, in milliseconds.","example":0,"format":"int64","type":"integer"},"text":{"description":"Transcribed text of the utterance.","example":"Hi, this is your dispatch assistant calling about your delivery.","type":"string"}},"required":["endMilliseconds","speakerType","startMilliseconds","text"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsResponseBody":{"properties":{"data":{"description":"Voice session details for the requested IDs. IDs that were not found are omitted.","items":{"$ref":"#/components/schemas/AgentStudioVoiceSessionDetailResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamResponseBody":{"properties":{"data":{"description":"Voice session summaries for the requested page.","items":{"$ref":"#/components/schemas/AgentStudioVoiceSessionSummaryResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AgentStudioVoiceSessionsGetVoiceSessionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsDeleteConfigurationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsResponseBody":{"properties":{"data":{"description":"List of alert configurations.","items":{"$ref":"#/components/schemas/GetResponseWorkflowConfigurationObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AlertsGetConfigurationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetConfigurationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsResponseBody":{"properties":{"data":{"description":"List of workflow incidents.","items":{"$ref":"#/components/schemas/GetWorkflowIncidentResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AlertsGetIncidentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsGetIncidentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsRequestBody":{"description":"The configuration of a alert.","properties":{"actions":{"description":"An array of actions.","items":{"$ref":"#/components/schemas/ActionObjectRequestBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unqiue Samsara id of the alert configuration.","example":"e1c5dffc-c7b7-47b0-a778-6a65de638abf","type":"string"},"isEnabled":{"description":"Whether the alert is enabled or not.","example":true,"type":"boolean"},"name":{"description":"The custom name of the configuration.","example":"My Harsh Event Alert","type":"string"},"operationalSettings":{"$ref":"#/components/schemas/OperationalSettingsObjectRequestBody"},"scope":{"$ref":"#/components/schemas/ScopeObjectRequestBody"},"triggers":{"description":"An array of triggers.","items":{"$ref":"#/components/schemas/WorkflowTriggerObjectRequestBody"},"type":"array"}},"required":["id"],"type":"object"},"AlertsPatchConfigurationsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PatchResponseWorkflowConfigurationObjectResponseBody"}},"required":["data"],"type":"object"},"AlertsPatchConfigurationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPatchConfigurationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsRequestBody":{"description":"The configuration of a alert.","properties":{"actions":{"description":"An array of actions.","items":{"$ref":"#/components/schemas/ActionObjectRequestBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"isEnabled":{"default":true,"description":"Whether the alert is enabled or not.","example":true,"type":"boolean"},"name":{"description":"The custom name of the configuration.","example":"My Harsh Event Alert","type":"string"},"operationalSettings":{"$ref":"#/components/schemas/OperationalSettingsObjectRequestBody"},"scope":{"$ref":"#/components/schemas/ScopeObjectRequestBody"},"triggers":{"description":"An array of triggers.","items":{"$ref":"#/components/schemas/WorkflowTriggerObjectRequestBody"},"type":"array"}},"required":["actions","isEnabled","name","scope","triggers"],"type":"object"},"AlertsPostConfigurationsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostResponseResWorkflowConfigurationObjectResponseBody"}},"required":["data"],"type":"object"},"AlertsPostConfigurationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AlertsPostConfigurationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AmbientTemperatureDetailsObjectRequestBody":{"description":"Details specific to Ambient Temperature.","properties":{"cargoIsFull":{"description":"Whether the cargo is full.","example":true,"type":"boolean"},"doorsAreClosed":{"description":"Whether the doors are closed.","example":true,"type":"boolean"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `INSIDE_RANGE`, `LESS`, `OUTSIDE_RANGE`","enum":["GREATER","INSIDE_RANGE","LESS","OUTSIDE_RANGE"],"example":"GREATER","type":"string"},"temperatureCelcius":{"description":"The temperature in Celcius threshold value.","example":60,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds","operation","temperatureCelcius"],"type":"object"},"AmbientTemperatureDetailsObjectResponseBody":{"description":"Details specific to Ambient Temperature.","properties":{"cargoIsFull":{"description":"Whether the cargo is full.","example":true,"type":"boolean"},"doorsAreClosed":{"description":"Whether the doors are closed.","example":true,"type":"boolean"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `INSIDE_RANGE`, `LESS`, `OUTSIDE_RANGE`","enum":["GREATER","INSIDE_RANGE","LESS","OUTSIDE_RANGE"],"example":"GREATER","type":"string"},"temperatureCelcius":{"description":"The temperature in Celcius threshold value.","example":60,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds","operation","temperatureCelcius"],"type":"object"},"AmbientTemperatureResponseBody":{"description":"Details specific to Ambient Temperature.","properties":{"sensor":{"$ref":"#/components/schemas/alertObjectSensorResponseBody"}},"type":"object"},"AnticipationBrakeEventCount":{"description":"Quick braking events (less than one second after accelerating).","type":"number"},"AppointmentWindowRequestBody":{"description":"Appointment window","properties":{"endTime":{"description":"End time of the appointment window, in RFC 3339 format","example":"2024-04-10T17:00:00Z","format":"date-time","type":"string"},"startTime":{"description":"Start time of the appointment window, in RFC 3339 format","example":"2024-04-10T09:00:00Z","format":"date-time","type":"string"}},"required":["endTime","startTime"],"type":"object"},"AppointmentWindowResponseBody":{"description":"Appointment window","properties":{"endTime":{"description":"End time of the appointment window, in RFC 3339 format","example":"2024-04-10T17:00:00Z","format":"date-time","type":"string"},"startTime":{"description":"Start time of the appointment window, in RFC 3339 format","example":"2024-04-10T09:00:00Z","format":"date-time","type":"string"}},"required":["endTime","startTime"],"type":"object"},"AssetAssignmentAssigneeResponseObjectResponseBody":{"description":"Assignee for an asset assignment.","properties":{"assigneeType":{"description":"Type of the assignee.  Valid values: `unknown`, `driver`, `asset`, `geofence`, `job`","enum":["unknown","driver","asset","geofence","job"],"example":"driver","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids for the assignee.","type":"object"},"id":{"description":"ID of the assignee.","example":"494123","type":"string"}},"required":["assigneeType","id"],"type":"object"},"AssetAssignmentResponseObjectResponseBody":{"description":"Asset assignment object.","properties":{"asset":{"$ref":"#/components/schemas/AssetResponseResponseBody"},"assignee":{"$ref":"#/components/schemas/AssetAssignmentAssigneeResponseObjectResponseBody"},"endTime":{"description":"The end time of the assignment in RFC 3339 format, if the assignment has ended.","example":"2024-09-01T13:00:00Z","format":"date-time","type":"string"},"expectedEndTime":{"description":"The expected end time of the assignment in RFC 3339 format, if one was set at creation. Values may be in the past for listed active assignments whose expected return has elapsed.","example":"2024-09-08T17:00:00Z","format":"date-time","type":"string"},"startTime":{"description":"The start time of the assignment in RFC 3339 format.","example":"2024-09-01T12:00:00Z","format":"date-time","type":"string"}},"required":["asset","assignee","startTime"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentRequestBody":{"description":"Asset assignment to create.","properties":{"assetId":{"description":"Samsara ID of the asset.","example":"281474978683353","type":"string"},"assigneeId":{"description":"Samsara ID of the assignee.","example":"494123","type":"string"},"assigneeType":{"description":"Type of the assignee. This required field has no default.  Valid values: `driver`, `asset`, `geofence`","enum":["driver","asset","geofence"],"example":"driver","type":"string"},"expectedEndTime":{"description":"Optional. The expected end time of the assignment in RFC 3339 format. Must be strictly after the current time.","example":"2024-09-08T17:00:00Z","format":"date-time","type":"string"}},"required":["assetId","assigneeId","assigneeType"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetAssignmentResponseObjectResponseBody"}},"required":["data"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsCreateAssetAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsResponseBody":{"properties":{"data":{"description":"List of active asset assignments.","items":{"$ref":"#/components/schemas/AssetAssignmentResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AssetAssignmentsListAssetAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsListAssetAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentRequestBody":{"description":"Asset assignment to unassign.","properties":{"assetId":{"description":"Samsara ID of the asset.","example":"281474978683353","type":"string"}},"required":["assetId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetAssignmentsUnassignAssetAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetCreate":{"description":"The asset creation arguments","properties":{"customMetadata":{"$ref":"#/components/schemas/CustomMetadata"},"location":{"$ref":"#/components/schemas/AssetLocation"},"locationDataInputId":{"description":"Required if locationType is \"dataInput\". Specifies the id of a location data input which will determine the asset's location. **The data input will be moved to the new asset.**","example":"12345","type":"string"},"locationType":{"$ref":"#/components/schemas/LocationType"},"name":{"$ref":"#/components/schemas/AssetName"},"parentId":{"$ref":"#/components/schemas/ParentId"},"runningStatusDataInputId":{"description":"The asset's isRunning status will be true when the associated data input's value is 1. Data input cannot be of location format. **The data input will be moved to the new asset.**","example":"67890","type":"string"},"tagIds":{"$ref":"#/components/schemas/TagIds"}},"required":["name"],"type":"object"},"AssetDataInput":{"properties":{"dataGroup":{"description":"Name of the data group that the data input is associated with","example":"Pressure","type":"string"},"id":{"description":"ID of the data input","example":"123456","type":"string"},"lastPoint":{"$ref":"#/components/schemas/AssetDataInput_lastPoint"},"name":{"description":"Name of the data input","example":"Digital Input 1","type":"string"},"units":{"description":"Units of data for this data input","example":"PSI","type":"string"}},"type":"object"},"AssetDataInput_lastPoint":{"description":"The last reported point of a data input.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Numeric value of the data point.","example":1992.0506,"format":"double","type":"number"}},"type":"object"},"AssetDataOutput":{"properties":{"dataGroup":{"description":"Name of the data group that the data output is associated with","example":"Control Pressure","type":"string"},"dataInput":{"$ref":"#/components/schemas/AssetDataInput"},"deviceId":{"description":"ID of the device that the data output is configured on","example":"123","type":"string"},"id":{"description":"ID of the data output","example":"3fa85f64-5717-4562-b3fc-2c963f66afa6","type":"string"},"name":{"description":"Name of the data output","example":"Digital Output 1","type":"string"}},"type":"object"},"AssetDataOutputsPatchAssetDataOutputsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsRequestBody":{"properties":{"values":{"description":"A map of data output IDs to values. All data outputs must belong to the same asset. Only the specified IDs will be written to.","example":"","type":"object"}},"required":["values"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsResponseBody":{"properties":{"data":{"description":"List of responses for each data output from the original request.","items":{"$ref":"#/components/schemas/PatchAssetDataOutputsSingleResponseResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetDataOutputsPatchAssetDataOutputsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocation":{"description":"For locationType \"point\", latitude and longitude are required. For \"address\", formattedAddress must be provided, and lat/long can be optionally included for displaying a dot on the assets map. For \"dataInput\", this object should not be passed in.","properties":{"formattedAddress":{"description":"Formatted address of the location","example":"350 Rhode Island St, San Francisco CA, 94103","type":"string"},"latitude":{"$ref":"#/components/schemas/latitude"},"longitude":{"$ref":"#/components/schemas/longitude"}},"type":"object"},"AssetLocationHeading":{"description":"Heading of the asset in degrees.","example":120,"format":"double","type":"number"},"AssetLocationResponseBody":{"description":"Asset location details.","properties":{"latitude":{"description":"The latitude of the location in degrees.","example":37,"format":"double","type":"number"},"location":{"description":"The best effort (street,city,state) for the latitude and longitude.","example":"525 York, San Francisco, CA","type":"string"},"longitude":{"description":"The longitude of the location in degrees.","example":-122.7,"format":"double","type":"number"},"speedMilesPerHour":{"description":"The speed calculated from GPS that the asset was traveling at in miles per hour.","example":35,"format":"double","type":"number"},"time":{"description":"Time in Unix milliseconds since epoch when the asset was at the location.","example":12314151,"format":"int64","type":"integer"}},"type":"object"},"AssetLocationSpeed":{"description":"GPS speed of the asset in miles per hour.","example":48.3,"format":"double","type":"number"},"AssetLocationsGetAssetLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationResponseBody":{"properties":{"locations":{"description":"Asset location details.","items":{"$ref":"#/components/schemas/AssetLocationResponseBody"},"type":"array"}},"required":["locations"],"type":"object"},"AssetLocationsGetAssetLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetLocationsGetAssetLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetName":{"description":"The name of the asset.","type":"string"},"AssetPatch":{"description":"The asset creation arguments","properties":{"customMetadata":{"$ref":"#/components/schemas/CustomMetadata"},"location":{"$ref":"#/components/schemas/AssetLocation"},"locationDataInputId":{"description":"Required if locationType is \"dataInput\". Specifies the id of a location data input which will determine the asset's location. The data input must be in the asset.","example":"12345","type":"string"},"locationType":{"$ref":"#/components/schemas/LocationType"},"name":{"$ref":"#/components/schemas/AssetName"},"parentId":{"description":"The id of the parent asset that the asset belongs to. Pass in an empty string to remove the child from the parent.","example":"","type":"string"},"runningStatusDataInputId":{"description":"The asset's isRunning status will be true when the associated data input's value is 1. Data input cannot be of location format. The data input must be in the asset.","example":"67890","type":"string"},"tagIds":{"$ref":"#/components/schemas/TagIds"}},"type":"object"},"AssetReeferAlarmObjectResponseBody":{"properties":{"alarmCode":{"description":"ID of the alarm","example":102,"format":"int64","type":"integer"},"description":{"description":"Description of the alarm","example":"Check Return Air Sensor","type":"string"},"operatorAction":{"description":"Recommended operator action","example":"Check and repair at end of trip","type":"string"},"severity":{"description":"Severity of the alarm: 1: OK to run, 2: Check as specified, 3: Take immediate action","example":1,"format":"int64","type":"integer"}},"type":"object"},"AssetReeferAlarmsStatObjectResponseBody":{"properties":{"alarms":{"description":"All alarms that were reported at the time.","items":{"$ref":"#/components/schemas/AssetReeferAlarmObjectResponseBody"},"type":"array"},"changedAtMs":{"description":"Timestamp when the alarms were reported, in Unix milliseconds since epoch","example":1453449599999,"format":"int64","type":"integer"}},"type":"object"},"AssetReeferEngineHoursStatObjectResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"engineHours":{"description":"Engine hours of the reefer.","example":1200,"format":"int64","type":"integer"}},"type":"object"},"AssetReeferFuelPercentageStatObjectResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"fuelPercentage":{"description":"Fuel percentage of the reefer.","example":99,"format":"int64","type":"integer"}},"type":"object"},"AssetReeferPowerStatusObjectResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"status":{"description":"Power status of the reefer. Valid values: `Off`, `Active`, `Active (Start/Stop)`, `Active (Continuous)`.","example":"Active (Continuous)","type":"string"}},"type":"object"},"AssetReeferStatsObjectResponseBody":{"properties":{"alarms":{"description":"Reefer alarms","items":{"$ref":"#/components/schemas/AssetReeferAlarmsStatObjectResponseBody"},"type":"array"},"engineHours":{"description":"Engine hours of the reefer","items":{"$ref":"#/components/schemas/AssetReeferEngineHoursStatObjectResponseBody"},"type":"array"},"fuelPercentages":{"description":"Fuel percentage of the reefer","items":{"$ref":"#/components/schemas/AssetReeferFuelPercentageStatObjectResponseBody"},"type":"array"},"powerStatus":{"description":"Power status of the reefer","items":{"$ref":"#/components/schemas/AssetReeferPowerStatusObjectResponseBody"},"type":"array"},"returnAirTemp":{"description":"Return air temperature of the reefer","items":{"$ref":"#/components/schemas/AssetReeferTemperatureStatObjectResponseBody"},"type":"array"},"setPoint":{"description":"Set point temperature of the reefer","items":{"$ref":"#/components/schemas/AssetReeferTemperatureStatObjectResponseBody"},"type":"array"}},"type":"object"},"AssetReeferTemperatureStatObjectResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"tempInMilliC":{"description":"Temperature in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"type":"object"},"AssetResponse":{"description":"Asset","properties":{"customMetadata":{"$ref":"#/components/schemas/CustomMetadata"},"dataOutputs":{"description":"The list of data outputs configured on the asset.","items":{"$ref":"#/components/schemas/AssetDataOutput"},"type":"array"},"id":{"description":"The id of the asset","example":"123abcde-4567-8910-1112-fghi1314jklm","type":"string"},"isRunning":{"description":"The running status of the asset. Returns True for On, and False for Off.","type":"boolean"},"location":{"$ref":"#/components/schemas/AssetLocation"},"locationDataInput":{"$ref":"#/components/schemas/AssetResponse_locationDataInput"},"locationType":{"$ref":"#/components/schemas/LocationType"},"name":{"$ref":"#/components/schemas/AssetName"},"parentAsset":{"$ref":"#/components/schemas/AssetResponse_parentAsset"},"runningStatusDataInput":{"$ref":"#/components/schemas/AssetResponse_runningStatusDataInput"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Industrial Asset. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","items":{"$ref":"#/components/schemas/tagTinyResponse"},"type":"array"}},"required":["id","isRunning","name"],"type":"object"},"AssetResponseBody":{"description":"Representation of a vehicle trailer or other equipment to be tracked.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"createdAtTime":{"description":"The time the asset was created in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unique ID of the asset.","example":"12345","type":"string"},"licensePlate":{"description":"The license plate of the asset.","example":"XHK1234","type":"string"},"make":{"description":"The OEM/manufacturer of the asset. Updates to this field are restricted.","example":"Bobcat","type":"string"},"model":{"description":"The model of the asset. Updates to this field are restricted.","example":"S630 T4","type":"string"},"name":{"description":"The human-readable name of the asset. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"MyAsset-1234","type":"string"},"notes":{"description":"These are generic notes about the asset. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are notes.","type":"string"},"readingsIngestionEnabled":{"description":"Indicates whether the asset is expected to have data ingested using the Readings API. Do not set this to true for an asset that has, or is intended to have, a connected gateway.","example":false,"type":"boolean"},"regulationMode":{"description":"Whether or not the asset is regulated, unregulated (non-CMV), or a mixed use unregulated asset. Primarily used with vehicles.  Valid values: `mixed`, `regulated`, `unregulated`","enum":["mixed","regulated","unregulated"],"example":"mixed","type":"string"},"serialNumber":{"description":"The serial number of the asset. This can be an internal serial number or used to hold legacy VIN/PIN numbers such as ones of shorter lengths.","example":"LN016251","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Asset.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"type":{"default":"uncategorized","description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"},"updatedAtTime":{"description":"The time the asset was last updated in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"vin":{"description":"The unique 17-digit VIN (Vehicle Identification Number) or PIN (Product Identification Number) of the asset.","example":"1FUJBBCKXCLBZ1234","type":"string"},"year":{"description":"The model year of the asset. Updates to this field are restricted.","example":2015,"format":"int64","type":"integer"}},"required":["createdAtTime","id","updatedAtTime"],"type":"object"},"AssetResponseResponseBody":{"description":"Asset that the location readings are tied to.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the asset","example":"12345","type":"string"}},"required":["id"],"type":"object"},"AssetResponse_locationDataInput":{"description":"The associated location data input (only applicable when locationType is \"dataInput\").","properties":{"id":{"description":"Id of the data input","type":"string"}},"required":["id"],"type":"object"},"AssetResponse_parentAsset":{"description":"The asset's parent","properties":{"id":{"$ref":"#/components/schemas/ParentId"},"name":{"$ref":"#/components/schemas/AssetName"}},"required":["id","name"],"type":"object"},"AssetResponse_runningStatusDataInput":{"description":"The associated running status data input. isRunning will be true when the data input's value is 1.","properties":{"id":{"description":"Id of the data input","example":"12345","type":"string"}},"required":["id"],"type":"object"},"AssetSharingAgreementResponseObjectResponseBody":{"description":"Data Sharing Agreement response object.","properties":{"acceptedAtTime":{"description":"Time the agreement was accepted, in RFC 3339 format.","example":"2024-01-15T11:00:00Z","type":"string"},"acceptedByUserId":{"description":"User ID who accepted the agreement (visible only to the accepting organization).","example":"678","type":"string"},"canceledAtTime":{"description":"Time the agreement was canceled, in RFC 3339 format.","example":"2024-01-15T11:00:00Z","type":"string"},"canceledByParty":{"description":"Party that canceled the agreement.  Valid values: `provider`, `recipient`","enum":["provider","recipient"],"example":"recipient","type":"string"},"canceledByUserId":{"description":"User ID who canceled the agreement (visible only to the canceling party).","example":"678","type":"string"},"createdAtTime":{"description":"Time the agreement was created, in RFC 3339 format.","example":"2024-01-13T10:00:00Z","type":"string"},"createdByParty":{"description":"Party that created the agreement, determined from the authenticated caller. Older agreements default to provider. Returns unknown if the party cannot be determined.  Valid values: `provider`, `recipient`, `unknown`","enum":["provider","recipient","unknown"],"example":"provider","type":"string"},"createdByUserId":{"description":"User ID who created the agreement (visible only to the creating organization).","example":"111","type":"string"},"deletedByUserId":{"description":"User ID who soft-deleted the agreement (visible only to the deleting organization).","example":"111","type":"string"},"id":{"description":"Unique identifier for the agreement.","example":"33333333-3333-3333-3333-333333333333","type":"string"},"operator":{"description":"Defines where the gateways will be located.  Valid values: `provider`, `recipient`","enum":["provider","recipient"],"example":"provider","type":"string"},"payer":{"description":"Party whose Asset Sharing license supports the agreement. Older agreements default to provider. Returns unknown if the party cannot be determined.  Valid values: `provider`, `recipient`, `unknown`","enum":["provider","recipient","unknown"],"example":"recipient","type":"string"},"providerDataPackages":{"description":"List of data packages the provider will see.","example":["safety","maintenance"],"items":{"description":"Data package type  Valid values: `safety`, `telematics`, `location`, `maintenance`, `reefer`, `all`","enum":["safety","telematics","location","maintenance","reefer","all"],"example":"location","type":"string"},"type":"array"},"providerOrganizationId":{"description":"ID of the organization that owns the assets shared under the agreement.","example":"123","type":"string"},"recipientDataPackages":{"description":"List of data packages the recipient will see.","example":["telematics","location","telematics","all"],"items":{"description":"Data package type  Valid values: `safety`, `telematics`, `location`, `maintenance`, `reefer`, `all`","enum":["safety","telematics","location","maintenance","reefer","all"],"example":"safety","type":"string"},"type":"array"},"recipientOrganizationId":{"description":"ID of the organization that rents the assets from the provider.","example":"456","type":"string"},"rejectedAtTime":{"description":"Time the agreement was rejected, in RFC 3339 format.","example":"2024-01-15T11:00:00Z","type":"string"},"rejectedByUserId":{"description":"User ID who rejected the agreement (visible only to the rejecting organization).","example":"678","type":"string"},"status":{"description":"The status of the agreement.  Valid values: `pending`, `accepted`, `rejected`, `canceled`","enum":["pending","accepted","rejected","canceled"],"example":"pending","type":"string"},"updatedAtTime":{"description":"Time the agreement was last updated, in RFC 3339 format.","example":"2024-01-13T10:00:00Z","type":"string"}},"required":["createdAtTime","createdByParty","id","operator","payer","providerDataPackages","providerOrganizationId","recipientDataPackages","recipientOrganizationId","status","updatedAtTime"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetSharingAgreementResponseObjectResponseBody"}},"required":["data"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsAcceptAssetSharingAgreementUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetSharingAgreementResponseObjectResponseBody"}},"required":["data"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelAssetSharingAgreementUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchRequestBody":{"description":"Request body for batch canceling asset sharings.","properties":{"data":{"description":"List of asset sharings to cancel.","items":{"$ref":"#/components/schemas/IDReferenceObjectRequestBody"},"maxItems":100,"minItems":1,"type":"array"}},"required":["data"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchResponseBody":{"properties":{"requestId":{"description":"UUID for this batch request; used when reaching out to support.","example":"1f7f5081-9f8e-4b68-8b85-97dbe4b46d7e","format":"uuid","type":"string"},"responses":{"description":"One result per requested asset sharing, in request order.","items":{"$ref":"#/components/schemas/CancelSharedAssetBatchResponseItemResponseBody"},"type":"array"}},"required":["requestId","responses"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCancelSharedAssetsBatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementRequestBody":{"description":"Request body for creating a Data Sharing Agreement.","properties":{"operator":{"description":"Defines where the gateways will be located.  Valid values: `provider`, `recipient`","enum":["provider","recipient"],"example":"provider","type":"string"},"payer":{"description":"Party whose Asset Sharing license supports the agreement. Defaults to the creator when the flexible operating model is enabled. Otherwise, the provider pays; omit this field or specify provider. Specifying recipient requires the flexible operating model to be enabled.  Valid values: `provider`, `recipient`","enum":["provider","recipient"],"example":"recipient","type":"string"},"providerDataPackages":{"description":"List of data packages the provider will see.","example":["all","maintenance","maintenance","maintenance"],"items":{"description":"Data package type  Valid values: `safety`, `telematics`, `location`, `maintenance`, `reefer`, `all`","enum":["safety","telematics","location","maintenance","reefer","all"],"example":"location","type":"string"},"type":"array"},"providerOrganizationId":{"description":"ID of the organization that owns the assets. Defaults to the caller's organization. Recipient-initiated agreements require the flexible operating model to be enabled.","example":"123","type":"string"},"providerOrganizationName":{"description":"Display name for the provider. Required when the caller is the recipient; the caller's own organization name is resolved automatically.","example":"Acme Rentals","maxLength":255,"minLength":3,"type":"string"},"recipientDataPackages":{"description":"List of data packages the recipient will see.","example":["all","reefer","all","maintenance"],"items":{"description":"Data package type  Valid values: `safety`, `telematics`, `location`, `maintenance`, `reefer`, `all`","enum":["safety","telematics","location","maintenance","reefer","all"],"example":"reefer","type":"string"},"type":"array"},"recipientOrganizationId":{"description":"The ID of the recipient organization.","example":"456","type":"string"},"recipientOrganizationName":{"description":"Display name for the recipient. Required when the caller is the provider; the caller's own organization name is resolved automatically.","example":"Acme Logistics","maxLength":255,"minLength":3,"type":"string"}},"required":["operator","providerDataPackages","recipientDataPackages","recipientOrganizationId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetSharingAgreementResponseObjectResponseBody"}},"required":["data"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateAssetSharingAgreementUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchRequestBody":{"description":"Request body for batch creating shared assets.","properties":{"data":{"description":"List of assets to share.","items":{"$ref":"#/components/schemas/CreateSharedAssetRequestObjectRequestBody"},"type":"array"}},"required":["data"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchResponseBody":{"properties":{"data":{"description":"List of created shared assets.","items":{"$ref":"#/components/schemas/SharedAssetResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsCreateSharedAssetsBatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsDeleteAssetSharingAgreementUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsResponseBody":{"properties":{"data":{"description":"List of Data Sharing Agreements.","items":{"$ref":"#/components/schemas/AssetSharingAgreementResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListAssetSharingAgreementsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsResponseBody":{"properties":{"data":{"description":"List of shared assets.","items":{"$ref":"#/components/schemas/SharedAssetResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data"],"type":"object"},"AssetSharingAgreementsListSharedAssetsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsListSharedAssetsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetSharingAgreementResponseObjectResponseBody"}},"required":["data"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsRejectAssetSharingAgreementUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchRequestBody":{"description":"Request body for batch updating shared assets.","properties":{"data":{"description":"List of shared assets to update.","items":{"$ref":"#/components/schemas/UpdateSharedAssetRequestObjectRequestBody"},"type":"array"}},"required":["data"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchResponseBody":{"properties":{"data":{"description":"List of updated shared assets.","items":{"$ref":"#/components/schemas/SharedAssetResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetSharingAgreementsUpdateSharedAssetsBatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetRequestBody":{"description":"Representation of a vehicle trailer or other equipment to be tracked.","properties":{"attributes":{"description":"A list of attributes to assign to the asset. If provided, this replaces the asset's entire set of attribute associations with exactly this list; omit this field to leave existing attribute associations unchanged, or pass an empty array to clear them.","items":{"$ref":"#/components/schemas/GoaAttributeTinyRequestBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"licensePlate":{"description":"The license plate of the asset.","example":"XHK1234","type":"string"},"make":{"description":"The OEM/manufacturer of the asset. Updates to this field are restricted.","example":"Bobcat","type":"string"},"model":{"description":"The model of the asset. Updates to this field are restricted.","example":"S630 T4","type":"string"},"name":{"description":"The human-readable name of the asset. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"MyAsset-1234","type":"string"},"notes":{"description":"These are generic notes about the asset. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are notes.","type":"string"},"readingsIngestionEnabled":{"description":"Indicates whether the asset is expected to have data ingested using the Readings API. Do not set this to true for an asset that has, or is intended to have, a connected gateway.","example":false,"type":"boolean"},"regulationMode":{"description":"Whether or not the asset is regulated, unregulated (non-CMV), or a mixed use unregulated asset. Primarily used with vehicles.  Valid values: `mixed`, `regulated`, `unregulated`","enum":["mixed","regulated","unregulated"],"example":"mixed","type":"string"},"serialNumber":{"description":"The serial number of the asset. This can be an internal serial number or used to hold legacy VIN/PIN numbers such as ones of shorter lengths.","example":"LN016251","type":"string"},"tagIds":{"description":"An array of IDs of tags to associate with this asset. If provided, this replaces the asset's entire set of tag associations with exactly this list; omit this field to leave existing tag associations unchanged, or pass an empty array to clear them. If your access to the API is scoped by one or more tags, this field is required to pass in.","example":["Necessitatibus numquam.","Autem culpa a dolorem vero libero aliquam."],"items":{"example":"Nemo culpa omnis deserunt.","type":"string"},"type":"array"},"type":{"default":"uncategorized","description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"},"vin":{"description":"The unique 17-digit VIN (Vehicle Identification Number) or PIN (Product Identification Number) of the asset.","example":"1FUJBBCKXCLBZ1234","type":"string"},"year":{"description":"The model year of the asset. Updates to this field are restricted.","example":2015,"format":"int64","type":"integer"}},"type":"object"},"AssetsCreateAssetResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetResponseBody"}},"required":["data"],"type":"object"},"AssetsCreateAssetServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCreateAssetUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsCurrentLocationCableResponseBody":{"description":"The cable connected to the asset","properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"}},"required":["assetType"],"type":"object"},"AssetsCurrentLocationResponseBody":{"description":"Current location of an asset","properties":{"latitude":{"description":"The latitude of the location in degrees.","example":37,"format":"double","type":"number"},"location":{"description":"The best effort (street,city,state) for the latitude and longitude.","example":"525 York, San Francisco, CA","type":"string"},"longitude":{"description":"The longitude of the location in degrees.","example":-122.7,"format":"double","type":"number"},"speedMilesPerHour":{"description":"The speed calculated from GPS that the asset was traveling at in miles per hour.","example":35,"format":"double","type":"number"},"timeMs":{"description":"Time in Unix milliseconds since epoch when the asset was at the location.","example":12314151,"format":"int64","type":"integer"}},"required":["latitude","location","longitude","speedMilesPerHour","timeMs"],"type":"object"},"AssetsCurrentLocationsAssetResponseBody":{"description":"Basic information of an asset","properties":{"assetSerialNumber":{"description":"Asset serial number","example":"8dka2810"},"cable":{"$ref":"#/components/schemas/AssetsCurrentLocationCableResponseBody"},"engineHours":{"description":"Engine hours","example":104,"format":"int64","type":"integer"},"id":{"description":"Asset ID","example":1,"format":"int64","type":"integer"},"location":{"description":"Current location of an asset","items":{"$ref":"#/components/schemas/AssetsCurrentLocationResponseBody"},"type":"array"},"name":{"description":"Asset name","example":"Trailer 123","type":"string"}},"required":["assetSerialNumber","cable","engineHours","id","location","name"],"type":"object"},"AssetsCurrentLocationsPaginationResponseBody":{"properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'startingAfter' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"},"hasNextPage":{"description":"True if there are more pages of results after this response.","example":false,"type":"boolean"},"hasPrevPage":{"description":"True if there are more pages of results before this response.","example":true,"type":"boolean"},"startCursor":{"description":"Cursor identifier representing the first element in the response. This value should be used in conjunction with a subsequent request's 'ending_before' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"}},"required":["endCursor","hasNextPage","hasPrevPage","startCursor"],"type":"object"},"AssetsDeleteAssetBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsDeleteAssetUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferResponseBody":{"properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"},"id":{"description":"Asset ID","example":1,"format":"int64","type":"integer"},"name":{"description":"Asset name","example":"Reefer 123","type":"string"},"reeferStats":{"$ref":"#/components/schemas/AssetReeferStatsObjectResponseBody"}},"type":"object"},"AssetsGetAssetReeferServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetReeferUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersResponseBody":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AssetsReeferResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/AssetsReefersPaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"AssetsGetAssetsReefersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsGetAssetsReefersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsAssetResponseResponseBody":{"description":"Asset that the input data is from.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the asset","example":"12345","type":"string"},"tags":{"description":"The array of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Asset.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"AssetsInputsGetAssetsInputsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsResponseBody":{"properties":{"data":{"description":"Array of assets inputs objects.","items":{"$ref":"#/components/schemas/assetsInputsResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AssetsInputsGetAssetsInputsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsInputsGetAssetsInputsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsResponseBody":{"properties":{"data":{"description":"List of assets","items":{"$ref":"#/components/schemas/AssetResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AssetsListAssetsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsListAssetsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsLocationLinkConfigAddressDetailsObject":{"description":"Location object that indicates what address information (destination point and/or ETA) will be shown by Live Sharing Link.","properties":{"formattedAddress":{"description":"Formatted address of a location","example":"1990 Alameda Street, San Francisco, CA 94103","type":"string"},"latitude":{"description":"Latitude of a location","example":37.456345,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location","example":34.5633749,"format":"double","type":"number"},"name":{"description":"Name of a location","example":"Suburbs","type":"string"}},"required":["formattedAddress","latitude","longitude","name"],"type":"object"},"AssetsLocationLinkConfigAddressDetailsObjectResponseBody":{"description":"Location object that indicates what address information (destination point and/or ETA) will be shown by Live Sharing Link.","properties":{"formattedAddress":{"description":"Formatted address of a location","example":"1990 Alameda Street, San Francisco, CA 94103","type":"string"},"latitude":{"description":"Latitude of a location","example":37.456345,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location","example":34.5633749,"format":"double","type":"number"},"name":{"description":"Name of a location","example":"Suburbs","type":"string"}},"required":["formattedAddress","latitude","longitude","name"],"type":"object"},"AssetsLocationLinkRequestConfigObject":{"description":"Configuration details specific to the 'By Asset' Live Sharing Link.","properties":{"assetId":{"description":"Unique assets ID that Live Sharing Link will show.","example":"1234","type":"string"},"location":{"$ref":"#/components/schemas/AssetsLocationLinkConfigAddressDetailsObject"},"tagIds":{"description":"Array of tag IDs to filter data by.","example":["48923049","198349"],"items":{"description":"Tag IDs.","example":"198349","type":"string"},"type":"array"}},"type":"object"},"AssetsLocationLinkResponseConfigObjectResponseBody":{"description":"Configuration details specific to the 'By Asset' Live Sharing Link.","properties":{"assetId":{"description":"Unique assets ID that Live Sharing Link will show.","example":"1234","type":"string"},"location":{"$ref":"#/components/schemas/AssetsLocationLinkConfigAddressDetailsObjectResponseBody"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with assets for Live Sharing Link. Only populated if the link is configured for by tags instead of by asset ID.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"type":"object"},"AssetsNearLocationLinkConfigObject":{"description":"Configuration details specific to the 'By Location' Live Sharing Link.","properties":{"addressId":{"description":"ID of the address. Can be either a unique Samsara ID or an external ID for the address.","example":"1234","type":"string"}},"required":["addressId"],"type":"object"},"AssetsNearLocationLinkConfigObjectResponseBody":{"description":"Configuration details specific to the 'By Location' Live Sharing Link.","properties":{"addressId":{"description":"ID of the address. Can be either a unique Samsara ID or an external ID for the address.","example":"1234","type":"string"}},"required":["addressId"],"type":"object"},"AssetsOnRouteLinkConfigObject":{"description":"Configuration details specific to the 'By Recurring Route' Live Sharing Link.","properties":{"recurringRouteId":{"description":"Samsara ID of the recurring route.","example":"1234","type":"string"}},"required":["recurringRouteId"],"type":"object"},"AssetsOnRouteLinkConfigObjectResponseBody":{"description":"Configuration details specific to the 'By Recurring Route' Live Sharing Link.","properties":{"recurringRouteId":{"description":"Samsara ID of the recurring route.","example":"1234","type":"string"}},"required":["recurringRouteId"],"type":"object"},"AssetsReeferResponseBody":{"description":"Reefer-specific details","properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"},"id":{"description":"Asset ID","example":1,"format":"int64","type":"integer"},"name":{"description":"Asset name","example":"Reefer 123","type":"string"},"reeferStats":{"$ref":"#/components/schemas/AssetsReefersStatsResponseBody"}},"required":["assetType","id","name","reeferStats"],"type":"object"},"AssetsReefersAlarmResponseBody":{"properties":{"alarmCode":{"description":"ID of the alarm","example":102,"format":"int64","type":"integer"},"description":{"description":"Description of the alarm","example":"Check Return Air Sensor","type":"string"},"operatorAction":{"description":"Recommended operator action","example":"Check and repair at end of trip","type":"string"},"severity":{"description":"Severity of the alarm: 1: OK to run, 2: Check as specified, 3: Take immediate action","example":1,"format":"int64","type":"integer"}},"required":["alarmCode","description","operatorAction","severity"],"type":"object"},"AssetsReefersAlarmsStatResponseBody":{"properties":{"alarms":{"items":{"$ref":"#/components/schemas/AssetsReefersAlarmResponseBody"},"type":"array"},"changedAtMs":{"description":"Timestamp when the alarms were reported, in Unix milliseconds since epoch","example":1453449599999,"format":"int64","type":"integer"}},"required":["alarms","changedAtMs"],"type":"object"},"AssetsReefersEngineHoursStatResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"engineHours":{"description":"Engine hours of the reefer.","example":1200,"format":"int64","type":"integer"}},"required":["changedAtMs","engineHours"],"type":"object"},"AssetsReefersFuelPercentageStatResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"fuelPercentage":{"description":"Fuel percentage of the reefer.","example":99,"format":"int64","type":"integer"}},"required":["changedAtMs","fuelPercentage"],"type":"object"},"AssetsReefersPaginationResponseBody":{"properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'startingAfter' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"},"hasNextPage":{"description":"True if there are more pages of results after this response.","example":false,"type":"boolean"},"hasPrevPage":{"description":"True if there are more pages of results before this response.","example":true,"type":"boolean"},"startCursor":{"description":"Cursor identifier representing the first element in the response. This value should be used in conjunction with a subsequent request's 'ending_before' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"}},"required":["endCursor","hasNextPage","hasPrevPage","startCursor"],"type":"object"},"AssetsReefersPowerStatusResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"status":{"description":"Power status of the reefer. Valid values: `Off`, `Active`, `Active (Start/Stop)`, `Active (Continuous)`.","enum":["Off","Active","Active (Start/Stop)","Active (Continuous)"],"example":"Active (Continuous)","type":"string"}},"required":["changedAtMs","status"],"type":"object"},"AssetsReefersStatsResponseBody":{"description":"Contains all the state changes of the reefer for the included stat types. Each state change is recorded independently, so the number of records in each array may differ depending on when that stat changed state. Stat types with a continuous value (such as temperature) will be recorded at different rates depending on the reefer, but generally readings have a frequency on the order of seconds.","properties":{"ambientAirTemperature":{"description":"Ambient temperature of the reefer. This is the temperature of the air around the Samsara Asset Gateway.","items":{"$ref":"#/components/schemas/AssetsReefersTemperatureStatResponseBody"},"type":"array"},"dischargeAirTemperature":{"description":"Discharge air temperature of the reefer. This is the temperature of the air as it leaves the cooling unit.","items":{"$ref":"#/components/schemas/AssetsReefersTemperatureStatResponseBody"},"type":"array"},"engineHours":{"description":"Engine hours of the reefer","items":{"$ref":"#/components/schemas/AssetsReefersEngineHoursStatResponseBody"},"type":"array"},"fuelPercentage":{"description":"Fuel percentage of the reefer","items":{"$ref":"#/components/schemas/AssetsReefersFuelPercentageStatResponseBody"},"type":"array"},"powerStatus":{"description":"Power status of the reefer","items":{"$ref":"#/components/schemas/AssetsReefersPowerStatusResponseBody"},"type":"array"},"reeferAlarms":{"description":"Reefer alarms","items":{"$ref":"#/components/schemas/AssetsReefersAlarmsStatResponseBody"},"type":"array"},"returnAirTemperature":{"description":"Return air temperature of the reefer. This is the temperature read by the reefer module (Carrier, Thermo King) that shows the temperature of the air as it enters the system.","items":{"$ref":"#/components/schemas/AssetsReefersTemperatureStatResponseBody"},"type":"array"},"setPoint":{"description":"Set point temperature of the reefer","items":{"$ref":"#/components/schemas/AssetsReefersTemperatureStatResponseBody"},"type":"array"}},"type":"object"},"AssetsReefersTemperatureStatResponseBody":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"tempInMilliC":{"description":"Temperature in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"required":["changedAtMs","tempInMilliC"],"type":"object"},"AssetsUpdateAssetBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetRequestBody":{"description":"Representation of a vehicle trailer or other equipment to be tracked.","properties":{"attributes":{"description":"A list of attributes to assign to the asset. If provided, this replaces the asset's entire set of attribute associations with exactly this list; omit this field to leave existing attribute associations unchanged, or pass an empty array to clear them.","items":{"$ref":"#/components/schemas/GoaAttributeTinyRequestBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"licensePlate":{"description":"The license plate of the asset.","example":"XHK1234","type":"string"},"make":{"description":"The OEM/manufacturer of the asset. Updates to this field are restricted.","example":"Bobcat","type":"string"},"model":{"description":"The model of the asset. Updates to this field are restricted.","example":"S630 T4","type":"string"},"name":{"description":"The human-readable name of the asset. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"MyAsset-1234","type":"string"},"notes":{"description":"These are generic notes about the asset. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are notes.","type":"string"},"readingsIngestionEnabled":{"description":"Indicates whether the asset is expected to have data ingested using the Readings API. Do not set this to true for an asset that has, or is intended to have, a connected gateway.","example":false,"type":"boolean"},"regulationMode":{"description":"Whether or not the asset is regulated, unregulated (non-CMV), or a mixed use unregulated asset. Primarily used with vehicles.  Valid values: `mixed`, `regulated`, `unregulated`","enum":["mixed","regulated","unregulated"],"example":"mixed","type":"string"},"serialNumber":{"description":"The serial number of the asset. This can be an internal serial number or used to hold legacy VIN/PIN numbers such as ones of shorter lengths.","example":"LN016251","type":"string"},"tagIds":{"description":"An array of IDs of tags to associate with this asset. If provided, this replaces the asset's entire set of tag associations with exactly this list; omit this field to leave existing tag associations unchanged, or pass an empty array to clear them. If your access to the API is scoped by one or more tags, this field is required to pass in.","example":["Illo reiciendis repudiandae aut possimus enim.","Voluptates consectetur alias voluptates aspernatur.","Id est."],"items":{"example":"Soluta in doloribus quia aut aut.","type":"string"},"type":"array"},"type":{"description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"},"vin":{"description":"The unique 17-digit VIN (Vehicle Identification Number) or PIN (Product Identification Number) of the asset.","example":"1FUJBBCKXCLBZ1234","type":"string"},"year":{"description":"The model year of the asset. Updates to this field are restricted.","example":2015,"format":"int64","type":"integer"}},"type":"object"},"AssetsUpdateAssetResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AssetResponseBody"}},"required":["data"],"type":"object"},"AssetsUpdateAssetServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssetsUpdateAssetUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationResponseBody":{"description":"An association between a central device (e.g. vehicle gateway) and a peripheral device.","properties":{"associationEndTime":{"description":"The time when this association ended, in RFC 3339 format. Null if the association is still active.","example":"2024-02-20T08:00:00Z","type":"string"},"associationStartTime":{"description":"The time when this association started, in RFC 3339 format.","example":"2024-01-15T10:30:00Z","type":"string"},"centralId":{"description":"The Samsara ID of the central device in this association.","example":"12345","type":"string"},"peripheralId":{"description":"The Samsara ID of the peripheral device in this association.","example":"67890","type":"string"},"peripheralName":{"description":"The human-readable name of the peripheral device, if available.","example":"Asset Tag A","type":"string"}},"required":["associationStartTime","centralId","peripheralId"],"type":"object"},"AssociationsListAssociationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsResponseBody":{"properties":{"data":{"description":"List of asset associations matching the filter criteria.","items":{"$ref":"#/components/schemas/AssociationResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"AssociationsListAssociationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AssociationsListAssociationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"Attribute":{"properties":{"attributeType":{"default":"multi-select","description":"Denotes the data type of the attribute's values. Valid values: `single-select`, `multi-select`, `text`, `freeform-multi-select`, `number`, `date`.","enum":["single-select","multi-select","text","freeform-multi-select","number","date"],"example":"single-select","type":"string"},"entityType":{"description":"Denotes the type of entity, driver, asset, or workOrder. Valid values: `driver`, `asset`, `workOrder`.","enum":["driver","asset","workOrder"],"example":"asset","type":"string"},"id":{"description":"The samsara id of the attribute object.","example":"123e4567-e89b-12d3-a456-426614174000","type":"string"},"name":{"description":"Name of attribute.","example":"License Certifications","type":"string"},"numberValues":{"description":"Number values that can be associated with this attribute. Note: this field is `null` for `text` and `freeform-multi-select` attribute types.`","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that can be associated with this attribute. Note: this field is `null` for `text` and `freeform-multi-select` attribute types.`","items":{"type":"string"},"type":"array"},"unit":{"default":"NO_UNIT","description":"Unit of the attribute (only for Number attributes).","enum":["NO_UNIT","METER","POUND","TON","KILOGRAM","INCH","FOOT","GALLON","LITER","BARREL","POUND_PER_SQUARE_INCH","BAR","KILOPASCAL","FAHRENHEIT","CELSIUS","USD","CAD","EUR","GBP","MXN","HOUR","MINUTE","DAY","MILE_PER_HOUR","KILOMETER_PER_HOUR","HORSEPOWER","KILOWATT","BTU_PER_HOUR","KILOWATT_HOUR","BTU","HERTZ","REVOLUTION_PER_MINUTE","DECIBEL"],"example":"METER","type":"string"},"values":{"description":"Representation of values that includes ids. Note: this field is `null` for `text` and `freeform-multi-select` attribute types.`","items":{"$ref":"#/components/schemas/attributeValueTiny"},"type":"array"}},"type":"object"},"AttributeEntity":{"properties":{"dateValues":{"description":"Date values that are associated with this attribute (RFC 3339 date format: YYYY-MM-DD).","items":{"type":"string"},"type":"array"},"entityId":{"format":"int64","type":"integer"},"externalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"properties":{},"type":"object"},"name":{"type":"string"},"numberValues":{"description":"Number values that are associated with this attribute. Note: this field is `null` for `text` and `freeform-multi-select` attribute types.`","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that are associated with this attribute. Note: this field is `null` for `text` and `freeform-multi-select` attribute types.`","items":{"type":"string"},"type":"array"},"values":{"description":"Representation of values that includes ids. Note: this field is `null` for `text` and `freeform-multi-select` attribute types.`","items":{"$ref":"#/components/schemas/attributeValueTiny"},"type":"array"}},"type":"object"},"AttributeExpanded":{"allOf":[{"$ref":"#/components/schemas/Attribute"},{"$ref":"#/components/schemas/AttributeExpanded_allOf"}]},"AttributeExpandedResponse":{"properties":{"data":{"$ref":"#/components/schemas/AttributeExpanded"}},"type":"object"},"AttributeExpanded_allOf":{"properties":{"entities":{"description":"Entities that this attribute is applied onto","items":{"$ref":"#/components/schemas/AttributeEntity"},"type":"array"}},"required":["entities"],"type":"object"},"AttributeResponse":{"properties":{"data":{"$ref":"#/components/schemas/Attribute"}},"type":"object"},"AuthTokenAuthTokenBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenRequestBody":{"description":"Request body for creating a driver auth token. One of `id`, `externalId`, or `username` is required.","properties":{"code":{"description":"Required. Random 12+ character string, used with the auth token to help secure the client from intercepted tokens.","example":"dp[gZc1wAigz4uGa0Hh","minLength":12,"type":"string"},"driverId":{"description":"Optional. Samsara ID of the driver. One of `id`, `externalId`, or `username` is required.","example":1234,"format":"int64","type":"integer"},"externalId":{"description":"Optional. External ID of the driver, in the format `key:value` (e.g., `payrollId:ABFS18600`). One of `id`, `externalId`, or `username` is required.","example":"payrollId:ABFS18600","type":"string"},"username":{"description":"Optional. Username of the driver. This is the login identifier configured when the driver is created. One of `id`, `externalId`, or `username` is required.","example":"johndoe","type":"string"}},"required":["code"],"type":"object"},"AuthTokenAuthTokenResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/AuthTokenForDriverResponseResponseBody"}},"required":["data"],"type":"object"},"AuthTokenAuthTokenServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenAuthTokenUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"AuthTokenForDriverResponseResponseBody":{"description":"Response object for create driver auth token","properties":{"expirationTime":{"description":"Expiration time of the token in Unix milliseconds since epoch. Clients must redeem the token before this timestamp.","example":1710000000000,"format":"int64","type":"integer"},"token":{"description":"A one-time-use authentication token. Must be paired with the original code and driver identity in a separate request to exchange for a session.","example":"ZmFrZVRva2VuXzMyQnl0ZXNMb25nRm9yVGVzdA","type":"string"}},"required":["expirationTime","token"],"type":"object"},"AuthorSignatureObjectResponseBody":{"description":"An author signature for DVIRs with a signed time.","properties":{"signatoryUser":{"$ref":"#/components/schemas/SignatoryUserObjectResponseBody"},"signedAtTime":{"description":"The time when the DVIR was signed. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"type":{"description":"Whether the DVIR was submitted by a driver or mechanic.  Valid values: `driver`, `mechanic`","enum":["driver","mechanic"],"example":"driver","type":"string"}},"required":["signatoryUser","signedAtTime","type"],"type":"object"},"BaseRouteWithOrdersResponseObjectResponseBody":{"properties":{"actualRouteEndTime":{"description":"Actual end time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"actualRouteStartTime":{"description":"Actual start time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"equipmentProfile":{"$ref":"#/components/schemas/RouteEquipmentProfileObjectResponseBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the route","example":"342341","type":"string"},"name":{"description":"Route name","example":"Bid 123","type":"string"},"notes":{"description":"Notes for the route","example":"These are my notes","type":"string"},"orgLocalTimezone":{"description":"The local timezone, as defined in Settings for your organization. Timezones use [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"},"recurringRouteLiveSharingLinks":{"description":"List of shareable, non-expired 'By recurring Route' Live Sharing Links.","items":{"$ref":"#/components/schemas/LiveSharingLinkResponseObjectResponseBody"},"type":"array"},"scheduledRouteEndTime":{"description":"Scheduled end time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledRouteStartTime":{"description":"Scheduled start time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"settings":{"$ref":"#/components/schemas/RouteSettingsResponseBody"},"stops":{"description":"List of stops along the route","items":{"$ref":"#/components/schemas/RouteStopWithOrdersResponseObjectResponseBody"},"minItems":2,"type":"array"},"tagIds":{"description":"An array of IDs of tags to associate with this route.","example":["123","321"],"items":{"example":"Sit eveniet accusamus.","type":"string"},"type":"array"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["id"],"type":"object"},"BehaviorCountDetailsRequestBody":{"description":"Trigger when behavior count meets the specified condition.","properties":{"comparison":{"description":"The comparison to use when comparing the value to the threshold.  Valid values: `EQUAL_TO`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL_TO`, `LESS_THAN`, `LESS_THAN_OR_EQUAL_TO`","enum":["EQUAL_TO","GREATER_THAN","GREATER_THAN_OR_EQUAL_TO","LESS_THAN","LESS_THAN_OR_EQUAL_TO"],"example":"EQUAL_TO","type":"string"},"numBehaviors":{"description":"The number of behaviors to compare to.","example":10,"minimum":0,"type":"integer"},"numDays":{"description":"The number of days to compare to.","example":30,"maximum":90,"minimum":1,"type":"integer"}},"required":["comparison","numBehaviors","numDays"],"type":"object"},"BehaviorCountDetailsResponseBody":{"description":"Trigger when behavior count meets the specified condition.","properties":{"comparison":{"description":"The comparison to use when comparing the value to the threshold.  Valid values: `EQUAL_TO`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL_TO`, `LESS_THAN`, `LESS_THAN_OR_EQUAL_TO`","enum":["EQUAL_TO","GREATER_THAN","GREATER_THAN_OR_EQUAL_TO","LESS_THAN","LESS_THAN_OR_EQUAL_TO"],"example":"EQUAL_TO","type":"string"},"numBehaviors":{"description":"The number of behaviors to compare to.","example":10,"minimum":0,"type":"integer"},"numDays":{"description":"The number of days to compare to.","example":30,"maximum":90,"minimum":1,"type":"integer"}},"required":["comparison","numBehaviors","numDays"],"type":"object"},"BleAssetTagDetailsResponseResponseBody":{"description":"BLE asset tag-specific health metadata details.","properties":{"batteryState":{"description":"The BLE asset tag's battery state.  Valid values: `critical`, `low`, `ok`, `unknown`","enum":["critical","low","ok","unknown"],"example":"critical","type":"string"},"lastCheckInTime":{"description":"The timestamp when the BLE asset tag was last detected by a gateway in the Samsara network, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"type":"object"},"CameraConnectorDetailsResponseResponseBody":{"description":"Camera connector-specific health metadata details.","properties":{"gatewayLastConnectedTime":{"description":"The timestamp when the gateway was last connected to the vehicle, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"lastFiftyHoursUptimePercentage":{"description":"The percentage of successful recording time during the time when the vehicle is on an active trip over the past 50 hours, in percentage points.","example":95.5,"format":"double","type":"number"},"vehicleGatewaySerial":{"description":"The serial number of the vehicle gateway that the camera connector is connected to.","example":"VG-1234-5678","type":"string"}},"type":"object"},"CameraConnectorDisconectedResponseBody":{"description":"Details specific to Camera Connector Disconnected.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"CameraDetailsResponseResponseBody":{"description":"Camera-specific health metadata details.","properties":{"gatewayLastConnectedTime":{"description":"The timestamp when the gateway was last connected to the vehicle, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"lastFiftyHoursUptimePercentage":{"description":"The percentage of successful recording time during the time when the vehicle is on an active trip over the past 50 hours, in percentage points.","example":95.5,"format":"double","type":"number"},"vehicleGatewaySerial":{"description":"The serial number of the vehicle gateway that the camera is connected to.","example":"VG-1234-5678","type":"string"}},"type":"object"},"CameraSerial":{"description":"The serial number of the camera installed in the vehicle","example":"CNCK-VT8-XA8","type":"string"},"CameraStreamIssueResponseBody":{"description":"Details specific to Camera Stream Issue.","properties":{"cameraDevice":{"$ref":"#/components/schemas/alertObjectWorkforceCameraDeviceResponseBody"}},"type":"object"},"CampaignItemIngestEntryObjectRequestBody":{"description":"One asset to add to a campaign, identified by VIN, asset ID, or both.","properties":{"assetId":{"description":"ID of the asset. Takes precedence over `vin` when both are given; the `vin` is then recorded on the item as provided. Required unless `vin` is given.","example":"281474976710655","type":"string"},"sourceRef":{"description":"Opaque reference to the row in your source feed, stored on the item for reconciliation.","example":"recall-feed-2026-02-01:row-1042","type":"string"},"vin":{"description":"VIN of the asset. Matched case-insensitively against the VINs of your organization's assets. Required unless `assetId` is given.","example":"1FUJGHDV0CLBP8834","type":"string"}},"type":"object"},"CampaignItemIngestResponseItemObjectResponseBody":{"description":"Outcome for one entry of the request.","properties":{"assetId":{"description":"ID of the asset the entry resolved to, when it resolved.","example":"281474976710655","type":"string"},"message":{"description":"Explanation for an entry that did not result in an item.","example":"No asset in your organization has this VIN.","type":"string"},"result":{"description":"Outcome of the entry. `alreadyPresent` means the asset already has an item on the campaign, in any state including `dismissed`; the existing item is left untouched, so a retried request is safe.  Valid values: `created`, `alreadyPresent`, `unresolvedVin`, `unresolvedAssetId`, `invalid`, `overCap`","enum":["created","alreadyPresent","unresolvedVin","unresolvedAssetId","invalid","overCap"],"example":"created","type":"string"},"status":{"description":"HTTP status for this entry: 200 for `created` and `alreadyPresent`, 400 for `invalid`, 404 for `unresolvedVin` and `unresolvedAssetId`, 409 for `overCap`.","example":200,"format":"int64","type":"integer"}},"required":["result","status"],"type":"object"},"CampaignItemResponseObjectResponseBody":{"description":"One asset's membership in a campaign.","properties":{"assetId":{"description":"ID of the asset affected by the campaign.","example":"281474976710655","type":"string"},"campaignId":{"description":"Unique ID of the campaign the item belongs to.","example":"2d0e5e9b-4b2a-4e4e-9b8e-6c3f8a7d1e2f","type":"string"},"completedAtTime":{"description":"Time the item was completed, in RFC 3339 format.","example":"2026-02-10T09:30:00Z","format":"date-time","type":"string"},"createdAtTime":{"description":"Time the item was created, in RFC 3339 format.","example":"2026-01-20T15:04:05Z","format":"date-time","type":"string"},"dismissedReason":{"description":"Reason the item was dismissed, when `state` is `dismissed`.","example":"Vehicle sold","type":"string"},"effectiveState":{"description":"The state the item behaves as. Equal to `state`, except `suspended` for an open item (`pending`, `hold`, `ready`) on a campaign that is in `draft` or `onHold`, where the item is kept off work orders until the campaign is active.  Valid values: `pending`, `hold`, `ready`, `workOrderCreated`, `complete`, `dismissed`, `cancelled`, `suspended`, `unknown`","enum":["pending","hold","ready","workOrderCreated","complete","dismissed","cancelled","suspended","unknown"],"example":"pending","type":"string"},"id":{"description":"Unique ID of the campaign item.","example":"9b2f6c0e-3d57-4c1a-8a41-5a3f0c7d2b10","type":"string"},"linkedWorkOrderId":{"description":"ID of the work order that materialized from this item, if any. Uses the same ID as the Work Orders API.","example":"1234567","type":"string"},"sourceBasis":{"description":"How the asset joined the campaign. Items added through this API are `api`.  Valid values: `api`, `targeting`, `manual`, `csv`, `assistant`, `nhtsa`, `unknown`","enum":["api","targeting","manual","csv","assistant","nhtsa","unknown"],"example":"api","type":"string"},"sourceRef":{"description":"Opaque reference to the source feed row, supplied when the item was ingested, for external reconciliation.","example":"recall-feed-2026-02-01:row-1042","type":"string"},"state":{"description":"Stored lifecycle state of the item. Defaults to `unknown` when the state is not recognized.  Valid values: `pending`, `hold`, `ready`, `workOrderCreated`, `complete`, `dismissed`, `cancelled`, `unknown`","enum":["pending","hold","ready","workOrderCreated","complete","dismissed","cancelled","unknown"],"example":"pending","type":"string"},"stateSinceTime":{"description":"Time the item entered its current state, in RFC 3339 format.","example":"2026-01-20T15:04:05Z","format":"date-time","type":"string"},"vin":{"description":"VIN as provided by the source of the item, if any.","example":"1FUJGHDV0CLBP8834","type":"string"}},"required":["assetId","campaignId","createdAtTime","effectiveState","id","sourceBasis","state","stateSinceTime"],"type":"object"},"CampaignItemStateCountResponseObjectResponseBody":{"description":"Number of campaign items in one state.","properties":{"count":{"description":"Number of items in the state.","example":42,"format":"int64","type":"integer"},"state":{"description":"State of the counted items.  Valid values: `pending`, `hold`, `ready`, `workOrderCreated`, `complete`, `dismissed`, `cancelled`, `unknown`","enum":["pending","hold","ready","workOrderCreated","complete","dismissed","cancelled","unknown"],"example":"pending","type":"string"}},"required":["count","state"],"type":"object"},"CampaignRecallMetadataRequestObjectRequestBody":{"description":"Recall provenance for a recall-sourced campaign.","properties":{"nhtsaRecallNumber":{"description":"NHTSA recall number.","example":"24V-123","type":"string"},"oemNotificationTime":{"description":"Time the OEM issued the notification, in RFC 3339 format. Only the date component is meaningful; the time component is stored as provided.","example":"2026-01-15T00:00:00Z","format":"date-time","type":"string"},"oemRecallNumber":{"description":"OEM recall number.","example":"26S38","type":"string"},"ownerNotificationTime":{"description":"Time owners were notified, in RFC 3339 format. Only the date component is meaningful; the time component is stored as provided.","example":"2026-02-01T00:00:00Z","format":"date-time","type":"string"},"partsAvailableTime":{"description":"Time parts became available, in RFC 3339 format. Only the date component is meaningful; the time component is stored as provided.","example":"2026-03-01T00:00:00Z","format":"date-time","type":"string"},"recallSource":{"description":"Where the recall notice came from.  Valid values: `recallMasters`, `nhtsa`, `oem`, `manual`, `api`","enum":["recallMasters","nhtsa","oem","manual","api"],"example":"recallMasters","type":"string"},"remedyAvailableTime":{"description":"Time a remedy became available, in RFC 3339 format. Only the date component is meaningful; the time component is stored as provided.","example":"2026-03-01T00:00:00Z","format":"date-time","type":"string"},"supersededByRecallNumber":{"description":"Recall number that supersedes this recall.","example":"26S40","type":"string"}},"required":["recallSource"],"type":"object"},"CampaignRecallMetadataResponseObjectResponseBody":{"description":"Recall provenance carried on a recall-sourced campaign.","properties":{"nhtsaRecallNumber":{"description":"NHTSA recall number.","example":"24V-123","type":"string"},"oemNotificationTime":{"description":"Time the OEM issued the notification, in RFC 3339 format.","example":"2026-01-15T00:00:00Z","format":"date-time","type":"string"},"oemRecallNumber":{"description":"OEM recall number.","example":"26S38","type":"string"},"ownerNotificationTime":{"description":"Time owners were notified, in RFC 3339 format.","example":"2026-02-01T00:00:00Z","format":"date-time","type":"string"},"partsAvailableTime":{"description":"Time parts became available, in RFC 3339 format.","example":"2026-03-01T00:00:00Z","format":"date-time","type":"string"},"recallSource":{"description":"Where the recall notice came from.  Valid values: `recallMasters`, `nhtsa`, `oem`, `manual`, `api`, `unknown`","enum":["recallMasters","nhtsa","oem","manual","api","unknown"],"example":"recallMasters","type":"string"},"remedyAvailableTime":{"description":"Time a remedy became available, in RFC 3339 format.","example":"2026-03-01T00:00:00Z","format":"date-time","type":"string"},"supersededByRecallNumber":{"description":"Recall number that supersedes this recall.","example":"26S40","type":"string"}},"required":["recallSource"],"type":"object"},"CampaignResponseObjectResponseBody":{"description":"A recall or campaign: a one-time batch of work applied across a targeted group of assets.","properties":{"campaignNumber":{"description":"Customer or OEM-aligned campaign number.","example":"26S38","type":"string"},"campaignType":{"description":"Type of the campaign. Defaults to `unknown` when the type is not recognized.  Valid values: `safetyRecall`, `mandatoryCampaign`, `voluntary`, `internal`, `unknown`","enum":["safetyRecall","mandatoryCampaign","voluntary","internal","unknown"],"example":"safetyRecall","type":"string"},"createdAtTime":{"description":"Time the campaign was created, in RFC 3339 format.","example":"2026-01-20T15:04:05Z","format":"date-time","type":"string"},"createdSource":{"description":"Where the campaign was created from. Campaigns created through this API are `api`. Defaults to `unknown` when the source is not recorded.  Valid values: `dashboard`, `api`, `assistant`, `unknown`","enum":["dashboard","api","assistant","unknown"],"example":"api","type":"string"},"description":{"description":"Free-form description of the campaign.","example":"Replace rear brake hose per OEM bulletin.","type":"string"},"endTime":{"description":"End of the campaign in RFC 3339 format.","example":"2026-08-01T00:00:00Z","format":"date-time","type":"string"},"id":{"description":"Unique ID of the campaign.","example":"2d0e5e9b-4b2a-4e4e-9b8e-6c3f8a7d1e2f","type":"string"},"isWarranty":{"description":"Whether campaign work is expected to be claimable as warranty or recall work. Defaults to false.","example":true,"type":"boolean"},"name":{"description":"Display name of the campaign.","example":"Rear brake hose recall","type":"string"},"recallMetadata":{"$ref":"#/components/schemas/CampaignRecallMetadataResponseObjectResponseBody"},"startTime":{"description":"Start of the campaign in RFC 3339 format.","example":"2026-02-01T00:00:00Z","format":"date-time","type":"string"},"status":{"$ref":"#/components/schemas/CampaignStatusResponseObjectResponseBody"},"updatedAtTime":{"description":"Time the campaign was last updated, in RFC 3339 format.","example":"2026-01-21T09:30:00Z","format":"date-time","type":"string"},"workOrderPriority":{"description":"Priority applied to work orders generated from the campaign. Uses the same values as the `priority` field of the Work Orders API.  Valid values: `High`, `Low`, `Medium`, `Urgent`","enum":["High","Low","Medium","Urgent"],"example":"High","type":"string"},"workOrderTemplateId":{"description":"ID of the work order template that pre-populates work orders generated from the campaign.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"}},"required":["campaignType","createdAtTime","createdSource","id","isWarranty","name","status","updatedAtTime"],"type":"object"},"CampaignRollupsResponseObjectResponseBody":{"description":"Progress rollups for a campaign's items.","properties":{"agingItemCount":{"description":"Number of items that have been in a non-terminal state (`pending`, `hold`, `ready`, `workOrderCreated`) for more than 30 days.","example":7,"format":"int64","type":"integer"},"campaignId":{"description":"Unique ID of the campaign.","example":"2d0e5e9b-4b2a-4e4e-9b8e-6c3f8a7d1e2f","type":"string"},"itemCountsByState":{"description":"Item counts grouped by state. Every state reported by the service is present, including states with a count of 0.","items":{"$ref":"#/components/schemas/CampaignItemStateCountResponseObjectResponseBody"},"type":"array"},"totalItemCount":{"description":"Total number of items on the campaign.","example":120,"format":"int64","type":"integer"}},"required":["agingItemCount","campaignId","itemCountsByState","totalItemCount"],"type":"object"},"CampaignStatusResponseObjectResponseBody":{"description":"The customer-defined status of a campaign and the fixed state behind it.","properties":{"id":{"description":"ID of the status definition.","example":"f6e83fa8-c1fb-5d15-8832-693161b9c6e7","type":"string"},"name":{"description":"Customer-facing name of the status.","example":"Draft","type":"string"},"state":{"description":"Fixed system state behind the status. Campaigns created through the API start in `draft`. Defaults to `unknown` when the status definition no longer exists.  Valid values: `draft`, `active`, `onHold`, `complete`, `cancelled`, `unknown`","enum":["draft","active","onHold","complete","cancelled","unknown"],"example":"draft","type":"string"}},"required":["id","name","state"],"type":"object"},"CampaignsGetCampaignItemsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsResponseBody":{"properties":{"data":{"description":"Campaign items.","items":{"$ref":"#/components/schemas/CampaignItemResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"CampaignsGetCampaignItemsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignItemsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CampaignRollupsResponseObjectResponseBody"}},"required":["data"],"type":"object"},"CampaignsGetCampaignRollupsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignRollupsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsResponseBody":{"properties":{"data":{"description":"Campaigns.","items":{"$ref":"#/components/schemas/CampaignResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"CampaignsGetCampaignsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsGetCampaignsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchRequestBody":{"description":"Entries to ingest.","properties":{"data":{"description":"Entries to add to the campaign.","items":{"$ref":"#/components/schemas/CampaignItemIngestEntryObjectRequestBody"},"maxItems":5000,"minItems":1,"type":"array"}},"required":["data"],"type":"object"},"CampaignsPostCampaignItemsBatchResponseBody":{"properties":{"requestId":{"description":"UUID for this batch request; used when reaching out to support.","example":"1f7f5081-9f8e-4b68-8b85-97dbe4b46d7e","format":"uuid","type":"string"},"responses":{"description":"One result per entry, in request order.","items":{"$ref":"#/components/schemas/CampaignItemIngestResponseItemObjectResponseBody"},"type":"array"}},"required":["requestId","responses"],"type":"object"},"CampaignsPostCampaignItemsBatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignItemsBatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsRequestBody":{"description":"Campaign to create.","properties":{"campaignNumber":{"description":"Customer or OEM-aligned campaign number.","example":"26S38","type":"string"},"campaignType":{"description":"Type of the campaign.  Valid values: `safetyRecall`, `mandatoryCampaign`, `voluntary`, `internal`","enum":["safetyRecall","mandatoryCampaign","voluntary","internal"],"example":"safetyRecall","type":"string"},"description":{"description":"Free-form description of the campaign.","example":"Replace rear brake hose per OEM bulletin.","type":"string"},"endTime":{"description":"End of the campaign in RFC 3339 format. Must not be before `startTime`.","example":"2026-08-01T00:00:00Z","format":"date-time","type":"string"},"isWarranty":{"default":false,"description":"Whether campaign work is expected to be claimable as warranty or recall work. Defaults to false.","example":true,"type":"boolean"},"name":{"description":"Display name of the campaign.","example":"Rear brake hose recall","type":"string"},"recallMetadata":{"$ref":"#/components/schemas/CampaignRecallMetadataRequestObjectRequestBody"},"startTime":{"description":"Start of the campaign in RFC 3339 format.","example":"2026-02-01T00:00:00Z","format":"date-time","type":"string"},"workOrderPriority":{"description":"Priority applied to work orders generated from the campaign. Uses the same values as the `priority` field of the Work Orders API. Defaults to no priority.  Valid values: `High`, `Low`, `Medium`, `Urgent`","enum":["High","Low","Medium","Urgent"],"example":"High","type":"string"},"workOrderTemplateId":{"description":"ID of a work order template, as returned by GET /maintenance/work-order-templates, that pre-populates work orders generated from the campaign.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"}},"required":["campaignType","name"],"type":"object"},"CampaignsPostCampaignsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CampaignResponseObjectResponseBody"}},"required":["data"],"type":"object"},"CampaignsPostCampaignsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CampaignsPostCampaignsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CancelSharedAssetBatchResponseItemResponseBody":{"description":"Result for one requested asset sharing.","properties":{"data":{"$ref":"#/components/schemas/SharedAssetResponseObjectResponseBody"},"message":{"description":"Failure message for this asset sharing.","example":"Shared asset not found.","type":"string"},"status":{"description":"HTTP status for this asset sharing.","example":200,"format":"int64","type":"integer"}},"required":["status"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryResponseBody":{"properties":{"data":{"description":"List of collection history entries.","items":{"$ref":"#/components/schemas/CarbCtcVehicleHistoryObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehicleHistoryUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesResponseBody":{"properties":{"data":{"description":"List of enrolled vehicles.","items":{"$ref":"#/components/schemas/CarbCtcVehicleObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"CarbCtcListCarbCtcVehiclesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcListCarbCtcVehiclesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CarbCtcVehicleHistoryObjectResponseBody":{"description":"A collection history entry for a vehicle enrolled in the CARB CTC program.","properties":{"enrollmentId":{"description":"Unique identifier for this CARB CTC enrollment.","example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"enrollmentVin":{"description":"Vehicle Identification Number associated with the CARB CTC enrollment.","example":"1HGCM82633A123456","type":"string"},"happenedAtTime":{"description":"When the collection happened, in RFC 3339 format.","example":"2024-06-15T08:00:00Z","format":"date-time","type":"string"},"id":{"description":"Samsara vehicle ID.","example":"12345","type":"string"},"testResult":{"description":"The outcome of the collection test.  Valid values: `pass`, `fail`, `error`, `unknown`","enum":["pass","fail","error","unknown"],"example":"pass","type":"string"},"testResultDetails":{"description":"Human-readable context for the test result.","example":"Response from CARB CTC: Vehicle PASSED emissions scan.","type":"string"}},"required":["enrollmentId","enrollmentVin","happenedAtTime","id","testResult"],"type":"object"},"CarbCtcVehicleObjectResponseBody":{"description":"An enrolled vehicle with its latest CARB CTC compliance status.","properties":{"enrollmentId":{"description":"Unique identifier for this CARB CTC enrollment.","example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"enrollmentVin":{"description":"Vehicle Identification Number associated with the CARB CTC enrollment.","example":"1HGCM82633A123456","type":"string"},"id":{"description":"Samsara vehicle ID.","example":"12345","type":"string"},"lastCollectionAtTime":{"description":"When the most recent data collection happened, in RFC 3339 format.","example":"2024-06-15T08:00:00Z","format":"date-time","type":"string"},"nextCollectionAtTime":{"description":"When the next data collection is scheduled, in RFC 3339 format.","example":"2024-12-15T00:00:00Z","format":"date-time","type":"string"},"testStatus":{"description":"Current CARB CTC compliance test status.  Valid values: `notScheduled`, `scheduled`, `inProgress`, `awaitingResult`, `pass`, `fail`, `error`, `unknown`","enum":["notScheduled","scheduled","inProgress","awaitingResult","pass","fail","error","unknown"],"example":"pass","type":"string"},"testStatusDetails":{"description":"Human-readable context for the test status.","example":"Response from CARB CTC: Vehicle PASSED emissions scan.","type":"string"}},"required":["enrollmentId","enrollmentVin","id","testStatus"],"type":"object"},"CarrierProposedAssignment":{"description":"A carrier proposed assignment object","properties":{"acceptedTime":{"$ref":"#/components/schemas/CarrierProposedAssignmentAcceptedTime"},"activeTime":{"$ref":"#/components/schemas/CarrierProposedAssignmentActiveTime"},"driver":{"$ref":"#/components/schemas/CarrierProposedAssignmentDriver"},"firstSeenTime":{"$ref":"#/components/schemas/CarrierProposedAssignmentFirstSeenTime"},"id":{"$ref":"#/components/schemas/CarrierProposedAssignmentId"},"rejectedTime":{"$ref":"#/components/schemas/CarrierProposedAssignmentRejectedTime"},"shippingDocs":{"$ref":"#/components/schemas/CarrierProposedAssignmentShippingDocs"},"trailers":{"$ref":"#/components/schemas/CarrierProposedAssignmentTrailers"},"vehicle":{"$ref":"#/components/schemas/CarrierProposedAssignmentVehicle"}},"required":["activeTime","id"],"type":"object"},"CarrierProposedAssignmentAcceptedTime":{"description":"Time when the driver accepted this assignment in the mobile app. Will be omitted if the driver hasn't accepted this assignment. RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2020-01-27T07:06:25Z","type":"string"},"CarrierProposedAssignmentActiveTime":{"description":"Time after which this assignment will be active and visible to the driver on the mobile app. Not setting it makes it active now. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"CarrierProposedAssignmentDriver":{"allOf":[{"description":"The driver that this assignment is for.","type":"object"},{"$ref":"#/components/schemas/driverTinyResponse"},{"$ref":"#/components/schemas/CarrierProposedAssignmentDriver_allOf"}]},"CarrierProposedAssignmentDriverId":{"description":"Samsara ID for the driver that this assignment is for.","example":"42","type":"string"},"CarrierProposedAssignmentDriver_allOf":{"properties":{"externalIds":{"$ref":"#/components/schemas/carrierProposedAssignmentDriverAllOf2ExternalIds"}},"type":"object"},"CarrierProposedAssignmentFirstSeenTime":{"description":"Time when the driver first saw this assignment in the mobile app. Will be omitted if the driver hasn't seen this assignment yet. RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2020-01-27T07:06:25Z","type":"string"},"CarrierProposedAssignmentId":{"description":"Samsara ID for the assignment.","example":"08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d","type":"string"},"CarrierProposedAssignmentRejectedTime":{"description":"Time when the driver rejected this assignment in the mobile app. Will be omitted if the driver hasn't rejected this assignment. RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2020-01-27T07:06:25Z","type":"string"},"CarrierProposedAssignmentResponse":{"description":"A carrier-proposed assignment response object.","properties":{"data":{"$ref":"#/components/schemas/CarrierProposedAssignment"}},"required":["data"],"type":"object"},"CarrierProposedAssignmentShippingDocs":{"description":"Shipping Documents that this assignment will propose to the driver.","example":"Delivery 123, chips and soda","maxLength":40,"type":"string"},"CarrierProposedAssignmentTrailer":{"allOf":[{"description":"Trailer that this assignment will propose to the driver.","type":"object"},{"$ref":"#/components/schemas/trailerTinyResponse"},{"$ref":"#/components/schemas/CarrierProposedAssignmentDriver_allOf"}]},"CarrierProposedAssignmentTrailerNames":{"description":"Names of trailers to propose.","example":["Trailer123","TrailerABC"],"items":{"type":"string"},"type":"array"},"CarrierProposedAssignmentTrailers":{"description":"Trailers that this assignment will propose to the driver.","items":{"$ref":"#/components/schemas/CarrierProposedAssignmentTrailer"},"type":"array"},"CarrierProposedAssignmentVehicle":{"allOf":[{"description":"Vehicle that this assignment will propose to the driver.","type":"object"},{"$ref":"#/components/schemas/vehicleTinyResponse"}]},"CarrierProposedAssignmentVehicleId":{"description":"Samsara ID for the vehicle to propose.","example":"123","type":"string"},"CellConnectivityResponseResponseBody":{"description":"Gateway cellular connectivity information.","properties":{"operator":{"description":"The cellular network provider name.","example":"AT&T","type":"string"},"signalBar":{"description":"The cellular signal strength indicator.  Valid values: `1/4`, `2/4`, `3/4`, `4/4`, `unknown`","enum":["1/4","2/4","3/4","4/4","unknown"],"example":"1/4","type":"string"}},"type":"object"},"CellSignalLossDetailsObjectRequestBody":{"description":"Details specific to Cell Signal Loss","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"CellSignalLossDetailsObjectResponseBody":{"description":"Details specific to Cell Signal Loss","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"CellSignalLossResponseBody":{"description":"Details specific to Cell Signal Loss.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"CircleRequestBody":{"description":"Information about a circular geofence. This field is only needed if the geofence is a circle.","properties":{"latitude":{"description":"Latitude of the address. Will be geocoded from formattedAddress if not provided.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from formattedAddress if not provided.","example":137.7749,"format":"double","type":"number"},"name":{"description":"The name of the cirlce.","example":"My Geofence Cirlce","type":"string"},"radiusMeters":{"description":"The radius of the circular geofence in meters.","example":23,"format":"int64","type":"integer"}},"required":["name","radiusMeters"],"type":"object"},"CircleResponseBody":{"description":"Information about a circular geofence. This field is only needed if the geofence is a circle.","properties":{"latitude":{"description":"Latitude of the address. Will be geocoded from formattedAddress if not provided.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from formattedAddress if not provided.","example":137.7749,"format":"double","type":"number"},"name":{"description":"The name of the cirlce.","example":"My Geofence Cirlce","type":"string"},"radiusMeters":{"description":"The radius of the circular geofence in meters.","example":23,"format":"int64","type":"integer"}},"required":["name","radiusMeters"],"type":"object"},"CloudBackupUploadIssueResponseBody":{"description":"Details specific to Cloud Backup Upload Issue.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"CoachAssignmentWithDriverExternalIdsResponseResponseBody":{"description":"Driver coach assignment object.","properties":{"coachId":{"description":"Coach ID associated with coach assignment. Always returned.","example":"45646","type":"string"},"createdAtTime":{"description":"Time coach assignment was created in UTC. Always returned.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"driver":{"$ref":"#/components/schemas/DriverWithExternalIdObjectResponseBody"},"updatedAtTime":{"description":"Time coaching assignment was updated in UTC. Always returned.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["coachId","createdAtTime","driver","updatedAtTime"],"type":"object"},"CoachAssignmentWithoutDriverExternalIdsResponseResponseBody":{"description":"Driver coach assignment object.","properties":{"coachId":{"description":"Coach ID associated with coach assignment. Optional. Will be empty if no driver coach is assigned","example":"45646","type":"string"},"createdAtTime":{"description":"Time coach assignment was created in UTC. Always returned.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"driverId":{"description":"Unique user ID for the driver of the driver coach assignment","example":"45646","type":"string"},"updatedAtTime":{"description":"Time coaching assignment was updated in UTC. Always returned.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["createdAtTime","driverId","updatedAtTime"],"type":"object"},"CoachingSessionsGetCoachingSessionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsResponseBody":{"properties":{"data":{"description":"List of coaching sessions objects.","items":{"$ref":"#/components/schemas/CoachingSessionsResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"CoachingSessionsGetCoachingSessionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsGetCoachingSessionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CoachingSessionsResponseResponseBody":{"description":"List of coaching sessions objects.","properties":{"assignedCoachId":{"description":"Unique user ID for a coaching session. Returned when a coaching session status is “incomplete”.","example":"45646","type":"string"},"behaviors":{"description":"Object references for the behaviors within the session.","items":{"$ref":"#/components/schemas/behaviorResponseBody"},"type":"array"},"coachingType":{"description":"Coaching type for the coaching session.  Valid values: `fullySharedWithManager`, `selfCoaching`, `unknown`, `unshared`, `withManager`","enum":["fullySharedWithManager","selfCoaching","unknown","unshared","withManager"],"example":"unshared","type":"string"},"completedAtTime":{"description":"Time coaching session is completed in UTC. Returned when a coaching session status is “completed”.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"completedCoachId":{"description":"Unique user ID for a completed coaching session. Returned when a coaching session status is “completed”.","example":"45646","type":"string"},"driver":{"$ref":"#/components/schemas/DriverWithExternalIdObjectResponseBody"},"dueAtTime":{"description":"Time coaching session is due in UTC.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"id":{"description":"Unique ID for the coaching session.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"sessionNote":{"description":"Associated note for the coaching session. Returned when present.","example":"Need to wear seatbelt even for short trips.","type":"string"},"sessionStatus":{"description":"Status for the coaching session.  Valid values: `unknown`, `upcoming`, `completed`, `deleted`","enum":["unknown","upcoming","completed","deleted"],"example":"completed","type":"string"},"updatedAtTime":{"description":"Time coaching session was updated in UTC.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["behaviors","coachingType","driver","dueAtTime","id","sessionStatus","updatedAtTime"],"type":"object"},"CoastingDurationMs":{"description":"Time spent without engaging the accelerator or brake in milliseconds.","type":"number"},"ConnectionStatusResponseObjectResponseBody":{"description":"An objecting containing information about the connectivity status of the gateway","properties":{"healthStatus":{"description":"The most recent health status of the gateway.  Valid values: `Status Not Set`, `Connected`, `Not Installed`, `Power Source Off - Active Vehicle`, `Power Source Off - Inactive Vehicle`, `Weak Cellular Signal`, `Requires Investigation`, `Requires Charge`, `Unsupported Product`, `Low Battery. Replace Device.`, `Low Vehicle Battery`, `Unplugged`, `Low Charging State`, `Vehicle Off`, `Weak GPS Signal`, `Low Gateway Battery`, `Low Gateway Battery (AG24)`, `Low Gateway Battery (AG45)`, `Low Gateway Battery (AG26)`, `Low Gateway Battery (AG46)`, `Low Gateway Battery (AG46-P)`, `Temporarily Offline`, `Prolonged Offline`, `Recently Offline`, `Replacement Required`, `Status Unknown`","enum":["Status Not Set","Connected","Not Installed","Power Source Off - Active Vehicle","Power Source Off - Inactive Vehicle","Weak Cellular Signal","Requires Investigation","Requires Charge","Unsupported Product","Low Battery. Replace Device.","Low Vehicle Battery","Unplugged","Low Charging State","Vehicle Off","Weak GPS Signal","Low Gateway Battery","Low Gateway Battery (AG24)","Low Gateway Battery (AG45)","Low Gateway Battery (AG26)","Low Gateway Battery (AG46)","Low Gateway Battery (AG46-P)","Temporarily Offline","Prolonged Offline","Recently Offline","Replacement Required","Status Unknown"],"example":"Not Installed","type":"string"},"lastConnected":{"description":"The last time the gateway was connected in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"Contact":{"description":"Information about a notification contact for alerts.","properties":{"email":{"$ref":"#/components/schemas/ContactEmail"},"firstName":{"$ref":"#/components/schemas/ContactFirstName"},"id":{"$ref":"#/components/schemas/ContactId"},"lastName":{"$ref":"#/components/schemas/ContactLastName"},"phone":{"$ref":"#/components/schemas/ContactPhone"}},"required":["email","firstName","id","lastName","phone"],"type":"object"},"ContactEmail":{"description":"Email address of the contact.","example":"jane.jones@yahoo.com","maxLength":255,"type":"string"},"ContactFirstName":{"description":"First name of the contact.","example":"Jane","maxLength":255,"type":"string"},"ContactId":{"description":"ID of the contact.","example":"22408","type":"string"},"ContactLastName":{"description":"Last name of the contact.","example":"Jones","maxLength":255,"type":"string"},"ContactPhone":{"description":"Phone number of the contact.","example":"111-222-3344","maxLength":255,"type":"string"},"ContactResponse":{"description":"A single contact.","properties":{"data":{"$ref":"#/components/schemas/Contact"}},"type":"object"},"ContinuousReadingAlertThresholdResponseBody":{"description":"The threshold value of the alert for continuous readings.","properties":{"operation":{"description":"The operation used when comparing the value to the threshold.  Valid values: `GREATER`, `INSIDE_RANGE`, `LESS`, `OUTSIDE_RANGE`","enum":["GREATER","INSIDE_RANGE","LESS","OUTSIDE_RANGE"],"example":"GREATER","type":"string"},"threshold":{"description":"The lower threshold of criticality.","example":20,"format":"int64","type":"integer"},"unit":{"description":"The unit of the threshold defined by reading type.  Valid values: `ampere`, `bar`, `cad`, `celsius`, `chf`, `day`, `decimaldegrees`, `eur`, `fahrenheit`, `foot`, `gallon`, `gallonperkilogram`, `gallonsperhour`, `galpermi`, `gbp`, `gforce`, `gperliter`, `gperm`, `hertz`, `hour`, `imperialgallonperkilogram`, `impgallon`, `impgallonsperhour`, `impgalpermi`, `inch`, `kelvin`, `kgper100kmgaseousfuel`, `kgpergallon`, `kgperkm`, `kgperliter`, `kgpermi`, `kilogram`, `kilogramgaseousfuel`, `kilometer`, `kilopascal`, `kilowatthour`, `kmperhr`, `kmperl`, `kmperlgaseousfuel`, `lbpermi`, `liter`, `litergaseousfuel`, `literperkilogram`, `literpertonne`, `litersperhour`, `lper100km`, `lper100kmgaseousfuel`, `lperkm`, `lperm`, `meter`, `meterspersec`, `mile`, `milliknot`, `millisecond`, `millivolt`, `minute`, `mipergal`, `miperhr`, `miperimpgal`, `month`, `mpgusgalgaseousfuel`, `mpkggaseousfuel`, `mxn`, `percent`, `pound`, `poundsPerSquareInch`, `poundspergallon`, `poundsperliter`, `rpm`, `second`, `usd`, `usgallongaseousfuel`, `volt`, `voltAmpere`, `voltAmpereReactive`, `watt`, `watthour`, `week`","enum":["ampere","bar","cad","celsius","chf","day","decimaldegrees","eur","fahrenheit","foot","gallon","gallonperkilogram","gallonsperhour","galpermi","gbp","gforce","gperliter","gperm","hertz","hour","imperialgallonperkilogram","impgallon","impgallonsperhour","impgalpermi","inch","kelvin","kgper100kmgaseousfuel","kgpergallon","kgperkm","kgperliter","kgpermi","kilogram","kilogramgaseousfuel","kilometer","kilopascal","kilowatthour","kmperhr","kmperl","kmperlgaseousfuel","lbpermi","liter","litergaseousfuel","literperkilogram","literpertonne","litersperhour","lper100km","lper100kmgaseousfuel","lperkm","lperm","meter","meterspersec","mile","milliknot","millisecond","millivolt","minute","mipergal","miperhr","miperimpgal","month","mpgusgalgaseousfuel","mpkggaseousfuel","mxn","percent","pound","poundsPerSquareInch","poundspergallon","poundsperliter","rpm","second","usd","usgallongaseousfuel","volt","voltAmpere","voltAmpereReactive","watt","watthour","week"],"example":"celsius","type":"string"},"upperThreshold":{"description":"The upper threshold of criticality. Required for RANGE operations.","example":30,"format":"int64","type":"integer"}},"required":["operation","threshold"],"type":"object"},"CreateAddressRequest":{"description":"A request body to create an Address.","properties":{"addressTypes":{"description":"Reporting location type associated with the address (used for ELD reporting purposes). Valid values: `yard`, `shortHaul`, `workforceSite`, `riskZone`, `industrialSite`, `alertsOnly`, `agricultureSource`, `avoidanceZone`, `knownGPSJammingZone`, `authorizedZone`, `unauthorizedZone`, `vendor`, `inventory`.","items":{"enum":["yard","shortHaul","workforceSite","riskZone","industrialSite","alertsOnly","agricultureSource","avoidanceZone","knownGPSJammingZone","authorizedZone","unauthorizedZone","vendor","inventory","customerSite"],"example":"yard","type":"string"},"type":"array"},"contactIds":{"description":"An array of Contact IDs associated with this Address.","items":{"example":"22408","type":"string"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"formattedAddress":{"description":"The full street address for this address/geofence, as it might be recognized by Google Maps.","example":"350 Rhode Island St, San Francisco, CA","maxLength":1024,"type":"string"},"geofence":{"$ref":"#/components/schemas/CreateAddressRequest_geofence"},"latitude":{"description":"Latitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":37.765363,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":-122.4029238,"format":"double","type":"number"},"name":{"description":"Name of the address.","example":"Samsara HQ","maxLength":255,"type":"string"},"notes":{"description":"Notes about the address.","example":"Hours of operation: 8am - 6pm; Truck entrance on the Rhode Island street side.","maxLength":280,"type":"string"},"tagIds":{"description":"An array of IDs of tags to associate with this address.","items":{"example":"3914","type":"string"},"type":"array"}},"required":["formattedAddress","geofence","name"],"type":"object"},"CreateAddressRequest_geofence":{"description":"The geofence that defines this address and its bounds. This can either be a circle or a polygon, but not both.","properties":{"circle":{"$ref":"#/components/schemas/AddressGeofence_circle"},"polygon":{"$ref":"#/components/schemas/AddressGeofence_polygon"},"settings":{"$ref":"#/components/schemas/CreateAddressRequest_geofence_settings"}},"type":"object"},"CreateAddressRequest_geofence_settings":{"description":"Information about a geofence's settings.","properties":{"showAddresses":{"description":"If this property is set to true, then underlying geofence addresses will be shown in reports instead of a geofence's name.","example":true,"type":"boolean"}},"type":"object"},"CreateAttributeRequest":{"description":"A request body to create an Attribute.","properties":{"attributeType":{"default":"multi-select","description":"Denotes the data type of the attribute's values. Valid values: `single-select`, `multi-select`, `text`, `freeform-multi-select`, `number`, `date`.","enum":["single-select","multi-select","text","freeform-multi-select","number","date"],"example":"single-select","type":"string"},"entities":{"description":"Entities that will be applied to this attribute","items":{"$ref":"#/components/schemas/CreateAttributeRequest_entities"},"type":"array"},"entityType":{"description":"Denotes the type of entity, driver, asset, or workOrder. `workOrder` requires work order attributes to be enabled for the organization. Work order attributes are created without `entities`; set attribute values on work orders through the work orders API.","enum":["driver","asset","workOrder"],"example":"asset","type":"string"},"name":{"description":"Name","example":"License Certifications","type":"string"},"numberValues":{"description":"Number values that can be associated with this attribute","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that can be associated with this attribute","items":{"type":"string"},"type":"array"},"unit":{"default":"NO_UNIT","description":"Unit of the attribute (only for Number attributes).","enum":["NO_UNIT","METER","POUND","TON","KILOGRAM","INCH","FOOT","GALLON","LITER","BARREL","POUND_PER_SQUARE_INCH","BAR","KILOPASCAL","FAHRENHEIT","CELSIUS","USD","CAD","EUR","GBP","MXN","HOUR","MINUTE","DAY","MILE_PER_HOUR","KILOMETER_PER_HOUR","HORSEPOWER","KILOWATT","BTU_PER_HOUR","KILOWATT_HOUR","BTU","HERTZ","REVOLUTION_PER_MINUTE","DECIBEL"],"example":"METER","type":"string"}},"required":["attributeType","entityType","name"],"type":"object"},"CreateAttributeRequest_entities":{"properties":{"dateValues":{"description":"Date values that can be associated with this attribute in RFC 3339 full-date format (YYYY-MM-DD)","items":{"format":"date","type":"string"},"type":"array"},"entityId":{"description":"Entity id, based on the entity type.","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"numberValues":{"description":"Number values that can be associated with this attribute","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that can be associated with this attribute","items":{"type":"string"},"type":"array"}},"type":"object"},"CreateCarrierProposedAssignmentRequest":{"description":"New assignment for a driver.","properties":{"activeTime":{"description":"Time after which this assignment will be active and visible to the driver on the mobile app. Not setting it makes it active now. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"driverId":{"description":"ID for the driver for the driver that this assignment is for. This can be either a unique Samsara ID or an external ID for the driver.","example":"42","type":"string"},"shippingDocs":{"description":"Shipping Documents that this assignment will propose to the driver.","example":"Delivery 123, chips and soda","maxLength":40,"type":"string"},"trailerIds":{"description":"IDs of trailers to propose. This can be either a unique Samsara IDs or an external IDs for the trailers. (forbidden if trailerNames is set)","example":["123456789","maintenanceId:250020"],"items":{"type":"string"},"type":"array"},"trailerNames":{"description":"Names of trailers to propose. (forbidden if trailerIds is set)","example":["Trailer123","TrailerABC"],"items":{"type":"string"},"type":"array"},"vehicleId":{"description":"ID for the vehicle to propose. This can be either a unique Samsara ID or an external ID for the vehicle.","example":"123","type":"string"}},"required":["driverId","vehicleId"],"type":"object"},"CreateContactRequest":{"description":"Information for adding a notification contact for alerts.","properties":{"email":{"description":"Email address of the contact.","example":"jane.jones@yahoo.com","maxLength":255,"type":"string"},"firstName":{"description":"First name of the contact.","example":"Jane","maxLength":255,"type":"string"},"lastName":{"description":"Last name of the contact.","example":"Jones","maxLength":255,"type":"string"},"phone":{"description":"Phone number of the contact.","example":"111-222-3344","maxLength":255,"type":"string"}},"type":"object"},"CreateDriverAuthTokenResponseResponseBody":{"description":"Response object for create driver auth token","properties":{"expirationTime":{"description":"Expiration time of the token in Unix milliseconds since epoch. Clients must redeem the token before this timestamp.","example":1710000000000,"format":"int64","type":"integer"},"token":{"description":"A one-time-use authentication token. Must be paired with the original code and driver identity in a separate request to exchange for a session.","example":"ZmFrZVRva2VuXzMyQnl0ZXNMb25nRm9yVGVzdA","type":"string"}},"required":["expirationTime","token"],"type":"object"},"CreateDriverRequest":{"description":"Driver that should be created.","properties":{"attributes":{"items":{"$ref":"#/components/schemas/CreateDriverRequest_attributes"},"type":"array"},"carrierSettings":{"$ref":"#/components/schemas/DriverCarrierSettings"},"currentIdCardCode":{"description":"The ID Card Code on the back of the physical card assigned to the driver.  Contact Samsara if you would like to enable this feature.","example":"941767043","type":"string"},"dateOfBirth":{"$ref":"#/components/schemas/DriverDateOfBirth"},"eldAdverseWeatherExemptionEnabled":{"description":"Flag indicating this driver may use Adverse Weather exemptions in ELD logs.","type":"boolean"},"eldBigDayExemptionEnabled":{"description":"Flag indicating this driver may use Big Day exemption in ELD logs.","type":"boolean"},"eldDayStartHour":{"description":"`0` indicating midnight-to-midnight ELD driving hours, `12` to indicate noon-to-noon driving hours.","type":"integer"},"eldExempt":{"description":"Flag indicating this driver is exempt from the Electronic Logging Mandate.","type":"boolean"},"eldExemptReason":{"description":"Reason that this driver is exempt from the Electronic Logging Mandate (see eldExempt).","example":"Bad driver","type":"string"},"eldPcEnabled":{"description":"Flag indicating this driver may select the Personal Conveyance duty status in ELD logs.","type":"boolean"},"eldYmEnabled":{"description":"Flag indicating this driver may select the Yard Move duty status in ELD logs.","type":"boolean"},"email":{"$ref":"#/components/schemas/DriverEmail"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"hasDrivingFeaturesHidden":{"$ref":"#/components/schemas/DriverHasDrivingFeaturesHidden"},"hasVehicleUnpinningEnabled":{"$ref":"#/components/schemas/DriverHasVehicleUnpinningEnabled"},"hosSetting":{"$ref":"#/components/schemas/DriverHosSetting"},"licenseNumber":{"description":"Driver's state issued license number. The combination of this number and `licenseState` must be unique.","example":"E1234567","type":"string"},"licenseState":{"description":"Abbreviation of US state, Canadian province, or US territory that issued driver's license.","example":"CA","type":"string"},"locale":{"description":"Locale override (uncommon). These are specified by ISO 3166-2 country codes for supported locales. Valid values: `us`, `at`, `be`, `ca`, `gb`, `fr`, `de`, `ie`, `it`, `lu`, `mx`, `nl`, `es`, `ch`, `pr`.","enum":["us","at","be","ca","gb","fr","de","ie","it","lu","mx","nl","es","ch","pr"],"type":"string"},"name":{"description":"Driver's name.","example":"Susan Jones","maxLength":255,"minLength":1,"type":"string"},"notes":{"description":"Notes about the driver.","example":"Also goes by the nickname Furious Fred.","maxLength":4096,"type":"string"},"password":{"description":"Password that the driver can use to login to the Samsara driver app.","example":"aSecurePassword1234","type":"string"},"peerGroupTagId":{"description":"The peer group tag id this driver belong to, used for gamification.","type":"string"},"phone":{"description":"Phone number of the driver.","example":"5558234327","maxLength":255,"type":"string"},"profileImageBase64":{"$ref":"#/components/schemas/DriverProfileImageBase64"},"profileImageUrl":{"$ref":"#/components/schemas/DriverProfileImageUrl"},"staticAssignedVehicleId":{"description":"ID of vehicle that the driver is permanently assigned to. (uncommon).","example":"456","type":"string"},"tachographCardNumber":{"description":"Driver's assigned tachograph card number (Europe specific)","example":"1000000492436002","type":"string"},"tagIds":{"description":"IDs of tags the driver is associated with. If your access to the API is scoped by one or more tags, this field is required to pass in.","items":{"example":"147","type":"string"},"type":"array"},"timezone":{"description":"Home terminal timezone, in order to indicate what time zone should be used to calculate the ELD logs. Driver timezones use [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"},"trailerGroupTagId":{"description":"Tag ID which determines which trailers a driver will see when selecting trailers.","example":"342418","type":"string"},"usDriverRulesetOverride":{"$ref":"#/components/schemas/UsDriverRulesetOverride"},"username":{"description":"Driver's login username into the driver app. The username may not contain spaces or the '@' symbol. The username must be unique.","example":"SusanJones","maxLength":189,"minLength":1,"type":"string"},"vehicleGroupTagId":{"description":"Tag ID which determines which vehicles a driver will see when selecting vehicles.","example":"342417","type":"string"},"waitingTimeDutyStatusEnabled":{"description":"Flag indicating this driver may select waiting time duty status in ELD logs","type":"boolean"}},"required":["name","password","username"],"type":"object"},"CreateDriverRequest_attributes":{"description":"A minified attribute.","properties":{"id":{"description":"The samsara id of the attribute object.","example":"123e4567-e89b-12d3-a456-426614174000","type":"string"},"name":{"description":"Name of attribute.","example":"License Certifications","type":"string"},"numberValues":{"description":"Number values that are associated with this attribute.","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that are associated with this attribute.","items":{"type":"string"},"type":"array"}},"type":"object"},"CreateDvirRequest":{"description":"DVIR creation body","properties":{"authorId":{"description":"Samsara user ID of the mechanic creating the DVIR.","example":"11","type":"string"},"licensePlate":{"description":"The license plate of this vehicle.","example":"XHK1234","maxLength":12,"type":"string"},"location":{"description":"Optional string if your jurisdiction requires a location of the DVIR.","example":"350 Rhode Island St Ste. 400S, San Francisco, CA 94103","type":"string"},"mechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"Replaced headlight on passenger side.","type":"string"},"odometerMeters":{"description":"The odometer reading in meters.","example":14010293,"type":"integer"},"resolvedDefectIds":{"description":"Array of ids for defects being resolved with this DVIR.","items":{"type":"string"},"type":"array"},"safetyStatus":{"description":"Whether or not this vehicle or trailer is safe to drive.","enum":["safe","unsafe"],"example":"safe","type":"string"},"trailerId":{"description":"Id of trailer being inspected. Either vehicleId or trailerId must be provided.","example":"11","type":"string"},"type":{"description":"Only type 'mechanic' is currently accepted.","enum":["mechanic"],"example":"mechanic","type":"string"},"vehicleId":{"description":"Id of vehicle being inspected. Either vehicleId or trailerId must be provided.","example":"10","type":"string"}},"required":["authorId","safetyStatus","type"],"type":"object"},"CreateFunctionDetailResponseBody":{"description":"Details of a newly created Function, including a URL for uploading the code package. After uploading, call the deploy endpoint to make the function runnable.","properties":{"codePackage":{"$ref":"#/components/schemas/FunctionCodePackageResponseBody"},"config":{"$ref":"#/components/schemas/FunctionConfigResponseBody"},"createdAtTime":{"description":"RFC 3339 timestamp when the Function was created.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"},"description":{"description":"Description of the Function.","example":"Processes incoming telemetry data.","type":"string"},"effects":{"$ref":"#/components/schemas/FunctionEffectsResponseBody"},"lastUpdateTimestampMs":{"description":"Epoch milliseconds of the last update. Use this value for optimistic locking in PATCH requests.","example":1609459200000,"format":"int64","type":"integer"},"name":{"description":"Name of the Function.","example":"my-function","type":"string"},"updatedAtTime":{"description":"RFC 3339 timestamp when the Function was last updated.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"},"uploadPutUrl":{"description":"A presigned PUT URL for uploading the function's code package. Valid for a limited time. After uploading, call `POST /functions/{name}/deploy` to make the function runnable.","example":"https://example.com/upload?token=...","type":"string"}},"required":["codePackage","config","createdAtTime","effects","lastUpdateTimestampMs","name","updatedAtTime","uploadPutUrl"],"type":"object"},"CreateFunctionRequestConfigRequestBody":{"description":"Configuration for the new Function.","properties":{"handler":{"description":"The handler entrypoint for the function code (e.g. 'index.handler').","example":"index.handler","type":"string"},"isScheduleEnabled":{"description":"Whether the run schedule is enabled.","example":false,"type":"boolean"},"params":{"description":"Default parameter values for the function.","example":{"region":"us-west","threshold":"100"},"properties":{},"type":"object"},"schedule":{"$ref":"#/components/schemas/FunctionScheduleRequestBody"},"secrets":{"description":"Secrets available to the function at runtime.","example":{"API_KEY":"my-secret-value"},"properties":{},"type":"object"}},"required":["handler"],"type":"object"},"CreateFunctionStorageFileDetailResponseBody":{"description":"A presigned upload URL for creating a new file in Functions storage.","properties":{"name":{"description":"The name of the file.","example":"my-script.js","type":"string"},"uploadPut":{"$ref":"#/components/schemas/FunctionsStorageSignedUrlOfTypeResponseBody"}},"required":["name","uploadPut"],"type":"object"},"CreateHubRouteTemplateDepotEndInputRequestBody":{"description":"The default end depot for routes created from this template.","properties":{"externalId":{"description":"External ID of the depot location.","example":"DEPOT-001","type":"string"}},"type":"object"},"CreateHubRouteTemplateDepotStartInputRequestBody":{"description":"The default start depot for routes created from this template.","properties":{"externalId":{"description":"External ID of the depot location.","example":"DEPOT-001","type":"string"}},"type":"object"},"CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteCustomAddressInputTypeRequestBody":{"description":"MaintenanceSiteCustomAddress object","properties":{"formattedAddress":{"description":"Single free-form address line for the site.","example":"12345","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":123.45,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":123.45,"format":"double","type":"number"}},"required":["formattedAddress","latitude","longitude"],"type":"object"},"CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteCustomAddressTypeResponseBody":{"description":"MaintenanceSiteCustomAddress object","properties":{"formattedAddress":{"description":"Single free-form address line for the site.","example":"12345","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":123.45,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":123.45,"format":"double","type":"number"}},"type":"object"},"CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdInputTypeRequestBody":{"description":"MaintenanceSiteExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdTypeResponseBody":{"description":"MaintenanceSiteExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"CreatePartEntityPartDefinitionMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"CreatePartEntityPartDefinitionMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"CreatePartInventoryLocationEntityPartInventoryLocationMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"CreatePartInventoryLocationEntityPartInventoryLocationMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyInputTypeRequestBody":{"description":"CoreRecoverabilityPolicy object","properties":{"fixedRecoverableUntilTime":{"description":"Absolute deadline for core return.","example":"2019-06-13T19:08:25Z","type":"string"},"policyType":{"description":"Recoverability policy type.  Valid values: `Unknown`, `RelativeToReceipt`, `FixedDate`, `NoDeadline`","enum":["Unknown","RelativeToReceipt","FixedDate","NoDeadline"],"example":"Unknown","type":"string"},"relativeWindowDuration":{"description":"Duration after receipt when the core must be returned. Measured in milliseconds.","example":12345,"format":"int64","type":"integer"}},"required":["policyType"],"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyTypeResponseBody":{"description":"CoreRecoverabilityPolicy object","properties":{"fixedRecoverableUntilTime":{"description":"Absolute deadline for core return.","example":"2019-06-13T19:08:25Z","type":"string"},"policyType":{"description":"Recoverability policy type.  Valid values: `Unknown`, `RelativeToReceipt`, `FixedDate`, `NoDeadline`","enum":["Unknown","RelativeToReceipt","FixedDate","NoDeadline"],"example":"Unknown","type":"string"},"relativeWindowDuration":{"description":"Duration after receipt when the core must be returned. Measured in milliseconds.","example":12345,"format":"int64","type":"integer"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366b66e6fcTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"24.50","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994a15f796TypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"24.50","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"usd","type":"string"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeInputTypeRequestBody":{"description":"PurchaseOrderCoreCharge object","properties":{"coreChargeStatus":{"description":"Whether the core charge is active or removed or disabled.  Valid values: `Unknown`, `Active`, `RemovedOrDisabled`","enum":["Unknown","Active","RemovedOrDisabled"],"example":"Unknown","type":"string"},"corePartSamsaraId":{"description":"ID of the returnable core part.","example":"281474976710656","type":"string"},"recoverabilityPolicy":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyInputTypeRequestBody"},"returnRecipientVendorId":{"description":"ID of the vendor that receives returned cores.","example":"281474976710656","type":"string"},"unitCoreAmount":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyInputTypeRequestBody"}},"required":["coreChargeStatus"],"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeTypeResponseBody":{"description":"PurchaseOrderCoreCharge object","properties":{"coreChargeStatus":{"description":"Whether the core charge is active or removed or disabled.  Valid values: `Unknown`, `Active`, `RemovedOrDisabled`","enum":["Unknown","Active","RemovedOrDisabled"],"example":"Unknown","type":"string"},"corePartSamsara":{"$ref":"#/components/schemas/EntityCreatePurchaseOrderPartDefinitionRefTypeResponseBody"},"recoverabilityPolicy":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyTypeResponseBody"},"returnRecipientVendor":{"$ref":"#/components/schemas/EntityCreatePurchaseOrderVendorRefTypeResponseBody"},"unitCoreAmount":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938a0fTypeRequestBody":{"description":"PurchaseOrderPart object","properties":{"batchNumber":{"description":"Batch or lot number for the ordered part.","example":"LOT-42","type":"string"},"coreCharge":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeInputTypeRequestBody"},"description":{"description":"Description of the ordered part.","example":"Oil filter","type":"string"},"lineItemId":{"description":"Stable identifier for the purchase order line.","example":"12345","type":"string"},"partSamsaraId":{"description":"ID of the part definition ordered on this line.","example":"281474976710656","type":"string"},"placeId":{"description":"Place linked to the maintenance site holding this line's inventory. The internal location identifier is never exposed.","example":"281474976710656","type":"string"},"quantityOrdered":{"description":"Quantity ordered on this line.","example":10,"format":"double","type":"number"},"quantityReceived":{"description":"Quantity received on this line.","example":123.45,"format":"double","type":"number"},"tax":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody"},"unitCost":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366b66e6fcTypeRequestBody"},"unitOfMeasureType":{"description":"Unit of measure for quantities on this line. Read-only: derived from the line's part definition, and ignored if supplied on create or update.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Each","type":"string"}},"required":["partSamsaraId","quantityOrdered","quantityReceived","unitOfMeasureType"],"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartPublicVarianteee5df5b52beTypeResponseBody":{"description":"PurchaseOrderPart object","properties":{"batchNumber":{"description":"Batch or lot number for the ordered part.","example":"LOT-42","type":"string"},"coreCharge":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeTypeResponseBody"},"description":{"description":"Description of the ordered part.","example":"Oil filter","type":"string"},"lineItemId":{"description":"Stable identifier for the purchase order line.","example":"12345","type":"string"},"partSamsara":{"$ref":"#/components/schemas/EntityCreatePurchaseOrderPartDefinitionRefTypeResponseBody"},"place":{"$ref":"#/components/schemas/EntityCreatePurchaseOrderPlaceRefTypeResponseBody"},"quantityOrdered":{"description":"Quantity ordered on this line.","example":10,"format":"double","type":"number"},"quantityReceived":{"description":"Quantity received on this line.","example":123.45,"format":"double","type":"number"},"tax":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody"},"unitCost":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994a15f796TypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure for quantities on this line. Read-only: derived from the line's part definition, and ignored if supplied on create or update.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Each","type":"string"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody":{"description":"TaxAdjustment object","properties":{"basisPoints":{"description":"Tax rate in basis points. Set exactly one of money or basisPoints.","example":12345,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyInputTypeRequestBody"}},"type":"object"},"CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody":{"description":"TaxAdjustment object","properties":{"basisPoints":{"description":"Tax rate in basis points. Set exactly one of money or basisPoints.","example":12345,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody"}},"type":"object"},"CreateRouteStopWithOrdersRequestObjectRequestBody":{"properties":{"addressId":{"description":"ID of the address. An address [externalId](https://developers.samsara.com/docs/external-ids#using-external-ids) can also be used interchangeably here.","example":"45934","type":"string"},"appointmentWindows":{"description":"Appointment windows for the stop.","items":{"$ref":"#/components/schemas/RouteStopAppointmentWindowRequestBody"},"maxItems":3,"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"forms":{"description":"Form attachments for the stop.","items":{"$ref":"#/components/schemas/RouteStopFormRequestObjectRequestBody"},"maxItems":300,"type":"array"},"name":{"description":"Name of the stop","example":"Stop #1","type":"string"},"notes":{"description":"Notes for the stop","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"orders":{"description":"Orders to upsert and attach to this stop.","items":{"$ref":"#/components/schemas/RouteStopOrderUpsertInputRequestBody"},"type":"array"},"scheduledArrivalTime":{"description":"This is a required field for all stops EXCEPT the start and end, based on route start and stop settings selected.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledDepartureTime":{"description":"This is a required field for all stops EXCEPT the start and end, based on route start and stop settings selected.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"sequenceNumber":{"description":"Manual sequence position for this stop. Only meaningful when route.settings.sequencingMethod=manual. Must be unique and positive when specified.","example":10,"format":"int64","type":"integer"},"singleUseLocation":{"$ref":"#/components/schemas/RoutesSingleUseAddressObjectRequestBody"}},"type":"object"},"CreateSharedAssetRequestObjectRequestBody":{"description":"Request object for creating a shared asset.","properties":{"endTime":{"description":"End time of the sharing period in RFC 3339 format. Null or omitted means indefinite sharing.","example":"2025-01-13T10:00:00Z","type":"string"},"serial":{"description":"The serial number of the asset to share.","example":"GVJC3VXXXX","type":"string"},"startTime":{"description":"Start time of the sharing period in RFC 3339 format. Defaults to now if not specified.","example":"2024-01-13T10:00:00Z","type":"string"}},"required":["serial"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementRequestBody":{"description":"Request body for the CreateStockMovement action","properties":{"batch":{"description":"Batch or lot identifier the movement applies to, if the part is batch-tracked.","example":"12345","type":"string"},"fromPlaceId":{"description":"Unique identifier of the place linked to the maintenance site the inventory is transferred out of. Transfer only.","example":"12345","type":"string"},"happenedAtTime":{"description":"Time when the movement occurred. Defaults to the current time if not provided.","example":"2019-06-13T19:08:25Z","type":"string"},"movementType":{"description":"Type of stock movement to record. Must be one of Receive, Transfer, Scrap, or Adjust; Unknown is rejected.","example":"12345","type":"string"},"notes":{"description":"Notes explaining the movement. Scrap and adjust only.","example":"12345","type":"string"},"partSamsaraId":{"description":"Unique identifier of the part definition the movement applies to.","example":"12345","type":"string"},"placeId":{"description":"Unique identifier of the place linked to the maintenance site the movement targets. Required for receive, scrap, and adjust; rejected for transfer (use fromPlaceId and toPlaceId).","example":"12345","type":"string"},"purchaseOrder":{"description":"Purchase order reference for the received inventory. Receive only.","example":"12345","type":"string"},"quantity":{"description":"Quantity moved, in the part's unit of measure. Positive magnitude for receive, transfer, and scrap; signed delta for adjust.","example":123.45,"format":"double","type":"number"},"toPlaceId":{"description":"Unique identifier of the place linked to the maintenance site the inventory is transferred into. Transfer only.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/EntityCreateStockMovementMoneyInputTypeRequestBody"},"vendorId":{"description":"Unique identifier of the vendor the inventory was received from. Receive only.","example":"12345","type":"string"}},"required":["movementType","partSamsaraId","quantity"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CreateStockMovementResponseObjectTypeResponseBody"}},"required":["data"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementActionServiceCreateStockMovementUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"CreateStockMovementResponseObjectTypeResponseBody":{"description":"Response for the CreateStockMovement action","properties":{"destinationLocation":{"$ref":"#/components/schemas/EntityCreateStockMovementStockMovementLocationTypeResponseBody"},"sourceLocation":{"$ref":"#/components/schemas/EntityCreateStockMovementStockMovementLocationTypeResponseBody"}},"type":"object"},"CreateTagRequest":{"properties":{"addresses":{"description":"The addresses that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"assets":{"description":"The trailers, unpowered, and powered assets that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"drivers":{"description":"The drivers that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"machines":{"description":"The machines that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"name":{"description":"Name of this tag.","example":"California","maxLength":191,"minLength":1,"type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"},"sensors":{"description":"The sensors that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"vehicles":{"description":"The vehicles that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"}},"required":["name"],"type":"object"},"CreateUserRequest":{"description":"The user creation arguments","properties":{"authType":{"description":"The authentication type the user uses to authenticate. To use SAML this organization must have a configured SAML integration. Valid values: `default`, `saml`.","enum":["default","saml"],"type":"string"},"email":{"description":"The email address of this user.","example":"user@company.com","type":"string"},"expireAt":{"description":"For users with temporary access, this is the expiration datetime in RFC3339 format","example":"2025-08-13T19:08:25Z","type":"string"},"name":{"description":"The first and last name of the user.","example":"Bob Smith","type":"string"},"roles":{"description":"The list of roles that applies to this user. A user may have \"organizational\" roles, which apply to the user at the organizational level, and \"tag-specific\" roles, which apply to the user for a given tag.","items":{"$ref":"#/components/schemas/CreateUserRequest_roles"},"type":"array"}},"required":["authType","email","name","roles"],"type":"object"},"CreateUserRequest_roles":{"description":"A role that applies to a user. If the role has a `tagId`, then the role applies for that tag. If there is no `tagId`, then the role applies at the organizational level. A user may have many tag-specific roles, but may only have one organizational role. If the organizational level role has higher privileges than a tag-specific role, then the organizational role privileges will take precedence.","properties":{"roleId":{"description":"The unique ID for the role.","example":"8a9371af-82d1-4158-bf91-4ecc8d3a114c","type":"string"},"tagId":{"description":"ID of the tag this role applies to.","example":"3914","type":"string"}},"required":["roleId"],"type":"object"},"CreateVendorEntityVendorVendorAssetAttributeSelectionInputTypeRequestBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorAssetAttributeValueInputTypeRequestBody"},"type":"array"}},"required":["attributeId","values"],"type":"object"},"CreateVendorEntityVendorVendorAssetAttributeSelectionTypeResponseBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorAssetAttributeValueTypeResponseBody"},"type":"array"}},"type":"object"},"CreateVendorEntityVendorVendorAssetAttributeValueInputTypeRequestBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"CreateVendorEntityVendorVendorAssetAttributeValueTypeResponseBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"type":"object"},"CreateVendorEntityVendorVendorContactInputTypeRequestBody":{"description":"VendorContact object","properties":{"email":{"description":"Email address of the contact person.","example":"12345","type":"string"},"name":{"description":"Name of the contact person at the vendor.","example":"12345","type":"string"},"phoneNumber":{"description":"Phone number of the contact person.","example":"12345","type":"string"}},"required":["email","name","phoneNumber"],"type":"object"},"CreateVendorEntityVendorVendorContactTypeResponseBody":{"description":"VendorContact object","properties":{"email":{"description":"Email address of the contact person.","example":"12345","type":"string"},"name":{"description":"Name of the contact person at the vendor.","example":"12345","type":"string"},"phoneNumber":{"description":"Phone number of the contact person.","example":"12345","type":"string"}},"type":"object"},"CreateVendorEntityVendorVendorExternalIdInputTypeRequestBody":{"description":"VendorExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"CreateVendorEntityVendorVendorExternalIdTypeResponseBody":{"description":"VendorExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"CreateVendorEntityVendorVendorHourlyMoneyInputTypeRequestBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"CreateVendorEntityVendorVendorHourlyMoneyTypeResponseBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"type":"object"},"CreateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionInputTypeRequestBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorAssetAttributeValueInputTypeRequestBody"},"type":"array"}},"required":["attributeId","values"],"type":"object"},"CreateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorAssetAttributeValueTypeResponseBody"},"type":"array"}},"type":"object"},"CreateVendorGroupEntityVendorProfileVendorAssetAttributeValueInputTypeRequestBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"CreateVendorGroupEntityVendorProfileVendorAssetAttributeValueTypeResponseBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"type":"object"},"CreateVendorGroupEntityVendorProfileVendorGroupExternalIdInputTypeRequestBody":{"description":"VendorGroupExternalId object","properties":{"key":{"description":"External identifier namespace.","example":"12345","type":"string"},"value":{"description":"Customer-managed identifier.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"CreateVendorGroupEntityVendorProfileVendorGroupExternalIdTypeResponseBody":{"description":"VendorGroupExternalId object","properties":{"key":{"description":"External identifier namespace.","example":"12345","type":"string"},"value":{"description":"Customer-managed identifier.","example":"12345","type":"string"}},"type":"object"},"CreateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactInputTypeRequestBody":{"description":"VendorGroupPrimaryCorporateContact object","properties":{"email":{"description":"Contact email. Opaque string; max 100 characters.","example":"12345","type":"string"},"name":{"description":"Display name. Max 50 characters.","example":"12345","type":"string"},"phoneNumber":{"description":"Contact phone. Opaque string; max 15 characters.","example":"12345","type":"string"}},"type":"object"},"CreateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody":{"description":"VendorGroupPrimaryCorporateContact object","properties":{"email":{"description":"Contact email. Opaque string; max 100 characters.","example":"12345","type":"string"},"name":{"description":"Display name. Max 50 characters.","example":"12345","type":"string"},"phoneNumber":{"description":"Contact phone. Opaque string; max 15 characters.","example":"12345","type":"string"}},"type":"object"},"CreateVendorGroupEntityVendorProfileVendorHourlyMoneyInputTypeRequestBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"CreateVendorGroupEntityVendorProfileVendorHourlyMoneyTypeResponseBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimClaimReimbursementInputTypeRequestBody":{"description":"ClaimReimbursement object","properties":{"reimbursement":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"workOrderId":{"description":"Work order the reimbursement is applied to.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimClaimReimbursementTypeResponseBody":{"description":"ClaimReimbursement object","properties":{"reimbursement":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"workOrderId":{"description":"Work order the reimbursement is applied to.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdInputTypeRequestBody":{"description":"WarrantyClaimExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody":{"description":"WarrantyClaimExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborInputTypeRequestBody":{"description":"WarrantyClaimLabor object","properties":{"cost":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"description":{"description":"Free-text labor description.","example":"12345","type":"string"},"serviceTaskId":{"description":"Service task the labor belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the labor cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody":{"description":"WarrantyClaimLabor object","properties":{"cost":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"description":{"description":"Free-text labor description.","example":"12345","type":"string"},"serviceTaskId":{"description":"Service task the labor belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the labor cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartInputTypeRequestBody":{"description":"WarrantyClaimPart object","properties":{"cost":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"description":{"description":"Free-text part description.","example":"12345","type":"string"},"partDefinitionId":{"description":"ID of the part definition being claimed.","example":"12345","type":"string"},"partId":{"description":"Specific part-instance ID.","example":"12345","type":"string"},"quantity":{"description":"Quantity claimed.","example":12345,"format":"int64","type":"integer"},"serviceTaskId":{"description":"Service task the part belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the part cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this part line.","example":"12345","type":"string"}},"required":["partDefinitionId"],"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartTypeResponseBody":{"description":"WarrantyClaimPart object","properties":{"cost":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"description":{"description":"Free-text part description.","example":"12345","type":"string"},"partDefinitionId":{"description":"ID of the part definition being claimed.","example":"12345","type":"string"},"partId":{"description":"Specific part-instance ID.","example":"12345","type":"string"},"quantity":{"description":"Quantity claimed.","example":12345,"format":"int64","type":"integer"},"serviceTaskId":{"description":"Service task the part belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the part cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this part line.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody":{"description":"WarrantyClaimStatusHistory object","properties":{"happenedAtTime":{"description":"When the transition occurred.","example":"2019-06-13T19:08:25Z","type":"string"},"status":{"description":"The status the claim moved into.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"userId":{"description":"ID of the user who made the change.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyEntityWarrantyWarrantyCoverageInputTypeRequestBody":{"description":"WarrantyCoverage object","properties":{"description":{"description":"Description of what this coverage group covers.","example":"12345","type":"string"},"durationDays":{"description":"Coverage length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Coverage length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Coverage length by engine hours since the coverage start.","example":12345,"format":"int64","type":"integer"},"exclusions":{"description":"Items explicitly excluded from this coverage group.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageItemInputTypeRequestBody"},"type":"array"},"inclusions":{"description":"Items explicitly covered by this coverage group.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageItemInputTypeRequestBody"},"type":"array"},"isOdometerDistanceUnlimited":{"description":"When true, the coverage never expires by mileage and the odometer distance is ignored.","example":true,"type":"boolean"},"name":{"description":"Name of the coverage group.","example":"12345","type":"string"},"notes":{"description":"Free-form notes about this coverage group.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Coverage length by distance travelled since the coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startEngineHours":{"description":"Engine hours at the start of this coverage.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Odometer reading at the start of this coverage. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"Start time of this coverage.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["name"],"type":"object"},"CreateWarrantyEntityWarrantyWarrantyCoverageItemInputTypeRequestBody":{"description":"WarrantyCoverageItem object","properties":{"id":{"description":"Identifier of the covered item. For a service task item this is the service task definition key. For a VMRS code item supply vmrsCode instead, or this internal VMRS code ID.","example":"12345","type":"string"},"itemType":{"description":"Kind of covered item, indicating how the ID should be interpreted (VMRS code or service task).  Valid values: `unknown`, `vmrsCode`, `serviceTask`","enum":["unknown","vmrsCode","serviceTask"],"example":"unknown","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001). Use with itemType vmrsCode instead of id.","example":"12345","type":"string"}},"required":["itemType"],"type":"object"},"CreateWarrantyEntityWarrantyWarrantyCoverageItemTypeResponseBody":{"description":"WarrantyCoverageItem object","properties":{"id":{"description":"Identifier of the covered item. For a service task item this is the service task definition key. For a VMRS code item supply vmrsCode instead, or this internal VMRS code ID.","example":"12345","type":"string"},"itemType":{"description":"Kind of covered item, indicating how the ID should be interpreted (VMRS code or service task).  Valid values: `unknown`, `vmrsCode`, `serviceTask`","enum":["unknown","vmrsCode","serviceTask"],"example":"unknown","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001). Use with itemType vmrsCode instead of id.","example":"12345","type":"string"}},"type":"object"},"CreateWarrantyEntityWarrantyWarrantyCoverageTypeResponseBody":{"description":"WarrantyCoverage object","properties":{"description":{"description":"Description of what this coverage group covers.","example":"12345","type":"string"},"durationDays":{"description":"Coverage length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Coverage length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Coverage length by engine hours since the coverage start.","example":12345,"format":"int64","type":"integer"},"exclusions":{"description":"Items explicitly excluded from this coverage group.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageItemTypeResponseBody"},"type":"array"},"inclusions":{"description":"Items explicitly covered by this coverage group.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageItemTypeResponseBody"},"type":"array"},"isOdometerDistanceUnlimited":{"description":"When true, the coverage never expires by mileage and the odometer distance is ignored.","example":true,"type":"boolean"},"name":{"description":"Name of the coverage group.","example":"12345","type":"string"},"notes":{"description":"Free-form notes about this coverage group.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Coverage length by distance travelled since the coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startEngineHours":{"description":"Engine hours at the start of this coverage.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Odometer reading at the start of this coverage. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"Start time of this coverage.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"CreateWarrantyEntityWarrantyWarrantyExternalIdInputTypeRequestBody":{"description":"WarrantyExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"CreateWarrantyEntityWarrantyWarrantyExternalIdTypeResponseBody":{"description":"WarrantyExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"CruiseControlDurationMs":{"description":"Time spent in cruise control in milliseconds.","type":"number"},"CumulativeOperatingHoursResponseBody":{"description":"Equipment operating hours.","properties":{"Hour":{"description":"Total number of equipment operating hours.","example":12.34,"format":"double","type":"number"},"datetime":{"description":"Date time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"CurrentDutyStatus":{"description":"The current HOS status type and time the driver started being in this status.","properties":{"hosStatusType":{"description":"The Hours of Service status type.  If the driver app is disconnected, an empty string will be returned. To reconnect the app and return updated values, drivers should have the app open with good cell service. Valid values: `offDuty`, `sleeperBed`, `driving`, `onDuty`, `yardMove`, `personalConveyance`.","enum":["offDuty","sleeperBed","driving","onDuty","yardMove","personalConveyance"],"example":"offDuty","type":"string"}},"type":"object"},"CustomHeadersObjectRequestBody":{"description":"This is the object that stores the key and the value of the custom headers.","properties":{"key":{"description":"The alphanumeric key of the custom header.","example":"format","maxLength":100,"type":"string"},"value":{"description":"The value of the custom header. The default maximum length of the value is 100 characters.","example":"xcmol-532","type":"string"}},"required":["key","value"],"type":"object"},"CustomHeadersObjectResponseBody":{"description":"This is the object that stores the key and the value of the custom headers.","properties":{"key":{"description":"The alphanumeric key of the custom header.","example":"format","maxLength":100,"type":"string"},"value":{"description":"The value of the custom header. The default maximum length of the value is 100 characters.","example":"xcmol-532","type":"string"}},"required":["key","value"],"type":"object"},"CustomMetadata":{"additionalProperties":{"type":"string"},"description":"The custom fields of an asset.","example":{"manufacturer":"Samsara","serialNumber":"123ABC"},"type":"object"},"DEFRemainingResponseBody":{"description":"DEF remaining in equipment.","properties":{"Percent":{"description":"Percent of DEF remaining in tank.","example":12,"format":"double","type":"number"},"datetime":{"description":"Date time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"DVIRSubmittedDeviceTriggerDetailsObjectRequestBody":{"description":"Details specific to DVIR Submitted by Device","properties":{"dvirMinDurationMilliseconds":{"description":"The trigger will only fire if the selected DVIR types are submitted within the duration.","example":600000,"format":"int64","type":"integer"},"dvirSubmissionTypes":{"description":"Filter to these types of DVIR submissions.","example":["SAFE_WITH_DEFECTS","SAFE_NO_DEFECTS","UNSAFE","UNSAFE"],"items":{"description":"DVIR submission type  Valid values: `SAFE_NO_DEFECTS`, `SAFE_WITH_DEFECTS`, `UNSAFE`","enum":["SAFE_NO_DEFECTS","SAFE_WITH_DEFECTS","UNSAFE"],"example":"UNSAFE","type":"string"},"type":"array"}},"type":"object"},"DVIRSubmittedDeviceTriggerDetailsObjectResponseBody":{"description":"Details specific to DVIR Submitted by Device","properties":{"dvirMinDurationMilliseconds":{"description":"The trigger will only fire if the selected DVIR types are submitted within the duration.","example":600000,"format":"int64","type":"integer"},"dvirSubmissionTypes":{"description":"Filter to these types of DVIR submissions.","example":["SAFE_WITH_DEFECTS","UNSAFE","SAFE_NO_DEFECTS","SAFE_NO_DEFECTS"],"items":{"description":"DVIR submission type  Valid values: `SAFE_NO_DEFECTS`, `SAFE_WITH_DEFECTS`, `UNSAFE`","enum":["SAFE_NO_DEFECTS","SAFE_WITH_DEFECTS","UNSAFE"],"example":"UNSAFE","type":"string"},"type":"array"}},"type":"object"},"DashcamDisconnectedResponseBody":{"description":"Details specific to Dashcam Disconnected.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"DataInputListResponse":{"properties":{"data":{"description":"An array of data input data points. Each object in the array represents a data input and will contain its associated data points.","items":{"$ref":"#/components/schemas/DataInputResponse"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"DataInputResponse":{"allOf":[{"$ref":"#/components/schemas/DataInputTinyResponse"},{"$ref":"#/components/schemas/DataInputResponse_allOf"}]},"DataInputResponse_allOf":{"properties":{"fftSpectraPoints":{"description":"List of FFT spectra data points from the data input.","items":{"$ref":"#/components/schemas/FftSpectraDataPoint"},"type":"array"},"j1939D1StatusPoints":{"description":"List of active J1939D1 statuses.","items":{"$ref":"#/components/schemas/J1939D1StatusDataPoint"},"type":"array"},"locationPoints":{"description":"List of location data points from the data input.","items":{"$ref":"#/components/schemas/LocationDataPoint"},"type":"array"},"numberPoints":{"description":"List of numeric data points from the data input.","items":{"$ref":"#/components/schemas/NumberDataPoint"},"type":"array"},"stringPoints":{"description":"List of string data points from the data input.","items":{"$ref":"#/components/schemas/StringDataPoint"},"type":"array"}},"type":"object"},"DataInputSnapshot":{"allOf":[{"$ref":"#/components/schemas/DataInputTinyResponse"},{"$ref":"#/components/schemas/DataInputSnapshot_allOf"}]},"DataInputSnapshotResponse":{"properties":{"data":{"description":"An array of data inputs' latest data points. Each object in the array represents a data input and its most recent data point.","items":{"$ref":"#/components/schemas/DataInputSnapshot"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"DataInputSnapshot_allOf":{"properties":{"fftSpectraPoint":{"$ref":"#/components/schemas/FftSpectraDataPoint"},"j1939D1StatusPoint":{"$ref":"#/components/schemas/J1939D1StatusDataPoint"},"locationPoint":{"$ref":"#/components/schemas/LocationDataPoint"},"numberPoint":{"$ref":"#/components/schemas/NumberDataPoint"},"stringPoint":{"$ref":"#/components/schemas/StringDataPoint"}},"type":"object"},"DataInputTinyResponse":{"description":"A minified data input object","properties":{"assetId":{"description":"Unique identifier for the data input's asset.","example":"74771078-5edb-4733-88f2-7242f520d1f1","format":"uuid","type":"string"},"dataGroup":{"description":"Data group for this data input.","example":"Flow","format":"string","type":"string"},"id":{"description":"Unique identifier for the data input.","format":"uuid","type":"string"},"name":{"description":"Name of this data input.","example":"Pump Flow","format":"string","type":"string"},"units":{"description":"Units of data for this data input.","example":"Gallons Per Minute","format":"string","type":"string"}},"type":"object"},"DataInputValueResponseBody":{"description":"Details specific to Data Input Value.","properties":{"machineInput":{"$ref":"#/components/schemas/alertObjectMachineInputResponseBody"}},"type":"object"},"DataInputsTinyResponse":{"properties":{"data":{"description":"An array of data input objects. Each object contains the data input's name, ID, and other metadata.","items":{"$ref":"#/components/schemas/DataInputTinyResponse"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"DataUsageResponseObjectResponseBody":{"description":"An object containing information about the gateway data usage in mb for the last 30 days.","properties":{"cellularDataUsageBytes":{"description":"Celluar data usage in bytes.","example":1881967158240695300,"format":"int64","type":"integer"},"hotspotUsageBytes":{"description":"Wifi hotspot data usage in bytes.","example":6473124134001760000,"format":"int64","type":"integer"}},"type":"object"},"DefLevelTriggerDetailsObjectRequestBody":{"description":"Details specific to DEF Level","properties":{"defLevelPercent":{"description":"The DEF percentage threshold value.","example":100,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `LESS`","enum":["GREATER","LESS"],"example":"GREATER","type":"string"}},"required":["defLevelPercent","minDurationMilliseconds","operation"],"type":"object"},"DefLevelTriggerDetailsObjectResponseBody":{"description":"Details specific to DEF Level","properties":{"defLevelPercent":{"description":"The DEF percentage threshold value.","example":100,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `LESS`","enum":["GREATER","LESS"],"example":"GREATER","type":"string"}},"required":["defLevelPercent","minDurationMilliseconds","operation"],"type":"object"},"Defect":{"properties":{"comment":{"description":"Comment on the defect.","example":"Air Compressor not working","type":"string"},"createdAtTime":{"description":"Time when the defect was created. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"defectType":{"description":"The type of DVIR defect.","example":"Air Compressor","type":"string"},"id":{"description":"ID of the defect.","example":"18","type":"string"},"isResolved":{"description":"Signifies if this defect is resolved.","example":true,"type":"boolean"},"mechanicNotes":{"description":"The mechanics notes on the defect.","example":"Extremely large oddly shaped hole in passenger side window.","type":"string"},"mechanicNotesUpdatedAtTime":{"description":"Time when mechanic notes were last updated. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedAtTime":{"description":"Time when this defect was resolved. Will not be returned if the defect is unresolved. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedBy":{"$ref":"#/components/schemas/Defect_resolvedBy"},"trailer":{"allOf":[{"description":"The trailer this defect was submitted for.","type":"object"},{"$ref":"#/components/schemas/trailerTinyResponse"}],"type":"object"},"vehicle":{"allOf":[{"description":"The vehicle this defect was submitted for.","type":"object"},{"$ref":"#/components/schemas/vehicleTinyResponse"}],"type":"object"}},"required":["id","isResolved"],"type":"object"},"DefectPatch":{"description":"Information about resolving a defect. If resolving a defect, must specify `isResolved` as `true` and `resolvedBy`.","properties":{"isResolved":{"description":"Resolves the defect. Must be `true`.","type":"boolean"},"mechanicNotes":{"description":"The mechanics notes on the defect.","example":"Extremely large oddly shaped hole in passenger side window.","type":"string"},"resolvedAtTime":{"description":"Time when defect was resolved. Defaults to now if not provided. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedBy":{"$ref":"#/components/schemas/ResolvedBy"}},"type":"object"},"DefectPhotoResponseResponseBody":{"description":"Defect's photo object","properties":{"createdAtTime":{"description":"Time when defect's photo was created in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"url":{"description":"The URL to the defect's photo. Note: the link is available only for 24 hours after it's sent","example":"https://s3.samsara.com/samsara-driver-media-upload/defect-photo-path","type":"string"}},"required":["createdAtTime","url"],"type":"object"},"DefectResponse":{"description":"A single defect.","properties":{"data":{"$ref":"#/components/schemas/Defect"}},"type":"object"},"DefectTrailerResponseResponseBody":{"description":"Defect's trailer object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the trailer","example":"494123","type":"string"}},"type":"object"},"DefectTypesResponseDataResponseBody":{"description":"Defect type data.","properties":{"createdAtTime":{"description":"Time when defect type was created in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"id":{"description":"The unique ID of the DVIR defect type.","example":"25d6151e-29b5-453e-875a-7c5425332e09","type":"string"},"label":{"description":"DVIR defect type label.","example":"Air Compressor","type":"string"},"sectionType":{"description":"Section for DVIR defect type.  Valid values: `exteriorFront`, `exteriorRear`, `exteriorSideUnderneath`, `interiorDriverCab`, `interiorPassengerArea`, `other`, `unknown`","enum":["exteriorFront","exteriorRear","exteriorSideUnderneath","interiorDriverCab","interiorPassengerArea","other","unknown"],"example":"exteriorFront","type":"string"},"severity":{"description":"The severity of the defect type. Only present for DVIR 2.0 defect types.  Valid values: `major`, `minor`, `notApplicable`","enum":["major","minor","notApplicable"],"example":"major","type":"string"}},"required":["createdAtTime","id","label","sectionType"],"type":"object"},"DefectVehicleResponseResponseBody":{"description":"Defect's vehicle object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the vehicle","example":"494125","type":"string"}},"type":"object"},"Defect_resolvedBy":{"description":"The person who resolved this defect.  Will not be returned if the defect is unresolved.","properties":{"id":{"description":"ID of the entity that resolved this defect. If the defect was resolved by a driver, this will be a Samsara Driver ID. If the defect was resolved by a mechanic, this will be the Samsara Dashboard User ID of the mechanic.","example":"11","type":"string"},"name":{"description":"Name of the person who resolved this defect.","example":"Christopher 'The Handyman' Zhen","type":"string"},"type":{"description":"Indicates whether this defect was resolved by a `driver` or a `mechanic`.","enum":["driver","mechanic"],"type":"string"}},"type":"object"},"DefectsResponse":{"description":"A list of defects.","properties":{"data":{"items":{"$ref":"#/components/schemas/Defect"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"DefectsResponseDataResponseBody":{"description":"DVIR defects data.","properties":{"comment":{"description":"Comment on the defect.","example":"Engine failure.","type":"string"},"createdAtTime":{"description":"Time when defect was created in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"defectPhotos":{"description":"List of DVIR defect's photos","items":{"$ref":"#/components/schemas/DefectPhotoResponseResponseBody"},"type":"array"},"defectSafetyStatus":{"description":"Driver-designated safety classification for this defect.  Valid values: `safe`, `unsafe`","enum":["safe","unsafe"],"example":"unsafe","type":"string"},"defectTypeId":{"description":"The unique ID of the defect type.","example":"25d6151e-29b5-453e-875a-7c5425332e09","type":"string"},"dvirId":{"description":"The unique ID of the defect's DVIR.","example":"292371177","type":"string"},"id":{"description":"The unique ID of the DVIR defect.","example":"9700544","type":"string"},"isResolved":{"description":"Signifies if this defect is resolved.","example":true,"type":"boolean"},"mechanicNotes":{"description":"The mechanics notes on the defect.","example":"Broken passenger side window.","type":"string"},"resolvedAtTime":{"description":"Time when this defect was resolved in RFC 3339 format. Will not be returned if the defect is unresolved.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedBy":{"$ref":"#/components/schemas/DvirResolvedByObjectResponseBody"},"trailer":{"$ref":"#/components/schemas/DefectTrailerResponseResponseBody"},"updatedAtTime":{"description":"Time when defect was last updated in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/DefectVehicleResponseResponseBody"}},"required":["comment","dvirId","id","isResolved"],"type":"object"},"DeleteDriverVehicleAssignmentsV2RequestBodyMetadataRequestBody":{"description":"Metadata identifying the driver assignments to delete","properties":{"sourceName":{"description":"Exact metadata source name. When provided without vehicleId, deletes the single API-created assignment with this source name; startTime, endTime, and isPassenger must then be omitted. Returns an error if no assignment or more than one assignment matches. If vehicleId is provided, sourceName is ignored and assignments are deleted by vehicle and time range. Required unless vehicleId is provided.","example":"My custom assignment source","maxLength":100,"type":"string"}},"type":"object"},"DeployFunctionDetailResponseBody":{"description":"Details of a deployed Function.","properties":{"name":{"description":"Name of the Function.","example":"my-function","type":"string"}},"required":["name"],"type":"object"},"DepreciationGetDepreciationTransactionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsResponseBody":{"properties":{"data":{"description":"Depreciation transactions","items":{"$ref":"#/components/schemas/DepreciationTransactionObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DepreciationGetDepreciationTransactionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationGetDepreciationTransactionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DepreciationTransactionMoneyObjectResponseBody":{"description":"The transaction amount. Negative values indicate depreciation/write-downs, positive values indicate appreciation.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"DepreciationTransactionObjectResponseBody":{"description":"A depreciation or adjustment transaction","properties":{"amount":{"$ref":"#/components/schemas/DepreciationTransactionMoneyObjectResponseBody"},"assetId":{"description":"Samsara asset ID. Can be used with /fleet/assets/{id} to retrieve asset details.","example":"281474993384538","type":"string"},"costCenterId":{"description":"The UUID of the cost center assigned to the asset. To retrieve cost center names: (1) Call GET /attributes?entityType=asset to find the \"Asset Cost Center\" attribute and its UUID, (2) Call GET /attributes/{that-uuid}?entityType=asset to get the list of cost center values with their UUIDs and names. Match the costCenterId from this response to the uuid field in the attributeValues array to get the cost center name.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"},"createdAt":{"description":"When the transaction record was created in the system. RFC 3339 format.","example":"2024-12-05T10:30:00Z","format":"date-time","type":"string"},"eventTime":{"description":"When the depreciation or adjustment occurred from a financial/accounting perspective (e.g., end of depreciation period, or date of revaluation). This may differ from createdAt if the transaction is recorded after the fact. RFC 3339 format.","example":"2024-11-30T23:59:59Z","format":"date-time","type":"string"},"id":{"description":"The unique UUID of the transaction.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"note":{"description":"Optional description.","example":"November 2024 monthly depreciation","type":"string"},"transactionType":{"description":"Transaction type: depreciation, adjustment, or unknown. Unknown transaction types should be handled gracefully for forward compatibility.  Valid values: `depreciation`, `adjustment`, `unknown`","enum":["depreciation","adjustment","unknown"],"example":"depreciation","type":"string"},"updatedAt":{"description":"When the transaction record was last modified in the system (use for incremental sync). RFC 3339 format.","example":"2024-12-05T10:30:00Z","format":"date-time","type":"string"}},"required":["amount","assetId","createdAt","eventTime","id","transactionType","updatedAt"],"type":"object"},"DetectionLogAssetObjectResponseBody":{"description":"Asset that the detection is tied to. Always returned.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"id":{"description":"Unique ID for the asset object that is reporting the detection. Always returned.","example":"asset-23ab7cd1-5f6e-4c9b-8f21-1e3b7a9c4d8f","type":"string"},"name":{"description":"Name for the asset object that is reporting the safety event. Only returned when includeAsset is set to true","example":"Truck 102 - Volvo VNL","type":"string"},"tags":{"description":"Tags for the asset associated with the safety event. Only returned when includeAsset is set to true","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"DetectionLogDetectionObjectResponseBody":{"description":"Detection log entry","properties":{"asset":{"$ref":"#/components/schemas/DetectionLogAssetObjectResponseBody"},"createdAtTime":{"description":"Time the detection was detected or in-cab alert played in UTC. RFC 3339 format. Always returned.","example":"2025-09-20T11:15:30Z","type":"string"},"driver":{"$ref":"#/components/schemas/DetectionLogDriverObjectResponseBody"},"id":{"description":"Unique Samsara ID (uuid) of the detection.","example":"9c4f81d2-7a25-4f8c-9b83-1c34a91e34a1","type":"string"},"inCabAlertPlayed":{"description":"Whether an in cab alert played aloud in the cab. Always returned.","example":true,"type":"boolean"},"safetyEvent":{"description":"Details on the associated safety event generated. Always returned.","items":{"$ref":"#/components/schemas/DetectionLogSafetyEventObjectResponseBody"},"type":"array"},"triggerDetectionLabel":{"description":"The label associated with the detection. Always returned.  Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshImpact`, `harshTurn`, `heavySpeeding`, `laneDeparture`, `lightSpeeding`, `maxSpeed`, `mobileUsage`, `moderateSpeeding`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `proximityWarning`, `ranRedLight`, `rearCollisionWarning`, `reversing`, `rollingStop`, `rolloverProtection`, `severeSpeeding`, `smoking`, `speeding`, `unsafeParking`, `vehicleInBlindSpotWarning`, `vulnerableRoadUserCollisionWarning`, `yawControl`","enum":["acceleration","braking","crash","drowsy","eatingDrinking","edgeRailroadCrossingViolation","followingDistance","forwardCollisionWarning","genericDistraction","harshImpact","harshTurn","heavySpeeding","laneDeparture","lightSpeeding","maxSpeed","mobileUsage","moderateSpeeding","noSeatbelt","obstructedCamera","passenger","policyViolationMask","proximityWarning","ranRedLight","rearCollisionWarning","reversing","rollingStop","rolloverProtection","severeSpeeding","smoking","speeding","unsafeParking","vehicleInBlindSpotWarning","vulnerableRoadUserCollisionWarning","yawControl"],"example":"braking","type":"string"},"updatedAtTime":{"description":"Time the detection was updated in Samsara in UTC. RFC 3339 format. Always returned.","example":"2025-09-20T11:20:45Z","type":"string"}},"required":["asset","createdAtTime","id","inCabAlertPlayed","safetyEvent","triggerDetectionLabel","updatedAtTime"],"type":"object"},"DetectionLogDriverObjectResponseBody":{"description":"Driver that is assigned to the safety event. Always returned. Null if driver is not assigned.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids for the driver assigned to the safety event. Only returned when includeDriver is set to true","type":"object"},"id":{"description":"Unique ID for the driver object that is assigned to the safety event. Always returned when a driver is assigned.","example":"driver-8b12fa3d-3c6e-4e2a-9a76-24c1f7b23d9a","type":"string"},"name":{"description":"Name of the driver assigned to the safety event. Only returned when includeDriver is set to true","example":"Alex Johnson","type":"string"},"tags":{"description":"Tags for the driver assigned to the safety event. Only returned when includeDriver is set to true","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"DetectionLogGetDetectionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsResponseBody":{"properties":{"data":{"description":"Array of detection log entries","items":{"$ref":"#/components/schemas/DetectionLogDetectionObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DetectionLogGetDetectionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogGetDetectionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DetectionLogSafetyEventObjectResponseBody":{"description":"Details on the associated safety event generated","properties":{"id":{"description":"Unique Samsara ID (uuid) of the safety event. Only returned when safetyEvent.inboxEvent is true.","example":"a1b2c3d4-5678-90ab-cdef-1234567890ab","type":"string"},"inboxEvent":{"description":"Whether a corresponding safety event was published to the Safety Inbox. Always returned.","example":false,"type":"boolean"},"inboxFilterReason":{"description":"The reason the detection was filtered out of the inbox. Only returned when safetyEvent.inboxEvent is false  Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `inCabAlertOnly`, `unknown`","enum":["overDailyLimit","overHourlyLimit","overTripLimit","belowConfidenceThreshold","belowSeverityThreshold","overEventRateLimit","geofenceFilter","belowNudgeThreshold","belowSpeedThreshold","nighttimeFilter","speedingFilter","inCabAlertOnly","unknown"],"example":"belowSeverityThreshold","type":"string"}},"required":["inboxEvent"],"type":"object"},"DeviceAssetResponseResponseBody":{"description":"Asset that the device is tied to.","properties":{"id":{"description":"The unique ID of the asset.","example":"281474982859091","type":"string"},"name":{"description":"The human-readable name of the asset. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"MyAsset-1234","type":"string"}},"required":["id","name"],"type":"object"},"DeviceMovementDataResponseBody":{"description":"Details specific to Device Movement.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"DeviceMovementStoppedDataResponseBody":{"description":"Details specific to Device Movement Stopped.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"DeviceMovementTriggerDetailsObjectRequestBody":{"description":"Details specific to Device Movement","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"DeviceMovementTriggerDetailsObjectResponseBody":{"description":"Details specific to Device Movement","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody":{"properties":{"data":{"description":"List of assets currently marked as missing.","items":{"$ref":"#/components/schemas/MissingStateResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryListDeviceRecoveryMissingAssetsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingRequestBody":{"description":"Request body for marking an asset as missing.","properties":{"note":{"description":"Optional note when marking asset as missing.","example":"Asset was last seen at warehouse A","type":"string"},"notification_recipients":{"description":"List of users to notify when asset is marked as missing.","example":[{"notification_types":["email"],"user_id":1234}],"items":{"$ref":"#/components/schemas/NotificationRecipientRequestBody"},"type":"array"}},"type":"object"},"DeviceRecoveryMarkAssetMissingResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/MissingStateResponseBody"}},"required":["data"],"type":"object"},"DeviceRecoveryMarkAssetMissingServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryMarkAssetMissingUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetRequestBody":{"description":"Request body for recovering an asset.","properties":{"additional_details":{"description":"Optional additional details about the recovery.","example":"Found in warehouse B","type":"string"},"missing_reason":{"description":"The reason the asset was marked as missing.  Valid values: `MISPLACED`, `STOLEN`, `NOT_SURE`","enum":["MISPLACED","STOLEN","NOT_SURE"],"example":"MISPLACED","type":"string"},"recovery_status":{"description":"Whether the asset has been physically recovered.  Valid values: `YES`, `NO`, `NOT_SURE`","enum":["YES","NO","NOT_SURE"],"example":"YES","type":"string"},"status":{"description":"The recovery status to set for the asset.  Valid values: `RECOVERED`","enum":["RECOVERED"],"example":"RECOVERED","type":"string"}},"required":["missing_reason","recovery_status","status"],"type":"object"},"DeviceRecoveryRecoverAssetResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RecoveryStateResponseBody"}},"required":["data"],"type":"object"},"DeviceRecoveryRecoverAssetServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceRecoveryRecoverAssetUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DeviceResponseResponseBody":{"description":"Information about a device including its identity, last known location, last connected time, and health status.","properties":{"asset":{"$ref":"#/components/schemas/DeviceAssetResponseResponseBody"},"health":{"$ref":"#/components/schemas/HealthResponseResponseBody"},"lastConnectedTime":{"description":"The last time the device was connected, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"lastKnownLocation":{"$ref":"#/components/schemas/LastKnownLocationResponseResponseBody"},"model":{"description":"The product model name of the device.  Valid values: `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AHD1`, `AIM4`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `Baxter`, `CM31`, `CM32`, `CM33`, `CM34`, `LM11`, `OEM`, `OEMP`, `OEMR`, `OEMV`, `VG34`, `VG34EU`, `VG34FN`, `VG34M`, `VG54EU`, `VG54NA`, `VG55EU`, `VG55NA`","enum":["AG24","AG24EU","AG26","AG26EU","AG45","AG45EU","AG46","AG46EU","AG46P","AG46PEU","AG51","AG51EU","AG52","AG52EU","AG53","AG53EU","AHD1","AIM4","AT11","AT11X","AT12","AT12X","AT13","Baxter","CM31","CM32","CM33","CM34","LM11","OEM","OEMP","OEMR","OEMV","VG34","VG34EU","VG34FN","VG34M","VG54EU","VG54NA","VG55EU","VG55NA"],"example":"AG24","type":"string"},"serial":{"description":"The serial number of the device.","example":"ABCD-123-EFG","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Device.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["asset","model","serial"],"type":"object"},"DevicesGetDevicesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesResponseBody":{"properties":{"data":{"description":"List of device objects.","items":{"$ref":"#/components/schemas/DeviceResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DevicesGetDevicesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DevicesGetDevicesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DistanceDrivenMeters":{"description":"Distance driven in meters.","type":"number"},"DistanceResponseBody":{"description":"Equipment odometer distance.","properties":{"Odometer":{"description":"Odometer value reported by equipment.","example":12,"format":"double","type":"number"},"OdometerUnits":{"description":"Unit of measurement for distance.","example":"kilometre","type":"string"},"datetime":{"description":"Date time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"DistanceTraveledObjectResponseBody":{"description":"The distance traveled information of the log.","properties":{"driveDistanceMeters":{"description":"Distance driven in meters, rounded to two decimal places.","example":796625,"format":"int64","type":"integer"},"personalConveyanceDistanceMeters":{"description":"Distance driven for personal conveyance, rounded to two decimal places.","example":27358,"format":"int64","type":"integer"},"yardMoveDistanceMeters":{"description":"Distance driven for yard moves, rounded to two decimal places.","example":1287,"format":"int64","type":"integer"}},"type":"object"},"DistractedDrivingDetectionAlertSettingsObjectResponseBody":{"description":"Enables AI detection of distracted driving, surfaces events in Safety Inbox, and enables configurable alerts. By default, Distracted Driving will impact the drivers' safety score.","properties":{"inattentiveDrivingDetectionAlerts":{"$ref":"#/components/schemas/InattentiveDrivingDetectionAlertSettingsObjectResponseBody"},"isEnabled":{"description":"Indicates whether AI event detection for distracted driving behaviors is turned on.","example":true,"type":"boolean"},"mobileUsageDetectionAlerts":{"$ref":"#/components/schemas/MobileUsageDetectionAlertSettingsObjectResponseBody"}},"type":"object"},"DocumentPdfGenerationRequest":{"description":"Identifies a document for PDF generation.","properties":{"documentId":{"description":"ID of the document.","example":"6c8c0c01-206a-41a4-9d21-15b9978d04cb","type":"string"}},"required":["documentId"],"type":"object"},"DocumentPdfGenerationResponse":{"description":"Identifies a PDF generation job.","properties":{"data":{"$ref":"#/components/schemas/DocumentPdfGenerationResponse_data"}},"type":"object"},"DocumentPdfGenerationResponse_data":{"properties":{"documentId":{"description":"ID of the document.","example":"6c8c0c01-206a-41a4-9d21-15b9978d04cb","type":"string"},"id":{"description":"ID of the PDF file generated or being generated for the document.","example":"5c8c0c01-206a-41a4-9d21-15b9978d04cb","type":"string"}},"type":"object"},"DocumentPdfQueryResponse":{"description":"A PDF of a document","properties":{"data":{"$ref":"#/components/schemas/DocumentPdfQueryResponse_data"}},"type":"object"},"DocumentPdfQueryResponse_data":{"properties":{"completedAtTime":{"description":"Time that PDF generation was completed, in RFC 3339 format.","example":"2020-01-02T15:04:06+07:00","type":"string"},"documentId":{"description":"ID of the document.","example":"6c8c0c01-206a-41a4-9d21-15b9978d04cb","type":"string"},"downloadDocumentPdfUrl":{"description":"S3 pre-signed URL to download PDF file.","example":"https://samsara-driver-document-pdfs.s3.us-west-2.amazonaws.com/org/38487/42a4cffc-409d-4ddf-ba1c-5e3bbb961cba?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASI...&X-Amz-Date=20200423T162507Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJ...-Amz-SignedHeaders=host&response-expires=2020-04-24T16%3A25%3A07Z&X-Amz-Signature=1c6fe87...","type":"string"},"id":{"description":"ID of the PDF file generated or being generated for the document","example":"5c8c0c01-206a-41a4-9d21-15b9978d04cb","type":"string"},"jobStatus":{"description":"Describes status of the PDF generation job. Valid values: `requested`, `processing`, `completed`. ","enum":["requested","processing","completed"],"example":"Completed","type":"string"},"requestedAtTime":{"description":"Time that PDF generation was requested, in RFC 3339 format.","example":"2020-01-02T15:04:05+07:00","type":"string"}},"type":"object"},"DocumentTypesGetDocumentTypesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesResponseBody":{"properties":{"data":{"description":"List of all document types for the organization","example":[{"conditionalFieldSections":[{"conditionalFieldFirstIndex":1,"conditionalFieldLastIndex":2,"triggeringFieldIndex":0,"triggeringFieldValue":"Yes"}],"fieldTypes":[{"fieldType":"multipleChoice","label":"Was there damage?","multipleChoiceFieldTypeMetaData":[{"label":"Yes"},{"label":"No"}],"requiredField":true},{"fieldType":"photo","label":"Damage Photos","requiredField":false},{"fieldType":"number","label":"Number of vehicles impacted","numberFieldTypeMetaData":{"numberOfDecimalPlaces":2},"requiredField":false},{"fieldType":"dateTime","label":"Date and time","requiredField":true},{"fieldType":"signature","label":"Sign","requiredField":true,"signatureFieldTypeMetaData":{"legalText":"Legal Text"}}],"id":"4aff772c-a7bb-45e6-8e41-6a53e34feb83","name":"Accident Report","orgId":12345}],"items":{"$ref":"#/components/schemas/getDocumentTypeResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DocumentTypesGetDocumentTypesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentTypesGetDocumentTypesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsDeleteDocumentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/documentResponseObjectResponseBody"}},"type":"object"},"DocumentsGetDocumentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsResponseBody":{"properties":{"data":{"description":"Multiple documents.","items":{"$ref":"#/components/schemas/documentResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DocumentsGetDocumentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsGetDocumentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentRequestBody":{"properties":{"documentTypeId":{"description":"ID for the document type.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"driverId":{"description":"ID of the driver. Can be either unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.","example":"45646","type":"string"},"fields":{"description":"The fields associated with this document.","items":{"$ref":"#/components/schemas/fieldObjectPostRequestBody"},"type":"array"},"name":{"description":"Name of the document.","example":"Dropoff Slip 123","type":"string"},"notes":{"description":"Notes on the document.","example":"Missing a crate","maxLength":2000,"type":"string"},"routeStopId":{"description":"ID of the route stop. Can be either unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the route stop.","example":"45646","type":"string"},"state":{"default":"required","description":"The condition of the document created for the driver. Can be either `required` or `submitted`, if no value is specified, `state` defaults to `required`. `required` documents are pre-populated documents for the Driver to fill out in the Driver App.  Valid values: `submitted`, `required`","enum":["submitted","required"],"example":"submitted","type":"string"},"vehicleId":{"description":"ID of the vehicle. Can be either unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the vehicle.","example":"45646","type":"string"}},"required":["documentTypeId","driverId"],"type":"object"},"DocumentsPostDocumentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/documentResponseObjectResponseBody"}},"type":"object"},"DocumentsPostDocumentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DocumentsPostDocumentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DoorOpenResponseBody":{"description":"Details specific to Door Open.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"DriveTimeDurationMs":{"description":"Time driven in milliseconds.","type":"number"},"Driver":{"description":"A driver object","properties":{"attributes":{"description":"A minified attribute","items":{"$ref":"#/components/schemas/attributeTiny"},"type":"array"},"carrierSettings":{"$ref":"#/components/schemas/DriverCarrierSettings"},"createdAtTime":{"$ref":"#/components/schemas/DriverCreatedAtTime"},"currentIdCardCode":{"$ref":"#/components/schemas/DriverIdCardCode"},"dateOfBirth":{"$ref":"#/components/schemas/DriverDateOfBirth"},"driverActivationStatus":{"$ref":"#/components/schemas/DriverActivationStatus"},"eldAdverseWeatherExemptionEnabled":{"$ref":"#/components/schemas/DriverEldAdverseWeatherExemptionEnabled"},"eldBigDayExemptionEnabled":{"$ref":"#/components/schemas/DriverEldBigDayExemptionEnabled"},"eldDayStartHour":{"$ref":"#/components/schemas/DriverEldDayStartHour"},"eldExempt":{"$ref":"#/components/schemas/DriverEldExempt"},"eldExemptReason":{"$ref":"#/components/schemas/DriverEldExemptReason"},"eldPcEnabled":{"$ref":"#/components/schemas/DriverEldPcEnabled"},"eldSettings":{"$ref":"#/components/schemas/DriverEldSettings"},"eldYmEnabled":{"$ref":"#/components/schemas/DriverEldYmEnabled"},"email":{"$ref":"#/components/schemas/DriverEmail"},"externalIds":{"$ref":"#/components/schemas/DriverExternalIds"},"hasDrivingFeaturesHidden":{"$ref":"#/components/schemas/DriverHasDrivingFeaturesHidden"},"hasVehicleUnpinningEnabled":{"$ref":"#/components/schemas/DriverHasVehicleUnpinningEnabled"},"id":{"$ref":"#/components/schemas/DriverId"},"isDeactivated":{"$ref":"#/components/schemas/DriverIsDeactivated"},"licenseNumber":{"$ref":"#/components/schemas/DriverLicenseNumber"},"licenseState":{"$ref":"#/components/schemas/DriverLicenseState"},"locale":{"$ref":"#/components/schemas/DriverLocale"},"name":{"$ref":"#/components/schemas/DriverName"},"notes":{"$ref":"#/components/schemas/DriverNotes"},"peerGroupTag":{"$ref":"#/components/schemas/tagTinyResponse"},"phone":{"$ref":"#/components/schemas/DriverPhone"},"profileImageUrl":{"$ref":"#/components/schemas/DriverProfileImageUrl"},"staticAssignedVehicle":{"$ref":"#/components/schemas/DriverStaticAssignedVehicle"},"tachographCardNumber":{"$ref":"#/components/schemas/DriverTachographCardNumber"},"tags":{"$ref":"#/components/schemas/DriverTags"},"timezone":{"$ref":"#/components/schemas/DriverTimezone"},"trailerGroupTag":{"$ref":"#/components/schemas/DriverTrailerGroupTag"},"updatedAtTime":{"$ref":"#/components/schemas/DriverUpdatedAtTime"},"usDriverRulesetOverride":{"$ref":"#/components/schemas/UsDriverRulesetOverride"},"username":{"$ref":"#/components/schemas/DriverUsername"},"vehicleGroupTag":{"$ref":"#/components/schemas/DriverVehicleGroupTag"},"waitingTimeDutyStatusEnabled":{"$ref":"#/components/schemas/DriverWaitingTimeDutyStatusEnabled"}},"type":"object"},"DriverActivationStatus":{"description":"A value indicating whether the driver is active or deactivated. Valid values: `active`, `deactivated`.","enum":["active","deactivated"],"type":"string"},"DriverAppNotificationObjectRequestBody":{"description":"Driver app notification settings","properties":{"inAppNotificationOptions":{"$ref":"#/components/schemas/InAppNotificationOptionsObjectRequestBody"},"pushNotificationOptions":{"$ref":"#/components/schemas/PushNotificationOptionsObjectRequestBody"}},"type":"object"},"DriverAppNotificationObjectResponseBody":{"description":"Driver app notification settings","properties":{"inAppNotificationOptions":{"$ref":"#/components/schemas/InAppNotificationOptionsObjectResponseBody"},"pushNotificationOptions":{"$ref":"#/components/schemas/PushNotificationOptionsObjectResponseBody"}},"type":"object"},"DriverAppSettingsGamificationConfigTinyObjectRequestBody":{"description":"Gamification configuration for the Driver App.","properties":{"anonymizeDriverNames":{"description":"Hide the names of other drivers when viewing the driver leaderboard in the mobile app.","example":false,"type":"boolean"}},"type":"object"},"DriverAppSettingsGamificationConfigTinyObjectResponseBody":{"description":"Gamification configuration for the Driver App.","properties":{"anonymizeDriverNames":{"description":"Hide the names of other drivers when viewing the driver leaderboard in the mobile app.","example":true,"type":"boolean"}},"type":"object"},"DriverAppSettingsResponseObjectResponseBody":{"description":"The configuration settings for the Samsara Driver App. Can be set or updated through the Samsara Settings page or the API at any time.","properties":{"driverFleetId":{"description":"Login user name for the fleet driver app","example":"abc_trucking_co","type":"string"},"gamification":{"description":"Driver gamification feature. Enabling this will turn on the feature for all drivers using the mobile app. Drivers can be configured into peer groups within the Drivers Page. Unconfigured drivers will be grouped on an organization level.","example":false,"type":"boolean"},"gamificationConfig":{"$ref":"#/components/schemas/DriverAppSettingsGamificationConfigTinyObjectResponseBody"},"orgVehicleSearch":{"description":"Allow drivers to search for vehicles outside of their selection tag when connected to the internet.","example":false,"type":"boolean"},"trailerSelection":{"description":"Allow drivers to see and select trailers in the Samsara Driver app. ","example":false,"type":"boolean"},"trailerSelectionConfig":{"$ref":"#/components/schemas/DriverAppSettingsTrailerSelectionConfigTinyObjectResponseBody"}},"type":"object"},"DriverAppSettingsTrailerSelectionConfigTinyObjectRequestBody":{"description":"Trailer selection setting configuration for the Driver App.","properties":{"driverTrailerCreationEnabled":{"description":"Allow drivers to create new trailers in the Samsara Driver app.","example":false,"type":"boolean"},"maxNumOfTrailersSelected":{"description":"Trailer selection limit.","maximum":8,"type":"integer"},"orgTrailerSearch":{"description":"Allow drivers to search for trailers outside of their selection tag when connected to the internet","example":false,"type":"boolean"}},"type":"object"},"DriverAppSettingsTrailerSelectionConfigTinyObjectResponseBody":{"description":"Trailer selection setting configuration for the Driver App.","properties":{"driverTrailerCreationEnabled":{"description":"Allow drivers to create new trailers in the Samsara Driver app.","example":true,"type":"boolean"},"maxNumOfTrailersSelected":{"description":"Trailer selection limit.","maximum":8,"type":"integer"},"orgTrailerSearch":{"description":"Allow drivers to search for trailers outside of their selection tag when connected to the internet","example":false,"type":"boolean"}},"type":"object"},"DriverAppSignInResponseBody":{"description":"Details specific to Driver App Sign In.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"pinnedVehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"DriverAppSignOutResponseBody":{"description":"Details specific to Driver App Sign Out.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"}},"type":"object"},"DriverAssignmentMetadataTinyObjectResponseBody":{"description":"Metadata object for external assignment source data.","properties":{"sourceName":{"description":"Assigned source name from an external source.","example":"ExternalSourceName","type":"string"}},"type":"object"},"DriverAssignmentObjectResponseBody":{"properties":{"assignmentType":{"description":"Assignment type of the driver-vehicle assignment, indicating the provenance of the assignment. The only type of assignment supported right now is `driverApp` assignments. This list could change, so it is recommended that clients gracefully handle any types not enumerated in this list.  Valid values: `driverApp`","enum":["driverApp"],"example":"driverApp","type":"string"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"endTime":{"description":" An end time in RFC 3339 format. Omitted if not applicable. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isPassenger":{"description":"Boolean indicating whether the driver is a passenger.","example":false,"type":"boolean"},"startTime":{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"DriverCarrierName":{"description":"Carrier for a given driver.","example":"Acme Inc.","maxLength":255,"type":"string"},"DriverCarrierSettings":{"description":"Carrier for a given driver. If the driver's carrier differs from the general organization's carrier settings, the override value is used. Updating this value only updates the override setting for this driver.","properties":{"carrierName":{"description":"Carrier for a given driver.","example":"Acme Inc.","maxLength":255,"type":"string"},"dotNumber":{"description":"Carrier US DOT Number. If this differs from the general organization's settings, the override value is used. Updating this value only updates the override setting for this driver.","example":98231,"format":"int64","type":"integer"},"homeTerminalAddress":{"$ref":"#/components/schemas/DriverHomeTerminalAddress"},"homeTerminalName":{"$ref":"#/components/schemas/DriverHomeTerminalName"},"mainOfficeAddress":{"description":"Main office address for a given driver. If this differs from the general organization's settings, the override value is used. ","example":"1234 Pear St., Scranton, PA 62814","maxLength":255,"type":"string"}},"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentResponseBody":{"properties":{"data":{"description":"List of driver coach assignment objects","items":{"$ref":"#/components/schemas/CoachAssignmentWithDriverExternalIdsResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsGetDriverCoachAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CoachAssignmentWithoutDriverExternalIdsResponseResponseBody"}},"required":["data"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCoachAssignmentsPutDriverCoachAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverCreatedAtTime":{"description":"The date and time this driver was created in RFC 3339 format.","example":"2019-05-18T20:27:35Z","type":"string"},"DriverDateOfBirth":{"description":"Driver's date of birth in `YYYY-MM-DD` format. Treated as a calendar date (no time component, no timezone).","example":"1985-07-21","format":"date","type":"string"},"DriverDeactivatedAtTime":{"description":"The date and time this driver is considered to be deactivated in RFC 3339 format.","example":"2019-05-18T20:27:35Z","type":"string"},"DriverDocumentSubmittedDetailsObjectRequestBody":{"description":"Details specific to Driver Document Submitted","properties":{"templateIds":{"description":"Specific template IDs to be alerted on.","example":["23b78345-d098-3k4j-1pk3-4k5j6938j289","23b78345-d098-3k4j-1pk3-4k5j6938j289"],"items":{"description":"The unique IDs of the template.","format":"uuid","type":"string"},"type":"array"}},"required":["templateIds"],"type":"object"},"DriverDocumentSubmittedDetailsObjectResponseBody":{"description":"Details specific to Driver Document Submitted","properties":{"templateIds":{"description":"Specific template IDs to be alerted on.","example":["23b78345-d098-3k4j-1pk3-4k5j6938j289","23b78345-d098-3k4j-1pk3-4k5j6938j289","23b78345-d098-3k4j-1pk3-4k5j6938j289","23b78345-d098-3k4j-1pk3-4k5j6938j289"],"items":{"description":"The unique IDs of the template.","format":"uuid","type":"string"},"type":"array"}},"required":["templateIds"],"type":"object"},"DriverDocumentSubmittedResponseBody":{"description":"Details specific to Driver Document Submitted.","properties":{"document":{"$ref":"#/components/schemas/documentResponseObjectResponseBody"}},"type":"object"},"DriverDotNumber":{"description":"Carrier US DOT Number. If this differs from the general organization's settings, the override value is used. Updating this value only updates the override setting for this driver.","example":98231,"format":"int64","type":"integer"},"DriverEfficienciesResponse":{"description":"Summary of drivers' efficiencies over a time range.","properties":{"data":{"$ref":"#/components/schemas/DriverEfficienciesResponse_data"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"DriverEfficienciesResponse_data":{"properties":{"driverSummaries":{"description":"A list of driver and associated vehicle efficiency data.","items":{"$ref":"#/components/schemas/DriverEfficiency"},"type":"array"},"summaryEndTime":{"description":"End time of the window for which this efficiency report was computed. Will be a UTC timestamp in RFC 3339 format. For example: `2020-03-16T16:00:00Z`","example":"2020-03-16T16:00:00Z","format":"date-time","type":"string"},"summaryStartTime":{"description":"Start time of the window for which this efficiency report was computed. Will be a UTC timestamp in RFC 3339 format. For example: `2020-03-15T16:00:00Z`","example":"2020-03-15T16:00:00Z","format":"date-time","type":"string"}},"type":"object"},"DriverEfficiency":{"description":"Summary of a driver's efficiency.","properties":{"anticipationBrakeEventCount":{"$ref":"#/components/schemas/AnticipationBrakeEventCount"},"coastingDurationMs":{"$ref":"#/components/schemas/CoastingDurationMs"},"cruiseControlDurationMs":{"$ref":"#/components/schemas/CruiseControlDurationMs"},"driver":{"$ref":"#/components/schemas/ExtendedDriverTinyResponse"},"greenBandDrivingDurationMs":{"$ref":"#/components/schemas/GreenBandDrivingDurationMs"},"highTorqueMs":{"$ref":"#/components/schemas/HighTorqueMs"},"overSpeedMs":{"$ref":"#/components/schemas/OverSpeedMs"},"totalBrakeEventCount":{"$ref":"#/components/schemas/TotalBrakeEventCount"},"totalDistanceDrivenMeters":{"$ref":"#/components/schemas/DistanceDrivenMeters"},"totalDriveTimeDurationMs":{"$ref":"#/components/schemas/DriveTimeDurationMs"},"totalFuelConsumedMl":{"$ref":"#/components/schemas/FuelConsumedMl"},"totalIdleTimeDurationMs":{"$ref":"#/components/schemas/IdleTimeDurationMs"},"totalPowerTakeOffDurationMs":{"$ref":"#/components/schemas/PowerTakeOffDurationMs"},"vehicleSummaries":{"description":"Summaries of vehicle efficiency for each vehicle the driver was driving during the given time period.","items":{"$ref":"#/components/schemas/VehicleSummary"},"type":"array"}},"type":"object"},"DriverEfficiencyDataObjectResponseBody":{"description":"Driver Efficiency score data. This object is returned by default or when the “score” format is specified in “dataFormats”.","properties":{"anticipationScore":{"description":"Represents the anticipation score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"C","type":"string"},"coastingScore":{"description":"Represents the coasting score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"C","type":"string"},"cruiseControlScore":{"description":"Represents the cruise control score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"B","type":"string"},"greenBandScore":{"description":"Represents the green band score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"A","type":"string"},"highTorqueScore":{"description":"Represents the high torque score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"A","type":"string"},"idlingScore":{"description":"Represents the idling score for the driver.The score will be in either number or letter format depending on the organisation config.","example":"B","type":"string"},"overSpeedScore":{"description":"Represents the over speed score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"B","type":"string"},"overallScore":{"description":"Represents the overall score for the driver. The score will be in either number (0-100) as a string or letter format (A-G) depending on the organisation config.","example":"A","type":"string"},"wearFreeBrakeScore":{"description":"Represents the ware-free breaking score for the driver. The score will be in either number or letter format depending on the organisation config.","example":"A","type":"string"}},"required":["overallScore"],"type":"object"},"DriverEfficiencyDifficultyScoreDataObjectResponseBody":{"description":"Difficulty score won't be available if there is no data to compute it against.","properties":{"overallScore":{"description":"Represents the overall difficulty score. It has scores from 1 to 5.","example":"4","type":"string"},"topographyScore":{"description":"Represents the topography difficulty score. It has scores from 1 to 5.","example":"5","type":"string"},"vehicleWeightScore":{"description":" Represents the average vehicle weight score. It has scores from 1 to 5.","example":"4","type":"string"}},"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversResponseBody":{"properties":{"data":{"description":"List of driver efficiency data associated with drivers.","items":{"$ref":"#/components/schemas/singleDriverEfficiencyByDriverDataObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByDriversUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesResponseBody":{"properties":{"data":{"description":"List of driver efficiency data associated with vehicles.","items":{"$ref":"#/components/schemas/singleDriverEfficiencyByVehicleDataObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyGetDriverEfficiencyByVehiclesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverEfficiencyPercentageDataObjectResponseBody":{"description":"Driver Efficiency percentage data. This object is returned when the “percentage” format is specified in “dataFormats”.","properties":{"anticipationPercentage":{"description":"Percentage of time a driver is in quickly breaking events vs total breaking events.","example":9.5,"format":"double","type":"number"},"coastingPercentage":{"description":"Percentage of time a driver is in coasting.","example":45.6,"format":"double","type":"number"},"cruiseControlPercentage":{"description":"Percentage of time a vehicle is in cruise control.","example":45.6,"format":"double","type":"number"},"greenBandPercentage":{"description":"Percentage of time a driver is driving within the green band.","example":78.9,"format":"double","type":"number"},"highGradeRoadDrivingPercentage":{"description":"Percentage of time a driver is driving on high-grade road.","example":15.3,"format":"double","type":"number"},"highTorquePercentage":{"description":"Percentage of time a driver is driving in high torque.","example":23.4,"format":"double","type":"number"},"idlingPercentage":{"description":"Percentage of time a driver is idling.","example":12.8,"format":"double","type":"number"},"overSpeedPercentage":{"description":"Percentage of time a driver is in over-speeding.","example":5.6,"format":"double","type":"number"},"wearFreeBrakePercentage":{"description":"Percentage of time a driver is in wear-free breaking.","example":88.2,"format":"double","type":"number"}},"required":["idlingPercentage"],"type":"object"},"DriverEfficiencyRawDataObjectResponseBody":{"description":"Driver Efficiency raw data. This object is returned when the “raw” format is specified in “dataFormats”.","properties":{"anticipationBrakeEventCount":{"description":"Total number of quick braking events (less than one second after accelerating).","example":17,"format":"int64","type":"integer"},"averageVehicleWeightKg":{"description":"Average vehicle weight in kilograms.","example":14500,"format":"int64","type":"integer"},"coastingDurationMs":{"description":"Time spent without engaging the accelerator or brake in milliseconds.","example":1900800,"format":"int64","type":"integer"},"cruiseControlDurationMs":{"description":"Time spent in cruise control in milliseconds.","example":3283200,"format":"int64","type":"integer"},"driveTimeDurationMs":{"description":"Total driving time in milliseconds.","example":7200000,"format":"int64","type":"integer"},"engineOnDurationMs":{"description":"Total engine-on time in milliseconds.","example":7500000,"format":"int64","type":"integer"},"greenBandDurationMs":{"description":"Time spent driving within the configurable green band in milliseconds.","example":5683200,"format":"int64","type":"integer"},"highGradeRoadDrivingDurationMs":{"description":"Time spent driving on high-grade roads in milliseconds.","example":1108800,"format":"int64","type":"integer"},"highTorqueDurationMs":{"description":"Time the vehicle engine torque is greater than 90% in milliseconds. ","example":1684800,"format":"int64","type":"integer"},"idlingDurationMs":{"description":"Time spent idling in milliseconds.","example":921600,"format":"int64","type":"integer"},"overSpeedDurationMs":{"description":"Time spent over-speeding in milliseconds.","example":403200,"format":"int64","type":"integer"},"totalBrakeDurationMs":{"description":"Total breaking time in milliseconds.","example":1022400,"format":"int64","type":"integer"},"totalBrakeEventCount":{"description":"Total number of brake events.","example":85,"format":"int64","type":"integer"},"wearFreeBrakeDurationMs":{"description":"Time spent ware-free breaking in milliseconds.","example":6340800,"format":"int64","type":"integer"}},"required":["driveTimeDurationMs","engineOnDurationMs","idlingDurationMs","totalBrakeDurationMs"],"type":"object"},"DriverEldAdverseWeatherExemptionEnabled":{"default":false,"description":"Flag indicating this driver may use Adverse Weather exemptions in ELD logs.","type":"boolean"},"DriverEldBigDayExemptionEnabled":{"default":false,"description":"Flag indicating this driver may use Big Day exemption in ELD logs.","type":"boolean"},"DriverEldDayStartHour":{"default":0,"description":"`0` indicating midnight-to-midnight ELD driving hours, `12` to indicate noon-to-noon driving hours.","type":"integer"},"DriverEldExempt":{"default":false,"description":"Flag indicating this driver is exempt from the Electronic Logging Mandate.","type":"boolean"},"DriverEldExemptReason":{"description":"Reason that this driver is exempt from the Electronic Logging Mandate (see eldExempt).","example":"Bad driver","type":"string"},"DriverEldPcEnabled":{"default":false,"description":"Flag indicating this driver may select the Personal Conveyance duty status in ELD logs.","type":"boolean"},"DriverEldRuleset":{"description":"An ELD ruleset for a driver.","properties":{"break":{"$ref":"#/components/schemas/DriverEldRulesetRestBreak"},"cycle":{"$ref":"#/components/schemas/DriverEldRulesetCycle"},"jurisdiction":{"$ref":"#/components/schemas/DriverEldRulesetJurisdiction"},"restart":{"$ref":"#/components/schemas/DriverEldRulesetRestart"},"shift":{"$ref":"#/components/schemas/DriverEldRulesetShift"}},"type":"object"},"DriverEldRulesetCreatedAtTime":{"description":"The date and time this driver ELD ruleset was created in RFC 3339 format.","example":"2019-05-18T20:27:35Z","type":"string"},"DriverEldRulesetCycle":{"description":"The cycle of the ELD ruleset applied to this driver. Valid values: `USA 60 hour / 7 day`, `USA 70 hour / 8 day`, `AK 80 hour / 8 day`, `AK 70 hour / 7 day`, `CA 80 hour / 8 day`, `CA 112 hour / 8 day`, `FL 80 hour / 8 day`, `FL 70 hour / 7 day`, `NE 80 hour / 8 day`, `NE 70 hour / 7 day`, `NC 80 hour / 8 day`, `NC 70 hour / 7 day`, `OK 70 hour / 8 day`, `OK 60 hour / 7 day`, `OR 80 hour / 8 day`, `OR 70 hour / 7 day`, `SC 80 hour / 8 day`, `SC 70 hour / 7 day`, `TX 70 hour / 7 day`, `WI 80 hour / 8 day`, `WI 70 hour / 7 day`, `Canada South Cycle 1 (70 hour / 7 day)`, `Canada South Cycle 2 (120 hour / 14 day)`, `Canada North Cycle 1 (80 hour / 7 day)`, `Canada North Cycle 2 (120 hour / 14 day)`.","enum":["USA 60 hour / 7 day","USA 70 hour / 8 day","AK 80 hour / 8 day","AK 70 hour / 7 day","CA 80 hour / 8 day","CA 112 hour / 8 day","FL 80 hour / 8 day","FL 70 hour / 7 day","NE 80 hour / 8 day","NE 70 hour / 7 day","NC 80 hour / 8 day","NC 70 hour / 7 day","OK 70 hour / 8 day","OK 60 hour / 7 day","OR 80 hour / 8 day","OR 70 hour / 7 day","SC 80 hour / 8 day","SC 70 hour / 7 day","TX 70 hour / 7 day","WI 80 hour / 8 day","WI 70 hour / 7 day","Canada South Cycle 1 (70 hour / 7 day)","Canada South Cycle 2 (120 hour / 14 day)","Canada North Cycle 1 (80 hour / 7 day)","Canada North Cycle 2 (120 hour / 14 day)"],"example":"USA 60 hour / 7 day","type":"string"},"DriverEldRulesetDailyOffDuty":{"description":"The daily off duty setting of the ELD ruleset applied to this driver.","enum":["Canada South","Canada North"],"example":"Canada North","type":"string"},"DriverEldRulesetJurisdiction":{"description":"The jurisdiction of the ELD ruleset applied to this driver. These are specified by either `CS` or `CN` for Canada South and Canada North, respectively, or the ISO 3166-2 postal code for the supported state or territory.","example":"AR","type":"string"},"DriverEldRulesetRestBreak":{"description":"The rest break required setting of the ELD ruleset applied to this driver. Valid values: `Property (off-duty/sleeper)`, `Explosives/HazMat (on-duty)`","enum":["Property (off-duty/sleeper)","Explosives/HazMat (on-duty)"],"example":"Property (off-duty/sleeper)","type":"string"},"DriverEldRulesetRestart":{"description":"The restart of the ELD ruleset applied to this driver. Valid values: `None`, `34-hour Restart`, `24-hour Restart`, `36-hour Restart`, `72-hour Restart`.","enum":["None","34-hour Restart","24-hour Restart","36-hour Restart","72-hour Restart"],"example":"Default","type":"string"},"DriverEldRulesetShift":{"description":"The shift of the ELD ruleset applied to this driver. Valid values: `US Interstate Property`, `US Interstate Passenger`, `Texas Intrastate`.","enum":["US Interstate Property","US Interstate Passenger","Texas Intrastate"],"example":"US Interstate Property","type":"string"},"DriverEldRulesetUpdatedAtTime":{"description":"The date and time this driver ELD ruleset was last updated in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"DriverEldRulesetUsShortHaulType":{"description":"The US short haul ruleset type of the ELD ruleset applied to this driver.","enum":["100 Air-Mile (Passenger)","100 Air-Mile (Property)","150 Air-Mile (Non-CDL)"],"example":"100 Air-Mile (Passenger)","type":"string"},"DriverEldRulesets":{"description":"The driver's ELD rulesets and overrides. This is the full set of rulesets that may apply to the driver depending on their activity. If you wish to interface with the specific US driver override, use the usDriverRulesetOverride field.","items":{"$ref":"#/components/schemas/DriverEldRuleset"},"type":"array"},"DriverEldSettings":{"description":"The driver's ELD settings.","properties":{"rulesets":{"$ref":"#/components/schemas/DriverEldRulesets"}},"type":"object"},"DriverEldYmEnabled":{"default":false,"description":"Flag indicating this driver may select the Yard Move duty status in ELD logs.","type":"boolean"},"DriverEmail":{"description":"Driver's email address.","example":"susan.jones@example.com","format":"email","type":"string"},"DriverExternalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"DriverHasDrivingFeaturesHidden":{"description":"A boolean indicating whether the driver has driving-related features hidden in the Driver App, including Vehicle selection, HOS, Routing, Team Driving, Documents, and Trip Logs. Default value is false if omitted. Note: only available to customers of Connected Forms.","example":true,"type":"boolean"},"DriverHasVehicleUnpinningEnabled":{"description":"A boolean indicating whether the driver has vehicle unpinning enabled. Default value is true if omitted.","example":true,"type":"boolean"},"DriverHeavyHaulExemptionToggleEnabled":{"default":false,"description":"Flag indicating this driver may use the Heavy Haul exemption in ELD logs.","type":"boolean"},"DriverHomeTerminalAddress":{"description":"Address of the place of business at which a driver ordinarily reports for work.","example":"1234 Pear St., Scranton, PA 62814","maxLength":255,"type":"string"},"DriverHomeTerminalName":{"description":"Name of the place of business at which a driver ordinarily reports for work.","example":"Acme Inc.","maxLength":255,"type":"string"},"DriverHosSetting":{"description":"Hos settings for a driver.","properties":{"heavyHaulExemptionToggleEnabled":{"$ref":"#/components/schemas/DriverHeavyHaulExemptionToggleEnabled"}},"type":"object"},"DriverId":{"description":"Samsara ID for the driver.","example":"123","type":"string"},"DriverIdCardCode":{"description":"The ID Card Code on the back of the physical card assigned to the driver.  Contact Samsara if you would like to enable this feature.","example":"941767043","type":"string"},"DriverIsDeactivated":{"description":"[DEPRECATED] A boolean indicating whether or not the driver is deactivated. Use `driverActivationStatus` instead.","example":false,"type":"boolean"},"DriverLicenseNumber":{"description":"Driver's state issued license number. The combination of this number and `licenseState` must be unique.","example":"E1234567","type":"string"},"DriverLicenseState":{"description":"Abbreviation of US state, Canadian province, or US territory that issued driver's license.","example":"CA","type":"string"},"DriverLocale":{"description":"Locale override (uncommon). These are specified by ISO 3166-2 country codes for supported locales. Valid values: `us`, `at`, `be`, `ca`, `gb`, `fr`, `de`, `ie`, `it`, `lu`, `mx`, `nl`, `es`, `ch`, `pr`.","enum":["us","at","be","ca","gb","fr","de","ie","it","lu","mx","nl","es","ch","pr"],"type":"string"},"DriverMainOfficeAddress":{"description":"Main office address for a given driver. If this differs from the general organization's settings, the override value is used. ","example":"1234 Pear St., Scranton, PA 62814","maxLength":255,"type":"string"},"DriverMessageReceivedResponseBody":{"description":"Details specific to Driver Message Received.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"}},"type":"object"},"DriverMessageSentResponseBody":{"description":"Details specific to Driver Message Sent.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"}},"type":"object"},"DriverName":{"description":"Driver's name.","example":"Susan Jones","maxLength":255,"minLength":1,"type":"string"},"DriverNotes":{"description":"Notes about the driver.","example":"Also goes by the nickname Furious Fred.","maxLength":4096,"type":"string"},"DriverObjectResponseBody":{"description":"Current driver of the vehicle. Note: this parameter includes all assignment sources, not just static assignments.","properties":{"id":{"description":"ID of the driver.","example":"0987","type":"string"},"name":{"description":"Name of the driver.","example":"Driver Name","type":"string"}},"type":"object"},"DriverOrTagIdsDetailsRequestBody":{"description":"Trigger when driver or tag IDs meet the specified condition.","properties":{"driverIds":{"description":"On which driver IDs to trigger on.","example":["12434","12434","12434","12434"],"items":{"description":"ID of the driver.","example":"12434","type":"string"},"type":"array"},"tagIds":{"description":"On which tag IDs to trigger on.","example":["12434","12434"],"items":{"description":"ID of the tag.","example":"12434","type":"string"},"type":"array"}},"type":"object"},"DriverOrTagIdsDetailsResponseBody":{"description":"Trigger when driver or tag IDs meet the specified condition.","properties":{"driverIds":{"description":"On which driver IDs to trigger on.","example":["12434","12434","12434","12434"],"items":{"description":"ID of the driver.","example":"12434","type":"string"},"type":"array"},"tagIds":{"description":"On which tag IDs to trigger on.","example":["12434","12434","12434"],"items":{"description":"ID of the tag.","example":"12434","type":"string"},"type":"array"}},"type":"object"},"DriverPassword":{"description":"Password that the driver can use to login to the Samsara driver app.","example":"aSecurePassword1234","type":"string"},"DriverPhone":{"description":"Phone number of the driver.","example":"5558234327","maxLength":255,"type":"string"},"DriverProfileImageBase64":{"description":"Base64-encoded profile image data. This field can be used to upload a profile image during driver creation. The image will be processed and stored, and the profileImageUrl will be returned in the response. If Camera ID is enabled, uploaded profile photos are used to train the model to recognize drivers automatically. You can manage this setting in Driver Assignment.","example":"/9j/4AAQSkZJRgABAQEAYABgAAD...","type":"string"},"DriverProfileImageUrl":{"description":"URL to the driver's profile image. This field is returned in responses and can be used to set a profile image from an external URL during driver creation.","example":"https://example.com/images/driver-profile.jpg","maxLength":1024,"type":"string"},"DriverQrCodesCreateDriverQrCodeBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeRequestBody":{"description":"Driver to assign a new QR code to.","properties":{"driverId":{"description":"Unique ID of the driver.","example":494123,"format":"int64","type":"integer"}},"required":["driverId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/QrCodeResponseObjectResponseBody"}},"required":["data"],"type":"object"},"DriverQrCodesCreateDriverQrCodeServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesCreateDriverQrCodeUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeRequestBody":{"description":"Driver to revoke active QR code from.","properties":{"driverId":{"description":"Unique ID of the driver.","example":494123,"format":"int64","type":"integer"}},"required":["driverId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesDeleteDriverQrCodeUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesResponseBody":{"properties":{"data":{"description":"List of driver QR codes.","items":{"$ref":"#/components/schemas/QrCodeResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"DriverQrCodesGetDriversQrCodesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverQrCodesGetDriversQrCodesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRecordedResponseBody":{"description":"Details specific to Driver Recorded.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutRequestBody":{"description":"The driver of a vehicle.","properties":{"driverId":{"description":"ID of the driver.","example":"12434","type":"string"}},"required":["driverId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutResponseBody":{"properties":{"driverName":{"description":"The name of the driver","example":"Michael","type":"string"}},"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverRemoteSignoutPostDriverRemoteSignoutUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverResponse":{"description":"A single driver.","properties":{"data":{"$ref":"#/components/schemas/Driver"}},"type":"object"},"DriverRulesetObjectResponseBody":{"properties":{"break":{"description":"The rest break required setting of the ELD ruleset applied to this driver.  Valid values: `Property (off-duty/sleeper)`, `Explosives/HazMat (on-duty)`","enum":["Property (off-duty/sleeper)","Explosives/HazMat (on-duty)"],"example":"Explosives/HazMat (on-duty)","type":"string"},"cycle":{"description":"The cycle of the ELD ruleset applied to this driver.  Valid values: `USA 60 hour / 7 day`, `USA 70 hour / 8 day`, `AK 80 hour / 8 day`, `AK 70 hour / 7 day`, `CA 80 hour / 8 day`, `CA 112 hour / 8 day`, `FL 80 hour / 8 day`, `FL 70 hour / 7 day`, `NE 80 hour / 8 day`, `NE 70 hour / 7 day`, `NC 80 hour / 8 day`, `NC 70 hour / 7 day`, `OK 70 hour / 8 day`, `OK 60 hour / 7 day`, `OR 80 hour / 8 day`, `OR 70 hour / 7 day`, `SC 80 hour / 8 day`, `SC 70 hour / 7 day`, `TX 70 hour / 7 day`, `WI 80 hour / 8 day`, `WI 70 hour / 7 day`, `Canada South Cycle 1 (70 hour / 7 day)`, `Canada South Cycle 2 (120 hour / 14 day)`, `Canada North Cycle 1 (80 hour / 7 day)`, `Canada North Cycle 2 (120 hour / 14 day)`","enum":["USA 60 hour / 7 day","USA 70 hour / 8 day","AK 80 hour / 8 day","AK 70 hour / 7 day","CA 80 hour / 8 day","CA 112 hour / 8 day","FL 80 hour / 8 day","FL 70 hour / 7 day","NE 80 hour / 8 day","NE 70 hour / 7 day","NC 80 hour / 8 day","NC 70 hour / 7 day","OK 70 hour / 8 day","OK 60 hour / 7 day","OR 80 hour / 8 day","OR 70 hour / 7 day","SC 80 hour / 8 day","SC 70 hour / 7 day","TX 70 hour / 7 day","WI 80 hour / 8 day","WI 70 hour / 7 day","Canada South Cycle 1 (70 hour / 7 day)","Canada South Cycle 2 (120 hour / 14 day)","Canada North Cycle 1 (80 hour / 7 day)","Canada North Cycle 2 (120 hour / 14 day)"],"example":"USA 60 hour / 7 day","type":"string"},"jurisdiction":{"description":"The jurisdiction of the ELD ruleset applied to this driver. These are specified by either `CS` or `CN` for Canada South and Canada North, respectively, or the ISO 3166-2 postal code for the supported state or territory.","example":"AR","type":"string"},"restart":{"description":"The restart of the ELD ruleset applied to this driver.  Valid values: `34-hour Restart`, `24-hour Restart`, `36-hour Restart`, `72-hour Restart`","enum":["34-hour Restart","24-hour Restart","36-hour Restart","72-hour Restart"],"example":"34-hour Restart","type":"string"},"shift":{"description":"The shift of the ELD ruleset applied to this driver.  Valid values: `US Interstate Property`, `US Interstate Passenger`","enum":["US Interstate Property","US Interstate Passenger"],"example":"US Interstate Property","type":"string"}},"type":"object"},"DriverSafetyScoreResponseBody":{"description":"Safety score details for driver.","properties":{"behaviors":{"description":"Aggregated list of behaviors for the driver, one row for each unique type of behavior.","items":{"$ref":"#/components/schemas/SafetyScoreBehaviorObjectResponseBody"},"type":"array"},"driveDistanceMeters":{"description":"Total sum of distance driven by the driver.","example":2207296,"format":"int64","type":"integer"},"driveTimeMilliseconds":{"description":"Total time spent driving by the driver.","example":136997730,"format":"int64","type":"integer"},"driverId":{"description":"ID of the driver.","example":"1234","type":"string"},"driverScore":{"description":"Safety score for the driver. The score is a rounded number between 0-100.","example":92,"format":"int32","type":"integer"},"speeding":{"description":"Aggregated list of speeding events for the driver, one row for each unique type of speeding.","items":{"$ref":"#/components/schemas/SafetyScoreSpeedingObjectResponseBody"},"type":"array"}},"required":["behaviors","driveDistanceMeters","driveTimeMilliseconds","driverId","driverScore","speeding"],"type":"object"},"DriverStaticAssignedVehicle":{"description":"Vehicle assigned to the driver for static vehicle assignments. (uncommon).","properties":{"id":{"description":"ID of the vehicle.","example":"123456789","type":"string"},"name":{"description":"Name of the vehicle.","example":"Midwest Truck #4","type":"string"}},"type":"object"},"DriverStaticAssignedVehicleId":{"description":"ID of vehicle that the driver is permanently assigned to. (uncommon).","example":"456","type":"string"},"DriverTachographActivityData":{"items":{"$ref":"#/components/schemas/TachographActivityListWrapper"},"type":"array"},"DriverTachographActivityResponse":{"description":"List of all driver tachograph activities in a specified time range.","properties":{"data":{"$ref":"#/components/schemas/DriverTachographActivityData"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"DriverTachographCardNumber":{"description":"Driver's assigned tachograph card number (Europe specific)","example":"1000000492436002","type":"string"},"DriverTagIds":{"description":"IDs of tags the driver is associated with.","items":{"example":"147","type":"string"},"type":"array"},"DriverTags":{"description":"The tags this driver belongs to.","items":{"$ref":"#/components/schemas/tagTinyResponse"},"type":"array"},"DriverTimezone":{"default":"America/Los_Angeles","description":"Home terminal timezone, in order to indicate what time zone should be used to calculate the ELD logs. Driver timezones use [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"},"DriverTrailerGroupTag":{"description":"Tag which determines which trailers a driver will see when selecting trailers.","properties":{"id":{"description":"ID of the tag.","example":"3914","type":"string"},"name":{"description":"Name of the tag.","example":"West Coast","type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"}},"type":"object"},"DriverUpdatedAtTime":{"description":"The date and time this driver was last updated in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"DriverUsername":{"description":"Driver's login username into the driver app. The username may not contain spaces or the '@' symbol. The username must be unique.","example":"SusanJones","maxLength":189,"minLength":1,"type":"string"},"DriverVehicleAssignmentV2ObjectResponseBody":{"description":"Object with driver assignment info and associated driver and vehicle info.","properties":{"assignedAtTime":{"description":" An assigned at time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"assignmentType":{"description":"Name of the assigning source for the driver assignment record.  Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign`","enum":["invalid","unknown","HOS","idCard","static","faceId","tachograph","safetyManual","RFID","trailer","external","qrCode","driverApp","voiceSignIn","smartAssign"],"example":"idCard","type":"string"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"endTime":{"description":" An end time in RFC 3339 format. Omitted if not applicable. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isPassenger":{"description":"Boolean indicating whether the driver is a passenger.","example":true,"type":"boolean"},"metadata":{"$ref":"#/components/schemas/DriverAssignmentMetadataTinyObjectResponseBody"},"startTime":{"description":" A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["driver","isPassenger","startTime","vehicle"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentRequestBody":{"description":"Driver Assignment to be created","properties":{"assignedAtTime":{"description":"The time at which the assignment was made in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"driverId":{"description":"ID of the driver. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.","example":"494123","type":"string"},"endTime":{"description":"The end time in RFC 3339 format. Defaults to max-time (meaning it's an ongoing assignment) if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isPassenger":{"description":"Is this driver a passenger? Defaults to false if not provided","example":true,"type":"boolean"},"metadata":{"$ref":"#/components/schemas/PostDriverVehicleAssignmentsV2RequestBodyMetadataRequestBody"},"startTime":{"description":"The start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicleId":{"description":"ID of the vehicle. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the vehicle.","example":"281474978683353","type":"string"}},"required":["driverId","vehicleId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostDriverVehicleAssignmentsV2ResponseBodyResponseBody"}},"required":["data"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsRequestBody":{"description":"Driver assignments to be deleted","properties":{"assignedAtTime":{"description":" Assigned at time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"endTime":{"description":" An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isPassenger":{"description":"Indicates if assigned driver is passenger","example":true,"type":"boolean"},"metadata":{"$ref":"#/components/schemas/DeleteDriverVehicleAssignmentsV2RequestBodyMetadataRequestBody"},"startTime":{"description":" A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicleId":{"description":"ID of the vehicle. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the vehicle.","example":"281474978683353","type":"string"}},"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsResponseBody":{"properties":{"data":{"description":"List of driver assignment objects and their respective vehcile and driver info.","items":{"$ref":"#/components/schemas/DriverVehicleAssignmentV2ObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentRequestBody":{"description":"Updated Driver Assignment details","properties":{"assignedAtTime":{"description":"The time at which the assignment was made in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"driverId":{"description":"ID of the driver. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.","example":"494123","type":"string"},"endTime":{"description":"The end time in RFC 3339 format. To make this an ongoing assignment (ie. an assignment with no end time), provide an endTime value of 'null'. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isPassenger":{"description":"Is this driver a passenger?","example":true,"type":"boolean"},"metadata":{"$ref":"#/components/schemas/PatchDriverVehicleAssignmentsV2RequestBodyMetadataRequestBody"},"startTime":{"description":"The start time in RFC 3339 format that identifies the assignment to update. Required together with vehicleId and driverId, unless metadata.sourceName is provided instead. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicleId":{"description":"ID of the vehicle. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the vehicle.","example":"281474978683353","type":"string"}},"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PatchDriverVehicleAssignmentsV2ResponseBodyResponseBody"}},"required":["data"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverVehicleGroupTag":{"description":"Tag which determines which vehicles a driver will see when selecting vehicles.","properties":{"id":{"description":"ID of the tag.","example":"3914","type":"string"},"name":{"description":"Name of the tag.","example":"East Coast","type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"}},"type":"object"},"DriverVehicleGroupTagId":{"description":"Tag ID which determines which vehicles a driver will see when selecting vehicles.","example":"342417","type":"string"},"DriverWaitingTimeDutyStatusEnabled":{"default":false,"description":"Flag indicating this driver may select waiting time duty status in ELD logs.","type":"boolean"},"DriverWithExternalIdObjectResponseBody":{"description":"A driver object with an id and map of external ids.","properties":{"driverId":{"description":"Samsara ID of the driver.","example":"0987","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"}},"required":["driverId"],"type":"object"},"DriverWithTimezoneEldSettingsObjectResponseBody":{"description":"The driver the log applies to.","properties":{"eldSettings":{"$ref":"#/components/schemas/EldSettingsObjectResponseBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the driver","example":"45646","type":"string"},"name":{"description":"Name of the driver","example":"Driver Bob","type":"string"},"timezone":{"default":"America/Los_Angeles","description":"Home terminal timezone, in order to indicate what time zone should be used to calculate the ELD logs. Driver timezones use [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"}},"required":["id","name"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody":{"description":"Request body for publishing a driver app workflow to drivers.","properties":{"driverIdsToPublish":{"description":"List of driver IDs to publish the workflow to. If a driver already has the workflow, the operation is a no-op for that driver.","example":["12434","12434","12434"],"items":{"description":"ID of the driver.","example":"12434","type":"string"},"type":"array"},"driverIdsToUnpublish":{"description":"List of driver IDs to unpublish the workflow from. If a driver does not have the workflow, the operation is a no-op for that driver.","example":["56789","56789","56789","56789"],"items":{"description":"ID of the driver.","example":"56789","type":"string"},"type":"array"},"workflowId":{"description":"The UUID of the workflow to publish.","example":"a4db8702-79d5-4396-a717-e301d52ecc11","type":"string"}},"required":["workflowId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostDriverWorkflowAssignmentResponseDataObjectResponseBody"}},"required":["data"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowAssignmentsPostDriverWorkflowAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowObjectResponseBody":{"description":"A driver app workflow configured for the organization.","properties":{"id":{"description":"The unique identifier of the workflow. Use this value when referring to the workflow from other APIs (e.g. driver create/update or driver workflow assignment).","example":"a4db8702-79d5-4396-a717-e301d52ecc11","type":"string"},"name":{"description":"The name of the workflow as configured by the organization.","example":"Pre-trip inspection","type":"string"},"workflowType":{"description":"The type of workflow. Indicates which point in the driver's day the workflow is triggered at.  Valid values: `startOfDay`, `endOfDay`, `assetSelection`, `leaveAsset`, `ridershipSafetyCheck`, `stopArrival`","enum":["startOfDay","endOfDay","assetSelection","leaveAsset","ridershipSafetyCheck","stopArrival"],"example":"startOfDay","type":"string"}},"required":["id","name","workflowType"],"type":"object"},"DriverWorkflowsListDriverWorkflowsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsResponseBody":{"properties":{"data":{"description":"The workflows configured for the organization.","items":{"$ref":"#/components/schemas/DriverWorkflowObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DriverWorkflowsListDriverWorkflowsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriverWorkflowsListDriverWorkflowsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenRequestBody":{"description":"Request body for creating a driver auth token. One of `id`, `externalId`, or `username` is required.","properties":{"code":{"description":"Required. Random 12+ character string, used with the auth token to help secure the client from intercepted tokens.","example":"dp[gZc1wAigz4uGa0Hh","minLength":12,"type":"string"},"externalId":{"description":"Optional. External ID of the driver, in the format `key:value` (e.g., `payrollId:ABFS18600`). One of `id`, `externalId`, or `username` is required.","example":"payrollId:ABFS18600","type":"string"},"id":{"description":"Optional. Samsara ID of the driver. One of `id`, `externalId`, or `username` is required.","example":1234,"format":"int64","type":"integer"},"username":{"description":"Optional. Username of the driver. This is the login identifier configured when the driver is created. One of `id`, `externalId`, or `username` is required.","example":"johndoe","type":"string"}},"required":["code"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CreateDriverAuthTokenResponseResponseBody"}},"required":["data"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversAuthTokenCreateDriverAuthTokenUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsResponseBody":{"properties":{"data":{"description":"List of driver and their vehicle assignments.","items":{"$ref":"#/components/schemas/DriversVehicleAssignmentsObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsGetDriversVehicleAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DriversVehicleAssignmentsObjectResponseBody":{"properties":{"driverActivationStatus":{"description":"A value indicating whether the driver is active or deactivated.  Valid values: `active`, `deactivated`","enum":["active","deactivated"],"example":"active","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the driver.","example":"494123","type":"string"},"name":{"description":"Name of the driver.","example":"Joe Driver","type":"string"},"vehicleAssignments":{"description":"List of vehicle assignment objects.","items":{"$ref":"#/components/schemas/VehicleAssignmentObjectResponseBody"},"type":"array"}},"required":["driverActivationStatus","id","name","vehicleAssignments"],"type":"object"},"DutyStatusDurationObjectResponseBody":{"description":"The currently applied duty status durations on the driver's log.","properties":{"activeDurationMs":{"description":"Duration the driver was active for in the log period in milliseconds.","example":38825000,"format":"int64","type":"integer"},"driveDurationMs":{"description":"Duration the driver was driving for in the log period in milliseconds.","example":31970000,"format":"int64","type":"integer"},"offDutyDurationMs":{"description":"Duration the driver was off duty for in the log period in milliseconds.","example":20555000,"format":"int64","type":"integer"},"onDutyDurationMs":{"description":"Duration the driver was on duty for in the log period in milliseconds.","example":5423000,"format":"int64","type":"integer"},"personalConveyanceDurationMs":{"description":"Duration the driver was driving for personal conveyance for in the log period in milliseconds.","example":4358000,"format":"int64","type":"integer"},"sleeperBerthDurationMs":{"description":"Duration the driver was in their sleeper berth for in the log period in milliseconds.","example":27020000,"format":"int64","type":"integer"},"waitingTimeDurationMs":{"description":"Duration the driver was waiting for in the log period in milliseconds.","example":1560000,"format":"int64","type":"integer"},"yardMoveDurationMs":{"description":"Duration the driver was driving for yard moves for in the log period in milliseconds.","example":1432000,"format":"int64","type":"integer"}},"type":"object"},"Dvir":{"description":"Information about a DVIR.","properties":{"authorSignature":{"$ref":"#/components/schemas/DvirAuthorSignature"},"endTime":{"description":"Time when driver signed and completed this DVIR. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"id":{"description":"Unique Samsara ID for the DVIR.","example":"7107471","type":"string"},"licensePlate":{"$ref":"#/components/schemas/DvirLicensePlate"},"location":{"$ref":"#/components/schemas/DvirLocation"},"mechanicNotes":{"$ref":"#/components/schemas/DvirMechanicNotes"},"odometerMeters":{"$ref":"#/components/schemas/DvirOdometerMeters"},"safetyStatus":{"default":"unsafe","description":"The condition of vehicle on which DVIR was done. Valid values: `safe`, `unsafe`, `resolved`.","enum":["safe","unsafe","resolved"],"example":"unsafe","type":"string"},"secondSignature":{"$ref":"#/components/schemas/DvirSecondSignature"},"startTime":{"description":"Time when driver began filling out this DVIR. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"thirdSignature":{"$ref":"#/components/schemas/DvirThirdSignature"},"trailer":{"$ref":"#/components/schemas/DvirTrailer"},"trailerDefects":{"$ref":"#/components/schemas/DvirTrailerDefects"},"trailerName":{"description":"The name of the trailer the DVIR was submitted for.  Only included for tractor+trailer DVIRs.","example":"Midwest Trailer #5","type":"string"},"type":{"default":"unspecified","description":"Inspection type of the DVIR. Valid values: `preTrip`, `postTrip`, `mechanic`, `unspecified`.","enum":["preTrip","postTrip","mechanic","unspecified"],"example":"preTrip","type":"string"},"vehicle":{"$ref":"#/components/schemas/DvirVehicle"},"vehicleDefects":{"$ref":"#/components/schemas/DvirVehicleDefects"}},"required":["id"],"type":"object"},"Dvir2AssignedToPolymorphicUserObjectResponseBody":{"description":"The user or driver assigned to complete the DVIR.","properties":{"name":{"description":"The name of the user or driver assigned to the DVIR.","example":"John Doe","type":"string"},"polymorphicUserId":{"description":"The polymorphic user ID that identifies the user or driver.","example":"driver-12345","type":"string"}},"required":["polymorphicUserId"],"type":"object"},"Dvir2DeviceObjectResponseBody":{"description":"Device details associated with the DVIR.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"licensePlate":{"description":"The license plate of the vehicle.","example":"ABC-1234","type":"string"},"name":{"description":"The name of the device.","example":"Fleet Truck #1","type":"string"},"vehicleVin":{"description":"The VIN of the vehicle.","example":"1HGBH41JXMN109186","type":"string"}},"type":"object"},"Dvir2FormSubmissionObjectResponseBody":{"description":"Base form submission metadata.","properties":{"assignedToPolymorphicUser":{"$ref":"#/components/schemas/Dvir2AssignedToPolymorphicUserObjectResponseBody"},"dueDate":{"description":"Time of when the form submission is due. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"serverUpdatedAt":{"description":"Time when the form submission was last updated on the server. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"uuid":{"description":"The unique UUID of the form submission","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"}},"required":["serverUpdatedAt","uuid"],"type":"object"},"Dvir2RelatedDeviceObjectResponseBody":{"description":"A device (vehicle or trailer) related to the DVIR.","properties":{"assetType":{"description":"The type of asset.  Valid values: `Vehicle`, `Trailer`","enum":["Vehicle","Trailer"],"example":"Vehicle","type":"string"},"device":{"$ref":"#/components/schemas/Dvir2DeviceObjectResponseBody"},"deviceId":{"description":"The ID of the device.","example":494123,"format":"int64","type":"integer"}},"required":["assetType","deviceId"],"type":"object"},"Dvir2SubmissionResponseObjectResponseBody":{"description":"A DVIR description.","properties":{"baseFormSubmission":{"$ref":"#/components/schemas/Dvir2FormSubmissionObjectResponseBody"},"inspectionType":{"description":"Inspection type of the DVIR.  Valid values: `preTrip`, `postTrip`, `mechanic`, `unset`","enum":["preTrip","postTrip","mechanic","unset"],"example":"preTrip","type":"string"},"relatedDevices":{"description":"List of devices (vehicles/trailers) associated with the DVIR.","items":{"$ref":"#/components/schemas/Dvir2RelatedDeviceObjectResponseBody"},"type":"array"},"uuid":{"description":"The unique UUID of the DVIR2 submission","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"}},"required":["inspectionType","relatedDevices","uuid"],"type":"object"},"DvirAuthorSignature":{"allOf":[{"description":"An author signature object which has a signatory mini object with the signed time. Author Signature.","type":"object"},{"$ref":"#/components/schemas/DvirSignature"}]},"DvirDefectGetDefectBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectResponseBody":{"properties":{"comment":{"description":"Comment on the defect.","example":"Engine failure.","type":"string"},"createdAtTime":{"description":"Time when defect was created in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"defectPhotos":{"description":"List of DVIR defect's photos","items":{"$ref":"#/components/schemas/DefectPhotoResponseResponseBody"},"type":"array"},"defectSafetyStatus":{"description":"Driver-designated safety classification for this defect.  Valid values: `safe`, `unsafe`","enum":["safe","unsafe"],"example":"unsafe","type":"string"},"defectTypeId":{"description":"The unique ID of the defect type.","example":"25d6151e-29b5-453e-875a-7c5425332e09","type":"string"},"dvirId":{"description":"The unique ID of the defect's DVIR.","example":"292371177","type":"string"},"id":{"description":"The unique ID of the DVIR defect.","example":"9700544","type":"string"},"isResolved":{"description":"Signifies if this defect is resolved.","example":true,"type":"boolean"},"mechanicNotes":{"description":"The mechanics notes on the defect.","example":"Broken passenger side window.","type":"string"},"resolvedAtTime":{"description":"Time when this defect was resolved in RFC 3339 format. Will not be returned if the defect is unresolved.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedBy":{"$ref":"#/components/schemas/DvirResolvedByObjectResponseBody"},"trailer":{"$ref":"#/components/schemas/DefectTrailerResponseResponseBody"},"updatedAtTime":{"description":"Time when defect was last updated in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/DefectVehicleResponseResponseBody"}},"required":["comment","dvirId","id","isResolved"],"type":"object"},"DvirDefectGetDefectServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectGetDefectUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsResponseBody":{"properties":{"data":{"description":"List of DVIR defects.","items":{"$ref":"#/components/schemas/DefectsResponseDataResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DvirDefectStreamDefectsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectStreamDefectsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesResponseBody":{"properties":{"data":{"description":"List of defect types.","items":{"$ref":"#/components/schemas/DefectTypesResponseDataResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DvirDefectTypeGetDefectTypesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectTypeGetDefectTypesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirDefectsObject_v2022_09_13ResponseBody":{"description":"A description of a DVIR defect","properties":{"comment":{"description":"Comment on the defect.","example":"Air compressor not working","type":"string"},"createdAtTime":{"description":"Time when the defect was created. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"defectSeverity":{"description":"The severity of the DVIR defect.  Valid values: `minor`, `major`, `unspecified`","enum":["minor","major","unspecified"],"example":"minor","type":"string"},"defectType":{"description":"The type of DVIR defect.","example":"Air Compressor","type":"string"},"defectTypeId":{"description":"The ID of the DVIR defect type.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The ID of the defect.","example":"18","type":"string"},"isResolved":{"description":"Signifies if this defect is resolved.","example":false,"type":"boolean"},"mechanicNotes":{"description":"The mechanic notes on this defect.","example":"Extremely large oddly shaped hole in passenger side window.","type":"string"},"mechanicNotesUpdatedAtTime":{"description":"Time when mechanic notes were last updated. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedAtTime":{"description":"Time when this defect was resolved. Will not be returned if the defect is unresolved. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedBy":{"$ref":"#/components/schemas/DvirResolvedByObjectResponseBody"},"trailer":{"$ref":"#/components/schemas/GoaTrailerTinyResponseResponseBody"},"vehicle":{"$ref":"#/components/schemas/VehicleWithGatewayTinyResponseResponseBody"}},"required":["createdAtTime","defectType","id","isResolved"],"type":"object"},"DvirGetDvirBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirResponseBody":{"properties":{"authorSignature":{"$ref":"#/components/schemas/AuthorSignatureObjectResponseBody"},"defectIds":{"description":"IDs of defects registered for the DVIR.","example":["8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","25d6151e-29b5-453e-875a-7c5425332e09"],"items":{"example":"Omnis iste dolorum sint repudiandae et omnis.","type":"string"},"type":"array"},"dvirSubmissionBeginTime":{"description":"Time when driver created DVIR. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"dvirSubmissionTime":{"description":"Time when driver submitted the DVIR. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"formattedAddress":{"example":"350 Rhode Island St Ste. 400S, San Francisco, CA 94103","type":"string"},"id":{"description":"The unique id of the DVIR","example":"12345","type":"string"},"mechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"Replaced headlight on passenger side.","type":"string"},"odometerMeters":{"description":"The odometer reading in meters.","example":91823,"format":"int64","type":"integer"},"safetyStatus":{"description":"The condition of vehicle on which DVIR was done.  Valid values: `unknown`, `safe`, `unsafe`, `resolved`","enum":["unknown","safe","unsafe","resolved"],"example":"unsafe","type":"string"},"secondSignature":{"$ref":"#/components/schemas/AuthorSignatureObjectResponseBody"},"thirdSignature":{"$ref":"#/components/schemas/AuthorSignatureObjectResponseBody"},"trailer":{"$ref":"#/components/schemas/TrailerDvirObjectResponseBody"},"type":{"description":"Inspection type of the DVIR.  Valid values: `preTrip`, `postTrip`, `mechanic`, `unspecified`","enum":["preTrip","postTrip","mechanic","unspecified"],"example":"mechanic","type":"string"},"updatedAtTime":{"description":"Time of any DVIR updates. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/VehicleDvirObjectResponseBody"},"walkaroundPhotos":{"description":"List of walkaround photos","items":{"$ref":"#/components/schemas/WalkaroundPhotoObjectResponseBody"},"type":"array"}},"required":["authorSignature","dvirSubmissionBeginTime","dvirSubmissionTime","id","type","updatedAtTime"],"type":"object"},"DvirGetDvirServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsResponseBody":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DvirStreamResponseDataResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"DvirGetDvirsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirGetDvirsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"DvirLicensePlate":{"description":"The license plate of this vehicle.","example":"XHK1234","maxLength":12,"type":"string"},"DvirLocation":{"description":"Optional string if your jurisdiction requires a location of the DVIR.","example":"350 Rhode Island St Ste. 400S, San Francisco, CA 94103","type":"string"},"DvirMechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"Replaced headlight on passenger side.","type":"string"},"DvirOdometerMeters":{"description":"The odometer reading in meters.","example":14010293,"type":"integer"},"DvirResolvedByObjectResponseBody":{"description":"The person who resolved this defect.","properties":{"id":{"description":"ID of the entity that resolved this defect. If the defect was resolved by a driver, this will be a Samsara Driver ID. If the defect was resolved by a mechanic, this will be the Samsara Dashboard User ID of the mechanic.","example":"8172","type":"string"},"name":{"description":"Name of the person who resolved this defect.","example":"Jane Mechanic","type":"string"},"type":{"description":"Indicates whether this defect was resolved by a driver or a mechanic.  Valid values: `driver`, `mechanic`","enum":["driver","mechanic"],"example":"mechanic","type":"string"}},"required":["id","name","type"],"type":"object"},"DvirResponse":{"description":"The DVIR response.","properties":{"data":{"$ref":"#/components/schemas/Dvir"}},"type":"object"},"DvirSecondSignature":{"allOf":[{"description":"An author signature object which has a signatory mini object with the signed time. Second Signature.","type":"object"},{"$ref":"#/components/schemas/DvirSignature"}]},"DvirSignature":{"description":"DVIR Signure.","properties":{"signatoryUser":{"allOf":[{"description":"The user who signed the DVIR.","type":"object"},{"$ref":"#/components/schemas/userTinyResponse"}],"type":"object"},"signedAtTime":{"description":"The time when the DVIR was signed. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"type":{"default":"driver","description":"Whether the DVIR was submitted by a `driver` or `mechanic`. Valid values: `driver`, `mechanic`.","enum":["driver","mechanic"],"example":"driver","type":"string"}},"type":"object"},"DvirStreamResponseDataResponseBody":{"properties":{"authorSignature":{"$ref":"#/components/schemas/AuthorSignatureObjectResponseBody"},"defectIds":{"description":"IDs of defects registered for the DVIR.","example":["8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","25d6151e-29b5-453e-875a-7c5425332e09"],"items":{"example":"Aliquam explicabo illo blanditiis mollitia qui.","type":"string"},"type":"array"},"dvirSubmissionBeginTime":{"description":"Time when driver created DVIR. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"dvirSubmissionTime":{"description":"Time when driver submitted the DVIR. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"formattedAddress":{"example":"350 Rhode Island St Ste. 400S, San Francisco, CA 94103","type":"string"},"id":{"description":"The unique id of the DVIR","example":"12345","type":"string"},"mechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"Replaced headlight on passenger side.","type":"string"},"odometerMeters":{"description":"The odometer reading in meters.","example":91823,"format":"int64","type":"integer"},"safetyStatus":{"description":"The condition of vehicle on which DVIR was done.  Valid values: `unknown`, `safe`, `unsafe`, `resolved`","enum":["unknown","safe","unsafe","resolved"],"example":"unsafe","type":"string"},"secondSignature":{"$ref":"#/components/schemas/AuthorSignatureObjectResponseBody"},"thirdSignature":{"$ref":"#/components/schemas/AuthorSignatureObjectResponseBody"},"trailer":{"$ref":"#/components/schemas/TrailerDvirObjectResponseBody"},"type":{"description":"Inspection type of the DVIR.  Valid values: `preTrip`, `postTrip`, `mechanic`, `unspecified`","enum":["preTrip","postTrip","mechanic","unspecified"],"example":"mechanic","type":"string"},"updatedAtTime":{"description":"Time of any DVIR updates. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/VehicleDvirObjectResponseBody"},"walkaroundPhotos":{"description":"List of walkaround photos","items":{"$ref":"#/components/schemas/WalkaroundPhotoObjectResponseBody"},"type":"array"}},"required":["authorSignature","dvirSubmissionBeginTime","dvirSubmissionTime","id","type","updatedAtTime"],"type":"object"},"DvirThirdSignature":{"allOf":[{"description":"An author signature object which has a signatory mini object with the signed time. Third Signature.","type":"object"},{"$ref":"#/components/schemas/DvirSignature"}]},"DvirTrailer":{"allOf":[{"description":"The trailer the DVIR was submitted for. Only included for trailer only DVIRs.","type":"object"},{"$ref":"#/components/schemas/trailerTinyResponse"}]},"DvirTrailerDefects":{"description":"Defects registered for the trailer which was part of the DVIR.","items":{"$ref":"#/components/schemas/dvirTrailerDefectsItems"},"type":"array"},"DvirVehicle":{"allOf":[{"description":"The vehicle the DVIR was submitted for. Only included for tractor or tractor+trailer DVIRs.","type":"object"},{"$ref":"#/components/schemas/vehicleTinyResponse"}]},"DvirVehicleDefects":{"description":"Defects registered for the vehicle which was part of the DVIR.","items":{"$ref":"#/components/schemas/dvirTrailerDefectsItems"},"type":"array"},"DvirsListResponse":{"description":"A list of DVIRs and pagination information.","properties":{"data":{"description":"A list of DVIRs.","items":{"$ref":"#/components/schemas/Dvir"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"EldSettingsObjectResponseBody":{"description":"The driver's ELD settings.","properties":{"rulesets":{"description":"The driver's ELD rulesets and overrides.","items":{"$ref":"#/components/schemas/DriverRulesetObjectResponseBody"},"type":"array"}},"type":"object"},"EngineIdleDataResponseBody":{"description":"Details specific to Engine Idle.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"EngineIdleTriggerDetailsObjectRequestBody":{"description":"Details specific to Engine Idle","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"EngineIdleTriggerDetailsObjectResponseBody":{"description":"Details specific to Engine Idle","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesResponseBody":{"properties":{"data":{"description":"A list of engine immobilizer states in ascending order of happenedAtTime.","items":{"$ref":"#/components/schemas/EngineImmobilizerStateResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerGetEngineImmobilizerStatesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerRelayStateResponseBody":{"description":"An engine immobilizer relay state.","properties":{"id":{"description":"The ID of the relay  Valid values: `relay1`, `relay2`","enum":["relay1","relay2"],"example":"relay1","type":"string"},"isOpen":{"description":"Whether the relay is open.","example":false,"type":"boolean"}},"required":["id","isOpen"],"type":"object"},"EngineImmobilizerStateResponseBody":{"description":"An engine immobilizer state.","properties":{"happenedAtTime":{"description":"A UTC time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isConnectedToVehicle":{"description":"Whether the engine immobilizer is connected the vehicle.","example":true,"type":"boolean"},"relayStates":{"description":"A list of states for each relay","items":{"$ref":"#/components/schemas/EngineImmobilizerRelayStateResponseBody"},"type":"array"},"vehicleId":{"description":"The ID of the vehicle that the engine immobilizer is connected to.","example":"1234","type":"string"}},"required":["happenedAtTime","isConnectedToVehicle","relayStates","vehicleId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateRequestBody":{"description":"A request body to update the engine immobilizer state.","properties":{"relayStates":{"description":"A list of relay states. If a relay is omitted, its state won't be updated. If the list is empty, a 400 bad request status code will be returned. If there are multiple states for the same relay, a 400 bad request status code will be returned.","items":{"$ref":"#/components/schemas/UpdateEngineImmobilizerRelayStateRequestBodyRequestBody"},"type":"array"}},"required":["relayStates"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineImmobilizerUpdateEngineImmobilizerStateUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EngineOffDetailsObjectRequestBody":{"description":"Details specific to Engine Off","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"EngineOffDetailsObjectResponseBody":{"description":"Details specific to Engine Off","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"EngineOffResponseBody":{"description":"Details specific to Engine Off.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"EngineOnDetailsObjectRequestBody":{"description":"Details specific to Engine On","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"EngineOnDetailsObjectResponseBody":{"description":"Details specific to Engine On","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"EngineOnResponseBody":{"description":"Details specific to Engine On.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"EngineStatusResponseBody":{"description":"Equipment engine status.","properties":{"Running":{"description":"Boolean value for whether engine is running or not.","example":true,"type":"boolean"},"datetime":{"description":"Date time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsResponseBody":{"properties":{"data":{"description":"An array of AssetStatusChangeEvents","items":{"$ref":"#/components/schemas/EntityListAssetStatusChangeEventsTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesResponseBody":{"properties":{"data":{"description":"An array of AssetStatuses","items":{"$ref":"#/components/schemas/EntityListAssetStatusesTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceListAssetStatusesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusRequestBody":{"description":"Request body for updating a AssetStatus","properties":{"comment":{"description":"Note on the most recent status change. On update, required when the status being entered requires a comment on entry, or the status being left requires a comment on exit.","example":"12345","type":"string"},"statusUuid":{"description":"Stable ID of the status the asset is in. On update, the status to move the asset into.","example":"12345","type":"string"}},"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateAssetStatusTypeResponseBody"}},"required":["data"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityAssetStatusesServiceUpdateAssetStatusUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityCreateMaintenanceSitePlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateMaintenanceSiteTypeResponseBody":{"description":"MaintenanceSite object","properties":{"archivedAt":{"description":"When the maintenance site was archived. Unset when isArchived is false.","example":"2019-06-13T19:08:25Z","type":"string"},"createdAt":{"description":"When the maintenance site was created.","example":"2019-06-13T19:08:25Z","type":"string"},"customAddress":{"$ref":"#/components/schemas/CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteCustomAddressTypeResponseBody"},"description":{"description":"Description of the maintenance site.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the site, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the maintenance site.","example":"12345","type":"string"},"isArchived":{"description":"Whether the site is archived. Archived sites are no longer active but are retained for historical record.","example":true,"type":"boolean"},"name":{"description":"Name of the maintenance site. Org-unique.","example":"12345","type":"string"},"places":{"description":"Places this site is linked to. Mutually exclusive with customAddress. At most one entry is accepted today, though the field is an array to allow for future expansion.","items":{"$ref":"#/components/schemas/EntityCreateMaintenanceSitePlaceRefTypeResponseBody"},"type":"array"},"siteCode":{"description":"Org-unique 3-character code for the site, used to generate inventory batch numbers.","example":"12345","type":"string"},"siteType":{"description":"Type of maintenance site, for example central warehouse, maintenance shop, or yard/onsite.  Valid values: `Unknown`, `CentralWarehouse`, `MaintenanceShop`, `MobileServiceVehicle`, `YardOnsite`, `Consignment`, `Other`","enum":["Unknown","CentralWarehouse","MaintenanceShop","MobileServiceVehicle","YardOnsite","Consignment","Other"],"example":"Unknown","type":"string"},"updatedAt":{"description":"When the maintenance site was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityCreatePartInventoryLocationPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreatePartInventoryLocationPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreatePartInventoryLocationTypeResponseBody":{"description":"PartInventoryLocation object","properties":{"aisle":{"description":"Aisle within the location where the part is stored.","example":"12345","type":"string"},"availableQuantity":{"description":"Quantity available to be consumed at this location (current minus reserved). Read-only; changes only via stock movements.","example":123.45,"format":"double","type":"number"},"bin":{"description":"Bin within the location where the part is stored.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the inventory level record was created.","example":"2019-06-13T19:08:25Z","type":"string"},"currentQuantity":{"description":"Total physical quantity on hand at this location, equal to the available quantity plus the reserved quantity. Settable only when creating the record, to seed initial stock; thereafter it changes only via stock movements.","example":123.45,"format":"double","type":"number"},"id":{"description":"Unique identifier for the part inventory level record. The internal composite key is never exposed; identify the part and location via part ID and place ID.","example":"12345","type":"string"},"isCostTracked":{"description":"Whether costing is tracked at this location. Defaults to false; once enabled it cannot be turned back off.","example":true,"type":"boolean"},"isLowStock":{"description":"Whether the available quantity is greater than zero and at or below the reorder threshold.","example":true,"type":"boolean"},"isNonStock":{"description":"Whether the part is tracked at this location without stock management.","example":true,"type":"boolean"},"maxStockLevel":{"description":"Maximum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"minStockLevel":{"description":"Minimum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"partSamsara":{"$ref":"#/components/schemas/EntityCreatePartInventoryLocationPartDefinitionRefTypeResponseBody"},"place":{"$ref":"#/components/schemas/EntityCreatePartInventoryLocationPlaceRefTypeResponseBody"},"reorderQuantity":{"description":"Quantity to reorder when stock reaches the reorder threshold.","example":123.45,"format":"double","type":"number"},"reorderThreshold":{"description":"Available quantity at or below which the part should be reordered at this location.","example":123.45,"format":"double","type":"number"},"reservedQuantity":{"description":"Quantity reserved against work orders at this location. Read-only; changes only via stock movements.","example":123.45,"format":"double","type":"number"},"row":{"description":"Row within the location where the part is stored.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/CreatePartInventoryLocationEntityPartInventoryLocationMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure that the quantity fields on this record are expressed in. Surfaced here so the unit of all quantity fields is visible in-response.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"},"updatedAtTime":{"description":"Time when the inventory level record was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityCreatePartTypeResponseBody":{"description":"PartDefinition object","properties":{"archivedAtTime":{"description":"Time when the part was archived.","example":"2019-06-13T19:08:25Z","type":"string"},"barcodeString":{"description":"Barcode associated with the part definition.","example":"12345","type":"string"},"barcodeType":{"description":"Type of barcode associated with the part definition.","example":"12345","type":"string"},"category":{"description":"Category of the part definition.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the part was created.","example":"2019-06-13T19:08:25Z","type":"string"},"deletedAtTime":{"description":"Time when the part was deleted.","example":"2019-06-13T19:08:25Z","type":"string"},"description":{"description":"Description of the part definition.","example":"12345","type":"string"},"externalId":{"description":"Customer-supplied external identifier for the part.","example":"12345","type":"string"},"id":{"description":"Unique identifier for the part.","example":"12345","type":"string"},"isInventoryTracked":{"description":"Whether inventory tracking is enabled for this part.","example":true,"type":"boolean"},"manufacturerName":{"description":"Name of the manufacturer for the part definition.","example":"12345","type":"string"},"manufacturerPartNumber":{"description":"Manufacturer-supplied part number.","example":"12345","type":"string"},"name":{"description":"Name of the part definition.","example":"12345","type":"string"},"partNumber":{"description":"Customer-visible part number for the part.","example":"12345","type":"string"},"partStatus":{"description":"Status of the part.  Valid values: `Unknown`, `Active`, `Archived`, `Deleted`","enum":["Unknown","Active","Archived","Deleted"],"example":"Unknown","type":"string"},"preferredVendor":{"$ref":"#/components/schemas/EntityCreatePartVendorRefTypeResponseBody"},"preferredVendorPartNumber":{"description":"The preferred vendor's part number for this part definition.","example":"12345","type":"string"},"subcategory":{"description":"Subcategory of the part definition.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/CreatePartEntityPartDefinitionMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure for the part.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"},"updatedAtTime":{"description":"Time when the part was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vmrsCode":{"description":"VMRS code associated with the part definition.","example":"12345","type":"string"}},"type":"object"},"EntityCreatePartVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreatePurchaseOrderPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreatePurchaseOrderPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreatePurchaseOrderTypeResponseBody":{"description":"PurchaseOrder object","properties":{"createdAtTime":{"description":"RFC3339 time when the purchase order was created.","example":"2019-06-13T19:08:25Z","type":"string"},"creationSource":{"description":"Source that created the purchase order.  Valid values: `Unknown`, `User`, `ScanPackingList`","enum":["Unknown","User","ScanPackingList"],"example":"Unknown","type":"string"},"deliveryAtTime":{"description":"RFC3339 expected delivery time.","example":"2019-06-13T19:08:25Z","type":"string"},"firstReceivedAtTime":{"description":"RFC3339 time when the first item was received.","example":"2019-06-13T19:08:25Z","type":"string"},"fullyReceivedAtTime":{"description":"RFC3339 time when all items were received.","example":"2019-06-13T19:08:25Z","type":"string"},"glCode":{"description":"General ledger code associated with this purchase order.","example":"GL-4000","type":"string"},"id":{"description":"Stable Samsara ID for the purchase order.","example":"12345","type":"string"},"invoiceNumber":{"description":"Vendor invoice number associated with this purchase order.","example":"INV-12345","type":"string"},"mediaItemIds":{"description":"IDs of media items attached to the purchase order.","example":["12345","12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"notes":{"description":"Free-text notes for the purchase order.","example":"Deliver to maintenance shop.","type":"string"},"orderStatus":{"description":"Current customer-visible status of the purchase order.  Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`","enum":["Unknown","Draft","Open","InReview","Approved","Rejected","SentToVendor","PartiallyReceived","FullyReceived","Returned","Cancelled","Closed"],"example":"Draft","type":"string"},"otherCost":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994a15f796TypeResponseBody"},"parts":{"description":"Parts ordered on the purchase order.","items":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartPublicVarianteee5df5b52beTypeResponseBody"},"type":"array"},"poNumber":{"description":"Customer-visible purchase order number.","example":"12345","type":"string"},"poNumberPrefix":{"description":"Optional prefix included in the purchase order number.","example":"PO","type":"string"},"poNumberSuffix":{"description":"Optional suffix included in the purchase order number.","example":"A","type":"string"},"sentAtTime":{"description":"RFC3339 time when the purchase order was sent to its vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"tax":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody"},"taxTotal":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody"},"trackingNumber":{"description":"Shipment tracking number for the purchase order.","example":"1Z999AA10123456784","type":"string"},"updatedAtTime":{"description":"RFC3339 time when the purchase order was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vendor":{"$ref":"#/components/schemas/EntityCreatePurchaseOrderVendorRefPublicVariant07ae4b76c2baTypeResponseBody"}},"type":"object"},"EntityCreatePurchaseOrderVendorRefPublicVariant07ae4b76c2baTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreatePurchaseOrderVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateStockMovementMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"EntityCreateStockMovementMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"EntityCreateStockMovementStockMovementLocationTypeResponseBody":{"description":"StockMovementLocation object","properties":{"aisle":{"description":"Aisle within the location where the part is stored.","example":"12345","type":"string"},"availableQuantity":{"description":"Quantity available to be consumed at this location after the movement.","example":123.45,"format":"double","type":"number"},"bin":{"description":"Bin within the location where the part is stored.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the inventory level record was created.","example":"2019-06-13T19:08:25Z","type":"string"},"currentQuantity":{"description":"Total physical quantity on hand at this location after the movement.","example":123.45,"format":"double","type":"number"},"id":{"description":"Unique identifier for the part inventory level record.","example":"12345","type":"string"},"isCostTracked":{"description":"Whether costing is tracked at this location.","example":true,"type":"boolean"},"isLowStock":{"description":"Whether the available quantity is greater than zero and at or below the reorder threshold.","example":true,"type":"boolean"},"maxStockLevel":{"description":"Maximum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"minStockLevel":{"description":"Minimum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"partSamsara":{"description":"Unique identifier for the part definition these inventory levels are tracked for.","example":"12345","type":"string"},"place":{"description":"Unique identifier for the place linked to the maintenance site holding this inventory.","example":"12345","type":"string"},"reorderQuantity":{"description":"Quantity to reorder when stock reaches the reorder threshold.","example":123.45,"format":"double","type":"number"},"reorderThreshold":{"description":"Available quantity at or below which the part should be reordered at this location.","example":123.45,"format":"double","type":"number"},"reservedQuantity":{"description":"Quantity reserved against work orders at this location.","example":123.45,"format":"double","type":"number"},"row":{"description":"Row within the location where the part is stored.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/EntityCreateStockMovementMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure that the quantity fields on this record are expressed in.","example":"12345","type":"string"},"updatedAtTime":{"description":"Time when the inventory level record was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityCreateVendorLocationTypeResponseBody":{"description":"vendor location object","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorAssetAttributeSelectionTypeResponseBody"},"type":"array"},"contacts":{"description":"People to contact at the vendor.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorContactTypeResponseBody"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorHourlyMoneyTypeResponseBody"},"emailAddresses":{"description":"Email addresses for the vendor.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"externalId":{"description":"External identifier for the vendor from an external system.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the vendor, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Internal unique identifier for the vendor.","example":"12345","type":"string"},"isMobile":{"description":"Whether this vendor provides mobile service. When unset, the profile or system default applies.","example":true,"type":"boolean"},"isPreferred":{"description":"Whether this vendor location is preferred. When unset, the profile or system default applies.","example":true,"type":"boolean"},"parentVendorId":{"description":"Parent vendor UUID. Null removes membership while preserving explicit overrides.","example":"12345","type":"string"},"payeeId":{"description":"Free-text AP/ERP payee identifier for the vendor. Not a reference to a Samsara entity.","example":"12345","type":"string"},"phoneNumbers":{"description":"Phone numbers for the vendor.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"placeId":{"$ref":"#/components/schemas/EntityCreateVendorPlaceRefTypeResponseBody"},"servicesProvided":{"description":"Description of services provided by the vendor.","example":"12345","type":"string"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"vendorId":{"description":"User-defined identifier for the vendor.","example":"12345","type":"string"}},"type":"object"},"EntityCreateVendorPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateVendorTypeResponseBody":{"description":"vendor object","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody"},"type":"array"},"createdAtTime":{"description":"Time when the vendor profile was created.","example":"2019-06-13T19:08:25Z","type":"string"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorHourlyMoneyTypeResponseBody"},"externalIds":{"description":"External identifiers belonging to this parent vendor.","items":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorGroupExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Unique identifier for the vendor profile. Leave blank to create a profile.","example":"12345","type":"string"},"isMobile":{"description":"Whether vendor locations inherit mobile service as their default.","example":true,"type":"boolean"},"isPreferred":{"description":"Default preferred status inherited by vendor locations.","example":true,"type":"boolean"},"name":{"description":"Name of the vendor profile.","example":"12345","type":"string"},"primaryCorporateContact":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"updatedAtTime":{"description":"Time when the vendor profile was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityCreateWarrantyClaimAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateWarrantyClaimTypeResponseBody":{"description":"WarrantyClaim object","properties":{"asset":{"$ref":"#/components/schemas/EntityCreateWarrantyClaimAssetRefTypeResponseBody"},"cause":{"description":"The cause of the 3 Cs - the root cause found.","example":"12345","type":"string"},"claimEngineHours":{"description":"Engine hours at the time of repair.","example":12345,"format":"int64","type":"integer"},"claimOdometerMeters":{"description":"Asset odometer reading at the time of repair. Measured in meters.","example":12345,"format":"int64","type":"integer"},"claimStatus":{"description":"Current status of the claim.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"componentInstanceIds":{"description":"IDs of asset component instances covered by this claim.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"concern":{"description":"The concern of the 3 Cs - what was reported.","example":"12345","type":"string"},"correction":{"description":"The correction of the 3 Cs - the work performed.","example":"12345","type":"string"},"createdAtTime":{"description":"When the claim was created.","example":"2019-06-13T19:08:25Z","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the warranty claim.","example":"12345","type":"string"},"labor":{"description":"Labor being claimed.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody"},"type":"array"},"linkedWarranty":{"$ref":"#/components/schemas/EntityCreateWarrantyClaimWarrantyRefTypeResponseBody"},"linkedWorkOrderIds":{"description":"IDs of the work orders associated with this claim.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"mediaItemIds":{"description":"IDs of media items attached to the claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"otherCost":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"parts":{"description":"Parts being claimed.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartTypeResponseBody"},"type":"array"},"reimbursedAtTime":{"description":"When reimbursement was received.","example":"2019-06-13T19:08:25Z","type":"string"},"reimbursements":{"description":"Reimbursement amounts, optionally linked to a work order.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimClaimReimbursementTypeResponseBody"},"type":"array"},"repairCompletedAtTime":{"description":"When the repair was completed.","example":"2019-06-13T19:08:25Z","type":"string"},"resolutionAtTime":{"description":"When the claim was resolved.","example":"2019-06-13T19:08:25Z","type":"string"},"statusHistory":{"description":"Audit trail of status changes. Server-managed and read-only.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody"},"type":"array"},"submittedAtTime":{"description":"When the claim was submitted to the vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"updatedAtTime":{"description":"When the claim was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"warrantyVendor":{"$ref":"#/components/schemas/EntityCreateWarrantyClaimVendorRefTypeResponseBody"}},"type":"object"},"EntityCreateWarrantyClaimVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateWarrantyClaimWarrantyRefTypeResponseBody":{"description":"Reference to a Warranty","properties":{"id":{"description":"The ID of the referenced Warranty.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateWarrantyTypeResponseBody":{"description":"Warranty object","properties":{"baseCoverage":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageTypeResponseBody"},"coverages":{"description":"Additional coverage groups defined on this warranty.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageTypeResponseBody"},"type":"array"},"createdAtTime":{"description":"When the warranty was created.","example":"2019-06-13T19:08:25Z","type":"string"},"description":{"description":"Description of the warranty.","example":"12345","type":"string"},"durationDays":{"description":"Warranty length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Warranty length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Warranty length by engine hours since the warranty start.","example":12345,"format":"int64","type":"integer"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the warranty.","example":"12345","type":"string"},"name":{"description":"Name of the warranty.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Warranty length by distance travelled since the warranty start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"updatedAtTime":{"description":"When the warranty was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vendor":{"$ref":"#/components/schemas/EntityCreateWarrantyVendorRefTypeResponseBody"},"warrantyType":{"description":"Type of warranty, for example manufacturer, extended, other, or unknown.  Valid values: `unknown`, `manufacturer`, `extended`, `other`","enum":["unknown","manufacturer","extended","other"],"example":"unknown","type":"string"}},"type":"object"},"EntityCreateWarrantyVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityCreateWatchpointTypeResponseBody":{"description":"Watchpoint object","properties":{"bearingRange":{"$ref":"#/components/schemas/WatchpointBearingRangeTypeResponseBody"},"createdAtTime":{"description":"Time when the watchpoint resource was created.","example":"2026-07-15T10:00:00Z","type":"string"},"customDetections":{"description":"Configured detections. Omitted when none are configured.","items":{"$ref":"#/components/schemas/WatchpointCustomDetectionResponseTypeResponseBody"},"type":"array"},"id":{"description":"Unique identifier for the watchpoint.","example":"2eb0e68c-d728-4d2f-b9a0-8bc6ded86422","type":"string"},"lastObservationTime":{"description":"Time when the most recent observation was collected, or null when unavailable.","example":"2019-06-13T19:08:25Z","nullable":true,"type":"string"},"location":{"$ref":"#/components/schemas/WatchpointLatLngTypeResponseBody"},"mode":{"description":"Recurrence frequency for observations.  Valid values: `unknown`, `justOnce`, `daily`, `weekly`, `monthly`, `every15Minutes`, `hourly`","enum":["unknown","justOnce","daily","weekly","monthly","every15Minutes","hourly"],"example":"daily","type":"string"},"monitoringEndTime":{"description":"Server-derived end of the current monitoring window.","example":"2026-08-14T10:00:00Z","type":"string"},"monitoringStartTime":{"description":"Start of the current monitoring run.","example":"2026-07-15T10:00:00Z","type":"string"},"name":{"description":"Customer-provided name for the watchpoint, or null when unavailable.","example":"Market Street watchpoint","maxLength":80,"nullable":true,"type":"string"},"note":{"description":"Customer-provided note about the watchpoint, or null when unavailable.","example":"Monitor the intersection for road defects.","maxLength":280,"nullable":true,"type":"string"},"observationCount":{"description":"Number of observations collected for the watchpoint.","example":1,"format":"int64","type":"integer"},"observationType":{"description":"Type of condition to observe at this watchpoint.  Valid values: `unknown`, `roadDefect`, `utilityCut`, `guardrail`, `streetlight`, `signage`, `stormDrain`, `graffiti`, `vegetation`, `blight`, `illegalDumping`, `littering`, `highVegetationWeeds`, `fire`, `other`","enum":["unknown","roadDefect","utilityCut","guardrail","streetlight","signage","stormDrain","graffiti","vegetation","blight","illegalDumping","littering","highVegetationWeeds","fire","other"],"example":"roadDefect","type":"string"},"samsaraDashboardUrl":{"description":"Organization-scoped URL that opens this Watchpoint in the Samsara dashboard.","example":"https://cloud.samsara.com/o/123456/fleet/ground-intelligence?tab=monitors&monitorId=2eb0e68c-d728-4d2f-b9a0-8bc6ded86422","type":"string"},"status":{"description":"Current lifecycle status of the watchpoint.  Valid values: `unknown`, `active`, `completed`","enum":["unknown","active","completed"],"example":"active","type":"string"},"updatedAtTime":{"description":"Time when the public watchpoint projection was most recently updated.","example":"2026-07-15T10:00:01Z","type":"string"}},"required":["createdAtTime","id","lastObservationTime","location","mode","monitoringEndTime","monitoringStartTime","name","note","observationCount","observationType","samsaraDashboardUrl","status","updatedAtTime"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesResponseBody":{"properties":{"data":{"description":"An array of GroundIntelligenceIssues","items":{"$ref":"#/components/schemas/EntityListIssuesTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceListIssuesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueRequestBody":{"description":"Request body for updating a Ground Intelligence issue","properties":{"dismissalNote":{"description":"Optional note about the dismissal. Set to null to clear.","example":"Repair is already scheduled.","maxLength":280,"nullable":true,"type":"string"},"dismissalReason":{"description":"Reason for dismissing the issue. Required when status is dismissed.  Valid values: `notMyJurisdiction`, `knownIssue`, `duplicate`, `inaccurateDetection`, `other`","enum":["notMyJurisdiction","knownIssue","duplicate","inaccurateDetection","other"],"example":"knownIssue","type":"string"},"status":{"description":"Customer-facing review status for the issue.  Valid values: `needsReview`, `reviewed`, `resolved`, `dismissed`","enum":["needsReview","reviewed","resolved","dismissed"],"example":"dismissed","type":"string"},"type":{"description":"Customer-facing road-condition type for the issue.  Valid values: `pothole`, `roadCracking`, `patchedPothole`, `transverseCrack`, `longitudinalCrack`, `alligatorCrack`, `utilityCut`, `steelPlate`, `repavingNeeded`","enum":["pothole","roadCracking","patchedPothole","transverseCrack","longitudinalCrack","alligatorCrack","utilityCut","steelPlate","repavingNeeded"],"example":"pothole","type":"string"}},"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityListIssuesTypeResponseBody"}},"required":["data"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsResponseBody":{"properties":{"data":{"description":"An array of InventoryTransactions","items":{"$ref":"#/components/schemas/EntityListPartTransactionsTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityInventoryTransactionsServiceListPartTransactionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityListAssetStatusChangeEventsAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListAssetStatusChangeEventsTypeResponseBody":{"description":"AssetStatusChangeEvent object","properties":{"actor":{"$ref":"#/components/schemas/ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeEventActorTypeResponseBody"},"asset":{"$ref":"#/components/schemas/EntityListAssetStatusChangeEventsAssetRefTypeResponseBody"},"changeUuid":{"description":"Unique ID of this status change.","example":"12345","type":"string"},"comment":{"description":"Note recorded with the change.","example":"12345","type":"string"},"isImported":{"description":"Whether the entry was backfilled from a historical import rather than recorded live.","example":true,"type":"boolean"},"newStatus":{"$ref":"#/components/schemas/ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeEventStatusTypeResponseBody"},"occurredAtTime":{"description":"When the status change happened.","example":"2019-06-13T19:08:25Z","type":"string"},"previousStatus":{"$ref":"#/components/schemas/ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeEventStatusTypeResponseBody"},"source":{"description":"Where the change was made from.  Valid values: `unknown`, `dashboard`, `csv`, `automation`, `api`, `mobile`, `shim`, `backfill`, `system`, `csvHistoricalImport`","enum":["unknown","dashboard","csv","automation","api","mobile","shim","backfill","system","csvHistoricalImport"],"example":"unknown","type":"string"},"sourceEntity":{"$ref":"#/components/schemas/ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeSourceEntityTypeResponseBody"}},"type":"object"},"EntityListAssetStatusesAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListAssetStatusesTypeResponseBody":{"description":"AssetStatus object","properties":{"asset":{"$ref":"#/components/schemas/EntityListAssetStatusesAssetRefTypeResponseBody"},"comment":{"description":"Note on the most recent status change. On update, required when the status being entered requires a comment on entry, or the status being left requires a comment on exit.","example":"12345","type":"string"},"lastChangedBy":{"$ref":"#/components/schemas/ListAssetStatusesEntityAssetStatusAssetStatusActorTypeResponseBody"},"status":{"$ref":"#/components/schemas/ListAssetStatusesEntityAssetStatusAssetStatusRefTypeResponseBody"},"statusSinceTime":{"description":"When the asset entered its current status.","example":"2019-06-13T19:08:25Z","type":"string"},"statusUuid":{"description":"Stable ID of the status the asset is in. On update, the status to move the asset into.","example":"12345","type":"string"}},"type":"object"},"EntityListIssuesTypeResponseBody":{"description":"GroundIntelligenceIssue object","properties":{"createdAtTime":{"description":"Time when this issue record was created.","example":"2026-08-06T08:00:00Z","type":"string"},"dashboardUrl":{"description":"URL to view this issue in the Samsara dashboard.","example":"https://cloud.samsara.com/o/123456/ground-intelligence/issues/5267696d-a9f9-4031-bdf4-6fbc9ec64e57","type":"string"},"firstSeenTime":{"description":"Time when this issue was first observed.","example":"2026-08-06T08:00:00Z","type":"string"},"id":{"description":"Unique identifier for the issue.","example":"5267696d-a9f9-4031-bdf4-6fbc9ec64e57","type":"string"},"lastSeenTime":{"description":"Time when this issue was most recently observed.","example":"2026-08-06T09:00:00Z","type":"string"},"location":{"$ref":"#/components/schemas/ListIssuesEntityGroundIntelligenceIssueGroundIntelligenceIssueLocationTypeResponseBody"},"observationCount":{"description":"Number of evidence records aggregated into this issue.","example":3,"format":"int64","type":"integer"},"roadSegment":{"$ref":"#/components/schemas/ListIssuesEntityGroundIntelligenceIssueGroundIntelligenceIssueRoadSegmentTypeResponseBody"},"severity":{"description":"Customer-facing severity level for this issue.","example":"high","type":"string"},"status":{"description":"Current customer-facing review status of this issue.","example":"dismissed","type":"string"},"type":{"description":"Customer-facing type for this issue.  Valid values: `unknown`, `pothole`, `roadCracking`, `patchedPothole`, `transverseCrack`, `longitudinalCrack`, `alligatorCrack`, `utilityCut`, `steelPlate`, `repavingNeeded`","enum":["unknown","pothole","roadCracking","patchedPothole","transverseCrack","longitudinalCrack","alligatorCrack","utilityCut","steelPlate","repavingNeeded"],"example":"pothole","type":"string"},"updatedAtTime":{"description":"Time when this issue record was most recently updated.","example":"2026-08-06T10:00:00Z","type":"string"}},"type":"object"},"EntityListMaintenanceSitesPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListMaintenanceSitesTypeResponseBody":{"description":"MaintenanceSite object","properties":{"archivedAt":{"description":"When the maintenance site was archived. Unset when isArchived is false.","example":"2019-06-13T19:08:25Z","type":"string"},"createdAt":{"description":"When the maintenance site was created.","example":"2019-06-13T19:08:25Z","type":"string"},"customAddress":{"$ref":"#/components/schemas/ListMaintenanceSitesEntityMaintenanceSiteMaintenanceSiteCustomAddressTypeResponseBody"},"description":{"description":"Description of the maintenance site.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the site, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/ListMaintenanceSitesEntityMaintenanceSiteMaintenanceSiteExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the maintenance site.","example":"12345","type":"string"},"isArchived":{"description":"Whether the site is archived. Archived sites are no longer active but are retained for historical record.","example":true,"type":"boolean"},"name":{"description":"Name of the maintenance site. Org-unique.","example":"12345","type":"string"},"places":{"description":"Places this site is linked to. Mutually exclusive with customAddress. At most one entry is accepted today, though the field is an array to allow for future expansion.","items":{"$ref":"#/components/schemas/EntityListMaintenanceSitesPlaceRefTypeResponseBody"},"type":"array"},"siteCode":{"description":"Org-unique 3-character code for the site, used to generate inventory batch numbers.","example":"12345","type":"string"},"siteType":{"description":"Type of maintenance site, for example central warehouse, maintenance shop, or yard/onsite.  Valid values: `Unknown`, `CentralWarehouse`, `MaintenanceShop`, `MobileServiceVehicle`, `YardOnsite`, `Consignment`, `Other`","enum":["Unknown","CentralWarehouse","MaintenanceShop","MobileServiceVehicle","YardOnsite","Consignment","Other"],"example":"Unknown","type":"string"},"updatedAt":{"description":"When the maintenance site was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityListPartInventoryPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPartInventoryPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPartInventoryTypeResponseBody":{"description":"PartInventoryLocation object","properties":{"aisle":{"description":"Aisle within the location where the part is stored.","example":"12345","type":"string"},"availableQuantity":{"description":"Quantity available to be consumed at this location (current minus reserved). Read-only; changes only via stock movements.","example":123.45,"format":"double","type":"number"},"bin":{"description":"Bin within the location where the part is stored.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the inventory level record was created.","example":"2019-06-13T19:08:25Z","type":"string"},"currentQuantity":{"description":"Total physical quantity on hand at this location, equal to the available quantity plus the reserved quantity. Settable only when creating the record, to seed initial stock; thereafter it changes only via stock movements.","example":123.45,"format":"double","type":"number"},"isCostTracked":{"description":"Whether costing is tracked at this location. Defaults to false; once enabled it cannot be turned back off.","example":true,"type":"boolean"},"isLowStock":{"description":"Whether the available quantity is greater than zero and at or below the reorder threshold.","example":true,"type":"boolean"},"isNonStock":{"description":"Whether the part is tracked at this location without stock management.","example":true,"type":"boolean"},"maxStockLevel":{"description":"Maximum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"minStockLevel":{"description":"Minimum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"partSamsara":{"$ref":"#/components/schemas/EntityListPartInventoryPartDefinitionRefTypeResponseBody"},"place":{"$ref":"#/components/schemas/EntityListPartInventoryPlaceRefTypeResponseBody"},"reorderQuantity":{"description":"Quantity to reorder when stock reaches the reorder threshold.","example":123.45,"format":"double","type":"number"},"reorderThreshold":{"description":"Available quantity at or below which the part should be reordered at this location.","example":123.45,"format":"double","type":"number"},"reservedQuantity":{"description":"Quantity reserved against work orders at this location. Read-only; changes only via stock movements.","example":123.45,"format":"double","type":"number"},"row":{"description":"Row within the location where the part is stored.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/ListPartInventoryEntityPartInventoryLocationMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure that the quantity fields on this record are expressed in. Surfaced here so the unit of all quantity fields is visible in-response.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"},"updatedAtTime":{"description":"Time when the inventory level record was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityListPartTransactionsPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPartTransactionsTypeResponseBody":{"description":"InventoryTransaction object","properties":{"batch":{"description":"Batch or lot identifier, when the part is batch-tracked.","example":"12345","type":"string"},"createdAtTime":{"description":"Server ingestion timestamp. Not used for filtering or ordering.","example":"2019-06-13T19:08:25Z","type":"string"},"createdByUserId":{"description":"ID of the user who performed the transaction. Absent on work-order-backed and requisition-backed types.","example":"12345","type":"string"},"fromPlaceId":{"description":"Transfer only — source maintenance site (place ID).","example":"12345","type":"string"},"happenedAtTime":{"description":"User-supplied time the transaction occurred. The window filter and result ordering operate on this field.","example":"2019-06-13T19:08:25Z","type":"string"},"id":{"description":"Stable unique identifier for the inventory transaction.","example":"12345","type":"string"},"notes":{"description":"Free-text notes. Present on scrap and adjust transactions.","example":"12345","type":"string"},"part":{"$ref":"#/components/schemas/EntityListPartTransactionsPartDefinitionRefTypeResponseBody"},"placeId":{"description":"Maintenance site (linked Address/place ID) where this transaction occurred. For transfers, indicates which side of the transfer this record represents.","example":"12345","type":"string"},"purchaseOrder":{"description":"Purchase order reference. Present on receive transactions.","example":"12345","type":"string"},"quantity":{"description":"Signed net effect on inventory in the part's unit of measure. Positive adds stock; negative removes it.","example":123.45,"format":"double","type":"number"},"resultingQuantity":{"description":"Absolute on-hand quantity at the place after this transaction was applied.","example":123.45,"format":"double","type":"number"},"toPlaceId":{"description":"Transfer only — destination maintenance site (place ID).","example":"12345","type":"string"},"transactionType":{"description":"The kind of inventory movement this record represents.  Valid values: `Unknown`, `Receive`, `Transfer`, `Scrap`, `Adjust`, `Reserve`, `Issue`, `Release`, `Return`","enum":["Unknown","Receive","Transfer","Scrap","Adjust","Reserve","Issue","Release","Return"],"example":"Unknown","type":"string"},"unitCost":{"description":"Per-unit cost recorded with the transaction. Present on receive transactions.","example":123.45,"format":"double","type":"number"},"vendorId":{"description":"Vendor the part was received from. Present on receive transactions. Resolvable via GET /fleet/maintenance/vendors.","example":"12345","type":"string"},"workOrder":{"$ref":"#/components/schemas/EntityListPartTransactionsWorkOrderRefTypeResponseBody"}},"type":"object"},"EntityListPartTransactionsWorkOrderRefTypeResponseBody":{"description":"Reference to a WorkOrder","properties":{"id":{"description":"The ID of the referenced WorkOrder.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPartsTypeResponseBody":{"description":"PartDefinition object","properties":{"archivedAtTime":{"description":"Time when the part was archived.","example":"2019-06-13T19:08:25Z","type":"string"},"barcodeString":{"description":"Barcode associated with the part definition.","example":"12345","type":"string"},"barcodeType":{"description":"Type of barcode associated with the part definition.","example":"12345","type":"string"},"category":{"description":"Category of the part definition.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the part was created.","example":"2019-06-13T19:08:25Z","type":"string"},"deletedAtTime":{"description":"Time when the part was deleted.","example":"2019-06-13T19:08:25Z","type":"string"},"description":{"description":"Description of the part definition.","example":"12345","type":"string"},"externalId":{"description":"Customer-supplied external identifier for the part.","example":"12345","type":"string"},"id":{"description":"Unique identifier for the part.","example":"12345","type":"string"},"isInventoryTracked":{"description":"Whether inventory tracking is enabled for this part.","example":true,"type":"boolean"},"manufacturerName":{"description":"Name of the manufacturer for the part definition.","example":"12345","type":"string"},"manufacturerPartNumber":{"description":"Manufacturer-supplied part number.","example":"12345","type":"string"},"name":{"description":"Name of the part definition.","example":"12345","type":"string"},"partNumber":{"description":"Customer-visible part number for the part.","example":"12345","type":"string"},"partStatus":{"description":"Status of the part.  Valid values: `Unknown`, `Active`, `Archived`, `Deleted`","enum":["Unknown","Active","Archived","Deleted"],"example":"Unknown","type":"string"},"preferredVendor":{"$ref":"#/components/schemas/EntityListPartsVendorRefTypeResponseBody"},"preferredVendorPartNumber":{"description":"The preferred vendor's part number for this part definition.","example":"12345","type":"string"},"subcategory":{"description":"Subcategory of the part definition.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/ListPartsEntityPartDefinitionMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure for the part.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"},"updatedAtTime":{"description":"Time when the part was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vmrsCode":{"description":"VMRS code associated with the part definition.","example":"12345","type":"string"}},"type":"object"},"EntityListPartsVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPreventiveMaintenanceSchedulesPreventativeMaintenanceScheduleRefTypeResponseBody":{"description":"Reference to a PreventativeMaintenanceSchedule","properties":{"id":{"description":"The ID of the referenced PreventativeMaintenanceSchedule.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPreventiveMaintenanceSchedulesTypeResponseBody":{"description":"PreventativeMaintenanceSchedule object","properties":{"dateIntervalMs":{"description":"Date interval for the preventive maintenance schedule if applicable. Measured in milliseconds.","example":7776000000,"format":"int64","type":"integer"},"description":{"description":"Description of the preventive maintenance schedule.","example":"Replace engine oil and oil filter, then inspect belts and hoses.","type":"string"},"distanceInterval":{"description":"Distance interval for the preventive maintenance schedule if applicable. Measured in meters.","example":8046720,"format":"int64","type":"integer"},"engineHourInterval":{"description":"Engine hour interval for the preventive maintenance schedule if applicable.","example":250,"format":"int64","type":"integer"},"id":{"description":"Samsara ID for the preventive maintenance schedule.","example":"281474976710656","type":"string"},"linkedSchedules":{"description":"IDs of other preventive maintenance schedules linked to this schedule.","items":{"$ref":"#/components/schemas/EntityListPreventiveMaintenanceSchedulesPreventativeMaintenanceScheduleRefTypeResponseBody"},"type":"array"},"title":{"description":"Title of the preventive maintenance schedule.","example":"Engine oil and filter change","type":"string"},"workOrderTemplateId":{"description":"ID of the work order template associated with this schedule.","example":"281474976710656","type":"string"}},"type":"object"},"EntityListPurchaseOrdersPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPurchaseOrdersPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPurchaseOrdersTypeResponseBody":{"description":"PurchaseOrder object","properties":{"createdAtTime":{"description":"RFC3339 time when the purchase order was created.","example":"2019-06-13T19:08:25Z","type":"string"},"creationSource":{"description":"Source that created the purchase order.  Valid values: `Unknown`, `User`, `ScanPackingList`","enum":["Unknown","User","ScanPackingList"],"example":"Unknown","type":"string"},"deliveryAtTime":{"description":"RFC3339 expected delivery time.","example":"2019-06-13T19:08:25Z","type":"string"},"firstReceivedAtTime":{"description":"RFC3339 time when the first item was received.","example":"2019-06-13T19:08:25Z","type":"string"},"fullyReceivedAtTime":{"description":"RFC3339 time when all items were received.","example":"2019-06-13T19:08:25Z","type":"string"},"glCode":{"description":"General ledger code associated with this purchase order.","example":"12345","type":"string"},"id":{"description":"Stable Samsara ID for the purchase order.","example":"281474976710656","type":"string"},"invoiceNumber":{"description":"Vendor invoice number associated with this purchase order.","example":"12345","type":"string"},"mediaItemIds":{"description":"IDs of media items attached to the purchase order.","example":["12345","12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"notes":{"description":"Free-text notes for the purchase order.","example":"12345","type":"string"},"orderStatus":{"description":"Current customer-visible status of the purchase order.  Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`","enum":["Unknown","Draft","Open","InReview","Approved","Rejected","SentToVendor","PartiallyReceived","FullyReceived","Returned","Cancelled","Closed"],"example":"Unknown","type":"string"},"otherCost":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderMoneyTypeResponseBody"},"parts":{"description":"Parts ordered on the purchase order.","items":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderPurchaseOrderPartTypeResponseBody"},"type":"array"},"poNumber":{"description":"Customer-visible purchase order number.","example":"PO-1001","type":"string"},"poNumberPrefix":{"description":"Optional prefix included in the purchase order number.","example":"12345","type":"string"},"poNumberSuffix":{"description":"Optional suffix included in the purchase order number.","example":"12345","type":"string"},"sentAtTime":{"description":"RFC3339 time when the purchase order was sent to its vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"tax":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderTaxAdjustmentTypeResponseBody"},"taxTotal":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderMoneyTypeResponseBody"},"trackingNumber":{"description":"Shipment tracking number for the purchase order.","example":"12345","type":"string"},"updatedAtTime":{"description":"RFC3339 time when the purchase order was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vendor":{"$ref":"#/components/schemas/EntityListPurchaseOrdersVendorRefPublicVariant07ae4b76c2baTypeResponseBody"}},"type":"object"},"EntityListPurchaseOrdersVendorRefPublicVariant07ae4b76c2baTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListPurchaseOrdersVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListTachographLiveDataTypeResponseBody":{"description":"TachographLiveData object","properties":{"cumulatedDrivingTimePreviousAndCurrentWeekMinute":{"description":"The driver's cumulated driving time across the previous and current week, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"cumulativeBreakTimeMinute":{"description":"The driver's cumulative break time, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"currentDailyDrivingTimeMinute":{"description":"The driver's current daily driving time, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"currentDurationOfSelectedActivityMinute":{"description":"The duration of the driver's currently selected activity, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"currentWeeklyDrivingTimeMinute":{"description":"The driver's current weekly driving time, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"driverId":{"description":"Samsara ID for the driver.","example":"12345","type":"string"},"durationOfNextBreakRestMinute":{"description":"The expected duration of the driver's next break or rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"durationOfNextDrivingPeriodMinute":{"description":"The expected duration of the driver's next driving period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"endOfLastDailyRestPeriod":{"description":"The timestamp marking the end of the driver's last daily rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface).","example":"2019-06-13T19:08:25Z","type":"string"},"endOfLastWeeklyRestPeriod":{"description":"The timestamp marking the end of the driver's last weekly rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface).","example":"2019-06-13T19:08:25Z","type":"string"},"happenedAtTime":{"description":"The timestamp when the tachograph reading was measured.","example":"2019-06-13T19:08:25Z","type":"string"},"maximumDailyDrivingTimeMinute":{"description":"The maximum allowed daily driving time for the driver, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"minimumDailyRestMinute":{"description":"The minimum required daily rest duration for the driver, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"minimumWeeklyRestMinute":{"description":"The minimum required weekly rest duration for the driver, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"numberOfTimes9hDailyDrivingTimesExceeded":{"description":"The number of times the driver has exceeded the 9-hour daily driving time limit, as defined by ISO 16844-7 (Tachograph - Digital data interface).","example":12345,"format":"int64","type":"integer"},"numberOfUsedReducedDailyRestPeriods":{"description":"The number of reduced daily rest periods the driver has used, as defined by ISO 16844-7 (Tachograph - Digital data interface).","example":12345,"format":"int64","type":"integer"},"openCompensationInSecondWeekBeforeLastMinute":{"description":"Open rest compensation owed from the second week before last, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"openCompensationInTheLastWeekMinute":{"description":"Open rest compensation owed from the last week, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"openCompensationInWeekBeforeLastMinute":{"description":"Open rest compensation owed from the week before last, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"remaining2WeeksDrivingTimeMinute":{"description":"The driver's remaining driving time across the current two-week period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"remainingCurrentDrivingTimeMinute":{"description":"The driver's remaining current continuous driving time before a break is required, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"remainingDrivingTimeOfCurrentWeekMinute":{"description":"The driver's remaining driving time for the current week, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"remainingDrivingTimeOnCurrentShiftMinute":{"description":"The driver's remaining driving time on the current shift, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"remainingTimeOfCurrentBreakRestMinute":{"description":"Time remaining in the driver's current break or rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"remainingTimeUntilNextBreakOrRestMinute":{"description":"Time remaining until the driver's next required break or rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"tachographCardNumber":{"description":"The tachograph card number for the driver.","example":"12345","type":"string"},"timeLeftUntilNewDailyRestPeriodMinute":{"description":"Time remaining until the driver must begin a new daily rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"timeLeftUntilNewWeeklyRestPeriodMinute":{"description":"Time remaining until the driver must begin a new weekly rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"timeLeftUntilNextDrivingPeriodMinute":{"description":"Time remaining until the driver's next driving period can begin, as defined by ISO 16844-7 (Tachograph - Digital data interface). Measured in minutes.","example":12345,"format":"int64","type":"integer"},"vehicleId":{"description":"Samsara ID for the vehicle associated with the live tachograph data.","example":"12345","type":"string"},"workingState":{"description":"The current working state of the driver (e.g. Rest, Availability, Work, Driving), as defined by ISO 16844-7 (Tachograph - Digital data interface).","example":"12345","type":"string"}},"type":"object"},"EntityListTimeEntriesTypeResponseBody":{"description":"TimeEntry object","example":{"clockInAtTime":"2026-07-09T14:10:47.648Z","clockInLocation":{"latitude":42.2364884,"longitude":-83.3113959},"clockInSource":"mobile","clockOutAtTime":"2026-07-09T14:15:47.296Z","clockOutLocation":{"latitude":42.2365116,"longitude":-83.3114372},"clockOutMethodType":"manual","clockOutSource":"mobile","createdAtTime":"2026-07-09T14:10:48.245Z","hourlyRate":{"amount":"24.50","currency":"usd"},"id":"85436931-026c-466a-95ae-419a829e3a26","placeId":"5000000795134","serviceTaskId":"98e645fa-4b7e-446c-8613-cf2bb0a70727","timeEntryStatus":"completed","updatedAtTime":"2026-07-09T14:15:47.820Z","userId":"590838","workOrderId":"34"},"properties":{"activityType":{"description":"Non-repair activity associated with the time entry. Omitted for work-order time.  Valid values: `unknown`, `break`, `shopCleaning`, `partsHandling`, `operationalTest`, `equipmentSetup`, `inspection`, `roadCall`, `training`, `administrative`, `shopMiscellaneous`","enum":["unknown","break","shopCleaning","partsHandling","operationalTest","equipmentSetup","inspection","roadCall","training","administrative","shopMiscellaneous"],"example":"unknown","type":"string"},"activityTypeId":{"description":"ID of the non-repair activity, including activity types defined by the organization, which activityType reports as unknown. Omitted for work-order time.","example":"12345","type":"string"},"activityTypeName":{"description":"The organization's display name for the non-repair activity. Omitted for work-order time.","example":"12345","type":"string"},"clockInAtTime":{"description":"Time when the technician clocked in.","example":"2019-06-13T19:08:25Z","type":"string"},"clockInLocation":{"$ref":"#/components/schemas/ListTimeEntriesEntityTimeEntryTimeEntryLocationTypeResponseBody"},"clockInSource":{"description":"Surface that recorded the clock-in.  Valid values: `unknown`, `cloud`, `mobile`","enum":["unknown","cloud","mobile"],"example":"unknown","type":"string"},"clockOutAtTime":{"description":"Time when the technician clocked out. Omitted while the entry is in progress.","example":"2019-06-13T19:08:25Z","type":"string"},"clockOutLocation":{"$ref":"#/components/schemas/ListTimeEntriesEntityTimeEntryTimeEntryLocationTypeResponseBody"},"clockOutMethodType":{"description":"Method that ended the time entry.  Valid values: `unknown`, `manual`, `overwrite`, `clockIn`, `autoClockOut`","enum":["unknown","manual","overwrite","clockIn","autoClockOut"],"example":"unknown","type":"string"},"clockOutSource":{"description":"Surface that recorded the clock-out.  Valid values: `unknown`, `cloud`, `mobile`","enum":["unknown","cloud","mobile"],"example":"unknown","type":"string"},"createdAtTime":{"description":"Time when the time entry was created.","example":"2019-06-13T19:08:25Z","type":"string"},"deletedAtTime":{"description":"Time when the time entry was deleted. Deleted records contain only the ID, this field, and deletedByUserId when available.","example":"2019-06-13T19:08:25Z","type":"string"},"deletedByUserId":{"description":"Dashboard user ID that deleted the time entry, when available.","example":"12345","type":"string"},"hourlyRate":{"$ref":"#/components/schemas/ListTimeEntriesEntityTimeEntryMoneyTypeResponseBody"},"id":{"description":"Stable unique identifier for the time entry.","example":"12345","type":"string"},"placeId":{"description":"Samsara Place currently linked to the work order's maintenance site captured at clock-in.","example":"12345","type":"string"},"serviceTaskId":{"description":"Work-order service-task instance associated with the time entry, when present.","example":"12345","type":"string"},"timeEntryStatus":{"description":"Whether the time entry is in progress or completed.  Valid values: `unknown`, `inProgress`, `completed`","enum":["unknown","inProgress","completed"],"example":"unknown","type":"string"},"updatedAtTime":{"description":"Time when the time entry was last updated. The feed window and ordering operate on this field.","example":"2019-06-13T19:08:25Z","type":"string"},"userId":{"description":"Dashboard user ID of the technician. Omitted when the technician is not linked to a dashboard user.","example":"12345","type":"string"},"workOrderId":{"description":"Work order associated with the time entry. Omitted for non-repair activities.","example":"12345","type":"string"}},"type":"object"},"EntityListUpcomingPreventiveMaintenanceAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListUpcomingPreventiveMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody":{"description":"Reference to a PreventativeMaintenanceSchedule","properties":{"id":{"description":"The ID of the referenced PreventativeMaintenanceSchedule.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListUpcomingPreventiveMaintenanceTypeResponseBody":{"description":"UpcomingPreventativeMaintenance object","properties":{"asset":{"$ref":"#/components/schemas/EntityListUpcomingPreventiveMaintenanceAssetRefTypeResponseBody"},"currentEngineHours":{"description":"Current engine hours for the asset at the time of query.","example":4120,"format":"int64","type":"integer"},"currentOdometer":{"description":"Current odometer reading for the asset at the time of query. Measured in meters.","example":120700800,"format":"int64","type":"integer"},"dueInDays":{"description":"The number of days until the next scheduled service for a date based PM.","example":45,"format":"int64","type":"integer"},"dueInEngineHours":{"description":"The number of engine hours until the next scheduled service.","example":130,"format":"int64","type":"integer"},"dueInOdometer":{"description":"The odometer distance until the next scheduled service. Measured in meters.","example":4828032,"format":"int64","type":"integer"},"lastResolvedAt":{"description":"Date and time when the prior instance was resolved.","example":"2026-05-14T09:30:00Z","type":"string"},"lastResolvedAtEngineHours":{"description":"Engine hours at the time the prior instance was resolved.","example":4000,"format":"int64","type":"integer"},"lastResolvedAtOdometer":{"description":"Odometer reading at the time the prior instance was resolved. Measured in meters.","example":117482112,"format":"int64","type":"integer"},"nextEngineHours":{"description":"The next engine hour value that the vehicle is scheduled to be serviced.","example":4250,"format":"int64","type":"integer"},"nextOdometer":{"description":"The next odometer value that the vehicle is scheduled to be serviced. Measured in meters.","example":125528832,"format":"int64","type":"integer"},"nextTime":{"description":"The next time that the vehicle is scheduled to be serviced for a date based PM.","example":"2026-10-11T09:30:00Z","type":"string"},"schedule":{"$ref":"#/components/schemas/EntityListUpcomingPreventiveMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody"},"status":{"description":"Status of the preventive maintenance schedule.  Valid values: `unknown`, `overdue`, `upcoming`","enum":["unknown","overdue","upcoming"],"example":"upcoming","type":"string"},"workOrder":{"$ref":"#/components/schemas/EntityListUpcomingPreventiveMaintenanceWorkOrderRefTypeResponseBody"}},"type":"object"},"EntityListUpcomingPreventiveMaintenanceWorkOrderRefTypeResponseBody":{"description":"Reference to a WorkOrder","properties":{"id":{"description":"The ID of the referenced WorkOrder.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListVendorsTypeResponseBody":{"description":"vendor object","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/ListVendorGroupsEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody"},"type":"array"},"createdAtTime":{"description":"Time when the vendor profile was created.","example":"2019-06-13T19:08:25Z","type":"string"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/ListVendorGroupsEntityVendorProfileVendorHourlyMoneyTypeResponseBody"},"externalIds":{"description":"External identifiers belonging to this parent vendor.","items":{"$ref":"#/components/schemas/ListVendorGroupsEntityVendorProfileVendorGroupExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Unique identifier for the vendor profile. Leave blank to create a profile.","example":"12345","type":"string"},"isMobile":{"description":"Whether vendor locations inherit mobile service as their default.","example":true,"type":"boolean"},"isPreferred":{"description":"Default preferred status inherited by vendor locations.","example":true,"type":"boolean"},"name":{"description":"Name of the vendor profile.","example":"12345","type":"string"},"primaryCorporateContact":{"$ref":"#/components/schemas/ListVendorGroupsEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"updatedAtTime":{"description":"Time when the vendor profile was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityListWarrantiesTypeResponseBody":{"description":"Warranty object","properties":{"baseCoverage":{"$ref":"#/components/schemas/ListWarrantiesEntityWarrantyWarrantyCoverageTypeResponseBody"},"coverages":{"description":"Additional coverage groups defined on this warranty.","items":{"$ref":"#/components/schemas/ListWarrantiesEntityWarrantyWarrantyCoverageTypeResponseBody"},"type":"array"},"createdAtTime":{"description":"When the warranty was created.","example":"2019-06-13T19:08:25Z","type":"string"},"description":{"description":"Description of the warranty.","example":"12345","type":"string"},"durationDays":{"description":"Warranty length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Warranty length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Warranty length by engine hours since the warranty start.","example":12345,"format":"int64","type":"integer"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/ListWarrantiesEntityWarrantyWarrantyExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the warranty.","example":"12345","type":"string"},"name":{"description":"Name of the warranty.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Warranty length by distance travelled since the warranty start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"updatedAtTime":{"description":"When the warranty was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vendor":{"$ref":"#/components/schemas/EntityListWarrantiesVendorRefTypeResponseBody"},"warrantyType":{"description":"Type of warranty, for example manufacturer, extended, other, or unknown.  Valid values: `unknown`, `manufacturer`, `extended`, `other`","enum":["unknown","manufacturer","extended","other"],"example":"unknown","type":"string"}},"type":"object"},"EntityListWarrantiesVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListWarrantyAssetAssignmentsAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListWarrantyAssetAssignmentsTypeResponseBody":{"description":"WarrantyAssetAssignment object","properties":{"asset":{"$ref":"#/components/schemas/EntityListWarrantyAssetAssignmentsAssetRefTypeResponseBody"},"createdAtTime":{"description":"When the assignment was created.","example":"2019-06-13T19:08:25Z","type":"string"},"id":{"description":"Synthetic identifier for the assignment, formatted as \"warrantyId:assetId\".","example":"12345","type":"string"},"startEngineHours":{"description":"Asset engine hours at coverage start.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Asset odometer reading at coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"When coverage starts for this asset.","example":"2019-06-13T19:08:25Z","type":"string"},"updatedAtTime":{"description":"When the assignment was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"warranty":{"$ref":"#/components/schemas/EntityListWarrantyAssetAssignmentsWarrantyRefTypeResponseBody"}},"type":"object"},"EntityListWarrantyAssetAssignmentsWarrantyRefTypeResponseBody":{"description":"Reference to a Warranty","properties":{"id":{"description":"The ID of the referenced Warranty.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListWarrantyClaimsAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListWarrantyClaimsTypeResponseBody":{"description":"WarrantyClaim object","properties":{"asset":{"$ref":"#/components/schemas/EntityListWarrantyClaimsAssetRefTypeResponseBody"},"cause":{"description":"The cause of the 3 Cs - the root cause found.","example":"12345","type":"string"},"claimEngineHours":{"description":"Engine hours at the time of repair.","example":12345,"format":"int64","type":"integer"},"claimOdometerMeters":{"description":"Asset odometer reading at the time of repair. Measured in meters.","example":12345,"format":"int64","type":"integer"},"claimStatus":{"description":"Current status of the claim.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"componentInstanceIds":{"description":"IDs of asset component instances covered by this claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"concern":{"description":"The concern of the 3 Cs - what was reported.","example":"12345","type":"string"},"correction":{"description":"The correction of the 3 Cs - the work performed.","example":"12345","type":"string"},"createdAtTime":{"description":"When the claim was created.","example":"2019-06-13T19:08:25Z","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the warranty claim.","example":"12345","type":"string"},"labor":{"description":"Labor being claimed.","items":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody"},"type":"array"},"linkedWarranty":{"$ref":"#/components/schemas/EntityListWarrantyClaimsWarrantyRefTypeResponseBody"},"linkedWorkOrderIds":{"description":"IDs of the work orders associated with this claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"mediaItemIds":{"description":"IDs of media items attached to the claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"otherCost":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimMoneyTypeResponseBody"},"parts":{"description":"Parts being claimed.","items":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimPartTypeResponseBody"},"type":"array"},"reimbursedAtTime":{"description":"When reimbursement was received.","example":"2019-06-13T19:08:25Z","type":"string"},"reimbursements":{"description":"Reimbursement amounts, optionally linked to a work order.","items":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimClaimReimbursementTypeResponseBody"},"type":"array"},"repairCompletedAtTime":{"description":"When the repair was completed.","example":"2019-06-13T19:08:25Z","type":"string"},"resolutionAtTime":{"description":"When the claim was resolved.","example":"2019-06-13T19:08:25Z","type":"string"},"statusHistory":{"description":"Audit trail of status changes. Server-managed and read-only.","items":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody"},"type":"array"},"submittedAtTime":{"description":"When the claim was submitted to the vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"updatedAtTime":{"description":"When the claim was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"warrantyVendor":{"$ref":"#/components/schemas/EntityListWarrantyClaimsVendorRefTypeResponseBody"}},"type":"object"},"EntityListWarrantyClaimsVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityListWarrantyClaimsWarrantyRefTypeResponseBody":{"description":"Reference to a Warranty","properties":{"id":{"description":"The ID of the referenced Warranty.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteRequestBody":{"description":"Request body for creating a MaintenanceSite","properties":{"customAddress":{"$ref":"#/components/schemas/CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteCustomAddressInputTypeRequestBody"},"description":{"description":"Description of the maintenance site.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the site, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdInputTypeRequestBody"},"type":"array"},"name":{"description":"Name of the maintenance site. Org-unique.","example":"12345","type":"string"},"placeIds":{"description":"Places this site is linked to. Mutually exclusive with customAddress. At most one entry is accepted today, though the field is an array to allow for future expansion.","example":["281474976710656","281474976710656","281474976710656","281474976710656"],"items":{"description":"Reference to Place","example":"281474976710656","type":"string"},"type":"array"},"siteCode":{"description":"Org-unique 3-character code for the site, used to generate inventory batch numbers.","example":"12345","type":"string"},"siteType":{"description":"Type of maintenance site, for example central warehouse, maintenance shop, or yard/onsite.  Valid values: `Unknown`, `CentralWarehouse`, `MaintenanceShop`, `MobileServiceVehicle`, `YardOnsite`, `Consignment`, `Other`","enum":["Unknown","CentralWarehouse","MaintenanceShop","MobileServiceVehicle","YardOnsite","Consignment","Other"],"example":"Unknown","type":"string"}},"required":["name","siteCode","siteType"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreateMaintenanceSiteTypeResponseBody"}},"required":["data"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceCreateMaintenanceSiteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesResponseBody":{"properties":{"data":{"description":"An array of MaintenanceSites","items":{"$ref":"#/components/schemas/EntityListMaintenanceSitesTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceListMaintenanceSitesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteRequestBody":{"description":"Request body for updating a MaintenanceSite","properties":{"description":{"description":"Description of the maintenance site.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the site, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdInputTypeRequestBody"},"type":"array"},"name":{"description":"Name of the maintenance site. Org-unique.","example":"12345","type":"string"},"siteCode":{"description":"Org-unique 3-character code for the site, used to generate inventory batch numbers.","example":"12345","type":"string"},"siteType":{"description":"Type of maintenance site, for example central warehouse, maintenance shop, or yard/onsite.  Valid values: `Unknown`, `CentralWarehouse`, `MaintenanceShop`, `MobileServiceVehicle`, `YardOnsite`, `Consignment`, `Other`","enum":["Unknown","CentralWarehouse","MaintenanceShop","MobileServiceVehicle","YardOnsite","Consignment","Other"],"example":"Unknown","type":"string"}},"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateMaintenanceSiteTypeResponseBody"}},"required":["data"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityMaintenanceSitesServiceUpdateMaintenanceSiteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartRequestBody":{"description":"Request body for creating a PartDefinition","properties":{"barcodeString":{"description":"Barcode associated with the part definition.","example":"12345","type":"string"},"barcodeType":{"description":"Type of barcode associated with the part definition.","example":"12345","type":"string"},"description":{"description":"Description of the part definition.","example":"12345","type":"string"},"externalId":{"description":"Customer-supplied external identifier for the part.","example":"12345","type":"string"},"isInventoryTracked":{"description":"Whether inventory tracking is enabled for this part.","example":true,"type":"boolean"},"manufacturerName":{"description":"Name of the manufacturer for the part definition.","example":"12345","type":"string"},"manufacturerPartNumber":{"description":"Manufacturer-supplied part number.","example":"12345","type":"string"},"name":{"description":"Name of the part definition.","example":"12345","type":"string"},"partNumber":{"description":"Customer-visible part number for the part.","example":"12345","type":"string"},"preferredVendorId":{"description":"Unique identifier for the preferred vendor for this part definition.","example":"281474976710656","type":"string"},"preferredVendorPartNumber":{"description":"The preferred vendor's part number for this part definition.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/CreatePartEntityPartDefinitionMoneyInputTypeRequestBody"},"vmrsCode":{"description":"VMRS code associated with the part definition.","example":"12345","type":"string"}},"required":["partNumber"],"type":"object"},"EntityPartDefinitionsServiceCreatePartResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreatePartTypeResponseBody"}},"required":["data"],"type":"object"},"EntityPartDefinitionsServiceCreatePartServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceCreatePartUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceDeletePartUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsResponseBody":{"properties":{"data":{"description":"An array of PartDefinitions","items":{"$ref":"#/components/schemas/EntityListPartsTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityPartDefinitionsServiceListPartsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceListPartsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartRequestBody":{"description":"Request body for updating a PartDefinition","properties":{"barcodeString":{"description":"Barcode associated with the part definition.","example":"12345","type":"string"},"barcodeType":{"description":"Type of barcode associated with the part definition.","example":"12345","type":"string"},"description":{"description":"Description of the part definition.","example":"12345","type":"string"},"externalId":{"description":"Customer-supplied external identifier for the part.","example":"12345","type":"string"},"isInventoryTracked":{"description":"Whether inventory tracking is enabled for this part.","example":true,"type":"boolean"},"manufacturerName":{"description":"Name of the manufacturer for the part definition.","example":"12345","type":"string"},"manufacturerPartNumber":{"description":"Manufacturer-supplied part number.","example":"12345","type":"string"},"name":{"description":"Name of the part definition.","example":"12345","type":"string"},"partNumber":{"description":"Customer-visible part number for the part.","example":"12345","type":"string"},"preferredVendorId":{"description":"Unique identifier for the preferred vendor for this part definition.","example":"281474976710656","type":"string"},"preferredVendorPartNumber":{"description":"The preferred vendor's part number for this part definition.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/UpdatePartEntityPartDefinitionMoneyInputTypeRequestBody"},"vmrsCode":{"description":"VMRS code associated with the part definition.","example":"12345","type":"string"}},"type":"object"},"EntityPartDefinitionsServiceUpdatePartResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdatePartTypeResponseBody"}},"required":["data"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartDefinitionsServiceUpdatePartUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationRequestBody":{"description":"Request body for creating a PartInventoryLocation","properties":{"aisle":{"description":"Aisle within the location where the part is stored.","example":"12345","type":"string"},"bin":{"description":"Bin within the location where the part is stored.","example":"12345","type":"string"},"currentQuantity":{"description":"Total physical quantity on hand at this location, equal to the available quantity plus the reserved quantity. Settable only when creating the record, to seed initial stock; thereafter it changes only via stock movements.","example":123.45,"format":"double","type":"number"},"isCostTracked":{"description":"Whether costing is tracked at this location. Defaults to false; once enabled it cannot be turned back off.","example":true,"type":"boolean"},"maxStockLevel":{"description":"Maximum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"minStockLevel":{"description":"Minimum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"reorderQuantity":{"description":"Quantity to reorder when stock reaches the reorder threshold.","example":123.45,"format":"double","type":"number"},"reorderThreshold":{"description":"Available quantity at or below which the part should be reordered at this location.","example":123.45,"format":"double","type":"number"},"row":{"description":"Row within the location where the part is stored.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/CreatePartInventoryLocationEntityPartInventoryLocationMoneyInputTypeRequestBody"}},"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreatePartInventoryLocationTypeResponseBody"}},"required":["data"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceCreatePartInventoryLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryResponseBody":{"properties":{"data":{"description":"An array of PartInventoryLocations","items":{"$ref":"#/components/schemas/EntityListPartInventoryTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceListPartInventoryUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationRequestBody":{"description":"Request body for updating a PartInventoryLocation","properties":{"aisle":{"description":"Aisle within the location where the part is stored.","example":"12345","type":"string"},"bin":{"description":"Bin within the location where the part is stored.","example":"12345","type":"string"},"currentQuantity":{"description":"Total physical quantity on hand at this location, equal to the available quantity plus the reserved quantity. Settable only when creating the record, to seed initial stock; thereafter it changes only via stock movements.","example":123.45,"format":"double","type":"number"},"isCostTracked":{"description":"Whether costing is tracked at this location. Defaults to false; once enabled it cannot be turned back off.","example":true,"type":"boolean"},"maxStockLevel":{"description":"Maximum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"minStockLevel":{"description":"Minimum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"reorderQuantity":{"description":"Quantity to reorder when stock reaches the reorder threshold.","example":123.45,"format":"double","type":"number"},"reorderThreshold":{"description":"Available quantity at or below which the part should be reordered at this location.","example":123.45,"format":"double","type":"number"},"row":{"description":"Row within the location where the part is stored.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/UpdatePartInventoryLocationEntityPartInventoryLocationMoneyInputTypeRequestBody"}},"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdatePartInventoryLocationTypeResponseBody"}},"required":["data"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPartInventoryLocationsServiceUpdatePartInventoryLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody":{"properties":{"data":{"description":"An array of PreventativeMaintenanceSchedules","items":{"$ref":"#/components/schemas/EntityListPreventiveMaintenanceSchedulesTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderRequestBody":{"description":"Request body for creating a PurchaseOrder","properties":{"glCode":{"description":"General ledger code associated with this purchase order.","example":"GL-4000","type":"string"},"invoiceNumber":{"description":"Vendor invoice number associated with this purchase order.","example":"INV-12345","type":"string"},"notes":{"description":"Free-text notes for the purchase order.","example":"Deliver to maintenance shop.","type":"string"},"orderStatus":{"description":"Current customer-visible status of the purchase order.  Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`","enum":["Unknown","Draft","Open","InReview","Approved","Rejected","SentToVendor","PartiallyReceived","FullyReceived","Returned","Cancelled","Closed"],"example":"Draft","type":"string"},"otherCost":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366b66e6fcTypeRequestBody"},"parts":{"description":"Parts ordered on the purchase order.","items":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938a0fTypeRequestBody"},"type":"array"},"poNumberPrefix":{"description":"Optional prefix included in the purchase order number.","example":"PO","type":"string"},"poNumberSuffix":{"description":"Optional suffix included in the purchase order number.","example":"A","type":"string"},"tax":{"$ref":"#/components/schemas/CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody"},"trackingNumber":{"description":"Shipment tracking number for the purchase order.","example":"1Z999AA10123456784","type":"string"},"vendorId":{"description":"ID of the vendor supplying this purchase order.","example":"281474976710656","type":"string"}},"required":["orderStatus","vendorId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreatePurchaseOrderTypeResponseBody"}},"required":["data"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceCreatePurchaseOrderUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceDeletePurchaseOrderUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersResponseBody":{"properties":{"data":{"description":"An array of PurchaseOrders","items":{"$ref":"#/components/schemas/EntityListPurchaseOrdersTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceListPurchaseOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderRequestBody":{"description":"Request body for updating a PurchaseOrder","properties":{"glCode":{"description":"General ledger code associated with this purchase order.","example":"GL-4000","type":"string"},"invoiceNumber":{"description":"Vendor invoice number associated with this purchase order.","example":"INV-12345","type":"string"},"notes":{"description":"Free-text notes for the purchase order.","example":"Deliver to maintenance shop.","type":"string"},"orderStatus":{"description":"Current customer-visible status of the purchase order.  Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`","enum":["Unknown","Draft","Open","InReview","Approved","Rejected","SentToVendor","PartiallyReceived","FullyReceived","Returned","Cancelled","Closed"],"example":"Draft","type":"string"},"otherCost":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366b66e6fcTypeRequestBody"},"parts":{"description":"Parts ordered on the purchase order.","items":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5e7c0da15f4cTypeRequestBody"},"type":"array"},"tax":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody"},"trackingNumber":{"description":"Shipment tracking number for the purchase order.","example":"1Z999AA10123456784","type":"string"},"vendorId":{"description":"ID of the vendor supplying this purchase order.","example":"281474976710656","type":"string"}},"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdatePurchaseOrderTypeResponseBody"}},"required":["data"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityPurchaseOrdersServiceUpdatePurchaseOrderUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityReplaceWarrantyAssetAssignmentsWarrantyAssetAssignmentInputTypeRequestBody":{"description":"WarrantyAssetAssignmentInput object","properties":{"assetId":{"description":"ID of the asset to assign.","example":"12345","type":"string"},"startEngineHours":{"description":"Asset engine hours at coverage start.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Asset odometer reading at coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"When coverage starts for this asset.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["assetId"],"type":"object"},"EntityReplaceWarrantyAssetAssignmentsWarrantyAssetAssignmentTypeResponseBody":{"description":"WarrantyAssetAssignment object","properties":{"assetId":{"description":"ID of the asset covered by the warranty.","example":"12345","type":"string"},"createdAtTime":{"description":"When the assignment was created.","example":"2019-06-13T19:08:25Z","type":"string"},"id":{"description":"Synthetic identifier for the assignment, formatted as \"warrantyId:assetId\".","example":"12345","type":"string"},"startEngineHours":{"description":"Asset engine hours at coverage start.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Asset odometer reading at coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"When coverage starts for this asset.","example":"2019-06-13T19:08:25Z","type":"string"},"updatedAtTime":{"description":"When the assignment was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"warrantyId":{"description":"ID of the warranty the asset is assigned to.","example":"12345","type":"string"}},"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody":{"properties":{"data":{"description":"An array of TachographLiveDataRecords","items":{"$ref":"#/components/schemas/EntityListTachographLiveDataTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesResponseBody":{"properties":{"data":{"description":"An array of TimeEntries","items":{"$ref":"#/components/schemas/EntityListTimeEntriesTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityTimeEntriesServiceListTimeEntriesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody":{"properties":{"data":{"description":"An array of UpcomingPreventativeMaintenances","items":{"$ref":"#/components/schemas/EntityListUpcomingPreventiveMaintenanceTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceRequestBody":{"description":"Request body for updating a UpcomingPreventativeMaintenance","properties":{"lastResolvedAt":{"description":"Date and time when the prior instance was resolved.","example":"2026-05-14T09:30:00Z","type":"string"},"lastResolvedAtEngineHours":{"description":"Engine hours at the time the prior instance was resolved.","example":4000,"format":"int64","type":"integer"},"lastResolvedAtOdometer":{"description":"Odometer reading at the time the prior instance was resolved. Measured in meters.","example":117482112,"format":"int64","type":"integer"},"nextEngineHours":{"description":"The next engine hour value that the vehicle is scheduled to be serviced.","example":4250,"format":"int64","type":"integer"},"nextOdometer":{"description":"The next odometer value that the vehicle is scheduled to be serviced. Measured in meters.","example":125528832,"format":"int64","type":"integer"},"nextTime":{"description":"The next time that the vehicle is scheduled to be serviced for a date based PM.","example":"2026-10-11T09:30:00Z","type":"string"}},"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateUpcomingPreventiveMaintenanceTypeResponseBody"}},"required":["data"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityUpdateAssetStatusAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateAssetStatusTypeResponseBody":{"description":"AssetStatus object","properties":{"asset":{"$ref":"#/components/schemas/EntityUpdateAssetStatusAssetRefTypeResponseBody"},"comment":{"description":"Note on the most recent status change. On update, required when the status being entered requires a comment on entry, or the status being left requires a comment on exit.","example":"12345","type":"string"},"lastChangedBy":{"$ref":"#/components/schemas/UpdateAssetStatusEntityAssetStatusAssetStatusActorTypeResponseBody"},"status":{"$ref":"#/components/schemas/UpdateAssetStatusEntityAssetStatusAssetStatusRefTypeResponseBody"},"statusSinceTime":{"description":"When the asset entered its current status.","example":"2019-06-13T19:08:25Z","type":"string"},"statusUuid":{"description":"Stable ID of the status the asset is in. On update, the status to move the asset into.","example":"12345","type":"string"}},"type":"object"},"EntityUpdateMaintenanceSitePlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateMaintenanceSiteTypeResponseBody":{"description":"MaintenanceSite object","properties":{"archivedAt":{"description":"When the maintenance site was archived. Unset when isArchived is false.","example":"2019-06-13T19:08:25Z","type":"string"},"createdAt":{"description":"When the maintenance site was created.","example":"2019-06-13T19:08:25Z","type":"string"},"customAddress":{"$ref":"#/components/schemas/UpdateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteCustomAddressTypeResponseBody"},"description":{"description":"Description of the maintenance site.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the site, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the maintenance site.","example":"12345","type":"string"},"isArchived":{"description":"Whether the site is archived. Archived sites are no longer active but are retained for historical record.","example":true,"type":"boolean"},"name":{"description":"Name of the maintenance site. Org-unique.","example":"12345","type":"string"},"places":{"description":"Places this site is linked to. Mutually exclusive with customAddress. At most one entry is accepted today, though the field is an array to allow for future expansion.","items":{"$ref":"#/components/schemas/EntityUpdateMaintenanceSitePlaceRefTypeResponseBody"},"type":"array"},"siteCode":{"description":"Org-unique 3-character code for the site, used to generate inventory batch numbers.","example":"12345","type":"string"},"siteType":{"description":"Type of maintenance site, for example central warehouse, maintenance shop, or yard/onsite.  Valid values: `Unknown`, `CentralWarehouse`, `MaintenanceShop`, `MobileServiceVehicle`, `YardOnsite`, `Consignment`, `Other`","enum":["Unknown","CentralWarehouse","MaintenanceShop","MobileServiceVehicle","YardOnsite","Consignment","Other"],"example":"Unknown","type":"string"},"updatedAt":{"description":"When the maintenance site was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityUpdatePartInventoryLocationPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdatePartInventoryLocationPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdatePartInventoryLocationTypeResponseBody":{"description":"PartInventoryLocation object","properties":{"aisle":{"description":"Aisle within the location where the part is stored.","example":"12345","type":"string"},"availableQuantity":{"description":"Quantity available to be consumed at this location (current minus reserved). Read-only; changes only via stock movements.","example":123.45,"format":"double","type":"number"},"bin":{"description":"Bin within the location where the part is stored.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the inventory level record was created.","example":"2019-06-13T19:08:25Z","type":"string"},"currentQuantity":{"description":"Total physical quantity on hand at this location, equal to the available quantity plus the reserved quantity. Settable only when creating the record, to seed initial stock; thereafter it changes only via stock movements.","example":123.45,"format":"double","type":"number"},"id":{"description":"Unique identifier for the part inventory level record. The internal composite key is never exposed; identify the part and location via part ID and place ID.","example":"12345","type":"string"},"isCostTracked":{"description":"Whether costing is tracked at this location. Defaults to false; once enabled it cannot be turned back off.","example":true,"type":"boolean"},"isLowStock":{"description":"Whether the available quantity is greater than zero and at or below the reorder threshold.","example":true,"type":"boolean"},"isNonStock":{"description":"Whether the part is tracked at this location without stock management.","example":true,"type":"boolean"},"maxStockLevel":{"description":"Maximum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"minStockLevel":{"description":"Minimum quantity to keep in stock at this location.","example":123.45,"format":"double","type":"number"},"partSamsara":{"$ref":"#/components/schemas/EntityUpdatePartInventoryLocationPartDefinitionRefTypeResponseBody"},"place":{"$ref":"#/components/schemas/EntityUpdatePartInventoryLocationPlaceRefTypeResponseBody"},"reorderQuantity":{"description":"Quantity to reorder when stock reaches the reorder threshold.","example":123.45,"format":"double","type":"number"},"reorderThreshold":{"description":"Available quantity at or below which the part should be reordered at this location.","example":123.45,"format":"double","type":"number"},"reservedQuantity":{"description":"Quantity reserved against work orders at this location. Read-only; changes only via stock movements.","example":123.45,"format":"double","type":"number"},"row":{"description":"Row within the location where the part is stored.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/UpdatePartInventoryLocationEntityPartInventoryLocationMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure that the quantity fields on this record are expressed in. Surfaced here so the unit of all quantity fields is visible in-response.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"},"updatedAtTime":{"description":"Time when the inventory level record was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityUpdatePartTypeResponseBody":{"description":"PartDefinition object","properties":{"archivedAtTime":{"description":"Time when the part was archived.","example":"2019-06-13T19:08:25Z","type":"string"},"barcodeString":{"description":"Barcode associated with the part definition.","example":"12345","type":"string"},"barcodeType":{"description":"Type of barcode associated with the part definition.","example":"12345","type":"string"},"category":{"description":"Category of the part definition.","example":"12345","type":"string"},"createdAtTime":{"description":"Time when the part was created.","example":"2019-06-13T19:08:25Z","type":"string"},"deletedAtTime":{"description":"Time when the part was deleted.","example":"2019-06-13T19:08:25Z","type":"string"},"description":{"description":"Description of the part definition.","example":"12345","type":"string"},"externalId":{"description":"Customer-supplied external identifier for the part.","example":"12345","type":"string"},"id":{"description":"Unique identifier for the part.","example":"12345","type":"string"},"isInventoryTracked":{"description":"Whether inventory tracking is enabled for this part.","example":true,"type":"boolean"},"manufacturerName":{"description":"Name of the manufacturer for the part definition.","example":"12345","type":"string"},"manufacturerPartNumber":{"description":"Manufacturer-supplied part number.","example":"12345","type":"string"},"name":{"description":"Name of the part definition.","example":"12345","type":"string"},"partNumber":{"description":"Customer-visible part number for the part.","example":"12345","type":"string"},"partStatus":{"description":"Status of the part.  Valid values: `Unknown`, `Active`, `Archived`, `Deleted`","enum":["Unknown","Active","Archived","Deleted"],"example":"Unknown","type":"string"},"preferredVendor":{"$ref":"#/components/schemas/EntityUpdatePartVendorRefTypeResponseBody"},"preferredVendorPartNumber":{"description":"The preferred vendor's part number for this part definition.","example":"12345","type":"string"},"subcategory":{"description":"Subcategory of the part definition.","example":"12345","type":"string"},"unitCost":{"$ref":"#/components/schemas/UpdatePartEntityPartDefinitionMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure for the part.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"},"updatedAtTime":{"description":"Time when the part was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vmrsCode":{"description":"VMRS code associated with the part definition.","example":"12345","type":"string"}},"type":"object"},"EntityUpdatePartVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdatePurchaseOrderPartDefinitionRefTypeResponseBody":{"description":"Reference to a PartDefinition","properties":{"id":{"description":"The ID of the referenced PartDefinition.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdatePurchaseOrderPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdatePurchaseOrderTypeResponseBody":{"description":"PurchaseOrder object","properties":{"createdAtTime":{"description":"RFC3339 time when the purchase order was created.","example":"2019-06-13T19:08:25Z","type":"string"},"creationSource":{"description":"Source that created the purchase order.  Valid values: `Unknown`, `User`, `ScanPackingList`","enum":["Unknown","User","ScanPackingList"],"example":"Unknown","type":"string"},"deliveryAtTime":{"description":"RFC3339 expected delivery time.","example":"2019-06-13T19:08:25Z","type":"string"},"firstReceivedAtTime":{"description":"RFC3339 time when the first item was received.","example":"2019-06-13T19:08:25Z","type":"string"},"fullyReceivedAtTime":{"description":"RFC3339 time when all items were received.","example":"2019-06-13T19:08:25Z","type":"string"},"glCode":{"description":"General ledger code associated with this purchase order.","example":"GL-4000","type":"string"},"id":{"description":"Stable Samsara ID for the purchase order.","example":"12345","type":"string"},"invoiceNumber":{"description":"Vendor invoice number associated with this purchase order.","example":"INV-12345","type":"string"},"mediaItemIds":{"description":"IDs of media items attached to the purchase order.","example":["12345","12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"notes":{"description":"Free-text notes for the purchase order.","example":"Deliver to maintenance shop.","type":"string"},"orderStatus":{"description":"Current customer-visible status of the purchase order.  Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`","enum":["Unknown","Draft","Open","InReview","Approved","Rejected","SentToVendor","PartiallyReceived","FullyReceived","Returned","Cancelled","Closed"],"example":"Draft","type":"string"},"otherCost":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994a15f796TypeResponseBody"},"parts":{"description":"Parts ordered on the purchase order.","items":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartPublicVarianteafe48db3764TypeResponseBody"},"type":"array"},"poNumber":{"description":"Customer-visible purchase order number.","example":"12345","type":"string"},"poNumberPrefix":{"description":"Optional prefix included in the purchase order number.","example":"PO","type":"string"},"poNumberSuffix":{"description":"Optional suffix included in the purchase order number.","example":"A","type":"string"},"sentAtTime":{"description":"RFC3339 time when the purchase order was sent to its vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"tax":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody"},"taxTotal":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody"},"trackingNumber":{"description":"Shipment tracking number for the purchase order.","example":"1Z999AA10123456784","type":"string"},"updatedAtTime":{"description":"RFC3339 time when the purchase order was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vendor":{"$ref":"#/components/schemas/EntityUpdatePurchaseOrderVendorRefPublicVariant07ae4b76c2baTypeResponseBody"}},"type":"object"},"EntityUpdatePurchaseOrderVendorRefPublicVariant07ae4b76c2baTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdatePurchaseOrderVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateUpcomingPreventiveMaintenanceAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateUpcomingPreventiveMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody":{"description":"Reference to a PreventativeMaintenanceSchedule","properties":{"id":{"description":"The ID of the referenced PreventativeMaintenanceSchedule.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateUpcomingPreventiveMaintenanceTypeResponseBody":{"description":"UpcomingPreventativeMaintenance object","properties":{"asset":{"$ref":"#/components/schemas/EntityUpdateUpcomingPreventiveMaintenanceAssetRefTypeResponseBody"},"currentEngineHours":{"description":"Current engine hours for the asset at the time of query.","example":4120,"format":"int64","type":"integer"},"currentOdometer":{"description":"Current odometer reading for the asset at the time of query. Measured in meters.","example":120700800,"format":"int64","type":"integer"},"currentOdometerMiles":{"description":"Current odometer reading for the asset at the time of query. Measured in miles.","example":75000,"format":"int64","type":"integer"},"dueInDays":{"description":"The number of days until the next scheduled service for a date based PM.","example":45,"format":"int64","type":"integer"},"dueInEngineHours":{"description":"The number of engine hours until the next scheduled service.","example":130,"format":"int64","type":"integer"},"dueInOdometer":{"description":"The odometer distance until the next scheduled service. Measured in meters.","example":4828032,"format":"int64","type":"integer"},"dueInOdometerMiles":{"description":"The odometer distance until the next scheduled service. Measured in miles.","example":3000,"format":"int64","type":"integer"},"lastResolvedAt":{"description":"Date and time when the prior instance was resolved.","example":"2026-05-14T09:30:00Z","type":"string"},"lastResolvedAtEngineHours":{"description":"Engine hours at the time the prior instance was resolved.","example":4000,"format":"int64","type":"integer"},"lastResolvedAtOdometer":{"description":"Odometer reading at the time the prior instance was resolved. Measured in meters.","example":117482112,"format":"int64","type":"integer"},"nextEngineHours":{"description":"The next engine hour value that the vehicle is scheduled to be serviced.","example":4250,"format":"int64","type":"integer"},"nextOdometer":{"description":"The next odometer value that the vehicle is scheduled to be serviced. Measured in meters.","example":125528832,"format":"int64","type":"integer"},"nextOdometerMiles":{"description":"The next odometer value that the vehicle is scheduled to be serviced. Measured in miles.","example":78000,"format":"int64","type":"integer"},"nextTime":{"description":"The next time that the vehicle is scheduled to be serviced for a date based PM.","example":"2026-10-11T09:30:00Z","type":"string"},"priority":{"description":"Estimated number of days until the next scheduled service, calculated by converting mileage and engine hour schedules to approximate daily rates. We take the minimum value for schedules with multiple interval types.","example":45,"format":"int64","type":"integer"},"schedule":{"$ref":"#/components/schemas/EntityUpdateUpcomingPreventiveMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody"},"status":{"description":"Status of the preventive maintenance schedule.  Valid values: `unknown`, `overdue`, `upcoming`","enum":["unknown","overdue","upcoming"],"example":"upcoming","type":"string"},"workOrder":{"$ref":"#/components/schemas/EntityUpdateUpcomingPreventiveMaintenanceWorkOrderRefTypeResponseBody"}},"type":"object"},"EntityUpdateUpcomingPreventiveMaintenanceWorkOrderRefTypeResponseBody":{"description":"Reference to a WorkOrder","properties":{"id":{"description":"The ID of the referenced WorkOrder.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateVendorLocationTypeResponseBody":{"description":"vendor location object","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorAssetAttributeSelectionTypeResponseBody"},"type":"array"},"contacts":{"description":"People to contact at the vendor.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorContactTypeResponseBody"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorHourlyMoneyTypeResponseBody"},"emailAddresses":{"description":"Email addresses for the vendor.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"externalId":{"description":"External identifier for the vendor from an external system.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the vendor, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Internal unique identifier for the vendor.","example":"12345","type":"string"},"isMobile":{"description":"Whether this vendor provides mobile service. When unset, the profile or system default applies.","example":true,"type":"boolean"},"isPreferred":{"description":"Whether this vendor location is preferred. When unset, the profile or system default applies.","example":true,"type":"boolean"},"parentVendorId":{"description":"Parent vendor UUID. Null removes membership while preserving explicit overrides.","example":"12345","type":"string"},"payeeId":{"description":"Free-text AP/ERP payee identifier for the vendor. Not a reference to a Samsara entity.","example":"12345","type":"string"},"phoneNumbers":{"description":"Phone numbers for the vendor.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"placeId":{"$ref":"#/components/schemas/EntityUpdateVendorPlaceRefTypeResponseBody"},"servicesProvided":{"description":"Description of services provided by the vendor.","example":"12345","type":"string"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"vendorId":{"description":"User-defined identifier for the vendor.","example":"12345","type":"string"}},"type":"object"},"EntityUpdateVendorPlaceRefTypeResponseBody":{"description":"Reference to a Place","properties":{"id":{"description":"The ID of the referenced Place.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateVendorTypeResponseBody":{"description":"vendor object","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody"},"type":"array"},"createdAtTime":{"description":"Time when the vendor profile was created.","example":"2019-06-13T19:08:25Z","type":"string"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorHourlyMoneyTypeResponseBody"},"externalIds":{"description":"External identifiers belonging to this parent vendor.","items":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorGroupExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Unique identifier for the vendor profile. Leave blank to create a profile.","example":"12345","type":"string"},"isMobile":{"description":"Whether vendor locations inherit mobile service as their default.","example":true,"type":"boolean"},"isPreferred":{"description":"Default preferred status inherited by vendor locations.","example":true,"type":"boolean"},"name":{"description":"Name of the vendor profile.","example":"12345","type":"string"},"primaryCorporateContact":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"updatedAtTime":{"description":"Time when the vendor profile was last updated.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EntityUpdateWarrantyClaimAssetRefTypeResponseBody":{"description":"Reference to a Asset","properties":{"id":{"description":"The ID of the referenced Asset.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateWarrantyClaimTypeResponseBody":{"description":"WarrantyClaim object","properties":{"asset":{"$ref":"#/components/schemas/EntityUpdateWarrantyClaimAssetRefTypeResponseBody"},"cause":{"description":"The cause of the 3 Cs - the root cause found.","example":"12345","type":"string"},"claimEngineHours":{"description":"Engine hours at the time of repair.","example":12345,"format":"int64","type":"integer"},"claimOdometerMeters":{"description":"Asset odometer reading at the time of repair. Measured in meters.","example":12345,"format":"int64","type":"integer"},"claimStatus":{"description":"Current status of the claim.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"componentInstanceIds":{"description":"IDs of asset component instances covered by this claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"concern":{"description":"The concern of the 3 Cs - what was reported.","example":"12345","type":"string"},"correction":{"description":"The correction of the 3 Cs - the work performed.","example":"12345","type":"string"},"createdAtTime":{"description":"When the claim was created.","example":"2019-06-13T19:08:25Z","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the warranty claim.","example":"12345","type":"string"},"labor":{"description":"Labor being claimed.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody"},"type":"array"},"linkedWarranty":{"$ref":"#/components/schemas/EntityUpdateWarrantyClaimWarrantyRefTypeResponseBody"},"linkedWorkOrderIds":{"description":"IDs of the work orders associated with this claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"mediaItemIds":{"description":"IDs of media items attached to the claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"otherCost":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"parts":{"description":"Parts being claimed.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartTypeResponseBody"},"type":"array"},"reimbursedAtTime":{"description":"When reimbursement was received.","example":"2019-06-13T19:08:25Z","type":"string"},"reimbursements":{"description":"Reimbursement amounts, optionally linked to a work order.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimClaimReimbursementTypeResponseBody"},"type":"array"},"repairCompletedAtTime":{"description":"When the repair was completed.","example":"2019-06-13T19:08:25Z","type":"string"},"resolutionAtTime":{"description":"When the claim was resolved.","example":"2019-06-13T19:08:25Z","type":"string"},"statusHistory":{"description":"Audit trail of status changes. Server-managed and read-only.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody"},"type":"array"},"submittedAtTime":{"description":"When the claim was submitted to the vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"updatedAtTime":{"description":"When the claim was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"warrantyVendor":{"$ref":"#/components/schemas/EntityUpdateWarrantyClaimVendorRefTypeResponseBody"}},"type":"object"},"EntityUpdateWarrantyClaimVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateWarrantyClaimWarrantyRefTypeResponseBody":{"description":"Reference to a Warranty","properties":{"id":{"description":"The ID of the referenced Warranty.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateWarrantyTypeResponseBody":{"description":"Warranty object","properties":{"baseCoverage":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageTypeResponseBody"},"coverages":{"description":"Additional coverage groups defined on this warranty.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageTypeResponseBody"},"type":"array"},"createdAtTime":{"description":"When the warranty was created.","example":"2019-06-13T19:08:25Z","type":"string"},"description":{"description":"Description of the warranty.","example":"12345","type":"string"},"durationDays":{"description":"Warranty length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Warranty length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Warranty length by engine hours since the warranty start.","example":12345,"format":"int64","type":"integer"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyExternalIdTypeResponseBody"},"type":"array"},"id":{"description":"Samsara ID for the warranty.","example":"12345","type":"string"},"name":{"description":"Name of the warranty.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Warranty length by distance travelled since the warranty start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"updatedAtTime":{"description":"When the warranty was last updated.","example":"2019-06-13T19:08:25Z","type":"string"},"vendor":{"$ref":"#/components/schemas/EntityUpdateWarrantyVendorRefTypeResponseBody"},"warrantyType":{"description":"Type of warranty, for example manufacturer, extended, other, or unknown.  Valid values: `unknown`, `manufacturer`, `extended`, `other`","enum":["unknown","manufacturer","extended","other"],"example":"unknown","type":"string"}},"type":"object"},"EntityUpdateWarrantyVendorRefTypeResponseBody":{"description":"Reference to a Vendor","properties":{"id":{"description":"The ID of the referenced Vendor.","example":"281474976710656","type":"string"}},"required":["id"],"type":"object"},"EntityUpdateWatchpointTypeResponseBody":{"description":"Watchpoint object","properties":{"bearingRange":{"$ref":"#/components/schemas/WatchpointBearingRangeTypeResponseBody"},"createdAtTime":{"description":"Time when the watchpoint resource was created.","example":"2026-07-15T10:00:00Z","type":"string"},"customDetections":{"description":"Configured detections. Omitted when none are configured.","items":{"$ref":"#/components/schemas/WatchpointCustomDetectionResponseTypeResponseBody"},"type":"array"},"id":{"description":"Unique identifier for the watchpoint.","example":"2eb0e68c-d728-4d2f-b9a0-8bc6ded86422","type":"string"},"lastObservationTime":{"description":"Time when the most recent observation was collected, or null when unavailable.","example":"2019-06-13T19:08:25Z","nullable":true,"type":"string"},"location":{"$ref":"#/components/schemas/WatchpointLatLngTypeResponseBody"},"mode":{"description":"Recurrence frequency for observations.  Valid values: `unknown`, `justOnce`, `daily`, `weekly`, `monthly`, `every15Minutes`, `hourly`","enum":["unknown","justOnce","daily","weekly","monthly","every15Minutes","hourly"],"example":"daily","type":"string"},"monitoringEndTime":{"description":"Server-derived end of the current monitoring window.","example":"2026-08-14T10:00:00Z","type":"string"},"monitoringStartTime":{"description":"Start of the current monitoring run.","example":"2026-07-15T10:00:00Z","type":"string"},"name":{"description":"Customer-provided name for the watchpoint, or null when unavailable.","example":"Market Street watchpoint","maxLength":80,"nullable":true,"type":"string"},"note":{"description":"Customer-provided note about the watchpoint, or null when unavailable.","example":"Monitor the intersection for road defects.","maxLength":280,"nullable":true,"type":"string"},"observationCount":{"description":"Number of observations collected for the watchpoint.","example":1,"format":"int64","type":"integer"},"observationType":{"description":"Type of condition to observe at this watchpoint.  Valid values: `unknown`, `roadDefect`, `utilityCut`, `guardrail`, `streetlight`, `signage`, `stormDrain`, `graffiti`, `vegetation`, `blight`, `illegalDumping`, `littering`, `highVegetationWeeds`, `fire`, `other`","enum":["unknown","roadDefect","utilityCut","guardrail","streetlight","signage","stormDrain","graffiti","vegetation","blight","illegalDumping","littering","highVegetationWeeds","fire","other"],"example":"roadDefect","type":"string"},"samsaraDashboardUrl":{"description":"Organization-scoped URL that opens this Watchpoint in the Samsara dashboard.","example":"https://cloud.samsara.com/o/123456/fleet/ground-intelligence?tab=monitors&monitorId=2eb0e68c-d728-4d2f-b9a0-8bc6ded86422","type":"string"},"status":{"description":"Current lifecycle status of the watchpoint.  Valid values: `unknown`, `active`, `completed`","enum":["unknown","active","completed"],"example":"active","type":"string"},"updatedAtTime":{"description":"Time when the public watchpoint projection was most recently updated.","example":"2026-07-15T10:00:01Z","type":"string"}},"required":["createdAtTime","id","lastObservationTime","location","mode","monitoringEndTime","monitoringStartTime","name","note","observationCount","observationType","samsaraDashboardUrl","status","updatedAtTime"],"type":"object"},"EntityVendorProfilesServiceCreateVendorBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorRequestBody":{"description":"Request body for creating a vendor","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionInputTypeRequestBody"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorHourlyMoneyInputTypeRequestBody"},"externalIds":{"description":"External identifiers belonging to this parent vendor.","items":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorGroupExternalIdInputTypeRequestBody"},"type":"array"},"isMobile":{"description":"Whether vendor locations inherit mobile service as their default.","example":true,"type":"boolean"},"isPreferred":{"description":"Default preferred status inherited by vendor locations.","example":true,"type":"boolean"},"name":{"description":"Name of the vendor profile.","example":"12345","type":"string"},"primaryCorporateContact":{"$ref":"#/components/schemas/CreateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactInputTypeRequestBody"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"}},"required":["name"],"type":"object"},"EntityVendorProfilesServiceCreateVendorResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreateVendorTypeResponseBody"}},"required":["data"],"type":"object"},"EntityVendorProfilesServiceCreateVendorServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceCreateVendorUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceDeleteVendorUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsResponseBody":{"properties":{"data":{"description":"An array of VendorProfiles","items":{"$ref":"#/components/schemas/EntityListVendorsTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityVendorProfilesServiceListVendorsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceListVendorsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorRequestBody":{"description":"Request body for updating a vendor","properties":{"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionInputTypeRequestBody"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorHourlyMoneyInputTypeRequestBody"},"externalIds":{"description":"External identifiers belonging to this parent vendor.","items":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorGroupExternalIdInputTypeRequestBody"},"type":"array"},"isMobile":{"description":"Whether vendor locations inherit mobile service as their default.","example":true,"type":"boolean"},"isPreferred":{"description":"Default preferred status inherited by vendor locations.","example":true,"type":"boolean"},"name":{"description":"Name of the vendor profile.","example":"12345","type":"string"},"primaryCorporateContact":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactInputTypeRequestBody"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"}},"type":"object"},"EntityVendorProfilesServiceUpdateVendorResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateVendorTypeResponseBody"}},"required":["data"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorProfilesServiceUpdateVendorUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationRequestBody":{"description":"Request body for creating a vendor location","properties":{"addressId":{"description":"Linked place identifier for the vendor address.","example":"281474976710656","type":"string"},"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorAssetAttributeSelectionInputTypeRequestBody"},"type":"array"},"contacts":{"description":"People to contact at the vendor.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorContactInputTypeRequestBody"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorHourlyMoneyInputTypeRequestBody"},"emailAddresses":{"description":"Email addresses for the vendor.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"externalIds":{"description":"Customer-supplied external identifiers for the vendor, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateVendorEntityVendorVendorExternalIdInputTypeRequestBody"},"type":"array"},"isMobile":{"description":"Whether this vendor provides mobile service. When unset, the profile or system default applies.","example":true,"type":"boolean"},"isPreferred":{"description":"Whether this vendor location is preferred. When unset, the profile or system default applies.","example":true,"type":"boolean"},"parentVendorId":{"description":"Parent vendor UUID. Null removes membership while preserving explicit overrides.","example":"12345","type":"string"},"payeeId":{"description":"Free-text AP/ERP payee identifier for the vendor. Not a reference to a Samsara entity.","example":"12345","type":"string"},"phoneNumbers":{"description":"Phone numbers for the vendor.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"servicesProvided":{"description":"Description of services provided by the vendor.","example":"12345","type":"string"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"vendorId":{"description":"User-defined identifier for the vendor.","example":"12345","type":"string"}},"required":["addressId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreateVendorLocationTypeResponseBody"}},"required":["data"],"type":"object"},"EntityVendorsServiceCreateVendorLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceCreateVendorLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceDeleteVendorLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationRequestBody":{"description":"Request body for updating a vendor location","properties":{"addressId":{"description":"Linked place identifier for the vendor address.","example":"281474976710656","type":"string"},"assetAttributeSelections":{"description":"Assets this vendor can service. Empty replaces inherited selections; null clears the setting.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorAssetAttributeSelectionInputTypeRequestBody"},"type":"array"},"contacts":{"description":"People to contact at the vendor.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorContactInputTypeRequestBody"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorHourlyMoneyInputTypeRequestBody"},"emailAddresses":{"description":"Email addresses for the vendor.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"externalIds":{"description":"Customer-supplied external identifiers for the vendor, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorExternalIdInputTypeRequestBody"},"type":"array"},"isMobile":{"description":"Whether this vendor provides mobile service. When unset, the profile or system default applies.","example":true,"type":"boolean"},"isPreferred":{"description":"Whether this vendor location is preferred. When unset, the profile or system default applies.","example":true,"type":"boolean"},"parentVendorId":{"description":"Parent vendor UUID. Null removes membership while preserving explicit overrides.","example":"12345","type":"string"},"payeeId":{"description":"Free-text AP/ERP payee identifier for the vendor. Not a reference to a Samsara entity.","example":"12345","type":"string"},"phoneNumbers":{"description":"Phone numbers for the vendor.","example":["12345","12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"servicesProvided":{"description":"Description of services provided by the vendor.","example":"12345","type":"string"},"status":{"description":"Own lifecycle status. Defaults to active. Unknown is read-only.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"vendorId":{"description":"User-defined identifier for the vendor.","example":"12345","type":"string"}},"type":"object"},"EntityVendorsServiceUpdateVendorLocationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateVendorLocationTypeResponseBody"}},"required":["data"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityVendorsServiceUpdateVendorLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyRequestBody":{"description":"Request body for creating a Warranty","properties":{"baseCoverage":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageInputTypeRequestBody"},"coverages":{"description":"Additional coverage groups defined on this warranty.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyCoverageInputTypeRequestBody"},"type":"array"},"description":{"description":"Description of the warranty.","example":"12345","type":"string"},"durationDays":{"description":"Warranty length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Warranty length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Warranty length by engine hours since the warranty start.","example":12345,"format":"int64","type":"integer"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateWarrantyEntityWarrantyWarrantyExternalIdInputTypeRequestBody"},"type":"array"},"name":{"description":"Name of the warranty.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Warranty length by distance travelled since the warranty start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"vendorId":{"description":"ID of the vendor that provides this warranty.","example":"281474976710656","type":"string"},"warrantyType":{"description":"Type of warranty, for example manufacturer, extended, other, or unknown.  Valid values: `unknown`, `manufacturer`, `extended`, `other`","enum":["unknown","manufacturer","extended","other"],"example":"unknown","type":"string"}},"required":["name"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreateWarrantyTypeResponseBody"}},"required":["data"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceCreateWarrantyUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceDeleteWarrantyUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesResponseBody":{"properties":{"data":{"description":"An array of Warranties","items":{"$ref":"#/components/schemas/EntityListWarrantiesTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityWarrantiesServiceListWarrantiesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceListWarrantiesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyRequestBody":{"description":"Request body for updating a Warranty","properties":{"baseCoverage":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageInputTypeRequestBody"},"coverages":{"description":"Additional coverage groups defined on this warranty.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageInputTypeRequestBody"},"type":"array"},"description":{"description":"Description of the warranty.","example":"12345","type":"string"},"durationDays":{"description":"Warranty length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Warranty length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Warranty length by engine hours since the warranty start.","example":12345,"format":"int64","type":"integer"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyExternalIdInputTypeRequestBody"},"type":"array"},"name":{"description":"Name of the warranty.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Warranty length by distance travelled since the warranty start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"vendorId":{"description":"ID of the vendor that provides this warranty.","example":"281474976710656","type":"string"},"warrantyType":{"description":"Type of warranty, for example manufacturer, extended, other, or unknown.  Valid values: `unknown`, `manufacturer`, `extended`, `other`","enum":["unknown","manufacturer","extended","other"],"example":"unknown","type":"string"}},"type":"object"},"EntityWarrantiesServiceUpdateWarrantyResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateWarrantyTypeResponseBody"}},"required":["data"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantiesServiceUpdateWarrantyUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsResponseBody":{"properties":{"data":{"description":"An array of WarrantyAssetAssignments","items":{"$ref":"#/components/schemas/EntityListWarrantyAssetAssignmentsTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimRequestBody":{"description":"Request body for creating a WarrantyClaim","properties":{"assetId":{"description":"ID of the asset the claim is filed for. Immutable once set.","example":"281474976710656","type":"string"},"cause":{"description":"The cause of the 3 Cs - the root cause found.","example":"12345","type":"string"},"claimEngineHours":{"description":"Engine hours at the time of repair.","example":12345,"format":"int64","type":"integer"},"claimOdometerMeters":{"description":"Asset odometer reading at the time of repair. Measured in meters.","example":12345,"format":"int64","type":"integer"},"claimStatus":{"description":"Current status of the claim.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"componentInstanceIds":{"description":"IDs of asset component instances covered by this claim.","example":["12345","12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"concern":{"description":"The concern of the 3 Cs - what was reported.","example":"12345","type":"string"},"correction":{"description":"The correction of the 3 Cs - the work performed.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdInputTypeRequestBody"},"type":"array"},"labor":{"description":"Labor being claimed.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborInputTypeRequestBody"},"type":"array"},"linkedWarrantyId":{"description":"ID of the warranty this claim is filed against.","example":"281474976710656","type":"string"},"linkedWorkOrderIds":{"description":"IDs of the work orders associated with this claim.","example":["12345","12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"mediaItemIds":{"description":"IDs of media items attached to the claim.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"otherCost":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"parts":{"description":"Parts being claimed.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartInputTypeRequestBody"},"type":"array"},"reimbursedAtTime":{"description":"When reimbursement was received.","example":"2019-06-13T19:08:25Z","type":"string"},"reimbursements":{"description":"Reimbursement amounts, optionally linked to a work order.","items":{"$ref":"#/components/schemas/CreateWarrantyClaimEntityWarrantyClaimClaimReimbursementInputTypeRequestBody"},"type":"array"},"repairCompletedAtTime":{"description":"When the repair was completed.","example":"2019-06-13T19:08:25Z","type":"string"},"resolutionAtTime":{"description":"When the claim was resolved.","example":"2019-06-13T19:08:25Z","type":"string"},"submittedAtTime":{"description":"When the claim was submitted to the vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"warrantyVendorId":{"description":"ID of the vendor handling the claim.","example":"281474976710656","type":"string"}},"required":["assetId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreateWarrantyClaimTypeResponseBody"}},"required":["data"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceCreateWarrantyClaimUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceDeleteWarrantyClaimUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsResponseBody":{"properties":{"data":{"description":"An array of WarrantyClaims","items":{"$ref":"#/components/schemas/EntityListWarrantyClaimsTypeResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceListWarrantyClaimsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimRequestBody":{"description":"Request body for updating a WarrantyClaim","properties":{"assetId":{"description":"ID of the asset the claim is filed for. Immutable once set.","example":"281474976710656","type":"string"},"cause":{"description":"The cause of the 3 Cs - the root cause found.","example":"12345","type":"string"},"claimEngineHours":{"description":"Engine hours at the time of repair.","example":12345,"format":"int64","type":"integer"},"claimOdometerMeters":{"description":"Asset odometer reading at the time of repair. Measured in meters.","example":12345,"format":"int64","type":"integer"},"claimStatus":{"description":"Current status of the claim.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"componentInstanceIds":{"description":"IDs of asset component instances covered by this claim.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"concern":{"description":"The concern of the 3 Cs - what was reported.","example":"12345","type":"string"},"correction":{"description":"The correction of the 3 Cs - the work performed.","example":"12345","type":"string"},"externalIds":{"description":"Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdInputTypeRequestBody"},"type":"array"},"labor":{"description":"Labor being claimed.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborInputTypeRequestBody"},"type":"array"},"linkedWarrantyId":{"description":"ID of the warranty this claim is filed against.","example":"281474976710656","type":"string"},"linkedWorkOrderIds":{"description":"IDs of the work orders associated with this claim.","example":["12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"mediaItemIds":{"description":"IDs of media items attached to the claim.","example":["12345","12345","12345"],"items":{"description":"element","example":"12345","type":"string"},"type":"array"},"otherCost":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"parts":{"description":"Parts being claimed.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartInputTypeRequestBody"},"type":"array"},"reimbursedAtTime":{"description":"When reimbursement was received.","example":"2019-06-13T19:08:25Z","type":"string"},"reimbursements":{"description":"Reimbursement amounts, optionally linked to a work order.","items":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimClaimReimbursementInputTypeRequestBody"},"type":"array"},"repairCompletedAtTime":{"description":"When the repair was completed.","example":"2019-06-13T19:08:25Z","type":"string"},"resolutionAtTime":{"description":"When the claim was resolved.","example":"2019-06-13T19:08:25Z","type":"string"},"submittedAtTime":{"description":"When the claim was submitted to the vendor.","example":"2019-06-13T19:08:25Z","type":"string"},"warrantyVendorId":{"description":"ID of the vendor handling the claim.","example":"281474976710656","type":"string"}},"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateWarrantyClaimTypeResponseBody"}},"required":["data"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWarrantyClaimsServiceUpdateWarrantyClaimUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointRequestBody":{"description":"Request body for creating a Watchpoint","properties":{"bearingRange":{"$ref":"#/components/schemas/WatchpointBearingRangeTypeRequestBody"},"customDetections":{"description":"Conditions to detect in new observations. Defaults to none. Requires custom detections to be enabled for your organization. Types must be distinct.","items":{"$ref":"#/components/schemas/WatchpointCustomDetectionRequestTypeRequestBody"},"maxItems":4,"type":"array"},"location":{"$ref":"#/components/schemas/WatchpointLatLngTypeRequestBody"},"mode":{"description":"Recurrence frequency for observations.  Valid values: `justOnce`, `daily`, `weekly`, `monthly`, `every15Minutes`, `hourly`","enum":["justOnce","daily","weekly","monthly","every15Minutes","hourly"],"example":"daily","type":"string"},"name":{"description":"Customer-provided name for the watchpoint.","example":"Market Street watchpoint","maxLength":80,"type":"string"},"note":{"description":"Customer-provided note about the watchpoint.","example":"Monitor the intersection for road defects.","maxLength":280,"type":"string"},"observationType":{"description":"Type of condition to observe at this watchpoint.  Valid values: `roadDefect`, `utilityCut`, `guardrail`, `streetlight`, `signage`, `stormDrain`, `graffiti`, `vegetation`, `blight`, `illegalDumping`, `littering`, `highVegetationWeeds`, `fire`, `other`","enum":["roadDefect","utilityCut","guardrail","streetlight","signage","stormDrain","graffiti","vegetation","blight","illegalDumping","littering","highVegetationWeeds","fire","other"],"example":"roadDefect","type":"string"},"sendDashboardNotification":{"default":false,"description":"Sends the authenticated user a dashboard notification for each new observation. Defaults to false. Ignored when the API token is not associated with a user.","example":false,"type":"boolean"}},"required":["location","mode","observationType"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityCreateWatchpointTypeResponseBody"}},"required":["data"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceCreateWatchpointUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointRequestBody":{"description":"Request body for updating a Watchpoint","properties":{"name":{"description":"Customer-provided name for the watchpoint. Set to null to clear.","example":"Market Street","maxLength":80,"nullable":true,"type":"string"},"note":{"description":"Customer-provided note about the watchpoint. Set to null to clear.","example":"Watch the intersection","maxLength":280,"nullable":true,"type":"string"},"observationType":{"description":"Type of condition to observe at this watchpoint.  Valid values: `roadDefect`, `utilityCut`, `guardrail`, `streetlight`, `signage`, `stormDrain`, `graffiti`, `vegetation`, `blight`, `illegalDumping`, `littering`, `highVegetationWeeds`, `fire`, `other`","enum":["roadDefect","utilityCut","guardrail","streetlight","signage","stormDrain","graffiti","vegetation","blight","illegalDumping","littering","highVegetationWeeds","fire","other"],"example":"utilityCut","type":"string"}},"type":"object"},"EntityWatchpointsServiceUpdateWatchpointResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EntityUpdateWatchpointTypeResponseBody"}},"required":["data"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EntityWatchpointsServiceUpdateWatchpointUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EnumReadingAlertThresholdResponseBody":{"description":"The threshold value of the alert for enum readings.","properties":{"number":{"description":"The numeric representation of the enum value.","example":2,"format":"int64","type":"integer"},"symbol":{"description":"The symbol representation of the enum value.","example":"HIGH","type":"string"}},"type":"object"},"EnumValueResponseBody":{"description":"Enumeration value","properties":{"label":{"description":"The label for this enum value that is suitable to show to a user. Translated to english.","example":"Critically High","type":"string"},"symbol":{"description":"The symbol that can be used to represent this enumeration value.","example":"criticallyHigh","type":"string"}},"required":["label","symbol"],"type":"object"},"Equipment":{"description":"An equipment object.","properties":{"assetSerial":{"description":"An equipment identification number.","example":"1FUJA6BD31LJ09646","type":"string"},"externalIds":{"$ref":"#/components/schemas/carrierProposedAssignmentDriverAllOf2ExternalIds"},"id":{"$ref":"#/components/schemas/EquipmentId"},"installedGateway":{"$ref":"#/components/schemas/Equipment_installedGateway"},"name":{"$ref":"#/components/schemas/EquipmentName"},"notes":{"description":"Notes about a piece of equipment. Samsara supports a maximum of 255 chars.","example":"These are notes about this given equipment.","maxLength":255,"type":"string"},"tags":{"description":"An array of all tag mini-objects that are associated with the given equipment.","items":{"$ref":"#/components/schemas/tagTinyResponse"},"type":"array"}},"required":["id"],"type":"object"},"EquipmentEngineRpm":{"description":"Engine RPM reading.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"The revolutions per minute of the engine.","example":1800,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentEngineSeconds":{"description":"[DEPRECATED] Please use either `gatewayEngineSeconds` or `obdEngineSeconds`.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the AG26 device is receiving power and an offset provided manually through the Samsara cloud dashboard.","example":22374000,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentEngineState":{"description":"[DEPRECATED] Please use either `gatewayEngineStates` or `obdEngineStates`.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Valid values: `Off`, `On`.","enum":["Off","On"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"EquipmentEngineTotalIdleTimeMinutes":{"description":"A time-series of engine total idle time minutes. (Beta)","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"Total time in minutes that the engine has been idling since the device was installed. This value is calculated based on the time the engine has been running while the vehicle is not in motion.","example":1000,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentFuelPercent":{"description":"Fuel percent reading.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"The percent of fuel in the unit of equipment.","example":54,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentGatewayEngineSeconds":{"description":"Engine seconds reading from the aux/digio cable.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"The number of seconds an engine has been running as detected via engine state. Used in combination with an offset provided manually through the Samsara cloud dashboard. Useful for when assets do not report engine hours over the J1939 network. The Engine Speed SPN must be available from the ECU for this parameter to properly calculate seconds. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14.","example":22374000,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentGatewayEngineState":{"description":"Engine state reading from the aux/digio cable.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Valid values: `Off`, `On`.","enum":["Off","On"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"EquipmentGatewayJ1939EngineSeconds":{"description":"Engine seconds reading from the J1939/CAT cable.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"The number of seconds an engine has been running as detected via aux input 1 active state. Used in combination with an offset provided manually through the Samsara cloud dashboard. This is supported with the following hardware configurations: AG24/AG26/AG46P + APWR cable (Auxiliary engine configuration required) AG52/AG53 + BPWR/BEQP cable (Auxiliary engine configuration required).","example":22374000,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentGpsOdometerMeters":{"description":"GPS odometer reading.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"An approximation of odometer reading based on GPS calculations since the AG26 was activated, and a manual odometer offset provided in the Samsara cloud dashboard.","example":3200,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentHeaderWithAdditionalFieldsResponseBody":{"description":"Equipment header fields.","properties":{"EquipmentID":{"description":"The unique Samsara ID of the equipment. This is automatically generated when the Equipment object is created. It cannot be changed.","example":"494123","type":"string"},"Model":{"description":"The model of the equipment.","example":"S630 T4","type":"string"},"OEMName":{"description":"The make of the equipment.","example":"Bobcat","type":"string"},"PIN":{"description":"The PIN number of the equipment.","example":"8V8WD530FLN016251","type":"string"},"SerialNumber":{"description":"The serial number of the equipment.","example":"8V8WD530FLN016251","type":"string"},"UnitInstallDateTime":{"description":"Telematics unit install date in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"EquipmentId":{"description":"Unique Samsara ID for the equipment.","example":"112","type":"string"},"EquipmentListResponse":{"description":"List of all equipment objects, and pagination information.","properties":{"data":{"description":"List of equipment objects.","items":{"$ref":"#/components/schemas/Equipment"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"EquipmentLocation":{"description":"Location reading.","properties":{"heading":{"description":"Heading of the unit of equipment in degrees.","example":120,"format":"double","type":"number"},"latitude":{"description":"GPS latitude represented in degrees","example":122.142,"format":"double","type":"number"},"longitude":{"description":"GPS longitude represented in degrees","example":-93.343,"format":"double","type":"number"},"speed":{"description":"GPS speed of the unit of equipment in miles per hour.","example":48.3,"format":"double","type":"number"},"time":{"$ref":"#/components/schemas/time"}},"required":["latitude","longitude","time"],"type":"object"},"EquipmentLocationsListResponse":{"description":"A time-series of equipment locations and pagination information","properties":{"data":{"description":"Time-series of locations for the specified units of equipment.","items":{"$ref":"#/components/schemas/EquipmentLocationsListResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"EquipmentLocationsListResponse_data":{"description":"A unit of equipment and its time-series of location events.","properties":{"id":{"$ref":"#/components/schemas/EquipmentId"},"locations":{"description":"A time-series of location events for the given unit of equipment.","items":{"$ref":"#/components/schemas/EquipmentLocation"},"type":"array"},"name":{"$ref":"#/components/schemas/EquipmentName"}},"required":["id","locations","name"],"type":"object"},"EquipmentLocationsResponse":{"description":"The most recent equipment locations and pagination information","properties":{"data":{"description":"List of the most recent locations for the specified units of equipment.","items":{"$ref":"#/components/schemas/EquipmentLocationsResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"EquipmentLocationsResponse_data":{"description":"A unit of equipment and its most recent location.","properties":{"id":{"$ref":"#/components/schemas/EquipmentId"},"location":{"$ref":"#/components/schemas/EquipmentLocation"},"name":{"$ref":"#/components/schemas/EquipmentName"}},"required":["id","location","name"],"type":"object"},"EquipmentName":{"description":"Name of the equipment.","example":"Crane A7","type":"string"},"EquipmentObdEngineSeconds":{"description":"Engine seconds reading from on-board diagnostics.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"The number of seconds the engine has been running as reported directly from on-board diagnostics. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14","example":22374000,"type":"integer"}},"required":["time","value"],"type":"object"},"EquipmentObdEngineState":{"description":"Engine state reading from on-board diagnostics.","properties":{"time":{"$ref":"#/components/schemas/EquipmentTime"},"value":{"description":"The state of the engine read from on-board diagnostics. Valid values: `Off`, `On`, `Idle`.","enum":["Off","On","Idle"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputRequestBody":{"description":"A request to set the state of an equipment digital output.","properties":{"durationSeconds":{"description":"How long, in seconds, to hold the requested state before the device automatically reverts. Provide `0` (the default) to hold the state indefinitely. The maximum is 604800 seconds (7 days).","example":60,"maximum":604800,"minimum":0,"type":"integer"},"pinId":{"description":"The digital output pin to control. Only pin `1` is currently supported.","example":1,"minimum":1,"type":"integer"},"state":{"description":"The desired output state. Provide `true` to energize the output, or `false` to de-energize it.","example":true,"type":"boolean"}},"required":["pinId","state"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/SetEquipmentDigitalOutputDataResponseBody"}},"required":["data"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentOutputControlSetEquipmentDigitalOutputUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentRequestBody":{"properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTiny"},"type":"array"},"engineHours":{"description":"When you provide a manual engine hours override, Samsara will begin updating a equipment's engine hours used since this override was set.","example":1234,"format":"int64","type":"integer"},"equipmentSerialNumber":{"description":"The serial number of the equipment.","example":"8V8WD530FLN016251","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unique Samsara ID of the Equipment. This is automatically generated when the Equipment object is created. It cannot be changed.","example":"494123","type":"string"},"name":{"description":"The human-readable name of the Equipment. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Equipment-123","type":"string"},"notes":{"description":"These are generic notes about the Equipment. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are my equipment notes","maxLength":255,"type":"string"},"odometerMeters":{"description":"When you provide a manual odometer override, Samsara will begin updating a equipment's odometer using GPS distance traveled since this override was set.","example":1234,"format":"int64","type":"integer"},"tagIds":{"description":"An array of IDs of tags to associate with this equipment. If your access to the API is scoped by one or more tags, this field is required to pass in. ","example":["Ducimus voluptates alias qui voluptate in.","Et autem et quia placeat."],"items":{"example":"Consequatur consequatur assumenda.","type":"string"},"type":"array"}},"type":"object"},"EquipmentPatchEquipmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/EquipmentWithAttributesResponseObjectResponseBody"}},"required":["data"],"type":"object"},"EquipmentPatchEquipmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentPatchEquipmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"EquipmentResponse":{"description":"A response containing an equipment object.","properties":{"data":{"$ref":"#/components/schemas/Equipment"}},"required":["data"],"type":"object"},"EquipmentStatsGps":{"description":"GPS location of equipment.","properties":{"address":{"$ref":"#/components/schemas/addressTinyResponse"},"headingDegrees":{"$ref":"#/components/schemas/AssetLocationHeading"},"latitude":{"description":"GPS latitude represented in degrees","example":122.142,"format":"double","type":"number"},"longitude":{"description":"GPS longitude represented in degrees","example":-93.343,"format":"double","type":"number"},"reverseGeo":{"$ref":"#/components/schemas/reverseGeo"},"speedMilesPerHour":{"$ref":"#/components/schemas/AssetLocationSpeed"},"time":{"$ref":"#/components/schemas/time"}},"required":["latitude","longitude","time"],"type":"object"},"EquipmentStatsListResponse":{"description":"A time-series of equipment stats and pagination information","properties":{"data":{"description":"Time-series of stats for the specified units of equipment and stat types.","items":{"$ref":"#/components/schemas/EquipmentStatsListResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"EquipmentStatsListResponse_data":{"description":"A unit of equipment and its time-series of stats events.","properties":{"engineRpm":{"description":"A time-series of engine RPM readings for the given unit of equipment.","items":{"$ref":"#/components/schemas/EquipmentEngineRpm"},"type":"array"},"engineSeconds":{"description":"[DEPRECATED] Please use either `gatewayEngineSeconds`, `obdEngineSeconds`, or `gatewayJ1939EngineSeconds`.","items":{"$ref":"#/components/schemas/EquipmentEngineSeconds"},"type":"array"},"engineStates":{"description":"[DEPRECATED] Please use either `gatewayEngineStates` or `obdEngineStates`.","items":{"$ref":"#/components/schemas/EquipmentEngineState"},"type":"array"},"engineTotalIdleTimeMinutes":{"description":"A time-series of engine total idle time minutes. (Beta)","items":{"$ref":"#/components/schemas/EquipmentEngineTotalIdleTimeMinutes"},"type":"array"},"fuelPercents":{"description":"A time-series of fuel percent level changes for the given unit of equipment.","items":{"$ref":"#/components/schemas/EquipmentFuelPercent"},"type":"array"},"gatewayEngineSeconds":{"description":"A time-series of engine seconds readings for the given unit of equipment as an approximate based on readings from the AG26's aux/digio cable.","items":{"$ref":"#/components/schemas/EquipmentGatewayEngineSeconds"},"type":"array"},"gatewayEngineStates":{"description":"A time-series of engine state changes (as read from the AG26's aux/digio cable) for the given unit of equipment.","items":{"$ref":"#/components/schemas/EquipmentGatewayEngineState"},"type":"array"},"gatewayJ1939EngineSeconds":{"description":"A time-series of engine seconds readings for the given unit of equipment as an approximate based on readings from the AG26's CAT/J1939 cable.","items":{"$ref":"#/components/schemas/EquipmentGatewayJ1939EngineSeconds"},"type":"array"},"gps":{"description":"A time-series of GPS locations.","items":{"$ref":"#/components/schemas/EquipmentStatsGps"},"type":"array"},"gpsOdometerMeters":{"description":"A time-series of GPS odometer readings for the given unit of equipment.","items":{"$ref":"#/components/schemas/EquipmentGpsOdometerMeters"},"type":"array"},"id":{"$ref":"#/components/schemas/EquipmentId"},"name":{"$ref":"#/components/schemas/EquipmentName"},"obdEngineSeconds":{"description":"A time-series of engine seconds readings for the given unit of equipment directly from on-board diagnostics.","items":{"$ref":"#/components/schemas/EquipmentObdEngineSeconds"},"type":"array"},"obdEngineStates":{"description":"A time-series of engine state changes (as read from on-board diagnostics) for the given unit of equipment.","items":{"$ref":"#/components/schemas/EquipmentObdEngineState"},"type":"array"}},"required":["id","name"],"type":"object"},"EquipmentStatsResponse":{"description":"The most recent equipment stats and pagination information","properties":{"data":{"description":"List of the most recent stats for the specified units of equipment and stat types.","items":{"$ref":"#/components/schemas/EquipmentStatsResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"EquipmentStatsResponse_data":{"description":"A unit of equipment and its most recent stat.","properties":{"engineRpm":{"$ref":"#/components/schemas/EquipmentEngineRpm"},"engineSeconds":{"$ref":"#/components/schemas/EquipmentEngineSeconds"},"engineState":{"$ref":"#/components/schemas/EquipmentEngineState"},"engineTotalIdleTimeMinutes":{"$ref":"#/components/schemas/EquipmentEngineTotalIdleTimeMinutes"},"fuelPercent":{"$ref":"#/components/schemas/EquipmentFuelPercent"},"gatewayEngineSeconds":{"$ref":"#/components/schemas/EquipmentGatewayEngineSeconds"},"gatewayEngineState":{"$ref":"#/components/schemas/EquipmentGatewayEngineState"},"gps":{"$ref":"#/components/schemas/EquipmentStatsGps"},"gpsOdometerMeters":{"$ref":"#/components/schemas/EquipmentGpsOdometerMeters"},"id":{"$ref":"#/components/schemas/EquipmentId"},"name":{"$ref":"#/components/schemas/EquipmentName"},"obdEngineSeconds":{"$ref":"#/components/schemas/EquipmentObdEngineSeconds"},"obdEngineState":{"$ref":"#/components/schemas/EquipmentObdEngineState"}},"required":["id","name"],"type":"object"},"EquipmentTime":{"description":"UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.","example":"2019-05-03T04:30:31Z","type":"string"},"EquipmentWithAttributesResponseObjectResponseBody":{"description":"The equipment object.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"equipmentSerialNumber":{"description":"The serial number of the equipment.","example":"8V8WD530FLN016251","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unique Samsara ID of the Equipment. This is automatically generated when the Equipment object is created. It cannot be changed.","example":"494123","type":"string"},"installedGateway":{"$ref":"#/components/schemas/GoaGatewayTinyResponseResponseBody"},"name":{"description":"The human-readable name of the Equipment. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Equipment-123","type":"string"},"notes":{"description":"These are generic notes about the Equipment. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are my equipment notes","maxLength":255,"type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Equipment.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"type":"object"},"Equipment_installedGateway":{"properties":{"model":{"description":"The model of the installed Samsara gateway.","example":"Ag26","type":"string"},"serial":{"description":"The serial of the installed Samsara gateway.","type":"string"}},"type":"object"},"EventLocationResponseBody":{"description":"Information about a location when the vehicle was stopped.","properties":{"latitude":{"description":"Latitude of the event.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the event.","example":137.7749,"format":"double","type":"number"}},"type":"object"},"ExtendedDriverTinyResponse":{"description":"A minified driver object.","properties":{"externalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"properties":{},"type":"object"},"id":{"description":"ID of the driver.","example":"88668","type":"string"},"name":{"description":"Name of the driver.","example":"Susan Bob","type":"string"},"username":{"description":"Username of the driver.","example":"susanbob","type":"string"}},"type":"object"},"ExternalIds":{"$ref":"#/components/schemas/VehicleExternalIds"},"FftSpectraDataPoint":{"description":"FFT spectrum data point of a data input.","properties":{"fftSpectra":{"$ref":"#/components/schemas/FftSpectraDataPoint_fftSpectra"},"time":{"$ref":"#/components/schemas/time"}},"type":"object"},"FftSpectraDataPoint_fftSpectra":{"description":"FFT spectrum data","properties":{"frequencies":{"description":"Frequencies","items":{"format":"double","type":"number"},"type":"array"},"x":{"description":"X-axis data","items":{"format":"double","type":"number"},"type":"array"},"y":{"description":"Y-axis data","items":{"format":"double","type":"number"},"type":"array"},"z":{"description":"Z-axis data","items":{"format":"double","type":"number"},"type":"array"}},"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusRequestBody":{"properties":{"duty_status":{"description":"Duty status to set the driver to. The only supported values are 'ON_DUTY' and 'OFF_DUTY'.","example":"ON_DUTY","type":"string"},"location":{"description":"Location to associate the duty status change with.","example":"Loading dock","type":"string"},"remarks":{"description":"Remark to associate the duty status change with.","example":"Beginning On Duty Shift","type":"string"},"status_change_at_ms":{"description":"Timestamp that the duty status will begin at specified in milliseconds UNIX time. Defaults to the current time if left blank. This can only be set to up to 8 hours in the past.","example":1580834793568,"format":"int64","type":"integer"},"vehicle_id":{"description":"Vehicle ID to associate the duty status change with.","example":1234,"format":"int64","type":"integer"}},"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetDriverHosDutyStatusSetCurrentDutyStatusUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadContextResponseBody":{"description":"Presigned S3 PUT context returned on session creation.","properties":{"expiresAtTime":{"description":"Presigned URL expiry (RFC 3339). The Step 2 PUT must complete before this time.","example":"2026-06-01T18:30:00Z","format":"date-time","type":"string"},"headers":{"additionalProperties":{"type":"string"},"description":"HTTP headers the client MUST include verbatim on the Step 2 PUT request. Keys use S3 HTTP header naming (Title-Case-With-Hyphens) and are not subject to Samsara naming conventions.","example":{"Content-Length":"482193","Content-MD5":"rL0Y20zC+Fzt72VPzMSk2A==","Content-Type":"image/jpeg"},"type":"object"},"uploadUrl":{"description":"Presigned S3 PUT URL. Valid until expiresAtTime.","example":"https://samsara-media.s3.amazonaws.com/fleet-installer/550e8400-e29b-41d4-a716-446655440000","type":"string"}},"required":["expiresAtTime","headers","uploadUrl"],"type":"object"},"FleetInstallerPhotoUploadCreateDataResponseBody":{"description":"Upload session with presigned S3 context. uploadContext is present only in the POST create response.","properties":{"contentMd5":{"description":"Base64-encoded MD5 of the file bytes.","example":"rL0Y20zC+Fzt72VPzMSk2A==","type":"string"},"createdAtTime":{"description":"Session creation timestamp (RFC 3339).","example":"2026-06-01T18:15:00Z","format":"date-time","type":"string"},"deviceId":{"description":"Samsara device ID.","example":"281474977961335","type":"string"},"fileFormatType":{"description":"File format.  Valid values: `imageJpeg`, `imagePng`, `unknown`","enum":["imageJpeg","imagePng","unknown"],"example":"imageJpeg","type":"string"},"fileName":{"description":"Original file name supplied at session creation.","example":"front_camera_install.jpg","type":"string"},"hardwareType":{"description":"Hardware category of the device.  Valid values: `vehicleGateway`, `assetGateway`, `camera`, `cameraConnector`, `environmentalMonitor`, `assetTag`, `trackingLabel`, `unknown`","enum":["vehicleGateway","assetGateway","camera","cameraConnector","environmentalMonitor","assetTag","trackingLabel","unknown"],"example":"vehicleGateway","type":"string"},"id":{"description":"Unique session UUID.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"photoType":{"description":"Purpose of the photo.  Valid values: `installPhoto`, `assetPhoto`, `unknown`","enum":["installPhoto","assetPhoto","unknown"],"example":"installPhoto","type":"string"},"processingStatus":{"description":"Upload lifecycle state.  Valid values: `awaitingUpload`, `processing`, `finished`, `unknown`","enum":["awaitingUpload","processing","finished","unknown"],"example":"awaitingUpload","type":"string"},"sizeBytes":{"description":"File size in bytes.","example":482193,"format":"int64","type":"integer"},"updatedAtTime":{"description":"Timestamp of last state change (RFC 3339). Equals createdAtTime at session creation; updated when processingStatus changes.","example":"2026-06-01T18:15:00Z","format":"date-time","type":"string"},"uploadContext":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadContextResponseBody"}},"required":["contentMd5","createdAtTime","deviceId","fileFormatType","fileName","hardwareType","id","photoType","processingStatus","sizeBytes","updatedAtTime","uploadContext"],"type":"object"},"FleetInstallerPhotoUploadSessionResponseBody":{"description":"A fleet installer photo upload session.","properties":{"contentMd5":{"description":"Base64-encoded MD5 of the file bytes.","example":"rL0Y20zC+Fzt72VPzMSk2A==","type":"string"},"createdAtTime":{"description":"Session creation timestamp (RFC 3339).","example":"2026-06-01T18:15:00Z","format":"date-time","type":"string"},"deviceId":{"description":"Samsara device ID.","example":"281474977961335","type":"string"},"fileFormatType":{"description":"File format.  Valid values: `imageJpeg`, `imagePng`, `unknown`","enum":["imageJpeg","imagePng","unknown"],"example":"imageJpeg","type":"string"},"fileName":{"description":"Original file name supplied at session creation.","example":"front_camera_install.jpg","type":"string"},"hardwareType":{"description":"Hardware category of the device.  Valid values: `vehicleGateway`, `assetGateway`, `camera`, `cameraConnector`, `environmentalMonitor`, `assetTag`, `trackingLabel`, `unknown`","enum":["vehicleGateway","assetGateway","camera","cameraConnector","environmentalMonitor","assetTag","trackingLabel","unknown"],"example":"vehicleGateway","type":"string"},"id":{"description":"Unique session UUID.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"photoType":{"description":"Purpose of the photo.  Valid values: `installPhoto`, `assetPhoto`, `unknown`","enum":["installPhoto","assetPhoto","unknown"],"example":"installPhoto","type":"string"},"processingStatus":{"description":"Upload lifecycle state.  Valid values: `awaitingUpload`, `processing`, `finished`, `unknown`","enum":["awaitingUpload","processing","finished","unknown"],"example":"awaitingUpload","type":"string"},"sizeBytes":{"description":"File size in bytes.","example":482193,"format":"int64","type":"integer"},"updatedAtTime":{"description":"Timestamp of last state change (RFC 3339). Equals createdAtTime at session creation; updated when processingStatus changes.","example":"2026-06-01T18:15:00Z","format":"date-time","type":"string"}},"required":["contentMd5","createdAtTime","deviceId","fileFormatType","fileName","hardwareType","id","photoType","processingStatus","sizeBytes","updatedAtTime"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody":{"properties":{"data":{"description":"Upload sessions ordered by updatedAtTime ascending. Up to 25 results per page.","items":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadSessionResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadSessionResponseBody"}},"required":["data"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody":{"description":"Request body for creating a fleet installer photo upload session.","properties":{"contentMd5":{"description":"Base64-encoded MD5 of the file bytes. Signed into the presigned URL as Content-MD5; object storage verifies upload integrity on PUT. Must be exactly 24 characters (base64-encoded 16-byte MD5 digest).","example":"rL0Y20zC+Fzt72VPzMSk2A==","maxLength":24,"minLength":24,"type":"string"},"deviceId":{"description":"Samsara device ID. The device must belong to the caller's organization.","example":"281474977961335","type":"string"},"fileFormatType":{"description":"File format. Samsara maps this to the corresponding MIME type for the presigned URL.  Valid values: `imageJpeg`, `imagePng`","enum":["imageJpeg","imagePng"],"example":"imageJpeg","type":"string"},"fileName":{"description":"Original file name. Max 255 characters; printable characters only; no null bytes or path separators (/ or \\).","example":"front_camera_install.jpg","maxLength":255,"minLength":1,"pattern":"^[^\u0000/\\\\]+$","type":"string"},"hardwareType":{"description":"Hardware category of the device being installed.  Valid values: `vehicleGateway`, `assetGateway`, `camera`, `cameraConnector`, `environmentalMonitor`, `assetTag`, `trackingLabel`","enum":["vehicleGateway","assetGateway","camera","cameraConnector","environmentalMonitor","assetTag","trackingLabel"],"example":"vehicleGateway","type":"string"},"photoType":{"description":"Purpose of the photo.  Valid values: `installPhoto`, `assetPhoto`","enum":["installPhoto","assetPhoto"],"example":"installPhoto","type":"string"},"sizeBytes":{"description":"File size in bytes. Validated against the maximum allowed size (10 MB) and signed into the presigned URL as Content-Length.","example":482193,"maximum":10485760,"minimum":1,"type":"integer"}},"required":["contentMd5","deviceId","fileFormatType","fileName","hardwareType","photoType","sizeBytes"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadCreateDataResponseBody"}},"required":["data"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsResponseBody":{"properties":{"pagination":{"$ref":"#/components/schemas/FleetLocationsPaginationResponseBody"},"vehicles":{"description":"List of vehicle locations.","items":{"$ref":"#/components/schemas/VehicleLocationResponseBody"},"type":"array"}},"required":["pagination","vehicles"],"type":"object"},"FleetLocationsGetFleetLocationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsGetFleetLocationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetLocationsPaginationResponseBody":{"description":"Pagination parameters.","properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.","example":"MTA1MDc5MB==","type":"string"},"hasNextPage":{"description":"True if there are more pages of results after this response.","example":true,"type":"boolean"}},"required":["endCursor","hasNextPage"],"type":"object"},"FleetMaintenanceJ1939CheckEngineLightResponseBody":{"description":"J1939 check engine lights.","properties":{"emissionsIsOn":{"example":true,"type":"boolean"},"protectIsOn":{"example":true,"type":"boolean"},"stopIsOn":{"example":false,"type":"boolean"},"warningIsOn":{"example":false,"type":"boolean"}},"type":"object"},"FleetMaintenanceJ1939DataResponseBody":{"description":"J1939 based data. Null if no data is available.","properties":{"checkEngineLight":{"$ref":"#/components/schemas/FleetMaintenanceJ1939CheckEngineLightResponseBody"},"diagnosticTroubleCodes":{"description":"J1939 DTCs.","items":{"$ref":"#/components/schemas/FleetMaintenanceJ1939DiagnosticTroubleCodeResponseBody"},"type":"array"}},"required":["checkEngineLight","diagnosticTroubleCodes"],"type":"object"},"FleetMaintenanceJ1939DiagnosticTroubleCodeResponseBody":{"properties":{"fmiId":{"example":1617589568,"format":"int32","type":"integer"},"fmiText":{"example":"Data valid but above normal operational range - most severe level","type":"string"},"occurrenceCount":{"example":55521528,"format":"int32","type":"integer"},"spnDescription":{"example":"Engine oil pressure","type":"string"},"spnId":{"example":1589893012,"format":"int32","type":"integer"},"txId":{"example":725410158,"format":"int32","type":"integer"}},"required":["fmiId","fmiText","occurrenceCount","spnDescription","spnId","txId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListResponseBody":{"properties":{"vehicles":{"description":"List of vehicles and maintenance information about each.","items":{"$ref":"#/components/schemas/FleetMaintenanceVehicleResponseBody"},"type":"array"}},"required":["vehicles"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenanceListGetFleetMaintenanceListUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetMaintenancePassengerCheckEngineLightResponseBody":{"description":"Passenger vehicle check engine light.","properties":{"isOn":{"example":false,"type":"boolean"}},"type":"object"},"FleetMaintenancePassengerDataResponseBody":{"description":"Passenger vehicle data. Null if no data is available.","properties":{"checkEngineLight":{"$ref":"#/components/schemas/FleetMaintenancePassengerCheckEngineLightResponseBody"},"diagnosticTroubleCodes":{"description":"Passenger vehicle DTCs.","items":{"$ref":"#/components/schemas/FleetMaintenancePassengerDiagnosticTroubleCodeResponseBody"},"type":"array"}},"required":["checkEngineLight","diagnosticTroubleCodes"],"type":"object"},"FleetMaintenancePassengerDiagnosticTroubleCodeResponseBody":{"properties":{"dtcDescription":{"example":"Oxygen sensor circuit low voltage","type":"string"},"dtcId":{"example":524450678,"format":"int32","type":"integer"},"dtcShortCode":{"example":"P0131","type":"string"}},"required":["dtcDescription","dtcId","dtcShortCode"],"type":"object"},"FleetMaintenanceVehicleResponseBody":{"description":"Contains any J1939/Passenger engine light warnings and engine faults.","properties":{"id":{"description":"ID of the vehicle.","example":112,"format":"int64","type":"integer"},"j1939":{"$ref":"#/components/schemas/FleetMaintenanceJ1939DataResponseBody"},"passenger":{"$ref":"#/components/schemas/FleetMaintenancePassengerDataResponseBody"}},"required":["id","j1939","passenger"],"type":"object"},"FleetOrderBatchCustomAddressInputRequestBody":{"description":"A one-time structured service address. Coordinate ranges are validated per batch item.","properties":{"addressLine1":{"description":"First address line.","example":"123 Main St","type":"string"},"addressLine2":{"description":"Second address line.","example":"Dock 4","type":"string"},"city":{"description":"City.","example":"Oakland","type":"string"},"country":{"description":"Country.","example":"US","type":"string"},"formattedAddress":{"description":"Human-readable formatted address.","example":"123 Main St, Oakland, CA 94607","type":"string"},"latitude":{"description":"Latitude in decimal degrees. Must be between -90 and 90.","example":37.8044,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees. Must be between -180 and 180.","example":-122.2712,"format":"double","type":"number"},"postalCode":{"description":"Postal code.","example":"94607","type":"string"},"state":{"description":"State, province, or region.","example":"CA","type":"string"}},"type":"object"},"FleetOrderBatchCustomerPropertyInputRequestBody":{"description":"Customer-defined metadata entry. Key and value are required and validated per batch item.","properties":{"key":{"description":"Customer-defined property key. Required.","example":"purchaseOrderNumber","type":"string"},"value":{"description":"Customer-defined property value. Required.","example":"PO-12345","type":"string"}},"type":"object"},"FleetOrderBatchQuantityInputRequestBody":{"description":"A labelled quantity for an order task. Label and a finite, non-negative value are required and validated per batch item.","properties":{"capacityId":{"description":"Optional capacity UUID for the task hub.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"label":{"description":"Human-readable quantity label. Required.","example":"pallets","type":"string"},"value":{"description":"Finite, non-negative quantity value. Required.","example":12,"format":"double","type":"number"}},"type":"object"},"FleetOrderBatchResponseItemResponseBody":{"description":"Result for one atomic batch input.","properties":{"data":{"$ref":"#/components/schemas/FleetOrderObjectResponseBody"},"message":{"description":"Failure message.","example":"data[0].tasks[0].taskType is invalid","type":"string"},"status":{"description":"HTTP-style status for this input.","example":7796043317718989000,"format":"int64","type":"integer"}},"required":["status"],"type":"object"},"FleetOrderBatchServiceLocationInputRequestBody":{"description":"Saved or one-time service location for an order task. The discriminator and matching branch are validated per batch item.","properties":{"addressId":{"description":"Saved address ID. Required for savedAddress locations.","example":"12345678","type":"string"},"customAddress":{"$ref":"#/components/schemas/FleetOrderBatchCustomAddressInputRequestBody"},"serviceLocationType":{"description":"Location discriminator. Required; must be savedAddress or customAddress.","example":"savedAddress","type":"string"}},"type":"object"},"FleetOrderBatchServiceWindowUpsertInputRequestBody":{"description":"A service window to create or update. Timestamp formats are validated per batch item.","properties":{"endTime":{"description":"Service window end in RFC 3339 format.","example":"2026-07-01T11:00:00Z","type":"string"},"id":{"description":"Existing service window UUID. Omit to create a window.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"startTime":{"description":"Service window start in RFC 3339 format.","example":"2026-07-01T09:00:00Z","type":"string"}},"type":"object"},"FleetOrderBatchTaskUpsertInputRequestBody":{"description":"An order task to create or update. Required fields are enforced by the transport; value constraints are validated per batch item.","properties":{"customerProperties":{"description":"Task-specific customer metadata.","items":{"$ref":"#/components/schemas/FleetOrderBatchCustomerPropertyInputRequestBody"},"type":"array"},"dispatcherNotes":{"description":"Dispatcher-visible note.","example":"Customer requires lift gate","type":"string"},"driverNotes":{"description":"Driver-visible note.","example":"Use loading dock 4","type":"string"},"hubId":{"description":"Hub UUID for this task.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"id":{"description":"Existing task ID. Omit to create a task.","example":"12345678","type":"string"},"positionConstraintType":{"description":"Task position constraint. Must be none, first, or last.","example":"none","type":"string"},"quantities":{"description":"Task quantities.","items":{"$ref":"#/components/schemas/FleetOrderBatchQuantityInputRequestBody"},"type":"array"},"serviceDurationSeconds":{"description":"Expected non-negative service duration in seconds.","example":900,"format":"int64","type":"integer"},"serviceLocation":{"$ref":"#/components/schemas/FleetOrderBatchServiceLocationInputRequestBody"},"serviceWindowIdsToRemove":{"description":"Existing service window UUIDs to retire.","example":["Ullam molestiae qui culpa.","Odit reiciendis harum ea rerum."],"items":{"description":"Service window UUID to retire.","example":"Earum ex.","type":"string"},"type":"array"},"serviceWindows":{"description":"Service windows to create or update.","items":{"$ref":"#/components/schemas/FleetOrderBatchServiceWindowUpsertInputRequestBody"},"type":"array"},"taskType":{"description":"Task type. Must be delivery, pickup, or pickupDelivery.","example":"delivery","type":"string"}},"required":["hubId","taskType"],"type":"object"},"FleetOrderBatchUpsertInputRequestBody":{"description":"A canonical order to create or update in an atomic standalone batch.","properties":{"customerProperties":{"description":"Order-specific customer metadata.","items":{"$ref":"#/components/schemas/FleetOrderBatchCustomerPropertyInputRequestBody"},"type":"array"},"externalIds":{"description":"Org-scoped external identifiers.","example":{"tmsOrder":"12345"},"properties":{},"type":"object"},"id":{"description":"Existing Samsara order UUID. Required unless externalIds is supplied.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"samsaraCustomerOrderName":{"description":"Human-readable order label.","example":"Order 12345","type":"string"},"taskIdsToRemove":{"description":"Existing task IDs to retire.","example":["Nulla id dolorum molestiae officiis.","Tenetur vel neque aut ad.","Quia officiis facilis labore eius.","Non qui aut autem."],"items":{"description":"Existing task ID to retire.","example":"Perspiciatis aut facilis qui atque animi.","type":"string"},"type":"array"},"tasks":{"description":"Tasks to create or update. Omitted existing tasks remain live.","items":{"$ref":"#/components/schemas/FleetOrderBatchTaskUpsertInputRequestBody"},"type":"array"}},"type":"object"},"FleetOrderCustomAddressInputRequestBody":{"description":"A one-time structured service address.","properties":{"addressLine1":{"description":"First address line.","example":"123 Main St","type":"string"},"addressLine2":{"description":"Second address line.","example":"Dock 4","type":"string"},"city":{"description":"City.","example":"Oakland","type":"string"},"country":{"description":"Country.","example":"US","type":"string"},"formattedAddress":{"description":"Human-readable formatted address.","example":"123 Main St, Oakland, CA 94607","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":37.8044,"maximum":90,"minimum":-90,"type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":-122.2712,"maximum":180,"minimum":-180,"type":"number"},"postalCode":{"description":"Postal code.","example":"94607","type":"string"},"state":{"description":"State, province, or region.","example":"CA","type":"string"}},"type":"object"},"FleetOrderCustomAddressObjectResponseBody":{"description":"A one-time structured service address.","properties":{"addressLine1":{"description":"First address line.","example":"123 Main St","type":"string"},"addressLine2":{"description":"Second address line.","example":"Dock 4","type":"string"},"city":{"description":"City.","example":"Oakland","type":"string"},"country":{"description":"Country.","example":"US","type":"string"},"formattedAddress":{"description":"Human-readable formatted address.","example":"123 Main St, Oakland, CA 94607","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":0.8920050879069387,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":0.8199449418715566,"format":"double","type":"number"},"postalCode":{"description":"Postal code.","example":"94607","type":"string"},"state":{"description":"State, province, or region.","example":"CA","type":"string"}},"type":"object"},"FleetOrderCustomerPropertyObjectRequestBody":{"description":"Customer-defined order metadata.","properties":{"key":{"description":"Customer-defined property key.","example":"purchaseOrderNumber","type":"string"},"value":{"description":"Customer-defined property value.","example":"PO-12345","type":"string"}},"required":["key","value"],"type":"object"},"FleetOrderCustomerPropertyObjectResponseBody":{"description":"Customer-defined order metadata.","properties":{"key":{"description":"Customer-defined property key.","example":"purchaseOrderNumber","type":"string"},"value":{"description":"Customer-defined property value.","example":"PO-12345","type":"string"}},"required":["key","value"],"type":"object"},"FleetOrderDeletionMarkerObjectResponseBody":{"description":"Marker for a deleted canonical order.","properties":{"deletedAtTime":{"description":"Deletion timestamp in RFC 3339 format.","example":"1976-05-07T19:03:50Z","format":"date-time","type":"string"},"id":{"description":"Samsara-generated canonical order UUID.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"}},"required":["deletedAtTime","id"],"type":"object"},"FleetOrderObjectResponseBody":{"description":"A canonical customer order.","properties":{"createdAtTime":{"description":"Creation timestamp in RFC 3339 format.","example":"1990-08-31T23:49:19Z","format":"date-time","type":"string"},"customerProperties":{"description":"Order-specific customer metadata.","items":{"$ref":"#/components/schemas/FleetOrderCustomerPropertyObjectResponseBody"},"type":"array"},"externalIds":{"description":"Org-scoped external identifiers.","example":{"Atque error at mollitia.":"Non sed sed sed quam et delectus.","Et ea.":"Enim aspernatur sit soluta provident et sit.","Eum expedita omnis quos repellendus.":"Aut sed est quisquam ut voluptas."},"properties":{},"type":"object"},"id":{"description":"Samsara-generated canonical order UUID.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"samsaraCustomerOrderName":{"description":"Human-readable order label.","example":"Order 12345","type":"string"},"tasks":{"description":"Live order tasks.","items":{"$ref":"#/components/schemas/FleetOrderTaskObjectResponseBody"},"type":"array"},"updatedAtTime":{"description":"Last update timestamp in RFC 3339 format.","example":"2003-10-18T15:58:15Z","format":"date-time","type":"string"}},"required":["createdAtTime","customerProperties","id","tasks","updatedAtTime"],"type":"object"},"FleetOrderQuantityInputRequestBody":{"description":"A labelled quantity for an order task.","properties":{"capacityId":{"description":"Optional capacity UUID for the task hub.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"label":{"description":"Human-readable quantity label.","example":"pallets","type":"string"},"value":{"description":"Finite, non-negative quantity value.","example":12,"minimum":0,"type":"number"}},"required":["label","value"],"type":"object"},"FleetOrderQuantityObjectResponseBody":{"description":"A labelled task quantity.","properties":{"capacityId":{"description":"Capacity UUID when this quantity uses a configured capacity.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"id":{"description":"Opaque quantity UUID.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"label":{"description":"Human-readable quantity label.","example":"pallets","type":"string"},"value":{"description":"Quantity value.","example":0.23962707185822993,"format":"double","type":"number"}},"required":["id","label","value"],"type":"object"},"FleetOrderServiceLocationInputRequestBody":{"description":"Saved or one-time service location for an order task.","properties":{"addressId":{"description":"Saved address ID. Required for savedAddress locations.","example":"12345678","type":"string"},"customAddress":{"$ref":"#/components/schemas/FleetOrderCustomAddressInputRequestBody"},"serviceLocationType":{"description":"Location discriminator.  Valid values: `savedAddress`, `customAddress`","enum":["savedAddress","customAddress"],"example":"savedAddress","type":"string"}},"required":["serviceLocationType"],"type":"object"},"FleetOrderServiceLocationObjectResponseBody":{"description":"A saved, one-time, or unknown task service location.","properties":{"addressId":{"description":"Saved address ID.","example":"12345678","type":"string"},"customAddress":{"$ref":"#/components/schemas/FleetOrderCustomAddressObjectResponseBody"},"serviceLocationType":{"description":"Location discriminator. Returns unknown when the backend location variant is not recognized.  Valid values: `unknown`, `savedAddress`, `customAddress`","enum":["unknown","savedAddress","customAddress"],"example":"unknown","type":"string"}},"required":["serviceLocationType"],"type":"object"},"FleetOrderServiceWindowObjectResponseBody":{"description":"A task service window.","properties":{"endTime":{"description":"Service window end in RFC 3339 format.","example":"1975-07-07T21:36:20Z","format":"date-time","type":"string"},"id":{"description":"Opaque service window UUID.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"startTime":{"description":"Service window start in RFC 3339 format.","example":"1975-02-20T04:43:33Z","format":"date-time","type":"string"}},"required":["id"],"type":"object"},"FleetOrderServiceWindowUpsertInputRequestBody":{"description":"A service window to create or update.","properties":{"endTime":{"description":"Service window end in RFC 3339 format.","example":"2026-07-01T11:00:00Z","format":"date-time","type":"string"},"id":{"description":"Existing service window UUID. Omit to create a window.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"startTime":{"description":"Service window start in RFC 3339 format.","example":"2026-07-01T09:00:00Z","format":"date-time","type":"string"}},"type":"object"},"FleetOrderTaskObjectResponseBody":{"description":"An action belonging to a canonical order.","properties":{"createdAtTime":{"description":"Creation timestamp in RFC 3339 format.","example":"1977-01-10T23:36:08Z","format":"date-time","type":"string"},"customerProperties":{"description":"Task-specific customer metadata.","items":{"$ref":"#/components/schemas/FleetOrderCustomerPropertyObjectResponseBody"},"type":"array"},"dispatcherNotes":{"description":"Dispatcher-visible note.","example":"Customer requires lift gate","type":"string"},"driverNotes":{"description":"Driver-visible note.","example":"Use loading dock 4","type":"string"},"hubId":{"description":"Hub UUID for the task.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"id":{"description":"Opaque task ID.","example":"12345678","type":"string"},"positionConstraintType":{"description":"Task position constraint.  Valid values: `unknown`, `none`, `first`, `last`","enum":["unknown","none","first","last"],"example":"unknown","type":"string"},"quantities":{"description":"Task quantities.","items":{"$ref":"#/components/schemas/FleetOrderQuantityObjectResponseBody"},"type":"array"},"routeId":{"description":"Route ID when this task is attached to a route.","example":"12345678","type":"string"},"serviceDurationSeconds":{"description":"Expected service duration in seconds.","example":1920015009061035500,"format":"int64","type":"integer"},"serviceLocation":{"$ref":"#/components/schemas/FleetOrderServiceLocationObjectResponseBody"},"serviceWindows":{"description":"Task service windows.","items":{"$ref":"#/components/schemas/FleetOrderServiceWindowObjectResponseBody"},"type":"array"},"taskType":{"description":"Task type.  Valid values: `unknown`, `delivery`, `pickup`, `pickupDelivery`","enum":["unknown","delivery","pickup","pickupDelivery"],"example":"unknown","type":"string"},"updatedAtTime":{"description":"Last update timestamp in RFC 3339 format.","example":"2014-02-20T05:13:14Z","format":"date-time","type":"string"}},"required":["createdAtTime","customerProperties","hubId","id","positionConstraintType","quantities","serviceWindows","taskType","updatedAtTime"],"type":"object"},"FleetOrderTaskUpsertInputRequestBody":{"description":"An order task to create or update.","properties":{"customerProperties":{"description":"Task-specific customer metadata.","items":{"$ref":"#/components/schemas/FleetOrderCustomerPropertyObjectRequestBody"},"type":"array"},"dispatcherNotes":{"description":"Dispatcher-visible note.","example":"Customer requires lift gate","type":"string"},"driverNotes":{"description":"Driver-visible note.","example":"Use loading dock 4","type":"string"},"hubId":{"description":"Hub UUID for this task. Nested route writes derive it from route context when omitted.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"id":{"description":"Existing task ID. Omit to create a task.","example":"12345678","type":"string"},"positionConstraintType":{"description":"Task position constraint.  Valid values: `none`, `first`, `last`","enum":["none","first","last"],"example":"none","type":"string"},"quantities":{"description":"Task quantities.","items":{"$ref":"#/components/schemas/FleetOrderQuantityInputRequestBody"},"type":"array"},"serviceDurationSeconds":{"description":"Expected service duration in seconds.","example":900,"minimum":0,"type":"integer"},"serviceLocation":{"$ref":"#/components/schemas/FleetOrderServiceLocationInputRequestBody"},"serviceWindowIdsToRemove":{"description":"Existing service window UUIDs to retire.","example":["Numquam ut praesentium veritatis saepe eos.","Voluptatem laudantium provident.","Quaerat facilis autem dolor eum culpa minus.","Consectetur veniam suscipit quam."],"items":{"description":"Service window UUID to retire.","example":"Unde ex.","type":"string"},"type":"array"},"serviceWindows":{"description":"Service windows to create or update.","items":{"$ref":"#/components/schemas/FleetOrderServiceWindowUpsertInputRequestBody"},"type":"array"},"taskType":{"description":"Task type.  Valid values: `delivery`, `pickup`, `pickupDelivery`","enum":["delivery","pickup","pickupDelivery"],"example":"delivery","type":"string"}},"required":["taskType"],"type":"object"},"FleetTrailerAssignmentResponseObjectResponseBody":{"properties":{"driverId":{"description":"The ID of the driver associated with this trailer.","example":2047,"format":"int64","type":"integer"},"endMs":{"description":"The time at which the driver ended the assignment. If the assignment is current, this value will be omitted.","example":1462881998034,"format":"int64","type":"integer"},"startMs":{"description":"The time at which the driver started the assignment","example":1462878398034,"format":"int64","type":"integer"}},"required":["driverId","startMs"],"type":"object"},"FleetTrailerAssignmentsPaginationResponseObjectResponseBody":{"properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'startingAfter' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"},"hasNextPage":{"description":"True if there are more pages of results after this response.","example":false,"type":"boolean"},"hasPrevPage":{"description":"True if there are more pages of results before this response.","example":false,"type":"boolean"},"startCursor":{"description":"Cursor identifier representing the first element in the response. This value should be used in conjunction with a subsequent request's 'ending_before' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"}},"required":["endCursor","hasNextPage","hasPrevPage","startCursor"],"type":"object"},"FleetTrailerAssignmentsTrailerResponseObjectResponseBody":{"properties":{"id":{"description":"ID of the trailer","example":2041,"format":"int64","type":"integer"},"name":{"description":"Assignment trailer name (given when creating trailer via the trailer portal)","example":"myTrailer","type":"string"},"trailerAssignments":{"items":{"$ref":"#/components/schemas/FleetTrailerAssignmentResponseObjectResponseBody"},"type":"array"}},"required":["id","name","trailerAssignments"],"type":"object"},"FleetTripAddressResponseBody":{"description":"Text representation of nearest identifiable location to the (latitude, longitude) coordinates.","properties":{"address":{"description":"The formatted address","example":"123 Main St, Sunnyvale, CA 94089","type":"string"},"id":{"description":"The ID of the address","example":581,"format":"int64","type":"integer"},"name":{"description":"The name of the address","example":"Ramen Tatsunoya","type":"string"}},"required":["address","id","name"],"type":"object"},"FleetTripCoordinatesResponseBody":{"description":"(latitude, longitude) in decimal degrees.","properties":{"latitude":{"description":"Latitude.","example":29.443702345,"format":"double","type":"number"},"longitude":{"description":"Longitude.","example":-98.502888123,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"FleetTripResponseBody":{"description":"Trip taken by the requested vehicle.","properties":{"assetIds":{"description":"List of associated asset IDs","example":[122],"items":{"description":"Associated asset ID.","example":3938198736978427000,"format":"int64","type":"integer"},"type":"array"},"codriverIds":{"description":"List of codriver IDs","example":[122],"items":{"description":"Codriver ID.","example":3094703323828674000,"format":"int64","type":"integer"},"type":"array"},"distanceMeters":{"description":"Length of the trip in meters. This value is calculated from the GPS data collected by the Samsara Vehicle Gateway.","example":2500,"format":"int64","type":"integer"},"driverId":{"description":"ID of the driver.","example":719,"format":"int64","type":"integer"},"endAddress":{"$ref":"#/components/schemas/FleetTripAddressResponseBody"},"endCoordinates":{"$ref":"#/components/schemas/FleetTripCoordinatesResponseBody"},"endLocation":{"description":"Geocoded street address of end (latitude, longitude) coordinates.","example":"571 S Lake Ave, Pasadena, CA 91101","type":"string"},"endMs":{"description":"End of the trip in UNIX milliseconds. Ongoing trips are indicated by an endMs value of 9223372036854775807.","example":1462881998034,"format":"int64","type":"integer"},"endOdometer":{"description":"Odometer reading (in meters) at the end of the trip. This is read from the vehicle's on-board diagnostics. If Samsara cannot read the vehicle's odometer values from on-board diagnostics, this value will be 0.","example":210430500,"format":"int64","type":"integer"},"fuelConsumedMl":{"description":"Amount in milliliters of fuel consumed on this trip.","example":75700,"format":"int64","type":"integer"},"startAddress":{"$ref":"#/components/schemas/FleetTripAddressResponseBody"},"startCoordinates":{"$ref":"#/components/schemas/FleetTripCoordinatesResponseBody"},"startLocation":{"description":"Geocoded street address of start (latitude, longitude) coordinates.","example":"16 N Fair Oaks Ave, Pasadena, CA 91103","type":"string"},"startMs":{"description":"Beginning of the trip in UNIX milliseconds.","example":1462878398034,"format":"int64","type":"integer"},"startOdometer":{"description":"Odometer reading (in meters) at the beginning of the trip. This is read from the vehicle's on-board diagnostics. If Samsara cannot read the vehicle's odometer values from on-board diagnostics, this value will be 0.","example":210430450,"format":"int64","type":"integer"},"tollMeters":{"description":"Length in meters trip spent on toll roads.","example":32000,"format":"int64","type":"integer"}},"required":["assetIds","codriverIds","distanceMeters","driverId","endCoordinates","endLocation","endMs","endOdometer","fuelConsumedMl","startCoordinates","startLocation","startMs","startOdometer","tollMeters"],"type":"object"},"FleetTripsGetFleetTripsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsResponseBody":{"properties":{"trips":{"description":"List of trips taken by the requested vehicle within the specified timeframe. Ongoing trips will be returned with 9223372036854775807 as their endMs.","items":{"$ref":"#/components/schemas/FleetTripResponseBody"},"type":"array"}},"required":["trips"],"type":"object"},"FleetTripsGetFleetTripsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FleetTripsGetFleetTripsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FollowingDistanceDetectionAlertSettingsObjectResponseBody":{"description":"Enables AI detection of tailgating or unsafe following distances, surfaces events in Safety Inbox, and enables configurable alerts. By default, Following Distance will impact the drivers' safety score.","properties":{"durationMs":{"description":"Duration of following distance at which to alert, measured in milliseconds.","example":15000,"format":"int64","type":"integer"},"hasInCabAudioAlertsEnabled":{"description":"Indicates whether in-cab audio alerts for following distance are turned on.","example":true,"type":"boolean"},"isEnabled":{"description":"Indicates whether AI event detection for following distance is turned on.","example":true,"type":"boolean"},"speedingThresholdMph":{"description":"Alert when speed is over this many miles per hour.","example":35,"format":"double","type":"number"}},"type":"object"},"FormSubmissionPdfExportResponseObjectResponseBody":{"description":"Form Submission PDF export response object.","properties":{"completedAtTime":{"description":"Time when the PDF export job was completed. Included if 'jobStatus' is 'done'. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"errorMessage":{"description":"An error message for failed PDF export jobs. Included if 'jobStatus' is 'failed'.","example":"PDF export timed out.","type":"string"},"expiresAtTime":{"description":"Time when the PDF export job expires. After expiration, GET requests for this job will fail and clients must create a new one with another POST request. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"id":{"description":"ID of the form submission being exported.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"jobStatus":{"description":"Status of the PDF export job.  Valid values: `unknown`, `pending`, `done`, `failed`","enum":["unknown","pending","done","failed"],"example":"pending","type":"string"},"pdfId":{"description":"Unique ID for the PDF export that is created.","example":"300af62b-5aea-43a9-b4cf-a59667e817ed","type":"string"},"pdfUrl":{"description":"URL to download the PDF file. Expires at time specified in 'pdfUrlExpiresAtTime'. Included if 'jobStatus' is 'done'.","example":"https://samsara-pdf-exports.s3.us-west-2.amazonaws.com/123456","type":"string"},"pdfUrlExpiresAtTime":{"description":"Time when the PDF export's 'pdfUrl' expires. After expiration, clients can retrieve a fresh url with another GET request. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"requestedAtTime":{"description":"Time when the PDF export POST request was made. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["expiresAtTime","id","jobStatus","pdfId","requestedAtTime"],"type":"object"},"FormSubmissionRequestApprovalDetailsRequestBody":{"description":"The details of a form approval. Only valid for forms that require approvals.","properties":{"comment":{"description":"Comment for the approval decision. Required when updating status to 'changesRequested' or 'denied'. Only valid when requesting changes, approving, or denying a form submission.","example":"Approving this submission","type":"string"}},"type":"object"},"FormSubmissionRequestAssetObjectRequestBody":{"description":"Asset object.","properties":{"id":{"description":"Samsara ID of the asset.","example":"281474982859091","type":"string"}},"required":["id"],"type":"object"},"FormSubmissionRequestAssetValueObjectRequestBody":{"description":"The value of an asset form input field. Only valid for asset form input fields.","properties":{"asset":{"$ref":"#/components/schemas/FormSubmissionRequestAssetObjectRequestBody"}},"required":["asset"],"type":"object"},"FormSubmissionRequestAssignedToRequestBody":{"description":"Form submission assignee update object","properties":{"id":{"description":"ID of the form submission assignee.","example":"938172","type":"string"},"type":{"description":"Type of the form submission assignee.  Valid values: `driver`, `user`","enum":["driver","user"],"example":"driver","type":"string"}},"required":["id","type"],"type":"object"},"FormSubmissionRequestBarcodeObjectRequestBody":{"description":"A single barcode entry in a form submission request.","properties":{"value":{"description":"The captured barcode value.","example":"https://example.com/part/98231","type":"string"}},"required":["value"],"type":"object"},"FormSubmissionRequestBarcodeValueObjectRequestBody":{"description":"The value of a barcode form input field. Only valid for barcode form input fields.","properties":{"barcodes":{"description":"List of barcode entries.","items":{"$ref":"#/components/schemas/FormSubmissionRequestBarcodeObjectRequestBody"},"type":"array"}},"required":["barcodes"],"type":"object"},"FormSubmissionRequestCheckBoxesValueObjectRequestBody":{"description":"The value of a check boxes form input field. Only valid for check boxes form input fields.","properties":{"valueIds":{"example":["9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","2214a1fa-f0c6-408b-bf85-51dc3bc71ac7","3214a1fa-f0c6-408b-bf85-51dc3bc71ac7"],"items":{"example":"233374f1-297f-8711-5fc3-4f6b3731ad63","format":"uuid","type":"string"},"type":"array"}},"required":["valueIds"],"type":"object"},"FormSubmissionRequestDateTimeValueObjectRequestBody":{"description":"The value of a datetime form input field. Only valid for datetime form input fields.","properties":{"value":{"description":"The value of the user generated date/time field response. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["value"],"type":"object"},"FormSubmissionRequestFieldInputObjectRequestBody":{"description":"Forms input field request body object.","properties":{"assetValue":{"$ref":"#/components/schemas/FormSubmissionRequestAssetValueObjectRequestBody"},"barcodeValue":{"$ref":"#/components/schemas/FormSubmissionRequestBarcodeValueObjectRequestBody"},"checkBoxesValue":{"$ref":"#/components/schemas/FormSubmissionRequestCheckBoxesValueObjectRequestBody"},"dateTimeValue":{"$ref":"#/components/schemas/FormSubmissionRequestDateTimeValueObjectRequestBody"},"geofenceValue":{"$ref":"#/components/schemas/FormSubmissionRequestGeofenceValueObjectRequestBody"},"id":{"description":"ID of the forms input field object.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"mediaValue":{"$ref":"#/components/schemas/FormSubmissionRequestMediaValueObjectRequestBody"},"multipleChoiceValue":{"$ref":"#/components/schemas/FormSubmissionRequestMultipleChoiceValueObjectRequestBody"},"numberValue":{"$ref":"#/components/schemas/FormSubmissionRequestNumberValueObjectRequestBody"},"personValue":{"$ref":"#/components/schemas/FormSubmissionRequestPersonValueObjectRequestBody"},"tableValue":{"$ref":"#/components/schemas/FormSubmissionRequestTableValueObjectRequestBody"},"textValue":{"$ref":"#/components/schemas/FormSubmissionRequestTextValueObjectRequestBody"},"type":{"description":"Type of the field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `datetime`, `asset`, `person`, `table`, `geofence`, `barcode`, `media`","enum":["number","text","multiple_choice","check_boxes","datetime","asset","person","table","geofence","barcode","media"],"example":"number","type":"string"}},"required":["id","type"],"type":"object"},"FormSubmissionRequestGeofenceObjectRequestBody":{"description":"Geofence object.","properties":{"id":{"description":"Samsara ID of the geofence.","example":"285909128147498","type":"string"}},"required":["id"],"type":"object"},"FormSubmissionRequestGeofenceValueObjectRequestBody":{"description":"The value of a geofence form input field. Only valid for geofence form input fields.","properties":{"geofence":{"$ref":"#/components/schemas/FormSubmissionRequestGeofenceObjectRequestBody"}},"required":["geofence"],"type":"object"},"FormSubmissionRequestMediaItemObjectRequestBody":{"description":"A media item in a form submission request.","properties":{"base64Payload":{"description":"Base64-encoded binary content of the media.","example":"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8PC9GaWx0ZXIv...","type":"string"},"mediaType":{"description":"MIME type of the media.","example":"application/pdf","type":"string"}},"required":["base64Payload","mediaType"],"type":"object"},"FormSubmissionRequestMediaValueObjectRequestBody":{"description":"The value of a media form input field. Only valid for media form input fields.","properties":{"mediaList":{"description":"List of media items.","items":{"$ref":"#/components/schemas/FormSubmissionRequestMediaItemObjectRequestBody"},"type":"array"}},"required":["mediaList"],"type":"object"},"FormSubmissionRequestMultipleChoiceValueObjectRequestBody":{"description":"The value of a multiple choice form input field. Only valid for multiple choice form input fields.","properties":{"valueId":{"example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"}},"required":["valueId"],"type":"object"},"FormSubmissionRequestNumberValueObjectRequestBody":{"description":"The value of a number form input field. Only valid for number form input fields.","properties":{"value":{"example":123.456,"format":"double","type":"number"}},"required":["value"],"type":"object"},"FormSubmissionRequestPersonObjectRequestBody":{"description":"Person object.","properties":{"polymorphicUserId":{"description":"Samsara polymorphicUserID of the person.","example":"user-12345","type":"string"}},"required":["polymorphicUserId"],"type":"object"},"FormSubmissionRequestPersonValueObjectRequestBody":{"description":"The value of an person form input field. Only valid for person form input fields.","properties":{"person":{"$ref":"#/components/schemas/FormSubmissionRequestPersonObjectRequestBody"}},"required":["person"],"type":"object"},"FormSubmissionRequestSignatureValueObjectRequestBody":{"description":"The value of a signature form input field. Only valid for signature form input fields.","properties":{"media":{"$ref":"#/components/schemas/FormSubmissionRequestMediaItemObjectRequestBody"}},"required":["media"],"type":"object"},"FormSubmissionRequestTableCellObjectRequestBody":{"description":"The value of a cell in a table row.","properties":{"barcodeValue":{"$ref":"#/components/schemas/FormSubmissionRequestBarcodeValueObjectRequestBody"},"checkBoxesValue":{"$ref":"#/components/schemas/FormSubmissionRequestCheckBoxesValueObjectRequestBody"},"dateTimeValue":{"$ref":"#/components/schemas/FormSubmissionRequestDateTimeValueObjectRequestBody"},"id":{"description":"Unique identifier for the cell.","example":"9fac4466-9d85-4768-9f1f-ff8f757f70c4","format":"uuid","type":"string"},"multipleChoiceValue":{"$ref":"#/components/schemas/FormSubmissionRequestMultipleChoiceValueObjectRequestBody"},"numberValue":{"$ref":"#/components/schemas/FormSubmissionRequestNumberValueObjectRequestBody"},"personValue":{"$ref":"#/components/schemas/FormSubmissionRequestPersonValueObjectRequestBody"},"textValue":{"$ref":"#/components/schemas/FormSubmissionRequestTextValueObjectRequestBody"},"type":{"description":"Type of the cell field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `datetime`, `person`, `barcode`","enum":["number","text","multiple_choice","check_boxes","datetime","person","barcode"],"example":"number","type":"string"}},"required":["id","type"],"type":"object"},"FormSubmissionRequestTableRowObjectRequestBody":{"description":"The value of a row in a table form input field.","properties":{"cells":{"description":"List of cells in the row.","items":{"$ref":"#/components/schemas/FormSubmissionRequestTableCellObjectRequestBody"},"type":"array"},"id":{"description":"Unique identifier for the row.","example":"ee62df83-16e8-46ae-94d6-4933848f5e66","format":"uuid","type":"string"}},"required":["cells","id"],"type":"object"},"FormSubmissionRequestTableValueObjectRequestBody":{"description":"The value of a table form input field. Only valid for table form input fields.","properties":{"rows":{"description":"List of rows in the table.","items":{"$ref":"#/components/schemas/FormSubmissionRequestTableRowObjectRequestBody"},"type":"array"}},"required":["rows"],"type":"object"},"FormSubmissionRequestTextValueObjectRequestBody":{"description":"The value of a text form input field. Only valid for text form input fields.","properties":{"value":{"example":"Exposed wires","type":"string"}},"required":["value"],"type":"object"},"FormSubmissionResponseObjectResponseBody":{"description":"Form Submission response object.","properties":{"approvalDetails":{"$ref":"#/components/schemas/FormsProductSubmissionApprovalDetailsObjectResponseBody"},"asset":{"$ref":"#/components/schemas/FormsAssetObjectResponseBody"},"assignedAtTime":{"description":"Assignment time of the form submission. Sometimes returned if the submission was assigned to a user or driver. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"assignedTo":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"createdAtTime":{"description":"Creation time of the form submission. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"dueAtTime":{"description":"Time of when the submission is due. Sometimes returned, if the submission has a due date. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"durationMs":{"description":"Duration between when the form submission was started on the client and submitted, in milliseconds. Omitted until the form is actually submitted or when the client start timestamp was not recorded.","example":105000,"format":"int64","type":"integer"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"fields":{"description":"List of field inputs in a form submission.","items":{"$ref":"#/components/schemas/FormsFieldInputObjectResponseBody"},"type":"array"},"formTemplate":{"$ref":"#/components/schemas/FormTemplateReferenceObjectResponseBody"},"geofence":{"$ref":"#/components/schemas/FormsGeofenceObjectResponseBody"},"id":{"description":"ID of the form submission.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"isRequired":{"description":"Indicates whether the worker is required to complete this form or not. Always returned.","example":true,"type":"boolean"},"location":{"$ref":"#/components/schemas/FormsLocationObjectResponseBody"},"routeId":{"description":"ID of the route. Sometimes returned if the submission was assigned to a route stop.","example":"123456789","type":"string"},"routeStopId":{"description":"ID of the route stop. Sometimes returned if the submission was assigned to a route stop.","example":"987654321","type":"string"},"score":{"$ref":"#/components/schemas/FormsScoreObjectResponseBody"},"status":{"description":"State for the Form Submission. Always returned.  Valid values: `notStarted`, `completed`, `archived`, `inProgress`, `needsReview`, `changesRequested`, `approved`, `denied`","enum":["notStarted","completed","archived","inProgress","needsReview","changesRequested","approved","denied"],"example":"notStarted","type":"string"},"submittedAtTime":{"description":"Submission time of the form submission. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"submittedBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"title":{"description":"Title of the form submission. Sometimes returned if the submission has a title.","example":"Form Submission Title","type":"string"},"updatedAtTime":{"description":"Update time of the form submission. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["createdAtTime","fields","formTemplate","id","isRequired","status","submittedAtTime","submittedBy","updatedAtTime"],"type":"object"},"FormSubmissionsGetFormSubmissionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FormSubmissionPdfExportResponseObjectResponseBody"}},"required":["data"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsPdfExportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsResponseBody":{"properties":{"data":{"description":"List of form submissions.","items":{"$ref":"#/components/schemas/FormSubmissionResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"FormSubmissionsGetFormSubmissionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamResponseBody":{"properties":{"data":{"description":"List of form submissions.","items":{"$ref":"#/components/schemas/FormSubmissionResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsGetFormSubmissionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionRequestBody":{"description":"Form submission fields to update.","example":{"id":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac8","status":"notStarted"},"properties":{"approvalDetails":{"$ref":"#/components/schemas/FormSubmissionRequestApprovalDetailsRequestBody"},"assignedTo":{"$ref":"#/components/schemas/FormSubmissionRequestAssignedToRequestBody"},"dueAtTime":{"description":"Due date of the form submission. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"fields":{"description":"List of field inputs to update in a form submission.","items":{"$ref":"#/components/schemas/FormSubmissionRequestFieldInputObjectRequestBody"},"type":"array"},"id":{"description":"ID of the form submission.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"isRequired":{"description":"Indicates whether the worker is required to complete this form or not at a specific route stop. Defaults to `true` if the form is assigned to a user or driver. When true, the worker cannot depart the route stop until this form submission is `submitted`.","example":true,"type":"boolean"},"routeStopId":{"description":"ID of the route stop the form submission is assigned to. Must be a unique Samsara ID.","example":"4070621712","type":"string"},"status":{"description":"Status of the form submission.  Valid values: `notStarted`, `archived`, `inProgress`, `changesRequested`, `approved`, `denied`","enum":["notStarted","archived","inProgress","changesRequested","approved","denied"],"example":"notStarted","type":"string"},"title":{"description":"Title of the form submission.","example":"Job - J999","maxLength":255,"type":"string"}},"required":["id"],"type":"object"},"FormSubmissionsPatchFormSubmissionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FormSubmissionResponseObjectResponseBody"}},"required":["data"],"type":"object"},"FormSubmissionsPatchFormSubmissionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPatchFormSubmissionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionRequestBody":{"description":"Form submission fields to create.","example":{"formTemplate":{"id":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","revisionId":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7"},"status":"notStarted"},"properties":{"assignedTo":{"$ref":"#/components/schemas/FormSubmissionRequestAssignedToRequestBody"},"dueAtTime":{"description":"Due date of the form submission. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"fields":{"description":"List of field inputs in a form submission.","items":{"$ref":"#/components/schemas/FormSubmissionRequestFieldInputObjectRequestBody"},"type":"array"},"formTemplate":{"$ref":"#/components/schemas/FormTemplateRequestObjectRequestBody"},"isRequired":{"description":"Indicates whether the worker is required to complete this form or not at a specific route stop. Defaults to `true` if the form is assigned to a user or driver. When true, the worker cannot depart the route stop until this form submission is `submitted`.","example":true,"type":"boolean"},"routeStopId":{"description":"ID of the route stop the form submission is assigned to. Must be a unique Samsara ID.","example":"4070621712","type":"string"},"status":{"description":"Status of the form submission.  Valid values: `notStarted`","enum":["notStarted"],"example":"notStarted","type":"string"},"title":{"description":"Title of the form submission.","example":"Job - J999","maxLength":255,"type":"string"}},"required":["formTemplate","status"],"type":"object"},"FormSubmissionsPostFormSubmissionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FormSubmissionResponseObjectResponseBody"}},"required":["data"],"type":"object"},"FormSubmissionsPostFormSubmissionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FormSubmissionPdfExportResponseObjectResponseBody"}},"required":["data"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmissionsPostFormSubmissionsPdfExportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormSubmittedResponseBody":{"description":"Details specific to Form Submitted.","properties":{"form":{"$ref":"#/components/schemas/FormSubmissionResponseObjectResponseBody"}},"required":["form"],"type":"object"},"FormTemplateReferenceObjectResponseBody":{"description":"Form template reference object.","properties":{"id":{"description":"ID of the form template.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"revisionId":{"description":"ID of the form template revision.","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"}},"required":["id","revisionId"],"type":"object"},"FormTemplateRequestObjectRequestBody":{"description":"Form template request object.","properties":{"id":{"description":"ID of the form template.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"revisionId":{"description":"ID of the form template revision. Defaults to the latest template revision if not provided","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"}},"required":["id"],"type":"object"},"FormTemplateResponseObjectResponseBody":{"description":"Form Template response object.","properties":{"approvalConfig":{"$ref":"#/components/schemas/FormsApprovalConfigObjectResponseBody"},"createdAtTime":{"description":"Creation time of the form template. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"description":{"description":"Description of the form template. Sometimes returned if the template has a description.","example":"This is a form template description.","type":"string"},"fields":{"description":"List of fields in the form template.","items":{"$ref":"#/components/schemas/FormsFieldDefinitionObjectResponseBody"},"type":"array"},"formCategory":{"description":"Category of the form template.  Valid values: `general`, `routing`, `fuel`, `safety`, `assetInspection`","enum":["general","routing","fuel","safety","assetInspection"],"example":"general","type":"string"},"id":{"description":"Unique identifier of the form template.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"revisionId":{"description":"Unique identifier of the form template revision.","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"sections":{"description":"List of sections in the form template.","items":{"$ref":"#/components/schemas/FormTemplateSectionObjectResponseBody"},"type":"array"},"title":{"description":"Title of the form template.","example":"Form Template Title","type":"string"},"updatedAtTime":{"description":"Update time of the form template. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"updatedBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"}},"required":["createdAtTime","createdBy","fields","id","revisionId","sections","title","updatedAtTime","updatedBy"],"type":"object"},"FormTemplateSectionObjectResponseBody":{"description":"Form Template section object.","properties":{"fieldIndexFirstInclusive":{"description":"The index of the first field from the fields array that is in this section. Index 0 represents the first field definition of the fields array.","example":0,"format":"int64","type":"integer"},"fieldIndexLastInclusive":{"description":"The index of the last field from the fields array that is in this section.","example":9,"format":"int64","type":"integer"},"id":{"description":"Identifier of the section.","example":"dbab5bc8-e41c-4b52-bfa5-fd2c7e809b00","format":"uuid","type":"string"},"label":{"description":"Label of the section.","example":"Engine Hours","type":"string"}},"required":["fieldIndexFirstInclusive","fieldIndexLastInclusive","id","label"],"type":"object"},"FormTemplatesGetFormTemplatesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesResponseBody":{"properties":{"data":{"description":"List of form templates.","items":{"$ref":"#/components/schemas/FormTemplateResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FormTemplatesGetFormTemplatesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormTemplatesGetFormTemplatesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FormUpdatedResponseBody":{"description":"Details specific to Form Updated.","properties":{"form":{"$ref":"#/components/schemas/FormSubmissionResponseObjectResponseBody"}},"required":["form"],"type":"object"},"FormsActionObjectResponseBody":{"description":"Action object.","properties":{"fieldId":{"description":"Identifier of the followup question that will be shown if the condition is met. Only returned when the action type is `askFollowupQuestion`.","example":"bd673690-f09b-4f3d-93bd-99c4b2971554","type":"string"},"sectionId":{"description":"Identifier of the conditional section that will be shown if the condition is met. Only returned when the action type is `showSection`.","example":"bd673690-f09b-4f3d-93bd-99c4b2971554","type":"string"},"type":{"description":"Type of action to take if corresponding condition is met.  Valid values: `askFollowupQuestion`, `showSection`, `requirePhoto`, `requireNote`, `createIssue`","enum":["askFollowupQuestion","showSection","requirePhoto","requireNote","createIssue"],"example":"askFollowupQuestion","type":"string"}},"required":["type"],"type":"object"},"FormsApprovalConfigObjectResponseBody":{"description":"Form Template approval configuration object.","properties":{"singleApprovalConfig":{"$ref":"#/components/schemas/FormsSingleApprovalConfigObjectResponseBody"},"type":{"description":"Type of approval.  Valid values: `singleApproval`","enum":["singleApproval"],"example":"singleApproval","type":"string"}},"required":["type"],"type":"object"},"FormsAssetObjectResponseBody":{"description":"Tracked or untracked (i.e. manually entered) asset object.","properties":{"entryType":{"description":"The type of entry for the asset.  Valid values: `tracked`, `untracked`","enum":["tracked","untracked"],"example":"tracked","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of a tracked asset. Included if 'entryType' is `tracked`.","example":"281474982859091","type":"string"},"name":{"description":"Name of an untracked (i.e. manually entered) asset.","example":"trailer 123","type":"string"}},"required":["entryType"],"type":"object"},"FormsAssetValueObjectResponseBody":{"description":"The value of an asset form input field.","properties":{"asset":{"$ref":"#/components/schemas/FormsAssetObjectResponseBody"}},"required":["asset"],"type":"object"},"FormsBarcodeObjectResponseBody":{"description":"A single barcode entry.","properties":{"value":{"description":"The captured barcode value.","example":"1A2B3C4D5E","type":"string"}},"required":["value"],"type":"object"},"FormsBarcodeValueObjectResponseBody":{"description":"The value of a barcode form input field.","properties":{"barcodes":{"description":"List of barcode entries.","items":{"$ref":"#/components/schemas/FormsBarcodeObjectResponseBody"},"type":"array"}},"required":["barcodes"],"type":"object"},"FormsCheckBoxesValueObjectResponseBody":{"description":"The value of a check boxes form input field.","properties":{"value":{"description":"List of selected options.","example":["Option A","Option B"],"items":{"description":"Selected option","example":"Sequi natus ut ut et aut nobis.","type":"string"},"type":"array"},"valueIds":{"description":"List of selected option IDs.","example":["0cbbddb3-2541-4889-b4eb-92171cbfc142","d33198cb-369f-4278-8120-d92d3ebf74bf"],"items":{"description":"Selected option ID","example":"Ratione fugiat non voluptatem incidunt dolore.","type":"string"},"type":"array"}},"required":["value","valueIds"],"type":"object"},"FormsConditionObjectResponseBody":{"description":"Forms condition object.","properties":{"selectedOptionIds":{"description":"List of option IDs that will satisfy the condition if selected. For check boxes fields, the condition will be met if any of these option IDs are selected. Only returned for multiple choice or check boxes fields when the condition type is `multipleChoiceValueCondition` or `checkBoxesValueCondition`.","example":["9814a1fa-f0c6-408b-bf85-51dc3bc71ac7"],"items":{"example":"Autem neque perspiciatis et deleniti.","type":"string"},"type":"array"},"type":{"description":"Type of condition that must be met for actions to be taken.  Valid values: `multipleChoiceValueCondition`, `checkBoxesValueCondition`","enum":["multipleChoiceValueCondition","checkBoxesValueCondition"],"example":"multipleChoiceValueCondition","type":"string"}},"required":["type"],"type":"object"},"FormsConditionalActionObjectResponseBody":{"description":"Conditional action object.","properties":{"actions":{"description":"List of actions to take if the condition is met.","items":{"$ref":"#/components/schemas/FormsActionObjectResponseBody"},"type":"array"},"condition":{"$ref":"#/components/schemas/FormsConditionObjectResponseBody"}},"required":["actions","condition"],"type":"object"},"FormsDateTimeValueObjectResponseBody":{"description":"The value of a datetime form input field.","properties":{"dateValue":{"description":"Calendar date in YYYY-MM-DD format in the stored field timezone. Present when type is `date` (date-only fields).","example":"2024-08-08","format":"date","type":"string"},"type":{"description":"The type of datetime format.  Valid values: `datetime`, `date`, `time`","enum":["datetime","date","time"],"example":"datetime","type":"string"},"value":{"description":"UTC timestamp in RFC 3339 format.","example":"2024-08-08T18:53:23Z","format":"date-time","type":"string"}},"required":["type","value"],"type":"object"},"FormsFieldDefinitionObjectResponseBody":{"description":"Forms field definition object.","properties":{"allowManualEntry":{"description":"Indicates whether the field allows manual entry of a person. Only present for person fields.","example":true,"type":"boolean"},"allowedAssetTypes":{"description":"List of allowed asset types that can be selected for this field. Only present for asset fields.","example":["vehicle","trailer"],"items":{"description":"  Valid values: `vehicle`, `trailer`, `equipment`, `unpoweredAsset`","enum":["vehicle","trailer","equipment","unpoweredAsset"],"example":"vehicle","type":"string"},"type":"array"},"allowedDateTimeValueType":{"description":"Type of date/time entry allowed for this question. Only present for datetime fields.  Valid values: `datetime`, `date`, `time`","enum":["datetime","date","time"],"example":"datetime","type":"string"},"autofillFromId":{"description":"Identifier of the field that will optionally autofill the current field. Only present for fields that have been configured to be autofilled by a source media field.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"columns":{"description":"List of columns in the table field.","items":{"$ref":"#/components/schemas/FormsTableFieldDefinitionObjectResponseBody"},"type":"array"},"conditionalActions":{"description":"List of conditional actions.","items":{"$ref":"#/components/schemas/FormsConditionalActionObjectResponseBody"},"type":"array"},"filterByRoleIds":{"description":"List of role IDs to filter org users by, representing which roles are selectable people for this field. Only present for person fields.","example":["23d4d8d3-dc10-4e7a-a183-69968751f23e"],"items":{"example":"Enim animi.","type":"string"},"type":"array"},"id":{"description":"Identifier of the field.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"includeDrivers":{"description":"Indicates whether the field includes drivers as selectable people. Only present for person fields.","example":true,"type":"boolean"},"includeUsers":{"description":"Indicates whether the field includes users as selectable people. Only present for person fields.","example":true,"type":"boolean"},"isAutofillSource":{"description":"Indicates whether the current field is enabled to autofill other fields. Only present for media fields that have autofill enabled.","example":true,"type":"boolean"},"isRequired":{"description":"Indicates whether the form field is required to be filled out by the user.","example":true,"type":"boolean"},"label":{"description":"Label of the field.","example":"Engine Hours","type":"string"},"numDecimalPlaces":{"description":"Number of decimal places allowed. Only present for number fields.","example":2,"format":"int64","type":"integer"},"options":{"description":"List of select options for check boxes or multiple choice fields.","items":{"$ref":"#/components/schemas/FormsSelectOptionObjectResponseBody"},"type":"array"},"questionWeight":{"description":"The maximum possible score weight for this field. For multiple choice fields, this number is the highest option score weight of the given options. For check boxes fields, this number is the sum of the score weights for all scored options. Only present for multiple choice or check boxes fields that have scoring.","example":5,"format":"int64","type":"integer"},"type":{"description":"Type of the field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `media`, `datetime`, `signature`, `asset`, `person`, `geofence`, `instruction`, `media_instruction`, `table`, `barcode`","enum":["number","text","multiple_choice","check_boxes","media","datetime","signature","asset","person","geofence","instruction","media_instruction","table","barcode"],"example":"number","type":"string"}},"required":["id","isRequired","label","type"],"type":"object"},"FormsFieldInputObjectResponseBody":{"description":"Forms input field object.","properties":{"assetValue":{"$ref":"#/components/schemas/FormsAssetValueObjectResponseBody"},"barcodeValue":{"$ref":"#/components/schemas/FormsBarcodeValueObjectResponseBody"},"checkBoxesValue":{"$ref":"#/components/schemas/FormsCheckBoxesValueObjectResponseBody"},"dateTimeValue":{"$ref":"#/components/schemas/FormsDateTimeValueObjectResponseBody"},"geofenceValue":{"$ref":"#/components/schemas/FormsGeofenceValueObjectResponseBody"},"id":{"description":"ID of the forms input field object.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"issue":{"$ref":"#/components/schemas/FormsIssueCreatedByFieldObjectResponseBody"},"label":{"description":"Forms input field label.","example":"Engine Hours","type":"string"},"mediaList":{"description":"List of forms media record objects.","items":{"$ref":"#/components/schemas/FormsMediaRecordObjectResponseBody"},"type":"array"},"mediaValue":{"$ref":"#/components/schemas/FormsMediaValueObjectResponseBody"},"multipleChoiceValue":{"$ref":"#/components/schemas/FormsMultipleChoiceValueObjectResponseBody"},"note":{"description":"A note attached to the field input.","example":"Fire and oil can lead to an accident.","type":"string"},"numberValue":{"$ref":"#/components/schemas/FormsNumberValueObjectResponseBody"},"personValue":{"$ref":"#/components/schemas/FormsPersonValueObjectResponseBody"},"signatureValue":{"$ref":"#/components/schemas/FormsSignatureValueObjectResponseBody"},"tableValue":{"$ref":"#/components/schemas/FormsTableValueObjectResponseBody"},"textValue":{"$ref":"#/components/schemas/FormsTextValueObjectResponseBody"},"type":{"description":"Type of the field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `datetime`, `signature`, `media`, `asset`, `table`, `person`, `geofence`, `barcode`","enum":["number","text","multiple_choice","check_boxes","datetime","signature","media","asset","table","person","geofence","barcode"],"example":"number","type":"string"}},"required":["id","type"],"type":"object"},"FormsGeofenceObjectResponseBody":{"description":"Tracked or untracked (i.e. manually entered) geofence object.","properties":{"address":{"description":"Address of the geofence. Included if 'entryType' is `tracked`.","example":"123 Main St, Anytown, USA 12345","type":"string"},"entryType":{"description":"The type of entry for the geofence.  Valid values: `tracked`, `untracked`","enum":["tracked","untracked"],"example":"tracked","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the tracked geofence. Included if 'entryType' is `tracked`.","example":"1234567890","type":"string"},"name":{"description":"Name of an untracked (i.e. manually entered) geofence.","example":"Geofence Name","type":"string"}},"required":["entryType"],"type":"object"},"FormsGeofenceValueObjectResponseBody":{"description":"The value of a geofence form input field.","properties":{"geofence":{"$ref":"#/components/schemas/FormsGeofenceObjectResponseBody"}},"required":["geofence"],"type":"object"},"FormsIssueCreatedByFieldObjectResponseBody":{"description":"Issue created from this form input field input object.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the issue created from this form input field input object.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"FormsLocationObjectResponseBody":{"description":"Form template location object.","properties":{"latitude":{"description":"Latitude of a location.","example":12333122.3,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location.","example":1233331.4,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"FormsMediaRecordObjectResponseBody":{"description":"Forms media record object.","properties":{"id":{"description":"ID of the media record.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"processingStatus":{"description":"Status of the media record.  Valid values: `unknown`, `processing`, `finished`","enum":["unknown","processing","finished"],"example":"processing","type":"string"},"url":{"description":"URL containing a link to associated media content. Included if 'processingStatus' is 'finished'.","example":"https://samsara-forms-submission-media-uploads.s3.us-west-2.amazonaws.com/123456","format":"uri","type":"string"},"urlExpiresAt":{"description":"Expiration time of the media record 'url'. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["id","processingStatus"],"type":"object"},"FormsMediaValueObjectResponseBody":{"description":"The value of a media form input field.","properties":{"mediaList":{"description":"List of forms media record objects.","items":{"$ref":"#/components/schemas/FormsMediaRecordObjectResponseBody"},"type":"array"}},"required":["mediaList"],"type":"object"},"FormsMultipleChoiceValueObjectResponseBody":{"description":"The value of a multiple choice form input field.","properties":{"value":{"description":"Selected option.","example":"Yes","type":"string"},"valueId":{"description":"ID of the selected option.","example":"94096370-7228-4d83-ae5d-b20f3e45c0fc","type":"string"}},"required":["value","valueId"],"type":"object"},"FormsNumberValueObjectResponseBody":{"description":"The value of a number form input field.","properties":{"value":{"description":"Number value.","example":123.456,"format":"double","type":"number"}},"required":["value"],"type":"object"},"FormsPersonObjectResponseBody":{"description":"Tracked or untracked (i.e. manually entered) person object.","properties":{"entryType":{"description":"The type of entry for the person.  Valid values: `tracked`, `untracked`","enum":["tracked","untracked"],"example":"tracked","type":"string"},"name":{"description":"Name of an untracked (i.e. manually entered) person.","example":"Jake","type":"string"},"polymorphicUserId":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"}},"required":["entryType"],"type":"object"},"FormsPersonValueObjectResponseBody":{"description":"The value of a person form input field.","properties":{"person":{"$ref":"#/components/schemas/FormsPersonObjectResponseBody"}},"required":["person"],"type":"object"},"FormsPolymorphicUserObjectResponseBody":{"description":"User or driver object.","properties":{"id":{"description":"ID of the polymorphic user.","example":"938172","type":"string"},"type":{"description":"The type of the polymorphic user.  Valid values: `driver`, `user`","enum":["driver","user"],"example":"driver","type":"string"}},"required":["id","type"],"type":"object"},"FormsProductSubmissionApprovalDetailsObjectResponseBody":{"description":"The value of the approval details for a forms product submission.","properties":{"comment":{"description":"Comment from the approver when requesting changes or approving the submission.","example":"Requesting some changes to the submission.","type":"string"}},"required":["comment"],"type":"object"},"FormsScoreObjectResponseBody":{"description":"Forms score object.","properties":{"maxPoints":{"description":"Total possible points of the form submission.","example":80,"format":"double","type":"number"},"scorePercent":{"description":"Percentage score of the form submission, calculated as scorePoints / maxPoints.","example":75,"format":"double","type":"number"},"scorePoints":{"description":"Score, in points, of the form submission.","example":60,"format":"double","type":"number"}},"required":["maxPoints","scorePercent","scorePoints"],"type":"object"},"FormsSelectOptionObjectResponseBody":{"description":"Multiple choice or checkbox value option object.","properties":{"id":{"description":"Identifier of the option.","example":"e879028d-bce5-0238-ffec-11cd9236bcda","type":"string"},"ignoreQuestionFromScoreIfSelected":{"description":"Indicates whether the question should be ignored from the total score if this option is selected. Returns true if a score weight was not given to this option. Only present when the select form field has scoring.","example":false,"type":"boolean"},"label":{"description":"Label of the option.","example":"Yes","type":"string"},"optionScoreWeight":{"description":"Score weight of the option, indicates number of score points received if this option is selected. Only present if the select form field has scoring.","example":5,"format":"int64","type":"integer"}},"required":["id","label"],"type":"object"},"FormsSignatureValueObjectResponseBody":{"description":"The value of a signature form input field.","properties":{"media":{"$ref":"#/components/schemas/FormsMediaRecordObjectResponseBody"}},"required":["media"],"type":"object"},"FormsSingleApprovalConfigObjectResponseBody":{"description":"Single approval configuration object.","properties":{"allowManualApproverSelection":{"description":"Indicates whether approver can be manually selected. True by default.","example":true,"type":"boolean"},"requirements":{"$ref":"#/components/schemas/SingleApprovalRequirementsObjectResponseBody"}},"required":["allowManualApproverSelection","requirements"],"type":"object"},"FormsTableCellObjectResponseBody":{"description":"Defines a cell in a table row.","properties":{"barcodeValue":{"$ref":"#/components/schemas/FormsBarcodeValueObjectResponseBody"},"checkBoxesValue":{"$ref":"#/components/schemas/FormsCheckBoxesValueObjectResponseBody"},"dateTimeValue":{"$ref":"#/components/schemas/FormsDateTimeValueObjectResponseBody"},"id":{"description":"Unique identifier for the cell.","format":"uuid","type":"string"},"mediaValue":{"$ref":"#/components/schemas/FormsMediaValueObjectResponseBody"},"multipleChoiceValue":{"$ref":"#/components/schemas/FormsMultipleChoiceValueObjectResponseBody"},"numberValue":{"$ref":"#/components/schemas/FormsNumberValueObjectResponseBody"},"personValue":{"$ref":"#/components/schemas/FormsPersonValueObjectResponseBody"},"signatureValue":{"$ref":"#/components/schemas/FormsSignatureValueObjectResponseBody"},"textValue":{"$ref":"#/components/schemas/FormsTextValueObjectResponseBody"},"type":{"description":"Type of the cell field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `datetime`, `signature`, `media`, `person`, `barcode`","enum":["number","text","multiple_choice","check_boxes","datetime","signature","media","person","barcode"],"example":"number","type":"string"}},"required":["id","type"],"type":"object"},"FormsTableColumnObjectResponseBody":{"description":"Defines a column in a table form input field.","properties":{"id":{"description":"Unique identifier for the column.","format":"uuid","type":"string"},"label":{"description":"Label of the column.","example":"Store Number","type":"string"},"type":{"description":"Type of the column field.  Valid values: `text`, `number`, `datetime`, `check_boxes`, `multiple_choice`, `signature`, `media`, `person`, `barcode`","enum":["text","number","datetime","check_boxes","multiple_choice","signature","media","person","barcode"],"example":"number","type":"string"}},"required":["id","label","type"],"type":"object"},"FormsTableFieldDefinitionObjectResponseBody":{"description":"Forms table field definition object.","properties":{"allowManualEntry":{"description":"Indicates whether the field allows manual entry of a person. Only present for person fields.","example":true,"type":"boolean"},"allowedDateTimeValueType":{"description":"Type of date/time entry allowed for this question. Only present for datetime fields.  Valid values: `datetime`, `date`, `time`","enum":["datetime","date","time"],"example":"datetime","type":"string"},"filterByRoleIds":{"description":"List of role IDs to filter org users by, representing which roles are selectable people for this field. Only present for person fields.","example":["23d4d8d3-dc10-4e7a-a183-69968751f23e"],"items":{"example":"Praesentium iste eligendi veniam.","type":"string"},"type":"array"},"id":{"description":"Identifier of the field.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"includeDrivers":{"description":"Indicates whether the field includes drivers as selectable people. Only present for person fields.","example":true,"type":"boolean"},"includeUsers":{"description":"Indicates whether the field includes users as selectable people. Only present for person fields.","example":true,"type":"boolean"},"label":{"description":"Label of the field.","example":"Engine Hours","type":"string"},"numDecimalPlaces":{"description":"Number of decimal places allowed. Only present for number fields.","example":2,"format":"int64","type":"integer"},"options":{"description":"List of select options for check boxes or multiple choice fields.","items":{"$ref":"#/components/schemas/FormsSelectOptionObjectResponseBody"},"type":"array"},"type":{"description":"Type of the field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `media`, `datetime`, `signature`, `person`","enum":["number","text","multiple_choice","check_boxes","media","datetime","signature","person"],"example":"number","type":"string"}},"required":["id","label","type"],"type":"object"},"FormsTableRowObjectResponseBody":{"description":"Defines a row in a table form input field.","properties":{"cells":{"description":"List of cells in the row.","items":{"$ref":"#/components/schemas/FormsTableCellObjectResponseBody"},"type":"array"},"id":{"description":"Unique identifier for the row.","format":"uuid","type":"string"}},"required":["cells","id"],"type":"object"},"FormsTableValueObjectResponseBody":{"description":"The value of a table form input field.","properties":{"columns":{"description":"List of table columns.","items":{"$ref":"#/components/schemas/FormsTableColumnObjectResponseBody"},"type":"array"},"rows":{"description":"List of table rows.","items":{"$ref":"#/components/schemas/FormsTableRowObjectResponseBody"},"type":"array"}},"required":["columns","rows"],"type":"object"},"FormsTextValueObjectResponseBody":{"description":"The value of a text form input field.","properties":{"value":{"description":"Text value.","example":"Exposed wires","type":"string"}},"required":["value"],"type":"object"},"ForwardCollisionDetectionAlertSettingsObjectResponseBody":{"description":"Enables AI detection of near forward collisions, surfaces events in Safety Inbox, and enables configurable alerts. While the feature is in beta, it is only enabled during daytime driving hours. In-cab alerts are recommended for testing use only.","properties":{"hasInCabAudioAlertsEnabled":{"description":"Indicates whether in-cab audio alerts for forward collision are turned on.","example":true,"type":"boolean"},"isEnabled":{"description":"Indicates whether AI event detection for forward collision is turned on.","example":true,"type":"boolean"},"sensitivity":{"description":"Ranges from near forward collision (results in fewer events) to far forward collision (results in more events).  Valid values: `near`, `medium`, `far`","enum":["near","medium","far"],"example":"near","type":"string"}},"type":"object"},"FuelConsumedMl":{"description":"Fuel consumption in milliliters.","type":"number"},"FuelCostObjectResponseBody":{"description":"The cost incurred based on the fuel consumed during the idling event.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"FuelEnergyCostResponseResponseBody":{"description":"Estimated cost of fuel and energy over the given time range.","properties":{"amount":{"description":"Amount of the currency.","example":94.01,"format":"double","type":"number"},"currencyCode":{"description":"Type of the currency.","example":"USD","type":"string"}},"required":["amount","currencyCode"],"type":"object"},"FuelEnergyDriverReportDataObjectResponseBody":{"description":"Dictionary containing summarized driver report data.","properties":{"driverReports":{"description":"List of summarized driver reports.","items":{"$ref":"#/components/schemas/FuelEnergyDriverReportObjectResponseBody"},"type":"array"}},"required":["driverReports"],"type":"object"},"FuelEnergyDriverReportObjectResponseBody":{"description":"A summary of this driver's fuel and energy data.","properties":{"distanceTraveledMeters":{"description":"Meters traveled over the given time range.","example":1384000,"format":"double","type":"number"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"efficiencyMpge":{"description":"Efficiency in MPG or MPGE over the given time range. For fuel vehicles this will be provided in MPG, for hybrid and electric vehicles this will be provided in MPGE. MPG/MPGE values are provided based on US gallons.","example":21.4,"format":"double","type":"number"},"energyUsedKwh":{"description":"Kilowatt-hours of energy used over the given time range. Only provided for hybrid and electric vehicles.","example":73.2,"format":"double","type":"number"},"engineIdleTimeDurationMs":{"description":"Milliseconds of engine idle time over the given time range. Only provided for fuel and hybrid vehicles.","example":4320000,"format":"int64","type":"integer"},"engineRunTimeDurationMs":{"description":"Milliseconds of engine run time over the given time range. Only provided for fuel and hybrid vehicles.","example":576000,"format":"int64","type":"integer"},"estCarbonEmissionsKg":{"description":"Estimated kilograms of carbon emissions over the given time range. Only provided for fuel and hybrid vehicles.","example":22.7,"format":"double","type":"number"},"estFuelEnergyCost":{"$ref":"#/components/schemas/FuelEnergyCostResponseResponseBody"},"fuelConsumedMl":{"description":"Milliliters of fuel consumed over the given time range. Only provided for fuel and hybrid vehicles.","example":162773,"format":"double","type":"number"}},"required":["distanceTraveledMeters","driver","efficiencyMpge","estFuelEnergyCost"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FuelEnergyDriverReportDataObjectResponseBody"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyDriverReportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/FuelEnergyVehicleReportDataObjectResponseBody"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyGetFuelEnergyVehicleReportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelEnergyVehicleObjectResponseBody":{"description":"A minified vehicle object.","properties":{"energyType":{"description":"Type of energy used by the vehicle  Valid values: `fuel`, `hybrid`, `electric`","enum":["fuel","hybrid","electric"],"example":"fuel","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the vehicle","example":"494123","type":"string"},"name":{"description":"Name of the vehicle","example":"Fleet Truck #1","type":"string"}},"required":["energyType"],"type":"object"},"FuelEnergyVehicleReportDataObjectResponseBody":{"description":"Dictionary containing summarized vehicle report data.","properties":{"vehicleReports":{"description":"List of summarized vehicle reports.","items":{"$ref":"#/components/schemas/FuelEnergyVehicleReportObjectResponseBody"},"type":"array"}},"required":["vehicleReports"],"type":"object"},"FuelEnergyVehicleReportObjectResponseBody":{"description":"A summary of this vehicle's fuel and energy data.","properties":{"distanceTraveledMeters":{"description":"Meters traveled over the given time range.","example":1384000,"format":"double","type":"number"},"efficiencyMpge":{"description":"Efficiency in MPG or MPGE over the given time range. For fuel vehicles this will be provided in MPG, for hybrid and electric vehicles this will be provided in MPGE. MPG/MPGE values are provided based on US gallons.","example":21.4,"format":"double","type":"number"},"energyUsedKwh":{"description":"Kilowatt-hours of energy used over the given time range. Only provided for hybrid and electric vehicles.","example":73.2,"format":"double","type":"number"},"engineIdleTimeDurationMs":{"description":"Milliseconds of engine idle time over the given time range. Only provided for fuel and hybrid vehicles.","example":4320000,"format":"int64","type":"integer"},"engineRunTimeDurationMs":{"description":"Milliseconds of engine run time over the given time range. Only provided for fuel and hybrid vehicles.","example":576000,"format":"int64","type":"integer"},"estCarbonEmissionsKg":{"description":"Estimated kilograms of carbon emissions over the given time range. Only provided for fuel and hybrid vehicles.","example":22.7,"format":"double","type":"number"},"estFuelEnergyCost":{"$ref":"#/components/schemas/FuelEnergyCostResponseResponseBody"},"fuelConsumedMl":{"description":"Milliliters of fuel consumed over the given time range. Only provided for fuel and hybrid vehicles.","example":162773,"format":"double","type":"number"},"vehicle":{"$ref":"#/components/schemas/FuelEnergyVehicleObjectResponseBody"}},"required":["distanceTraveledMeters","efficiencyMpge","estFuelEnergyCost","vehicle"],"type":"object"},"FuelLevelPercentageResponseBody":{"description":"Details specific to Fuel Level Percentage.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"FuelLevelTriggerDetailsObjectRequestBody":{"description":"Details specific to Fuel Level Percentage","properties":{"fuelLevelPercent":{"description":"The fuel level percentage threshold value.","example":20,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `LESS`","enum":["LESS"],"example":"LESS","type":"string"}},"required":["fuelLevelPercent","minDurationMilliseconds","operation"],"type":"object"},"FuelLevelTriggerDetailsObjectResponseBody":{"description":"Details specific to Fuel Level Percentage","properties":{"fuelLevelPercent":{"description":"The fuel level percentage threshold value.","example":20,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `LESS`","enum":["LESS"],"example":"LESS","type":"string"}},"required":["fuelLevelPercent","minDurationMilliseconds","operation"],"type":"object"},"FuelPurchasePostElectricPurchaseBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseRequestBody":{"description":"Request payload for creating a new electric charging purchase transaction.","properties":{"discount":{"$ref":"#/components/schemas/PostElectricPurchaseRequestBodyDiscountRequestBody"},"driverId":{"description":"Samsara ID of the driver.","example":"1234","type":"string"},"energyKilowattHours":{"description":"The amount of energy delivered in kilowatt hours, as a decimal string greater than 0.","example":"42.7","type":"string"},"merchantName":{"description":"Name of the charging network or operator. For example: ChargePoint, Electrify America.","example":"ChargePoint","type":"string"},"source":{"description":"The integration provider. For example: Customer, ChargePoint Integration","example":"ChargePoint Integration","maxLength":255,"type":"string"},"transactionLocation":{"description":"The full street address of the charger, as it might be recognized by Google Maps (example: 1 De Haro St, San Francisco, CA 94107, United States). Alternatively, exact latitude/longitude can be provided (example: 40.748441, -73.985664).","example":"350 Rhode Island St, San Francisco, CA 94103","type":"string"},"transactionPrice":{"$ref":"#/components/schemas/PostElectricPurchaseRequestBodyPriceRequestBody"},"transactionReference":{"description":"The charging transaction reference. This is the transaction identifier, such as the receipt or charging session number.","example":"CP-88231","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9\\-]+$","type":"string"},"transactionTime":{"description":"The time of the charging transaction in RFC 3339 format. Timezone must be specified. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.","example":"2026-10-12T08:41:05-07:00","type":"string"},"vehicleId":{"description":"Samsara ID of the vehicle that was charged.","example":"281474900488527","type":"string"}},"required":["energyKilowattHours","transactionLocation","transactionPrice","transactionReference","transactionTime"],"type":"object"},"FuelPurchasePostElectricPurchaseResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostElectricPurchaseResponseBodyResponseBody"}},"required":["data"],"type":"object"},"FuelPurchasePostElectricPurchaseServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostElectricPurchaseUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseRequestBody":{"description":"Request payload for creating a new fuel purchase transaction.","properties":{"discount":{"$ref":"#/components/schemas/PostFuelPurchaseRequestBodyDiscountRequestBody"},"driverId":{"description":"Samsara ID of the driver that purchased the fuel.","example":"1234","type":"string"},"fuelGrade":{"description":"The grade of the fuel purchased.  Valid values: `Unknown`, `Regular`, `Premium`","enum":["Unknown","Regular","Premium"],"example":"Regular","type":"string"},"fuelQuantityLiters":{"description":"The amount of fuel purchased in liters.","example":"676.8","type":"string"},"iftaFuelType":{"description":"The type of fuel purchased supported by IFTA.  Valid values: `Unspecified`, `A55`, `Biodiesel`, `CompressedNaturalGas`, `Diesel`, `E85`, `Electricity`, `Ethanol`, `Gasohol`, `Gasoline`, `Hydrogen`, `LiquifiedNaturalGas`, `M85`, `Methanol`, `Propane`, `Other`","enum":["Unspecified","A55","Biodiesel","CompressedNaturalGas","Diesel","E85","Electricity","Ethanol","Gasohol","Gasoline","Hydrogen","LiquifiedNaturalGas","M85","Methanol","Propane","Other"],"example":"Biodiesel","type":"string"},"merchantName":{"description":"Brand name of the fuel station the fuel was purchased at. For example: Shell, Bp, Exxon.","example":"Shell","type":"string"},"source":{"description":"The integration provider. For example: Customer, Shell Integration","example":"Shell Integration","type":"string"},"transactionLocation":{"description":"The full street address for the location of the fuel transaction, as it might be recognized by Google Maps. Ideal entries should be in accordance with the format used by the national postal service of the country concerned (example: 1 De Haro St, San Francisco, CA 94107, United States). Alternatively, exact latitude/longitude can be provided (example: 40.748441, -73.985664).","example":"350 Rhode Island St, San Francisco, CA 94103","type":"string"},"transactionPrice":{"$ref":"#/components/schemas/PostFuelPurchaseRequestBodyPriceRequestBody"},"transactionReference":{"description":"The fuel transaction reference. This is the transaction identifier. For instance, this can be the Serial Number on the invoice.","example":"5454534","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z0-9\\-]+$","type":"string"},"transactionTime":{"description":"The time of the fuel transaction in RFC 3339 format. Timezone must be specified. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.","example":"2022-07-13T14:20:50.52-07:00","type":"string"},"vehicleId":{"description":"Samsara ID of the vehicle that purchased the fuel.","example":"281474900488527","type":"string"}},"required":["fuelQuantityLiters","transactionLocation","transactionPrice","transactionReference","transactionTime"],"type":"object"},"FuelPurchasePostFuelPurchaseResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostFuelPurchaseResponseBodyResponseBody"}},"required":["data"],"type":"object"},"FuelPurchasePostFuelPurchaseServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelPurchasePostFuelPurchaseUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FuelRemainingResponseBody":{"description":"Fuel remaining in equipment.","properties":{"Percent":{"description":"Percent of fuel remaining in tank.","example":12,"format":"double","type":"number"},"datetime":{"description":"Date time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"FunctionCodePackageResponseBody":{"description":"Code package status for the Function.","properties":{"downloadGetUrl":{"description":"A presigned GET URL for downloading the function's current code package. Present only when code has been uploaded.","example":"https://example.com/download?token=...","type":"string"},"status":{"description":"Status of the code package.  Valid values: `unknown`, `pendingUpload`, `uploaded`, `deployed`","enum":["unknown","pendingUpload","uploaded","deployed"],"example":"deployed","type":"string"}},"required":["status"],"type":"object"},"FunctionConfigResponseBody":{"description":"Configuration of the Function.","properties":{"handler":{"description":"The handler entrypoint for the function code.","example":"index.handler","type":"string"},"isScheduleEnabled":{"description":"Whether the run schedule is enabled.","example":true,"type":"boolean"},"params":{"description":"Default parameters for the function.","example":{"Nihil vitae modi accusamus est.":"Eos dolor magni mollitia.","Qui ex quos perferendis eveniet repudiandae.":"Qui quia quam quam vel voluptas."},"properties":{},"type":"object"},"schedule":{"$ref":"#/components/schemas/FunctionScheduleResponseBody"},"secrets":{"description":"Secret names available to the function. Values are always empty.","example":{"Qui sint earum cum nam voluptatum nihil.":"Voluptatem est nemo nisi.","Sequi eos sunt.":"Fuga quisquam distinctio nostrum rerum debitis ut."},"properties":{},"type":"object"}},"required":["handler","isScheduleEnabled","params","secrets"],"type":"object"},"FunctionEffectsResponseBody":{"description":"Computed effects of the Function configuration.","properties":{"nextScheduledAtTime":{"description":"RFC 3339 timestamp of the next scheduled run. Omitted if no schedule is set.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"}},"type":"object"},"FunctionLogEntryResponseBody":{"description":"A single log entry from a Function execution.","properties":{"log":{"description":"The log message text.","example":"Processing batch of 50 records...","type":"string"},"loggedAtTime":{"description":"RFC 3339 timestamp of when the log entry was produced.","example":"2024-01-01T12:00:00Z","format":"date-time","type":"string"}},"required":["log","loggedAtTime"],"type":"object"},"FunctionRunContextResponseBody":{"description":"Context details of the Function run execution.","properties":{"requestId":{"description":"Unique request identifier for the execution.","example":"req-550e8400-e29b-41d4-a716-446655440000","type":"string"},"requestPayload":{"description":"The request payload sent to the Function.","example":"Optio magnam earum sunt exercitationem."},"responsePayload":{"description":"The response payload returned by the Function.","example":"Aspernatur eos exercitationem."}},"required":["requestId"],"type":"object"},"FunctionScheduleEntryRequestBody":{"description":"A single schedule entry defining when a Function runs.","properties":{"daysOfWeek":{"description":"Days of the week this entry applies to (7 elements, index 0 = Sunday).","example":[false,true,true,true,true,true,false],"items":{"description":"Whether this day of the week is active. Index 0 = Sunday.","example":true,"type":"boolean"},"type":"array"},"timeSinceMidnightMs":{"description":"Time since midnight in milliseconds when the function runs.","example":32400000,"format":"int64","type":"integer"}},"required":["daysOfWeek","timeSinceMidnightMs"],"type":"object"},"FunctionScheduleEntryResponseBody":{"description":"A single schedule entry defining when a Function runs.","properties":{"daysOfWeek":{"description":"Days of the week this entry applies to (7 elements, index 0 = Sunday).","example":[false,true,true,true,true,true,false],"items":{"description":"Whether this day of the week is active. Index 0 = Sunday.","example":false,"type":"boolean"},"type":"array"},"timeSinceMidnightMs":{"description":"Time since midnight in milliseconds when the function runs.","example":32400000,"format":"int64","type":"integer"}},"required":["daysOfWeek","timeSinceMidnightMs"],"type":"object"},"FunctionScheduleRequestBody":{"description":"Schedule configuration for a Function.","properties":{"entries":{"description":"Schedule entries defining when the function runs.","items":{"$ref":"#/components/schemas/FunctionScheduleEntryRequestBody"},"type":"array"},"timezone":{"description":"IANA timezone name for the schedule.","example":"America/Los_Angeles","type":"string"}},"required":["entries","timezone"],"type":"object"},"FunctionScheduleResponseBody":{"description":"Schedule configuration for a Function.","properties":{"entries":{"description":"Schedule entries defining when the function runs.","items":{"$ref":"#/components/schemas/FunctionScheduleEntryResponseBody"},"type":"array"},"timezone":{"description":"IANA timezone name for the schedule.","example":"America/Los_Angeles","type":"string"}},"required":["entries","timezone"],"type":"object"},"FunctionsCreateFunctionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionRequestBody":{"description":"Request body for creating a Function.","properties":{"config":{"$ref":"#/components/schemas/CreateFunctionRequestConfigRequestBody"},"description":{"description":"A description of the Function.","example":"Processes incoming telemetry data.","type":"string"},"name":{"description":"Unique name for the Function.","example":"my-function","type":"string"}},"required":["config","name"],"type":"object"},"FunctionsCreateFunctionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CreateFunctionDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsCreateFunctionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsCreateFunctionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeleteFunctionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/DeployFunctionDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsDeployFunctionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsDeployFunctionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsResponseBody":{"properties":{"data":{"description":"Array of log entries.","items":{"$ref":"#/components/schemas/FunctionLogEntryResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FunctionsGetFunctionLogsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionLogsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/GetFunctionDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsGetFunctionRunBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/GetFunctionRunDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsGetFunctionRunServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionRunUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsGetFunctionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionRequestBody":{"description":"Request body for updating a Function.","properties":{"config":{"$ref":"#/components/schemas/PatchFunctionRequestConfigRequestBody"},"description":{"description":"A description of the Function.","example":"Processes incoming telemetry data.","type":"string"},"lastUpdateTimestampMs":{"description":"Timestamp of the last known update to this Function, obtained from a create or get response. Required to prevent conflicting updates.","example":1609459200000,"format":"int64","type":"integer"}},"required":["lastUpdateTimestampMs"],"type":"object"},"FunctionsPatchFunctionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PatchFunctionDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsPatchFunctionServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsPatchFunctionUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunRequestBody":{"description":"Request body for starting a Function run.","properties":{"paramsOverride":{"description":"Parameter overrides for the Function execution. Can be an empty object but must be provided.","example":{"param1":"value1","param2":"value2"},"properties":{},"type":"object"}},"required":["paramsOverride"],"type":"object"},"FunctionsStartFunctionRunResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/StartFunctionRunResponseBodyResponseBody"}},"required":["data"],"type":"object"},"FunctionsStartFunctionRunServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStartFunctionRunUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileRequestBody":{"description":"Request body for creating a new file in Functions storage.","properties":{"name":{"description":"The name of the file to create.","example":"my-script.js","type":"string"}},"required":["name"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CreateFunctionStorageFileDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageCreateFunctionStorageFileUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageDeleteFunctionStorageFileUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageFileResponseBody":{"description":"A file stored in Functions storage.","properties":{"modifiedAtTime":{"description":"RFC 3339 timestamp of when the file was last modified.","example":"2024-01-01T12:00:00Z","format":"date-time","type":"string"},"name":{"description":"The name of the file.","example":"my-script.js","type":"string"},"sizeBytes":{"description":"The size of the file in bytes.","example":1024,"format":"int64","type":"integer"},"urls":{"description":"Presigned URLs for this file. Only present when includeDownloadUrls or includeUploadUrls is set.","items":{"$ref":"#/components/schemas/FunctionsStorageSignedUrlResponseBody"},"type":"array"}},"required":["modifiedAtTime","name","sizeBytes"],"type":"object"},"FunctionsStorageFolderResponseBody":{"description":"An immediate subfolder under the requested prefix in Functions storage.","properties":{"name":{"description":"Full path of the subfolder, ending in a slash.","example":"logs/archive/","type":"string"}},"required":["name"],"type":"object"},"FunctionsStorageGetFunctionStorageFileBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/GetFunctionStorageFileDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsStorageGetFunctionStorageFileServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageGetFunctionStorageFileUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesResponseBody":{"properties":{"data":{"description":"Array of files in Functions storage.","items":{"$ref":"#/components/schemas/FunctionsStorageFileResponseBody"},"type":"array"},"folders":{"description":"Immediate subfolders under the prefix. Populated only when `groupByFolder` is true.","items":{"$ref":"#/components/schemas/FunctionsStorageFolderResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageListFunctionsStorageFilesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageSignedUrlOfTypeResponseBody":{"description":"A presigned URL for a file in Functions storage.","properties":{"expiresAtTime":{"description":"RFC 3339 timestamp when the presigned URL expires.","example":"2024-01-01T13:00:00Z","format":"date-time","type":"string"},"url":{"description":"The presigned URL.","example":"https://s3.amazonaws.com/bucket/key?signature=abc123","type":"string"}},"required":["expiresAtTime","url"],"type":"object"},"FunctionsStorageSignedUrlResponseBody":{"description":"A presigned URL for downloading or uploading a file in Functions storage.","properties":{"expiresAtTime":{"description":"RFC 3339 timestamp when the presigned URL expires.","example":"2024-01-01T13:00:00Z","format":"date-time","type":"string"},"url":{"description":"The presigned URL.","example":"https://s3.amazonaws.com/bucket/key?signature=abc123","type":"string"},"urlType":{"description":"The type of presigned URL.  Valid values: `download`, `upload`, `unknown`","enum":["download","upload","unknown"],"example":"download","type":"string"}},"required":["expiresAtTime","url","urlType"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/UpdateFunctionStorageFileDetailResponseBody"}},"required":["data"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"FunctionsStorageUpdateFunctionStorageFileUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GaseousFuelCostObjectResponseBody":{"description":"The cost incurred based on the gaseous fuel consumed during the idling event.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"GatewayAssetResponseObjectResponseBody":{"description":"An object containing information about the asset the gateway is installed on","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unique Samsara ID of the asset where the gateway is installed. This is automatically generated when the asset is created and cannot be changed. Use this ID on PATCH vehicle, equipment, or trailer endpoints to update the asset","example":"8393848111","type":"string"}},"type":"object"},"GatewayDetailsResponseResponseBody":{"description":"Gateway-specific health metadata.","properties":{"cellConnectivity":{"$ref":"#/components/schemas/CellConnectivityResponseResponseBody"},"gatewayBatteryState":{"description":"The gateway's battery state.  Valid values: `critical`, `low`, `ok`, `unknown`","enum":["critical","low","ok","unknown"],"example":"critical","type":"string"},"gatewayBatteryTemp":{"description":"The battery temperature of the gateway, in degrees Celsius.","example":25.5,"format":"double","type":"number"},"gatewayBatteryVolts":{"description":"The battery voltage of the gateway, in volts.","example":12.5,"format":"double","type":"number"},"lastCheckInTime":{"description":"The timestamp of the gateway's last check-in, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"vehicleBatteryVolts":{"description":"The battery voltage of the vehicle that gateway is connected to, in volts.","example":12.5,"format":"double","type":"number"}},"type":"object"},"GatewayDisconnectedDetailsObjectRequestBody":{"description":"Details specific to Gateway Disconnected","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting. Can only be either 900000 (15 minutes) or 3600000 (60 min).","example":3600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"GatewayDisconnectedDetailsObjectResponseBody":{"description":"Details specific to Gateway Disconnected","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting. Can only be either 900000 (15 minutes) or 3600000 (60 min).","example":3600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"GatewayDisconnectedResponseBody":{"description":"Details specific to Gateway Disconnected.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"GatewayResponseObjectResponseBody":{"properties":{"accessoryDevices":{"description":"Accessory devices on gateway","items":{"$ref":"#/components/schemas/AccessoryResponseObjectResponseBody"},"type":"array"},"asset":{"$ref":"#/components/schemas/GatewayAssetResponseObjectResponseBody"},"connectionStatus":{"$ref":"#/components/schemas/ConnectionStatusResponseObjectResponseBody"},"dataUsageLast30Days":{"$ref":"#/components/schemas/DataUsageResponseObjectResponseBody"},"model":{"description":"The model of the gateway installed on the asset.  Valid values: `AG15`, `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG41`, `AG41EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `IG15`, `IG21`, `IG41`, `IG61`, `SG1`, `SG1B`, `SG1G`, `SG1G32`, `SG1x`, `VG32`, `VG33`, `VG34`, `VG34EU`, `VG34FN`, `VG34M`, `VG54ATT`, `VG54EU`, `VG54FN`, `VG54NA`, `VG54NAE`, `VG54NAH`, `VG55EU`, `VG55FN`, `VG55NA`","enum":["AG15","AG24","AG24EU","AG26","AG26EU","AG41","AG41EU","AG45","AG45EU","AG46","AG46EU","AG46P","AG46PEU","AG51","AG51EU","AG52","AG52EU","AG53","AG53EU","AT11","AT11X","AT12","AT12X","AT13","IG15","IG21","IG41","IG61","SG1","SG1B","SG1G","SG1G32","SG1x","VG32","VG33","VG34","VG34EU","VG34FN","VG34M","VG54ATT","VG54EU","VG54FN","VG54NA","VG54NAE","VG54NAH","VG55EU","VG55FN","VG55NA"],"example":"VG34","type":"string"},"serial":{"description":"The serial number of the gateway installed on the asset.","example":"GFRV-43N-VGX","type":"string"}},"required":["model","serial"],"type":"object"},"GatewayUnpluggedTriggerDetailsObjectRequestBody":{"description":"Details specific to Gateway Unplugged","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"GatewayUnpluggedTriggerDetailsObjectResponseBody":{"description":"Details specific to Gateway Unplugged","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"GatewayWithVehicleTinyResponseResponseBody":{"properties":{"model":{"description":"The model of the gateway installed on the asset.  Valid values: `AG15`, `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG41`, `AG41EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `IG15`, `IG21`, `IG41`, `IG61`, `SG1`, `SG1B`, `SG1G`, `SG1G32`, `SG1x`, `VG32`, `VG33`, `VG34`, `VG34EU`, `VG34FN`, `VG34M`, `VG54ATT`, `VG54EU`, `VG54FN`, `VG54NA`, `VG54NAE`, `VG54NAH`, `VG55EU`, `VG55FN`, `VG55NA`","enum":["AG15","AG24","AG24EU","AG26","AG26EU","AG41","AG41EU","AG45","AG45EU","AG46","AG46EU","AG46P","AG46PEU","AG51","AG51EU","AG52","AG52EU","AG53","AG53EU","AT11","AT11X","AT12","AT12X","AT13","IG15","IG21","IG41","IG61","SG1","SG1B","SG1G","SG1G32","SG1x","VG32","VG33","VG34","VG34EU","VG34FN","VG34M","VG54ATT","VG54EU","VG54FN","VG54NA","VG54NAE","VG54NAH","VG55EU","VG55FN","VG55NA"],"example":"VG34","type":"string"},"serial":{"description":"The serial number of the gateway installed on the asset.","example":"GFRV-43N-VGX","type":"string"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["model","serial"],"type":"object"},"GatewaysDeleteGatewayBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysDeleteGatewayUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysResponseBody":{"properties":{"data":{"description":"Activated gateways","items":{"$ref":"#/components/schemas/GatewayResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"GatewaysGetGatewaysServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysGetGatewaysUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysRequestBody":{"properties":{"pairs":{"description":"Gateway-device pairs to apply.","items":{"$ref":"#/components/schemas/PairGatewayPairObjectRequestBody"},"maxItems":50,"minItems":1,"type":"array"},"removeOrphanDevices":{"description":"When true, devices that the reassigned gateways were previously linked to are moved to the unassigned group and have their tags cleared as a side-effect of the pairing. The previousDevice fields in the response describe each orphaned device as it existed immediately before the pairing was applied, so they remain stable regardless of this flag. Defaults to false.","example":true,"type":"boolean"}},"required":["pairs"],"type":"object"},"GatewaysPairGatewaysResponseBody":{"properties":{"data":{"description":"The outcome for each gateway pair, in the same order as the request.","items":{"$ref":"#/components/schemas/PairGatewayResultObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"GatewaysPairGatewaysServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPairGatewaysUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayRequestBody":{"properties":{"serial":{"description":"Gateway serial number","example":"GFRV-43N-VGX","pattern":"^[a-zA-Z0-9]{4}-[a-zA-Z0-9]{3}-[a-zA-Z0-9]{3}|DC_([a-zA-Z0-9]){10}|SC_([a-zA-Z0-9]){10}$","type":"string"}},"required":["serial"],"type":"object"},"GatewaysPostGatewayResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/GatewayResponseObjectResponseBody"}},"required":["data"],"type":"object"},"GatewaysPostGatewayServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GatewaysPostGatewayUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"GeofenceEntryTriggerDetailsObjectRequestBody":{"description":"Details specific to Geofence Entry","properties":{"location":{"$ref":"#/components/schemas/LocationObjectRequestBody"}},"required":["location"],"type":"object"},"GeofenceEntryTriggerDetailsObjectResponseBody":{"description":"Details specific to Geofence Entry","properties":{"location":{"$ref":"#/components/schemas/LocationObjectResponseBody"}},"required":["location"],"type":"object"},"GeofenceExitTriggerDetailsObjectRequestBody":{"description":"Details specific to Geofence Exit","properties":{"location":{"$ref":"#/components/schemas/LocationObjectRequestBody"}},"required":["location"],"type":"object"},"GeofenceExitTriggerDetailsObjectResponseBody":{"description":"Details specific to Geofence Exit","properties":{"location":{"$ref":"#/components/schemas/LocationObjectResponseBody"}},"required":["location"],"type":"object"},"GeofenceResponseResponseBody":{"description":"Closest geofence based on 1000 meter radial search.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique ID of the geofence object.","example":"12345","type":"string"}},"type":"object"},"GeofenceVertexInputRequestBody":{"description":"A single vertex of a polygon geofence.","properties":{"latitude":{"description":"Latitude in decimal degrees.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":-122.4194,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"GetAttributesByEntityTypeResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Attribute"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"GetDriverTrailerAssignmentsResponseBodyResponseBody":{"description":"Object with driver assignment information and associated driver and trailer information.","properties":{"createdAtTime":{"description":"Time when the driver trailer assignment was created, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"driver":{"$ref":"#/components/schemas/DriverWithExternalIdObjectResponseBody"},"endTime":{"description":"Time when the driver trailer assignment will end, in RFC 3339 format.","example":"2019-06-13T20:10:25Z","type":"string"},"id":{"description":"Samsara ID of the driver trailer assignment.","example":"08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d6","type":"string"},"startTime":{"description":"Time when the driver trailer assignment starts, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"trailer":{"$ref":"#/components/schemas/TrailerObjectResponseBody"},"updatedAtTime":{"description":"Time when the driver trailer assignment was last updated, in RFC 3339 format.","example":"2019-06-13T19:10:25Z","type":"string"}},"required":["driver","id","startTime","trailer"],"type":"object"},"GetFunctionDetailResponseBody":{"description":"Details of a Function.","properties":{"codePackage":{"$ref":"#/components/schemas/FunctionCodePackageResponseBody"},"config":{"$ref":"#/components/schemas/FunctionConfigResponseBody"},"createdAtTime":{"description":"RFC 3339 timestamp when the Function was created.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"},"description":{"description":"Description of the Function.","example":"Processes incoming telemetry data.","type":"string"},"effects":{"$ref":"#/components/schemas/FunctionEffectsResponseBody"},"lastUpdateTimestampMs":{"description":"Epoch milliseconds of the last update. Use this value for optimistic locking in PATCH requests.","example":1609459200000,"format":"int64","type":"integer"},"name":{"description":"Name of the Function.","example":"my-function","type":"string"},"updatedAtTime":{"description":"RFC 3339 timestamp when the Function was last updated.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"}},"required":["codePackage","config","createdAtTime","effects","lastUpdateTimestampMs","name","updatedAtTime"],"type":"object"},"GetFunctionRunDetailResponseBody":{"description":"Details of a specific Function run.","properties":{"completedAtTime":{"description":"RFC 3339 timestamp when the Function run completed. Absent while the run is in progress.","example":"2021-01-01T00:00:30Z","format":"date-time","type":"string"},"context":{"$ref":"#/components/schemas/FunctionRunContextResponseBody"},"correlationId":{"description":"Unique identifier for this Function run.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"name":{"description":"Name of the Function.","example":"my-function","type":"string"},"startedAtTime":{"description":"RFC 3339 timestamp when the Function run started.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"},"status":{"description":"Execution status of the Function run.  Valid values: `started`, `timeout`, `error`, `success`, `dropped`","enum":["started","timeout","error","success","dropped"],"example":"success","type":"string"}},"required":["context","correlationId","name","startedAtTime","status"],"type":"object"},"GetFunctionStorageFileDetailResponseBody":{"description":"A file in Functions storage with a presigned download URL.","properties":{"downloadGet":{"$ref":"#/components/schemas/FunctionsStorageSignedUrlOfTypeResponseBody"},"name":{"description":"The name of the file.","example":"my-script.js","type":"string"}},"required":["downloadGet","name"],"type":"object"},"GetMediaRetrievalObjectResponseBody":{"properties":{"media":{"description":"List of media retrieval objects.","items":{"$ref":"#/components/schemas/MediaObjectResponseBody"},"type":"array"}},"required":["media"],"type":"object"},"GetReportRunsDataObjectResponseBody":{"properties":{"columns":{"description":"Columns of this report run.","items":{"$ref":"#/components/schemas/reportColumnsObjectResponseBody"},"type":"array"},"rows":{"description":"Array where each inner array represents a row of data, and each element in the inner array is a value for the column. Inner array items are nullable, data types: float64, string, timestamp as string in RFC3339 format. The number of columns defined in the report run is to the number of inner array items.","example":[["Pariatur vel non aut porro corporis ipsum.","Eos doloribus omnis dolor.","Quas natus consequatur ad a cum."],["Corrupti reiciendis quo assumenda enim fugit ab.","Nobis dolorem.","Eos sed non voluptatibus placeat qui.","Et et ut harum necessitatibus vel voluptas."]],"items":{"example":["Veniam incidunt iste harum.","Ea cupiditate."],"items":{"example":"Sequi rem quisquam veritatis omnis et."},"type":"array"},"type":"array"},"status":{"description":"Status of the report run.  Valid values: `complete`, `pending`, `failed`, `canceled`, `unknown`","enum":["complete","pending","failed","canceled","unknown"],"example":"complete","type":"string"}},"required":["columns","rows","status"],"type":"object"},"GetResponseWorkflowConfigurationObjectResponseBody":{"description":"The configuration of a alert.","properties":{"actions":{"description":"An array of actions.","items":{"$ref":"#/components/schemas/ActionObjectResponseBody"},"type":"array"},"createdAtTime":{"description":"The time the configuration was created in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unqiue Samsara id of the alert configuration.","example":"e1c5dffc-c7b7-47b0-a778-6a65de638abf","type":"string"},"isEnabled":{"default":true,"description":"Whether the alert is enabled or not.","example":true,"type":"boolean"},"lastModifiedAtTime":{"description":"The time the configuration was last modified in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"name":{"description":"The custom name of the configuration.","example":"My Harsh Event Alert","type":"string"},"operationalSettings":{"$ref":"#/components/schemas/OperationalSettingsObjectResponseBody"},"scope":{"$ref":"#/components/schemas/ScopeObjectResponseBody"},"triggers":{"description":"An array of triggers.","items":{"$ref":"#/components/schemas/WorkflowTriggerObjectResponseBody"},"type":"array"}},"required":["actions","createdAtTime","id","isEnabled","lastModifiedAtTime","name","scope","triggers"],"type":"object"},"GetWorkflowIncidentResponseObjectResponseBody":{"properties":{"conditions":{"description":"An array of conditions associated with the incident.","items":{"$ref":"#/components/schemas/WorkflowIncidentConditionObjectResponseBody"},"type":"array"},"configurationId":{"description":"Unique ID of the alert configuration.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"happenedAtTime":{"description":"Time and date that the alert incident occurred in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"incidentUrl":{"description":"Url of alert incident in the cloud dashboard.","example":"https://cloud.samsara.com/o/1/fleet/workflows/123","type":"string"},"isResolved":{"description":"Indicates whether the incident is resolved or not.","example":true,"type":"boolean"},"resolvedAtTime":{"description":"Time and date that the alert incident was resolved in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"updatedAtTime":{"description":"Time and date that the alert incident updated in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["conditions","configurationId","happenedAtTime","incidentUrl","isResolved","updatedAtTime"],"type":"object"},"GoaAddressTinyResponseResponseBody":{"description":"A minified Address object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Id of the address","example":"494123","type":"string"},"name":{"description":"Name of the address","example":"Company Office #1","type":"string"}},"required":["id","name"],"type":"object"},"GoaAttributeTiny":{"description":"Attribute properties.","properties":{"dateValues":{"description":"List of date values associated with the attribute (RFC 3339 full-date format: YYYY-MM-DD).","example":["2024-01-15","2024-12-31"],"items":{"example":"Aperiam tempora voluptatem placeat quia ratione eius.","type":"string"},"type":"array"},"id":{"description":"Id of the attribute","example":"494123","type":"string"},"name":{"description":"Name of the attribute","example":"Compliance/ELD","type":"string"},"numberValues":{"description":"List of number values associated with the attribute","example":[867,5309],"items":{"example":0.9547396284387232,"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"List of string values associated with the attribute.","example":["HQ","Leased"],"items":{"example":"Officiis dolorum soluta et ab.","type":"string"},"type":"array"}},"type":"object"},"GoaAttributeTinyRequestBody":{"description":"Attribute properties.","properties":{"dateValues":{"description":"List of date values associated with the attribute (RFC 3339 full-date format: YYYY-MM-DD).","example":["2024-01-15","2024-12-31"],"items":{"example":"Autem inventore assumenda.","type":"string"},"type":"array"},"id":{"description":"Id of the attribute","example":"494123","type":"string"},"name":{"description":"Name of the attribute","example":"Compliance/ELD","type":"string"},"numberValues":{"description":"List of number values associated with the attribute","example":[867,5309],"items":{"example":0.03424320989318558,"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"List of string values associated with the attribute.","example":["HQ","Leased"],"items":{"example":"Nihil voluptatem nulla dolores consequatur molestias.","type":"string"},"type":"array"}},"type":"object"},"GoaAttributeTinyResponseBody":{"description":"Attribute properties.","properties":{"dateValues":{"description":"List of date values associated with the attribute (RFC 3339 full-date format: YYYY-MM-DD).","example":["2024-01-15","2024-12-31"],"items":{"example":"Et veniam laudantium officiis cupiditate.","type":"string"},"type":"array"},"id":{"description":"Id of the attribute","example":"494123","type":"string"},"name":{"description":"Name of the attribute","example":"Compliance/ELD","type":"string"},"numberValues":{"description":"List of number values associated with the attribute","example":[867,5309],"items":{"example":0.7689965978009541,"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"List of string values associated with the attribute.","example":["HQ","Leased"],"items":{"example":"Ducimus quo veritatis occaecati sed.","type":"string"},"type":"array"}},"type":"object"},"GoaDocumentTinyResponseResponseBody":{"description":"A minified Document object","properties":{"id":{"description":"Id of the document","example":"494123","type":"string"},"name":{"description":"Name of the document","example":"Fuel Receipt Wichita","type":"string"}},"required":["id"],"type":"object"},"GoaDocumentTypeTinyResponseResponseBody":{"description":"A minified document type object","properties":{"id":{"description":"ID of the document type.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"name":{"description":"Name of the document type.","example":"Fleet Truck List","type":"string"}},"type":"object"},"GoaDriverTinyResponseResponseBody":{"description":"A minified driver object. This object is only returned if the route is assigned to the driver.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the driver","example":"45646","type":"string"},"name":{"description":"Name of the driver","example":"Driver Bob","type":"string"}},"required":["id"],"type":"object"},"GoaGatewayTinyResponseResponseBody":{"description":"A minified gateway object","properties":{"model":{"description":"The model of the gateway installed on the asset.  Valid values: `AG15`, `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG41`, `AG41EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `IG15`, `IG21`, `IG41`, `IG61`, `SG1`, `SG1B`, `SG1G`, `SG1G32`, `SG1x`, `VG32`, `VG33`, `VG34`, `VG34EU`, `VG34FN`, `VG34M`, `VG54ATT`, `VG54EU`, `VG54FN`, `VG54NA`, `VG54NAE`, `VG54NAH`, `VG55EU`, `VG55FN`, `VG55NA`","enum":["AG15","AG24","AG24EU","AG26","AG26EU","AG41","AG41EU","AG45","AG45EU","AG46","AG46EU","AG46P","AG46PEU","AG51","AG51EU","AG52","AG52EU","AG53","AG53EU","AT11","AT11X","AT12","AT12X","AT13","IG15","IG21","IG41","IG61","SG1","SG1B","SG1G","SG1G32","SG1x","VG32","VG33","VG34","VG34EU","VG34FN","VG34M","VG54ATT","VG54EU","VG54FN","VG54NA","VG54NAE","VG54NAH","VG55EU","VG55FN","VG55NA"],"example":"VG34","type":"string"},"serial":{"description":"The serial number of the gateway installed on the asset.","example":"GFRV-43N-VGX","type":"string"}},"required":["model","serial"],"type":"object"},"GoaIssueTinyResponseResponseBody":{"description":"A minified issue object.","properties":{"id":{"description":"ID of the issue","example":"32812","type":"string"}},"required":["id"],"type":"object"},"GoaPaginationResponseResponseBody":{"description":"Pagination parameters.","properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.","example":"MjkY","type":"string"},"hasNextPage":{"description":"True if there are more pages of results immediately available after this endCursor.","example":true,"type":"boolean"}},"required":["endCursor","hasNextPage"],"type":"object"},"GoaPaginationWithTokensResponseResponseBody":{"description":"Pagination parameters.","properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.","example":"MjkY","type":"string"},"hasNextPage":{"description":"True if there are more pages of results immediately available after this endCursor.","example":true,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"GoaRouteStopTinyResponseResponseBody":{"description":"A minified route stop object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Id of the route stop","example":"494123","type":"string"},"name":{"description":"Name of the route stop","example":"Company Warehouse #1","type":"string"}},"type":"object"},"GoaRouteTinyResponseResponseBody":{"description":"A minified representation of a single route.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique identifier for the route.","example":"131313","type":"string"},"name":{"description":"Name of the route.","example":"Pineapple delivery","maxLength":255,"type":"string"}},"required":["id"],"type":"object"},"GoaTagTinyResponseRequestBody":{"description":"A minified tag object","properties":{"id":{"description":"ID of the tag","example":"3914","type":"string"},"name":{"description":"Name of the tag.","example":"East Coast","type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"}},"required":["id","name"],"type":"object"},"GoaTagTinyResponseResponseBody":{"description":"A minified tag object","properties":{"id":{"description":"ID of the tag","example":"3914","type":"string"},"name":{"description":"Name of the tag.","example":"East Coast","type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"}},"required":["id","name"],"type":"object"},"GoaTrailerTinyResponseResponseBody":{"description":"A minified trailer object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the trailer","example":"494123","type":"string"},"name":{"description":"Name of the trailer","example":"Fleet Truck #1","type":"string"}},"type":"object"},"GoaVehicleTinyResponseResponseBody":{"description":"A minified vehicle object. This object is only returned if the route is assigned to the vehicle.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the vehicle","example":"494123","type":"string"},"name":{"description":"Name of the vehicle","example":"Fleet Truck #1","type":"string"}},"type":"object"},"GpsSignalLossDetailsObjectRequestBody":{"description":"Details specific to GPS Signal Loss","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"GpsSignalLossDetailsObjectResponseBody":{"description":"Details specific to GPS Signal Loss","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"GpsSignalLossResponseBody":{"description":"Details specific to GPS Signal Loss.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"GreenBandDrivingDurationMs":{"description":"Time in efficient RPM (800 to 17000) in milliseconds.","type":"number"},"GrossVehicleWeight":{"description":"The gross weight of the vehicle in either pounds (lb) or kilograms (kg). Only returned for customers with commercial speed limits (CSL) enabled.","properties":{"unit":{"description":"The unit of weight for the vehicle.","enum":["lb","kg"],"example":"lb","type":"string"},"weight":{"description":"The weight value of the vehicle.","example":1000,"format":"int64","type":"integer"}},"type":"object"},"HOSViolationTriggerDetailsObjectRequestBody":{"description":"Details specific to HOS Violation","properties":{"maxUntilViolationMilliseconds":{"description":"Alert if driver has this specified time until driving causes an HOS violation.","example":600000,"format":"int64","type":"integer"},"violation":{"description":"The type of HOS violation.  Valid values: `CaliforniaMealbreakMissed`, `CycleHoursOn`, `DailyDrivingHours`, `DailyOnDutyHours`, `Invalid`, `RestbreakMissed`, `ShiftDrivingHours`, `ShiftHours`, `ShiftOnDutyHours`, `UnsubmittedLogs`","enum":["CaliforniaMealbreakMissed","CycleHoursOn","DailyDrivingHours","DailyOnDutyHours","Invalid","RestbreakMissed","ShiftDrivingHours","ShiftHours","ShiftOnDutyHours","UnsubmittedLogs"],"example":"CaliforniaMealbreakMissed","type":"string"}},"required":["maxUntilViolationMilliseconds","violation"],"type":"object"},"HOSViolationTriggerDetailsObjectResponseBody":{"description":"Details specific to HOS Violation","properties":{"maxUntilViolationMilliseconds":{"description":"Alert if driver has this specified time until driving causes an HOS violation.","example":600000,"format":"int64","type":"integer"},"violation":{"description":"The type of HOS violation.  Valid values: `CaliforniaMealbreakMissed`, `CycleHoursOn`, `DailyDrivingHours`, `DailyOnDutyHours`, `Invalid`, `RestbreakMissed`, `ShiftDrivingHours`, `ShiftHours`, `ShiftOnDutyHours`, `UnsubmittedLogs`","enum":["CaliforniaMealbreakMissed","CycleHoursOn","DailyDrivingHours","DailyOnDutyHours","Invalid","RestbreakMissed","ShiftDrivingHours","ShiftHours","ShiftOnDutyHours","UnsubmittedLogs"],"example":"CaliforniaMealbreakMissed","type":"string"}},"required":["maxUntilViolationMilliseconds","violation"],"type":"object"},"HarshAccelSensitivityGForceSettingsObjectResponseBody":{"description":"The harsh acceleration sensitivity settings.","properties":{"heavyDuty":{"description":"Harsh acceleration sensitivity settings for heavy duty vehicle.","example":"0.29","type":"string"},"lightDuty":{"description":"Harsh acceleration sensitivity settings for light duty vehicle.","example":"0.33","type":"string"},"passenger":{"description":"Harsh acceleration sensitivity settings for passenger car.","example":"0.43","type":"string"}},"type":"object"},"HarshAccelSensitivityV2SettingsObjectResponseBody":{"description":"The harsh acceleration sensitivity settings.","properties":{"heavyDuty":{"description":"Harsh acceleration sensitivity settings for heavy duty vehicle.  Valid values: `unknown`, `invalid`, `off`, `low`, `normal`, `high`","enum":["unknown","invalid","off","low","normal","high"],"example":"normal","type":"string"},"lightDuty":{"description":"Harsh acceleration sensitivity settings for light duty vehicle.  Valid values: `unknown`, `invalid`, `off`, `low`, `normal`, `high`","enum":["unknown","invalid","off","low","normal","high"],"example":"normal","type":"string"},"passenger":{"description":"Harsh acceleration sensitivity settings for passenger car.  Valid values: `unknown`, `invalid`, `off`, `low`, `normal`, `high`","enum":["unknown","invalid","off","low","normal","high"],"example":"normal","type":"string"}},"type":"object"},"HarshBrakeSensitivityGForceSettingsObjectResponseBody":{"description":"The harsh brake sensitivity settings.","properties":{"heavyDuty":{"description":"Harsh brake sensitivity settings for heavy duty vehicle.","example":"0.29","type":"string"},"lightDuty":{"description":"Harsh brake sensitivity settings for light duty vehicle.","example":"0.33","type":"string"},"passenger":{"description":"Harsh brake sensitivity settings for passenger car.","example":"0.43","type":"string"}},"type":"object"},"HarshBrakeSensitivityV2SettingsObjectResponseBody":{"description":"The harsh brake sensitivity settings.","properties":{"heavyDuty":{"description":"Harsh brake sensitivity settings for heavy duty vehicle.  Valid values: `unknown`, `invalid`, `off`, `veryLow`, `low`, `normal`, `high`","enum":["unknown","invalid","off","veryLow","low","normal","high"],"example":"normal","type":"string"},"lightDuty":{"description":"Harsh brake sensitivity settings for light duty vehicle.  Valid values: `unknown`, `invalid`, `off`, `veryLow`, `low`, `normal`, `high`","enum":["unknown","invalid","off","veryLow","low","normal","high"],"example":"normal","type":"string"},"passenger":{"description":"Harsh brake sensitivity settings for passenger car.  Valid values: `unknown`, `invalid`, `off`, `veryLow`, `low`, `normal`, `high`","enum":["unknown","invalid","off","veryLow","low","normal","high"],"example":"normal","type":"string"}},"type":"object"},"HarshEventDataResponseBody":{"description":"Details specific to Harsh Event.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"HarshEventSensitivitySettingsObjectResponseBody":{"description":"The configurable sensitivity for Harsh Event Detection on CM11/CM12/CM22 devices. Sensitivity can be measured as a numeric g-force value or the following values: `Normal`, `Less Sensitive`, `More Sensitive`.","properties":{"harshAccelSensitivityGForce":{"$ref":"#/components/schemas/HarshAccelSensitivityGForceSettingsObjectResponseBody"},"harshBrakeSensitivityGForce":{"$ref":"#/components/schemas/HarshBrakeSensitivityGForceSettingsObjectResponseBody"},"harshTurnSensitivityGForce":{"$ref":"#/components/schemas/HarshTurnSensitivityGForceSettingsObjectResponseBody"}},"type":"object"},"HarshEventSensitivityV2SettingsObjectResponseBody":{"description":"The configurable sensitivity for Harsh Event Detection. Does not apply to CM11/12/22 devices.","properties":{"harshAccelSensitivity":{"$ref":"#/components/schemas/HarshAccelSensitivityV2SettingsObjectResponseBody"},"harshBrakeSensitivity":{"$ref":"#/components/schemas/HarshBrakeSensitivityV2SettingsObjectResponseBody"},"harshTurnSensitivity":{"$ref":"#/components/schemas/HarshTurnSensitivityV2SettingsObjectResponseBody"}},"type":"object"},"HarshEventTriggerDetailsObjectRequestBody":{"description":"Details specific to Harsh Events","properties":{"types":{"description":"On which harsh events to trigger on.","example":["haUnsafeParking","haYawControlBrakeControlActivated","haSharpTurn"],"items":{"description":"The type of harsh event.  Valid values: `haAccel`, `haBraking`, `haCameraMisaligned`, `haCrash`, `haDistractedDriving`, `haDistractedDrivingCalibration`, `haDrinkPolicy`, `haDriverObstructionPolicy`, `haDrowsinessDetection`, `haEvent`, `haFalsePositive`, `haFoodPolicy`, `haHighSpeedSuddenDisconnect`, `haImpact`, `haImproperEgress`, `haInvalid`, `haLaneDeparture`, `haMaskPolicy`, `haNearCollision`, `haOutwardObstructionPolicy`, `haPassengerPolicy`, `haPersonalProtectiveEquipment`, `haPhonePolicy`, `haPolicyDetector`, `haProximityWarning`, `haRearCollisionWarning`, `haRedLightViolation`, `haReversing`, `haRolledStopSign`, `haRollover`, `haRolloverProtectionBrakeControlActivated`, `haRolloverProtectionEngineControlActivated`, `haSeatbeltPolicy`, `haSharpTurn`, `haSignDetection`, `haSmokingPolicy`, `haSpeeding`, `haTailgating`, `haTileRollingRailroadCrossing`, `haTileRollingStopSign`, `haTrafficLightDetection`, `haUnsafeParking`, `haVehicleInBlindSpotWarning`, `haVulnerableRoadUserCollisionWarning`, `haYawControlBrakeControlActivated`, `haYawControlEngineControlActivated`","enum":["haAccel","haBraking","haCameraMisaligned","haCrash","haDistractedDriving","haDistractedDrivingCalibration","haDrinkPolicy","haDriverObstructionPolicy","haDrowsinessDetection","haEvent","haFalsePositive","haFoodPolicy","haHighSpeedSuddenDisconnect","haImpact","haImproperEgress","haInvalid","haLaneDeparture","haMaskPolicy","haNearCollision","haOutwardObstructionPolicy","haPassengerPolicy","haPersonalProtectiveEquipment","haPhonePolicy","haPolicyDetector","haProximityWarning","haRearCollisionWarning","haRedLightViolation","haReversing","haRolledStopSign","haRollover","haRolloverProtectionBrakeControlActivated","haRolloverProtectionEngineControlActivated","haSeatbeltPolicy","haSharpTurn","haSignDetection","haSmokingPolicy","haSpeeding","haTailgating","haTileRollingRailroadCrossing","haTileRollingStopSign","haTrafficLightDetection","haUnsafeParking","haVehicleInBlindSpotWarning","haVulnerableRoadUserCollisionWarning","haYawControlBrakeControlActivated","haYawControlEngineControlActivated"],"example":"haDriverObstructionPolicy","type":"string"},"type":"array"}},"required":["types"],"type":"object"},"HarshEventTriggerDetailsObjectResponseBody":{"description":"Details specific to Harsh Events","properties":{"types":{"description":"On which harsh events to trigger on.","example":["haUnsafeParking","haPassengerPolicy"],"items":{"description":"The type of harsh event.  Valid values: `haAccel`, `haBraking`, `haCameraMisaligned`, `haCrash`, `haDistractedDriving`, `haDistractedDrivingCalibration`, `haDrinkPolicy`, `haDriverObstructionPolicy`, `haDrowsinessDetection`, `haEvent`, `haFalsePositive`, `haFoodPolicy`, `haHighSpeedSuddenDisconnect`, `haImpact`, `haImproperEgress`, `haInvalid`, `haLaneDeparture`, `haMaskPolicy`, `haNearCollision`, `haOutwardObstructionPolicy`, `haPassengerPolicy`, `haPersonalProtectiveEquipment`, `haPhonePolicy`, `haPolicyDetector`, `haProximityWarning`, `haRearCollisionWarning`, `haRedLightViolation`, `haReversing`, `haRolledStopSign`, `haRollover`, `haRolloverProtectionBrakeControlActivated`, `haRolloverProtectionEngineControlActivated`, `haSeatbeltPolicy`, `haSharpTurn`, `haSignDetection`, `haSmokingPolicy`, `haSpeeding`, `haTailgating`, `haTileRollingRailroadCrossing`, `haTileRollingStopSign`, `haTrafficLightDetection`, `haUnsafeParking`, `haVehicleInBlindSpotWarning`, `haVulnerableRoadUserCollisionWarning`, `haYawControlBrakeControlActivated`, `haYawControlEngineControlActivated`","enum":["haAccel","haBraking","haCameraMisaligned","haCrash","haDistractedDriving","haDistractedDrivingCalibration","haDrinkPolicy","haDriverObstructionPolicy","haDrowsinessDetection","haEvent","haFalsePositive","haFoodPolicy","haHighSpeedSuddenDisconnect","haImpact","haImproperEgress","haInvalid","haLaneDeparture","haMaskPolicy","haNearCollision","haOutwardObstructionPolicy","haPassengerPolicy","haPersonalProtectiveEquipment","haPhonePolicy","haPolicyDetector","haProximityWarning","haRearCollisionWarning","haRedLightViolation","haReversing","haRolledStopSign","haRollover","haRolloverProtectionBrakeControlActivated","haRolloverProtectionEngineControlActivated","haSeatbeltPolicy","haSharpTurn","haSignDetection","haSmokingPolicy","haSpeeding","haTailgating","haTileRollingRailroadCrossing","haTileRollingStopSign","haTrafficLightDetection","haUnsafeParking","haVehicleInBlindSpotWarning","haVulnerableRoadUserCollisionWarning","haYawControlBrakeControlActivated","haYawControlEngineControlActivated"],"example":"haVulnerableRoadUserCollisionWarning","type":"string"},"type":"array"}},"required":["types"],"type":"object"},"HarshTurnSensitivityGForceSettingsObjectResponseBody":{"description":"The harsh turn sensitivity settings.","properties":{"heavyDuty":{"description":"Harsh turn sensitivity settings for heavy duty vehicle.","example":"0.29","type":"string"},"lightDuty":{"description":"Harsh turn sensitivity settings for light duty vehicle.","example":"0.33","type":"string"},"passenger":{"description":"Harsh turn sensitivity settings for passenger car.","example":"0.43","type":"string"}},"type":"object"},"HarshTurnSensitivityV2SettingsObjectResponseBody":{"description":"The harsh turn sensitivity settings.","properties":{"heavyDuty":{"description":"Harsh turn sensitivity settings for heavy duty vehicle.  Valid values: `unknown`, `invalid`, `off`, `veryLow`, `low`, `normal`, `high`","enum":["unknown","invalid","off","veryLow","low","normal","high"],"example":"normal","type":"string"},"lightDuty":{"description":"Harsh turn sensitivity settings for light duty vehicle.  Valid values: `unknown`, `invalid`, `off`, `veryLow`, `low`, `normal`, `high`","enum":["unknown","invalid","off","veryLow","low","normal","high"],"example":"normal","type":"string"},"passenger":{"description":"Harsh turn sensitivity settings for passenger car.  Valid values: `unknown`, `invalid`, `off`, `veryLow`, `low`, `normal`, `high`","enum":["unknown","invalid","off","veryLow","low","normal","high"],"example":"normal","type":"string"}},"type":"object"},"HealthDetailsResponseResponseBody":{"description":"Detailed health related metadata for the device.","properties":{"bleAssetTagDetails":{"$ref":"#/components/schemas/BleAssetTagDetailsResponseResponseBody"},"cameraConnectorDetails":{"$ref":"#/components/schemas/CameraConnectorDetailsResponseResponseBody"},"cameraDetails":{"$ref":"#/components/schemas/CameraDetailsResponseResponseBody"},"gatewayDetails":{"$ref":"#/components/schemas/GatewayDetailsResponseResponseBody"}},"type":"object"},"HealthReasonResponseResponseBody":{"description":"Information about an active health reason affecting the device.","properties":{"healthReasonCode":{"description":"The type of health reason detected.  Valid values: `assetUnplugged`, `cameraMisaligned`, `dataPending`, `healthy`, `inwardCameraObstruction`, `irregularRecording`, `lowConnectivity`, `lowDeviceBattery`, `lowUptime`, `mediaInputLowConnectivity`, `missingEldDiagnostics`, `missingVin`, `needsAttribute`, `needsReplacement`, `newlyInstalledDevice`, `noGpsSignal`, `notDetected`, `outwardCameraObstruction`, `recordingTimeRequired`, `unknown`, `unstablePower`, `vgUnplugged`","enum":["assetUnplugged","cameraMisaligned","dataPending","healthy","inwardCameraObstruction","irregularRecording","lowConnectivity","lowDeviceBattery","lowUptime","mediaInputLowConnectivity","missingEldDiagnostics","missingVin","needsAttribute","needsReplacement","newlyInstalledDevice","noGpsSignal","notDetected","outwardCameraObstruction","recordingTimeRequired","unknown","unstablePower","vgUnplugged"],"example":"assetUnplugged","type":"string"},"startTime":{"description":"The timestamp when this health reason began, in RFC3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"type":"object"},"HealthResponseResponseBody":{"description":"Health information for the device.","properties":{"healthDetails":{"$ref":"#/components/schemas/HealthDetailsResponseResponseBody"},"healthReasons":{"description":"The list of active health reasons affecting this device.","items":{"$ref":"#/components/schemas/HealthReasonResponseResponseBody"},"type":"array"},"healthStatus":{"description":"Current overall health status of the device.  Valid values: `dataPending`, `healthy`, `needsAttention`, `needsReplacement`","enum":["dataPending","healthy","needsAttention","needsReplacement"],"example":"dataPending","type":"string"},"primaryHealthReason":{"description":"Primary health reason affecting the device's current health status.  Valid values: `assetUnplugged`, `cameraMisaligned`, `dataPending`, `healthy`, `inwardCameraObstruction`, `irregularRecording`, `lowConnectivity`, `lowDeviceBattery`, `lowUptime`, `mediaInputLowConnectivity`, `missingEldDiagnostics`, `missingVin`, `needsAttribute`, `needsReplacement`, `newlyInstalledDevice`, `noGpsSignal`, `notDetected`, `outwardCameraObstruction`, `recordingTimeRequired`, `unknown`, `unstablePower`, `vgUnplugged`","enum":["assetUnplugged","cameraMisaligned","dataPending","healthy","inwardCameraObstruction","irregularRecording","lowConnectivity","lowDeviceBattery","lowUptime","mediaInputLowConnectivity","missingEldDiagnostics","missingVin","needsAttribute","needsReplacement","newlyInstalledDevice","noGpsSignal","notDetected","outwardCameraObstruction","recordingTimeRequired","unknown","unstablePower","vgUnplugged"],"example":"assetUnplugged","type":"string"},"primaryHealthReasonStartTime":{"description":"The timestamp when the primary health reason began, in RFC3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"recommendedAction":{"description":"Recommended steps to resolve the current health reason.\n\n* `recommendedActionAgHealthy`: Gateway is healthy. No action required.\n* `recommendedActionAgLowDeviceBatteryAG45`: The gateway battery is low. Please contact support\n* `recommendedActionAgLowDeviceBatteryAG46`: The gateway battery is low. Gateway batteries require replacement.\n* `recommendedActionAgLowDeviceBatteryAG51`: Gateway batteries require replacement.\n* `recommendedActionAgLowDeviceBatteryPoweredAG`: The gateway battery is low. Power on the asset to charge the gateway.\n* `recommendedActionAgNoGpsSignal`: Gateway has no GPS signal. Verify that the gateway is securely attached to the exterior of the asset. Ensure that the device is outside and avoid obstructions such as underground structures, heavily insulated buildings, bridges, and trees.\n* `recommendedActionAgNotDetected`: The gateway has not been detected for at least the configured check-in interval (typically 24, 48, or 72 hours). See troubleshooting steps to reboot the gateway.\n* `recommendedActionAgUnplugged`: The asset gateway is unplugged or cut. Check the gateway connection to ensure it is plugged in and has been installed correctly\n* `recommendedActionAgUnstablePower`: The gateway is receiving unstable power from the asset. Check that the power cable is securely connected to the gateway and the asset, and that the wiring and fuse are intact. If the issue continues, contact support.\n* `recommendedActionBLEDataPending`: This device has recently been installed and more data is required to calculate health. No action required.\n* `recommendedActionBLEHealthy`: Device is healthy. No action required.\n* `recommendedActionBLELowBattery`: The device battery is low. Please contact support.\n* `recommendedActionBLENotDetected`: The device has not been detected by a gateway in the Samsara Network for at least 30 days. Verify that the device is securely attached to the asset, not in a remote area, and minimize obstructions that may disrupt detection by nearby gateways.\n* `recommendedActionCcHealthy`: Device is healthy. No action required.\n* `recommendedActionCcLowConnectivity`: Check the device's connection and verify that it has been installed correctly.\n* `recommendedActionCcLowUptime`: Please ensure all cameras are physically connected to the device.\n* `recommendedActionCcMediaInputUptime`: Please ensure the camera is properly connected to the device.\n* `recommendedActionCcNeedsAttribute`: Set the Analog Camera Setup attribute to Ignition On or Reverse Only so uptime can be calculated correctly.\n* `recommendedActionCcNotDetected`: None\n* `recommendedActionCmCameraMisaligned`: The position of the road-facing dash cam is not aligned with the horizon. Video quality and AI detection may be impacted. Reposition dash cam and Test Dash Cam Positioning.\n* `recommendedActionCmHealthy`: Dash cam recording is healthy. No action required.\n* `recommendedActionCmInactive`: None\n* `recommendedActionCmInwardCameraObstruction`: The inward-facing dash cam does not have a clear view of the vehicle cab. Video quality and AI detection may be impacted. Remove obstruction and Test Dash Cam Positioning.\n* `recommendedActionCmIrregularRecording`: The dash cam shows no evidence of recording during the expected recording time over the last 30 days. Please contact Support.\n* `recommendedActionCmLowUptime`: The dash cam is either experiencing low recording uptime, low connectivity, or both. Please follow the troubleshooting steps and contact Support if issues persist.\n* `recommendedActionCmNewlyInstalledDevice`: This dash cam has recently been installed and at least 30 hours of recording time is required to calculate health. No action required.\n* `recommendedActionCmNotDetected`: The dash cam has not been detected within the last 30 days. Check the dash cam's connection and verify your dash cam has been installed correctly.\n* `recommendedActionCmOutwardCameraObstruction`: The outward-facing dash cam does not have a clear view of the road. Video quality and AI detection may be impacted Remove obstruction and Test Dash Cam Positioning.\n* `recommendedActionCmRecordingTimeRequired`: At least 30 hours of recording time is required to determine device health. No action required.\n* `recommendedActionCmVgUnplugged`: The vehicle gateway is unplugged and the dash cam health cannot be determined. Check the vehicle gateway connection and ensure it is plugged in and has been installed correctly.\n* `recommendedActionGatewayNewlyInstalledDevice`: This gateway has recently been installed and more data is required to calculate health. No action required.\n* `recommendedActionHealthy`: Asset is healthy. No action required.\n* `recommendedActionLowBatteryVoltage`: Asset has reported low battery voltage. Please contact support.\n* `recommendedActionOemNotReporting`: Data for this asset has not been received as expected. Please contact support.\n* `recommendedActionVehicleOff`: Asset has reported an expected power-off event, and is healthy. No action required.\n* `recommendedActionVgFrequentPowerLoss`: The vehicle gateway is losing power during trips. The vehicle gateway cannot function without a stable power source from the asset. Please ensure the vehicle gateway cable is securely connected to both the gateway and the vehicle port. If the issue continues, contact support for assistance.\n* `recommendedActionVgHealthy`: Gateway is healthy. No action required.\n* `recommendedActionVgMissingEldDiagnostics`: To ensure full compliance, request exchange.\n* `recommendedActionVgMissingEldDiagnosticsExchangeSubmitted`: Exchange submitted. Please allow 12-24 hours for exchange to appear in the orders and exchanges page.\n* `recommendedActionVgMissingEldDiagnosticsHardwareExchanged`: Install exchanged hardware.\n* `recommendedActionVgMissingEldDiagnosticsNoExchangeSubmitted`: To ensure full compliance, request exchange.\n* `recommendedActionVgMissingVin`: Add the VIN to your vehicle.\n* `recommendedActionVgNeedsReplacement`: To ensure full compliance, request exchange.\n* `recommendedActionVgNotDetected`: The vehicle gateway has not been detected for at least 24 hours. Check the vehicle gateway connection to ensure it is plugged in and view additional troubleshooting steps.\n* `recommendedActionVgVgUnplugged`: The vehicle gateway is unplugged. Check the vehicle gateway connection to ensure it is plugged in and has been installed correctly.\n* `unknown`: None\n\n\n  Valid values: `recommendedActionAgHealthy`, `recommendedActionAgLowDeviceBatteryAG45`, `recommendedActionAgLowDeviceBatteryAG46`, `recommendedActionAgLowDeviceBatteryAG51`, `recommendedActionAgLowDeviceBatteryPoweredAG`, `recommendedActionAgNoGpsSignal`, `recommendedActionAgNotDetected`, `recommendedActionAgUnplugged`, `recommendedActionAgUnstablePower`, `recommendedActionBLEDataPending`, `recommendedActionBLEHealthy`, `recommendedActionBLELowBattery`, `recommendedActionBLENotDetected`, `recommendedActionCcHealthy`, `recommendedActionCcLowConnectivity`, `recommendedActionCcLowUptime`, `recommendedActionCcMediaInputUptime`, `recommendedActionCcNeedsAttribute`, `recommendedActionCcNotDetected`, `recommendedActionCmCameraMisaligned`, `recommendedActionCmHealthy`, `recommendedActionCmInactive`, `recommendedActionCmInwardCameraObstruction`, `recommendedActionCmIrregularRecording`, `recommendedActionCmLowUptime`, `recommendedActionCmNewlyInstalledDevice`, `recommendedActionCmNotDetected`, `recommendedActionCmOutwardCameraObstruction`, `recommendedActionCmRecordingTimeRequired`, `recommendedActionCmVgUnplugged`, `recommendedActionGatewayNewlyInstalledDevice`, `recommendedActionHealthy`, `recommendedActionLowBatteryVoltage`, `recommendedActionOemNotReporting`, `recommendedActionVehicleOff`, `recommendedActionVgFrequentPowerLoss`, `recommendedActionVgHealthy`, `recommendedActionVgMissingEldDiagnostics`, `recommendedActionVgMissingEldDiagnosticsExchangeSubmitted`, `recommendedActionVgMissingEldDiagnosticsHardwareExchanged`, `recommendedActionVgMissingEldDiagnosticsNoExchangeSubmitted`, `recommendedActionVgMissingVin`, `recommendedActionVgNeedsReplacement`, `recommendedActionVgNotDetected`, `recommendedActionVgVgUnplugged`, `unknown`","enum":["recommendedActionAgHealthy","recommendedActionAgLowDeviceBatteryAG45","recommendedActionAgLowDeviceBatteryAG46","recommendedActionAgLowDeviceBatteryAG51","recommendedActionAgLowDeviceBatteryPoweredAG","recommendedActionAgNoGpsSignal","recommendedActionAgNotDetected","recommendedActionAgUnplugged","recommendedActionAgUnstablePower","recommendedActionBLEDataPending","recommendedActionBLEHealthy","recommendedActionBLELowBattery","recommendedActionBLENotDetected","recommendedActionCcHealthy","recommendedActionCcLowConnectivity","recommendedActionCcLowUptime","recommendedActionCcMediaInputUptime","recommendedActionCcNeedsAttribute","recommendedActionCcNotDetected","recommendedActionCmCameraMisaligned","recommendedActionCmHealthy","recommendedActionCmInactive","recommendedActionCmInwardCameraObstruction","recommendedActionCmIrregularRecording","recommendedActionCmLowUptime","recommendedActionCmNewlyInstalledDevice","recommendedActionCmNotDetected","recommendedActionCmOutwardCameraObstruction","recommendedActionCmRecordingTimeRequired","recommendedActionCmVgUnplugged","recommendedActionGatewayNewlyInstalledDevice","recommendedActionHealthy","recommendedActionLowBatteryVoltage","recommendedActionOemNotReporting","recommendedActionVehicleOff","recommendedActionVgFrequentPowerLoss","recommendedActionVgHealthy","recommendedActionVgMissingEldDiagnostics","recommendedActionVgMissingEldDiagnosticsExchangeSubmitted","recommendedActionVgMissingEldDiagnosticsHardwareExchanged","recommendedActionVgMissingEldDiagnosticsNoExchangeSubmitted","recommendedActionVgMissingVin","recommendedActionVgNeedsReplacement","recommendedActionVgNotDetected","recommendedActionVgVgUnplugged","unknown"],"example":"recommendedActionAgHealthy","type":"string"}},"type":"object"},"HighTorqueMs":{"description":"Time the vehicle engine torque is greater than 90% in milliseconds.","type":"number"},"HosBreak":{"description":"Remaining durations for the HOS rest break requirement.","properties":{"timeUntilBreakDurationMs":{"description":"Time until the driver has a required break in milliseconds.","example":28800000,"type":"number"}},"type":"object"},"HosClocks":{"description":"Remaining durations and start times (where applicable) for various HOS rules. See [this page](https://www.samsara.com/fleet/eld-compliance/hours-of-service) for more information on HOS rules.","properties":{"break":{"$ref":"#/components/schemas/HosBreak"},"cycle":{"$ref":"#/components/schemas/HosCycle"},"drive":{"$ref":"#/components/schemas/HosDrive"},"shift":{"$ref":"#/components/schemas/HosShift"}},"type":"object"},"HosClocksForDriver":{"description":"HOS clock values for a specific driver, including remaining times and violations.","properties":{"clocks":{"$ref":"#/components/schemas/HosClocks"},"currentDutyStatus":{"$ref":"#/components/schemas/CurrentDutyStatus"},"currentVehicle":{"$ref":"#/components/schemas/vehicleTinyResponse"},"driver":{"$ref":"#/components/schemas/driverTinyResponse"},"violations":{"$ref":"#/components/schemas/HosViolations"}},"type":"object"},"HosClocksForDrivers":{"description":"List of HOS clocks for the specified drivers.","items":{"$ref":"#/components/schemas/HosClocksForDriver"},"type":"array"},"HosClocksResponse":{"description":"Drivers HOS clocks and pagination info.","properties":{"data":{"$ref":"#/components/schemas/HosClocksForDrivers"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"HosCycle":{"description":"Remaining durations and start time for the HOS driving cycle.","properties":{"cycleRemainingDurationMs":{"description":"Remaining on duty or driving time the driver has in the current cycle in milliseconds. For property-carrying drivers, this is the amount of time the driver can be on duty or driving before hitting the 60/70-hour limit in 7/8 days.","example":252000000,"type":"number"},"cycleStartedAtTime":{"$ref":"#/components/schemas/time"},"cycleTomorrowDurationMs":{"description":"Remaining on duty or driving time the driver has available tomorrow in milliseconds. For property-carrying drivers this is calculated based on the 60/70-hour limit in 7/8 days rule.","example":252000000,"type":"number"}},"type":"object"},"HosDailyLogsGetHosDailyLogsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsResponseBody":{"properties":{"data":{"description":"List of drivers and their HOS daily logs data.","items":{"$ref":"#/components/schemas/HosDailyLogsObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"HosDailyLogsGetHosDailyLogsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsGetHosDailyLogsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsObjectResponseBody":{"properties":{"distanceTraveled":{"$ref":"#/components/schemas/DistanceTraveledObjectResponseBody"},"driver":{"$ref":"#/components/schemas/DriverWithTimezoneEldSettingsObjectResponseBody"},"dutyStatusDurations":{"$ref":"#/components/schemas/DutyStatusDurationObjectResponseBody"},"endTime":{"description":"The end time of the daily log in RFC 3339 format. This will be calculated using timezone of the driver.","example":"2019-06-20T19:08:25Z","type":"string"},"logMetaData":{"$ref":"#/components/schemas/LogMetaDataObjectResponseBody"},"pendingDutyStatusDurations":{"$ref":"#/components/schemas/PendingDutyStatusDurationsObjectResponseBody"},"startTime":{"description":"The start time of the daily log in RFC 3339 format. This will be calculated using timezone of the driver.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["driver","endTime","startTime"],"type":"object"},"HosDailyLogsUpdateShippingDocsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsRequestBody":{"description":"Update the shippingDocs field.","properties":{"shippingDocs":{"description":"ShippingDocs associated with the driver for the day.","example":"ShippingID1, ShippingID2","type":"string"}},"required":["shippingDocs"],"type":"object"},"HosDailyLogsUpdateShippingDocsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PatchShippingDocsResponseBodyResponseBody"}},"required":["data"],"type":"object"},"HosDailyLogsUpdateShippingDocsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDailyLogsUpdateShippingDocsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosDrive":{"description":"Remaining durations for the HOS driving shift limits.","properties":{"driveRemainingDurationMs":{"description":"Remaining driving time the driver has in the current shift in milliseconds. For property-carrying drivers, this is the amount of time the driver can drive before hitting the 11-hour limit.","example":39600000,"type":"number"}},"type":"object"},"HosDriversEldEventObjectResponseBody":{"properties":{"driverActivationStatus":{"description":"A value indicating whether the driver is active or deactivated.  Valid values: `active`, `deactivated`","enum":["active","deactivated"],"example":"active","type":"string"},"eldEvents":{"description":"List of ELD event objects.","items":{"$ref":"#/components/schemas/HosEldEventObjectResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the driver.","example":"494123","type":"string"},"name":{"description":"Name of the driver.","example":"Joe Driver","type":"string"}},"required":["driverActivationStatus","eldEvents","id","name"],"type":"object"},"HosDutyStatusDataResponseBody":{"description":"Details specific to HOS Duty Status.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"}},"type":"object"},"HosEldEventLocationObjectResponseBody":{"properties":{"city":{"description":"The best effort city for the latitude and longitude.","example":"San Francisco","type":"string"},"eldLocation":{"description":"Relative location to the city, village, or town with population of 5,000 or greater.","example":"3.1 mi WSW San Francisco, CA","type":"string"},"latitude":{"description":"The latitude of the location.","example":123.456,"format":"double","type":"number"},"longitude":{"description":"The longitude of the location.","example":37.459,"format":"double","type":"number"},"state":{"description":"The best effort state for the latitude and longitude.","example":"CA","type":"string"}},"type":"object"},"HosEldEventObjectResponseBody":{"description":"An event that refers to a discrete instance in time with various data elements. Depending on the type of event, not every field will be populated. For more information, see the ELD Mandate [section 3.1.2](https://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&ty=HTML&h=L&mc=true&=PART&n=pt49.5.395#ap49.5.395_138.a).","properties":{"accumulatedVehicleMeters":{"description":"The accumulated meters in the given ignition power on cycle.","example":106,"format":"int64","type":"integer"},"elapsedEngineHours":{"description":"The elapsed time in the engine's operation in the given ignition power on cycle.","example":284.1,"format":"double","type":"number"},"eldEventCode":{"description":"A dependent attribute on `eldEventType` that specifies the nature of the event, as defined in the ELD Mandate [section 7.20](https://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&ty=HTML&h=L&mc=true&=PART&n=pt49.5.395#ap49.5.395_138.a).  Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`","example":3,"maximum":9,"minimum":1,"type":"integer"},"eldEventRecordOrigin":{"description":"An attribute for the event record indicating whether it is automatically recorded, or edited, entered or accepted by the driver, requested by another authenticated user, or assumed from unidentified driver profile, as defined in the ELD Mandate [section 7.22](https://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&ty=HTML&h=L&mc=true&=PART&n=pt49.5.395#ap49.5.395_138.a).  Valid values: `1`, `2`, `3`, `4`","example":2,"maximum":4,"minimum":1,"type":"integer"},"eldEventRecordStatus":{"description":"An attribute for the event record indicating whether an event is active or inactive and further, if inactive, whether it is due to a change or lack of confirmation by the driver or due to a driver's rejection of change request, as defined in the ELD Mandate [section 7.23](https://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&ty=HTML&h=L&mc=true&=PART&n=pt49.5.395#ap49.5.395_138.a).  Valid values: `1`, `2`, `3`, `4`","example":2,"maximum":4,"minimum":1,"type":"integer"},"eldEventType":{"description":"An attribute specifying the type of ELD event, as defined in the ELD Mandate [section 7.25](https://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&ty=HTML&h=L&mc=true&=PART&n=pt49.5.395#ap49.5.395_138.a).  Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`","example":6,"maximum":7,"minimum":1,"type":"integer"},"location":{"$ref":"#/components/schemas/HosEldEventLocationObjectResponseBody"},"malfunctionDiagnosticCode":{"description":"A code that further specifies the underlying malfunction or data diagnostic event, as defined in the ELD Mandate [section 7.34](https://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&ty=HTML&h=L&mc=true&=PART&n=pt49.5.395#ap49.5.395_138.a).  Valid values: `P`, `E`, `T`, `L`, `R`, `S`, `O`, `1`, `2`, `3`, `4`, `5`, `6`","enum":["P","E","T","L","R","S","O","1","2","3","4","5","6"],"example":"P","type":"string"},"remark":{"$ref":"#/components/schemas/HosEldEventRemarkObjectResponseBody"},"time":{"description":"A time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"totalEngineHours":{"description":"The aggregated time of a vehicle's engine's operation since its inception.","example":2894.1,"format":"double","type":"number"},"totalVehicleMeters":{"description":"The total meters recorded for the vehicle.","example":1004566,"format":"int64","type":"integer"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["eldEventCode","eldEventType","time"],"type":"object"},"HosEldEventRemarkObjectResponseBody":{"properties":{"comment":{"description":"The content of the remark.","example":"Pre-Trip Inspection","type":"string"},"locationDescription":{"description":"The location description entered by the user","example":"Near San Francisco","type":"string"},"time":{"description":"The time in RFC 3339 format at which the remark was created.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["comment","locationDescription","time"],"type":"object"},"HosEldEventsGetHosEldEventsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsResponseBody":{"properties":{"data":{"description":"List of drivers and their ELD event objects data.","items":{"$ref":"#/components/schemas/HosDriversEldEventObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data"],"type":"object"},"HosEldEventsGetHosEldEventsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosEldEventsGetHosEldEventsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosLogEntry":{"description":"A single HOS log entry.","properties":{"codrivers":{"description":"The codriver information.","items":{"$ref":"#/components/schemas/driverTinyResponse"},"type":"array"},"hosStatusType":{"description":"The Hours of Service status type. Valid values: `offDuty`, `sleeperBed`, `driving`, `onDuty`, `yardMove`, `personalConveyance`.","enum":["offDuty","sleeperBed","driving","onDuty","yardMove","personalConveyance"],"example":"offDuty","type":"string"},"logEndTime":{"$ref":"#/components/schemas/time"},"logRecordedLocation":{"$ref":"#/components/schemas/HosLogLocation"},"logStartTime":{"$ref":"#/components/schemas/time"},"remark":{"description":"Remark associated with the log entry.","example":"Lunch Break","type":"string"},"vehicle":{"$ref":"#/components/schemas/vehicleTinyResponse"}},"required":["logStartTime"],"type":"object"},"HosLogLocation":{"description":"Location associated with the duty status change","properties":{"latitude":{"description":"GPS latitude represented in degrees","example":122.142,"format":"double","type":"number"},"longitude":{"description":"GPS longitude represented in degrees","example":-93.343,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"HosLogsForDriver":{"description":"List of HOS logs for a driver.","properties":{"driver":{"$ref":"#/components/schemas/driverTinyResponse"},"hosLogs":{"$ref":"#/components/schemas/HosLogsList"}},"type":"object"},"HosLogsForDrivers":{"description":"List of HOS logs for the specified drivers.","items":{"$ref":"#/components/schemas/HosLogsForDriver"},"type":"array"},"HosLogsList":{"description":"List of HOS log entries.","items":{"$ref":"#/components/schemas/HosLogEntry"},"type":"array"},"HosLogsResponse":{"description":"HOS logs and pagination info.","properties":{"data":{"$ref":"#/components/schemas/HosLogsForDrivers"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"HosShift":{"description":"Remaining durations and start time for the HOS on duty shift limits.","properties":{"shiftRemainingDurationMs":{"description":"Remaining on duty or driving time the driver in the current shift in milliseconds. For property-carrying drivers, this is the amount of time the driver can be on duty or driving before hitting the 14-hour limit.","example":50400000,"type":"number"}},"type":"object"},"HosViolationDataResponseBody":{"description":"Details specific to Hos Violation.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"}},"type":"object"},"HosViolationDayObjectResponseBody":{"properties":{"endTime":{"description":"The end time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00)","example":"2019-06-14T12:00:00Z","type":"string"},"startTime":{"description":"The start time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00)","example":"2019-06-13T12:00:00Z","type":"string"}},"required":["endTime","startTime"],"type":"object"},"HosViolationObjectResponseBody":{"properties":{"day":{"$ref":"#/components/schemas/HosViolationDayObjectResponseBody"},"description":{"description":"Description containing violation type, region, and other metadata. This field can assume the following formats for the following types:\ncaliforniaMealbreakMissed, restbreakMissed: \"[description] ([max on duty hours] hours)\"\ncycleHoursOn, dailyDrivingHours, dailyOffDutyNonResetHours, dailyOffDutyTotalHours, dailyOnDutyHours, shiftDrivingHours, shiftHours, shiftOnDutyHours: \"[description] ([region]-[max hours in duty status] hours)\"\ncycleOffHoursAfterOnDutyHours: \"[description] ([region]): [minimum hours consecutive rest] hours off duty required after [max hours before consecutive rest] hours on-duty time\"\ndailyOffDutyDeferralAddToDay2Consecutive, dailyOffDutyDeferralNotPartMandatory, dailyOffDutyDeferralTwoDayDrivingLimit, dailyOffDutyDeferralTwoDayOffDuty, mandatory24HoursOffDuty: \"[description] ([region])\"\nunsubmittedLogs: \"Missing Driver Certification\"","example":"Daily Off-Duty Time (Canada South-10 hours)","type":"string"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"durationMs":{"description":"Duration the driver was in violation in milliseconds. This is the time between the time the driver starts being in violation until the end of the time window for violations that have one (e.g. `shiftDrivingHours`) or until the end of the day. The duration of some violations may cover the whole day (e.g. `unsubmittedLogs`).","example":31970000,"format":"int64","type":"integer"},"type":{"description":"The string value of the violation type.  Valid values: `NONE`, `californiaMealbreakMissed`, `cycleHoursOn`, `cycleOffHoursAfterOnDutyHours`, `dailyDrivingHours`, `dailyOffDutyDeferralAddToDay2Consecutive`, `dailyOffDutyDeferralNotPartMandatory`, `dailyOffDutyDeferralTwoDayDrivingLimit`, `dailyOffDutyDeferralTwoDayOffDuty`, `dailyOffDutyNonResetHours`, `dailyOffDutyTotalHours`, `dailyOnDutyHours`, `mandatory24HoursOffDuty`, `restbreakMissed`, `shiftDrivingHours`, `shiftHours`, `shiftOnDutyHours`, `unsubmittedLogs`","enum":["NONE","californiaMealbreakMissed","cycleHoursOn","cycleOffHoursAfterOnDutyHours","dailyDrivingHours","dailyOffDutyDeferralAddToDay2Consecutive","dailyOffDutyDeferralNotPartMandatory","dailyOffDutyDeferralTwoDayDrivingLimit","dailyOffDutyDeferralTwoDayOffDuty","dailyOffDutyNonResetHours","dailyOffDutyTotalHours","dailyOnDutyHours","mandatory24HoursOffDuty","restbreakMissed","shiftDrivingHours","shiftHours","shiftOnDutyHours","unsubmittedLogs"],"example":"shiftHours","type":"string"},"violationStartTime":{"description":"The start time of the violation in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["day","description","driver","durationMs","type","violationStartTime"],"type":"object"},"HosViolations":{"description":"Durations the driver has been in violation of HOS rules. See [this page](https://www.samsara.com/fleet/eld-compliance/hours-of-service) for more information on HOS rules.","properties":{"cycleViolationDurationMs":{"description":"Time since the driver has surpassed the driving cycle duration limit in milliseconds. For property-carrying drivers, this is the amount of time the driver has been on duty or driving past the 60/70-hour limit in 7/8 days.","example":39600000,"type":"number"},"shiftDrivingViolationDurationMs":{"description":"Time since the driver has surpassed the driving shift duration limit in milliseconds. For property-carrying drivers, this is the amount of time the driver has been driving past the 11-hour limit.","example":39600000,"type":"number"}},"type":"object"},"HosViolationsGetHosViolationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsResponseBody":{"properties":{"data":{"description":"List of violations data","items":{"$ref":"#/components/schemas/HosViolationsObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"HosViolationsGetHosViolationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsGetHosViolationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HosViolationsObjectResponseBody":{"properties":{"violations":{"description":"List of violations and their associated drivers","items":{"$ref":"#/components/schemas/HosViolationObjectResponseBody"},"type":"array"}},"required":["violations"],"type":"object"},"HubCapacitiesListHubCapacitiesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesResponseBody":{"properties":{"data":{"description":"Hub capacities data","items":{"$ref":"#/components/schemas/HubCapacityObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubCapacitiesResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubCapacitiesListHubCapacitiesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacitiesListHubCapacitiesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCapacityObjectResponseBody":{"description":"Hub capacity object","properties":{"createdAt":{"description":"Creation timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"hubId":{"description":"Hub identifier","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"Capacity identifier","example":"850e8400-e29b-41d4-a716-446655440003","type":"string"},"name":{"description":"Capacity name","example":"Weight","type":"string"},"unit":{"description":"Unit of measurement","example":"kg","type":"string"},"updatedAt":{"description":"Last update timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["createdAt","hubId","id","name","unit","updatedAt"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesResponseBody":{"properties":{"data":{"description":"Hub custom properties data","items":{"$ref":"#/components/schemas/HubCustomPropertyObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubCustomPropertiesResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertiesListHubCustomPropertiesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubCustomPropertyObjectResponseBody":{"description":"Hub custom property object","properties":{"createdAt":{"description":"Creation timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"csvColumns":{"description":"CSV column names that map to this custom property, comma-separated","example":"customer_type,customerType","type":"string"},"hubId":{"description":"Hub identifier","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"id":{"description":"Custom property identifier","example":"750e8400-e29b-41d4-a716-446655440004","type":"string"},"name":{"description":"Custom property name","example":"CustomerType","type":"string"},"updatedAt":{"description":"Last update timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["createdAt","csvColumns","hubId","id","name","updatedAt"],"type":"object"},"HubLocationCreatedObjectResponseBody":{"description":"Created hub location object","properties":{"address":{"description":"The physical address of the location","example":"123 Industrial Blvd, Los Angeles, CA 90210, US","type":"string"},"createdAt":{"description":"The timestamp (in UTC) when the location was created","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"customerLocationId":{"description":"The customer-provided identifier for the location","example":"LOC-123","type":"string"},"driverInstructions":{"description":"Instructions for the driver","example":"sample instructions","type":"string"},"hubId":{"description":"The ID of the hub this location belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the location","example":"750e8400-e29b-41d4-a716-446655440002","type":"string"},"isDepot":{"description":"Indicates if the location is a depot","example":false,"type":"boolean"},"latitude":{"description":"Latitude coordinate of the location","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the location","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the location","example":"Customer ABC Warehouse","type":"string"},"plannerNotes":{"description":"Notes for the planner","example":"sample note","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time at this location in seconds","example":1800,"format":"int32","type":"integer"},"serviceWindows":{"description":"An array of time windows during which service can be performed at this location","items":{"$ref":"#/components/schemas/ServiceWindowObjectResponseBody"},"type":"array"},"skillsRequired":{"description":"An array of skills required for service at this location","items":{"$ref":"#/components/schemas/SkillObjectResponseBody"},"type":"array"},"updatedAt":{"description":"The timestamp (in UTC) when the location was last updated","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["address","createdAt","customerLocationId","driverInstructions","hubId","id","isDepot","latitude","longitude","name","plannerNotes","serviceTimeSeconds","serviceWindows","skillsRequired","updatedAt"],"type":"object"},"HubLocationInputObjectRequestBody":{"description":"Input object for creating hub locations","properties":{"address":{"description":"The physical address of the location","example":"123 Industrial Blvd, Los Angeles, CA 90210, US","type":"string"},"customerLocationId":{"description":"The customer-provided identifier for the location","example":"LOC-123","type":"string"},"driverInstructions":{"description":"Instructions for the driver","example":"sample instructions","type":"string"},"hubId":{"description":"The ID of the hub this location belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"isDepot":{"description":"Indicates if the location is a depot","example":false,"type":"boolean"},"latitude":{"description":"Latitude coordinate of the location. If not provided and address is provided, the address will be geocoded to obtain coordinates.","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the location. If not provided and address is provided, the address will be geocoded to obtain coordinates.","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the location","example":"Customer ABC Warehouse","type":"string"},"plannerNotes":{"description":"Notes for the planner","example":"sample note","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time at this location in seconds","example":1800,"format":"int32","type":"integer"},"serviceWindows":{"description":"An array of time windows during which service can be performed at this location","items":{"$ref":"#/components/schemas/HubLocationServiceWindowInputRequestBody"},"type":"array"},"skillsRequired":{"description":"An array of skill IDs required for service at this location","example":["650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001"],"items":{"description":"Skill ID required for service at this location","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"type":"array"}},"required":["address","customerLocationId","hubId","isDepot","name"],"type":"object"},"HubLocationObjectResponseBody":{"description":"Hub location object","properties":{"address":{"description":"The physical address of the location","example":"123 Industrial Blvd, Los Angeles, CA 90210, US","type":"string"},"createdAt":{"description":"The timestamp (in UTC) when the location was created","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"customerLocationId":{"description":"The customer-provided identifier for the location","example":"LOC-123","type":"string"},"driverInstructions":{"description":"Instructions for the driver","example":"sample instructions","type":"string"},"hubId":{"description":"The ID of the hub this location belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the location","example":"750e8400-e29b-41d4-a716-446655440002","type":"string"},"isDepot":{"description":"Indicates if the location is a depot","example":false,"type":"boolean"},"latitude":{"description":"Latitude coordinate of the location","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the location","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the location","example":"Customer ABC Warehouse","type":"string"},"plannerNotes":{"description":"Notes for the planner","example":"sample note","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time at this location in seconds","example":1800,"format":"int32","type":"integer"},"serviceWindows":{"description":"An array of time windows during which service can be performed at this location","items":{"$ref":"#/components/schemas/ServiceWindowObjectResponseBody"},"type":"array"},"skillsRequired":{"description":"An array of skills required for service at this location","items":{"$ref":"#/components/schemas/SkillObjectResponseBody"},"type":"array"},"updatedAt":{"description":"The timestamp (in UTC) when the location was last updated","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["address","createdAt","customerLocationId","driverInstructions","hubId","id","isDepot","latitude","longitude","name","plannerNotes","serviceTimeSeconds","serviceWindows","skillsRequired","updatedAt"],"type":"object"},"HubLocationServiceWindowInputRequestBody":{"description":"Service window","properties":{"daysOfWeek":{"description":"Days of the week when the service window applies","example":["monday","monday","monday"],"items":{"description":"Day of week","example":"monday","type":"string"},"type":"array"},"endTime":{"description":"End time of the service window, in HH:MM:SS format","example":"17:00:00","type":"string"},"startTime":{"description":"Start time of the service window, in HH:MM:SS format","example":"08:00:00","type":"string"}},"required":["daysOfWeek","endTime","startTime"],"type":"object"},"HubLocationUpdatedObjectResponseBody":{"description":"Updated hub location object","properties":{"address":{"description":"The physical address of the location","example":"123 Industrial Blvd, Los Angeles, CA 90210, US","type":"string"},"createdAt":{"description":"The timestamp (in UTC) when the location was created","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"customerLocationId":{"description":"The customer-provided identifier for the location","example":"LOC-123","type":"string"},"driverInstructions":{"description":"Instructions for the driver","example":"sample instructions","type":"string"},"hubId":{"description":"The ID of the hub this location belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the location","example":"750e8400-e29b-41d4-a716-446655440002","type":"string"},"isDepot":{"description":"Indicates if the location is a depot","example":false,"type":"boolean"},"latitude":{"description":"Latitude coordinate of the location","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the location","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the location","example":"Customer ABC Warehouse","type":"string"},"plannerNotes":{"description":"Notes for the planner","example":"sample note","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time at this location in seconds","example":1800,"format":"int32","type":"integer"},"serviceWindows":{"description":"An array of time windows during which service can be performed at this location","items":{"$ref":"#/components/schemas/ServiceWindowObjectResponseBody"},"type":"array"},"skillsRequired":{"description":"An array of skills required for service at this location","items":{"$ref":"#/components/schemas/SkillObjectResponseBody"},"type":"array"},"updatedAt":{"description":"The timestamp (in UTC) when the location was last updated","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["address","createdAt","customerLocationId","driverInstructions","hubId","id","isDepot","latitude","longitude","name","plannerNotes","serviceTimeSeconds","serviceWindows","skillsRequired","updatedAt"],"type":"object"},"HubLocationsCreateHubLocationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsRequestBody":{"description":"Request body for creating hub locations","example":{"data":[{"address":"123 Industrial Blvd, Los Angeles, CA 90210, US","customerLocationId":"LOC-123","driverInstructions":"sample instructions","hubId":"550e8400-e29b-41d4-a716-446655440000","isDepot":false,"latitude":34.0522,"longitude":-118.2437,"name":"Customer ABC Warehouse","plannerNotes":"sample note","serviceTimeSeconds":1800,"serviceWindows":[{"daysOfWeek":["monday","tuesday","wednesday","thursday","friday"],"endTime":"17:00:00","startTime":"08:00:00"}],"skillsRequired":["650e8400-e29b-41d4-a716-446655440001"]}]},"properties":{"data":{"description":"An array of location objects to be created or updated","items":{"$ref":"#/components/schemas/HubLocationInputObjectRequestBody"},"type":"array"}},"required":["data"],"type":"object"},"HubLocationsCreateHubLocationsResponseBody":{"properties":{"data":{"description":"Created hub locations data","items":{"$ref":"#/components/schemas/HubLocationCreatedObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"HubLocationsCreateHubLocationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsCreateHubLocationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsResponseBody":{"properties":{"data":{"description":"Hub locations data","items":{"$ref":"#/components/schemas/HubLocationObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubLocationsResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubLocationsListHubLocationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsListHubLocationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationRequestBody":{"description":"Request body for updating a hub location","example":{"data":{"address":"123 Industrial Blvd, Los Angeles, CA 90210, US","customerLocationId":"LOC-123","driverInstructions":"sample instructions","isDepot":false,"latitude":34.0522,"longitude":-118.2437,"name":"Customer ABC Warehouse","plannerNotes":"sample note","serviceTimeSeconds":1800,"serviceWindows":[{"daysOfWeek":["monday","tuesday","wednesday","thursday","friday"],"endTime":"17:00:00","startTime":"08:00:00"}],"skillsRequired":["650e8400-e29b-41d4-a716-446655440001"]}},"properties":{"data":{"$ref":"#/components/schemas/UpdateHubLocationRequestBodyRequestBody"}},"required":["data"],"type":"object"},"HubLocationsUpdateHubLocationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/HubLocationUpdatedObjectResponseBody"}},"required":["data"],"type":"object"},"HubLocationsUpdateHubLocationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubLocationsUpdateHubLocationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubObjectResponseBody":{"description":"Hub object","properties":{"createdAt":{"description":"Creation timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"id":{"description":"Hub identifier","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"name":{"description":"Hub name","example":"West Coast Distribution Center","type":"string"},"timeZone":{"description":"Hub timezone","example":"America/Los_Angeles","type":"string"},"updatedAt":{"description":"Last update timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["createdAt","id","name","timeZone","updatedAt"],"type":"object"},"HubPlanRoutesListHubPlanRoutesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesResponseBody":{"properties":{"data":{"description":"Route data","items":{"$ref":"#/components/schemas/RouteObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubPlanRoutesResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubPlanRoutesListHubPlanRoutesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlanRoutesListHubPlanRoutesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanRequestBody":{"description":"Request body for creating a hub plan","properties":{"hubId":{"description":"The ID of the hub the plan belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"name":{"description":"The name of the plan","example":"Weekly Plan - Week 15","type":"string"},"sessionConfigurationId":{"description":"The ID of a saved session configuration (preset) to apply when creating the plan. When provided, the preset's optimization settings and route constructions are applied to the new plan, replacing any defaults.","example":"750e8400-e29b-41d4-a716-446655440099","type":"string"},"shiftStartTime":{"description":"The shift start time for the plan in RFC 3339 format. If not provided, defaults to 9:00 AM on the next business day in the hub's timezone.","example":"2024-04-15T09:00:00Z","format":"date-time","type":"string"}},"required":["hubId","name"],"type":"object"},"HubPlansCreateHubPlanResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PlanObjectResponseBody"}},"required":["data"],"type":"object"},"HubPlansCreateHubPlanServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansCreateHubPlanUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansResponseBody":{"properties":{"data":{"description":"Plan data","items":{"$ref":"#/components/schemas/PlanObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubPlansResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubPlansListHubPlansServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubPlansListHubPlansUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplateDepotObjectResponseBody":{"description":"A depot location for a route template.","properties":{"externalId":{"description":"The customer-provided external identifier for the depot location.","example":"DEPOT-001","type":"string"},"formattedAddress":{"description":"The formatted address of the depot location.","example":"123 Industrial Blvd, Los Angeles, CA 90210, US","type":"string"},"id":{"description":"The unique identifier for the depot location.","example":"750e8400-e29b-41d4-a716-446655440002","type":"string"},"latitude":{"description":"Latitude coordinate of the depot location.","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the depot location.","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the depot location.","example":"Main Warehouse","type":"string"}},"required":["formattedAddress","id","latitude","longitude","name"],"type":"object"},"HubRouteTemplateLocationObjectResponseBody":{"description":"A stop location within a route template.","properties":{"externalId":{"description":"The customer-provided identifier for the location.","example":"LOC-123","type":"string"},"formattedAddress":{"description":"The formatted address of the location.","example":"456 Main St, Los Angeles, CA 90210, US","type":"string"},"latitude":{"description":"Latitude coordinate of the location.","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the location.","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the location.","example":"Customer ABC Warehouse","type":"string"},"position":{"description":"The 1-based position of this stop in the route template.","example":1,"format":"int64","type":"integer"}},"required":["formattedAddress","latitude","longitude","name","position"],"type":"object"},"HubRouteTemplateObjectResponseBody":{"description":"A route template for a hub.","properties":{"createdAtTime":{"description":"The timestamp when the route template was created, in RFC 3339 format.","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"defaultDepotEnd":{"$ref":"#/components/schemas/HubRouteTemplateDepotObjectResponseBody"},"defaultDepotStart":{"$ref":"#/components/schemas/HubRouteTemplateDepotObjectResponseBody"},"defaultStartTimeOfDay":{"description":"Default start time of day for the route template, in HH:MM format in the hub's local timezone (e.g. '08:00').","example":"08:00","type":"string"},"distanceMeters":{"description":"Total distance of the route in meters.","example":15000,"format":"int64","type":"integer"},"durationSeconds":{"description":"Total duration of the route in seconds.","example":3600,"format":"int64","type":"integer"},"hubId":{"description":"The hub identifier this route template belongs to.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"hubTimezone":{"description":"The IANA timezone of the hub (e.g. 'America/Los_Angeles').","example":"America/Los_Angeles","type":"string"},"id":{"description":"The unique identifier for the route template.","example":"660e8400-e29b-41d4-a716-446655440001","type":"string"},"locations":{"description":"Ordered list of stop locations in the route template.","items":{"$ref":"#/components/schemas/HubRouteTemplateLocationObjectResponseBody"},"type":"array"},"name":{"description":"The name of the route template.","example":"Downtown Delivery Route","type":"string"},"updatedAtTime":{"description":"The timestamp when the route template was last updated, in RFC 3339 format.","example":"2024-01-15T12:00:00Z","format":"date-time","type":"string"}},"required":["createdAtTime","distanceMeters","durationSeconds","hubId","hubTimezone","id","locations","name","updatedAtTime"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateRequestBody":{"description":"Request body for creating a hub route template.","properties":{"defaultDepotEnd":{"$ref":"#/components/schemas/CreateHubRouteTemplateDepotEndInputRequestBody"},"defaultDepotStart":{"$ref":"#/components/schemas/CreateHubRouteTemplateDepotStartInputRequestBody"},"defaultStartTimeOfDay":{"description":"Default start time in HH:MM format in the hub's local timezone (e.g. '08:00').","example":"08:00","type":"string"},"hubId":{"description":"The ID of the hub.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"locationExternalIds":{"description":"Stop locations referenced by external ID, in the order they should be visited.","example":["LOC-123","LOC-123","LOC-123","LOC-123"],"items":{"description":"External ID of a stop location, as configured in the hub.","example":"LOC-123","type":"string"},"type":"array"},"name":{"description":"The name of the route template.","example":"Downtown Delivery Route","type":"string"}},"required":["hubId","name"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/HubRouteTemplateObjectResponseBody"}},"required":["data"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesCreateHubRouteTemplateUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesDeleteHubRouteTemplateUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesResponseBody":{"properties":{"data":{"description":"Route templates.","items":{"$ref":"#/components/schemas/HubRouteTemplateObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesListHubRouteTemplatesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateRequestBody":{"description":"Request body for updating a hub route template. All fields are optional; only provided fields are changed.","properties":{"defaultDepotEndExternalId":{"description":"The external identifier of the default end depot, as configured in the hub. Send an empty string to clear it.","example":"DEPOT-001","type":"string"},"defaultDepotStartExternalId":{"description":"The external identifier of the default start depot, as configured in the hub. Send an empty string to clear it.","example":"DEPOT-001","type":"string"},"defaultStartTimeOfDay":{"description":"Default start time in HH:MM format in the hub's local timezone (e.g. '08:00'). Send an empty string to clear it.","example":"08:00","type":"string"},"locationsByExternalIds":{"description":"Full replacement of the ordered stop list, referenced by external ID. Omit to leave stops unchanged; send an empty array to clear all stops.","example":["LOC-123","LOC-123","LOC-123","LOC-123"],"items":{"description":"External ID of a stop location, as configured in the hub.","example":"LOC-123","type":"string"},"type":"array"},"name":{"description":"The new name of the route template.","example":"Downtown Delivery Route","type":"string"}},"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/HubRouteTemplateObjectResponseBody"}},"required":["data"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubRouteTemplatesUpdateHubRouteTemplateUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillObjectResponseBody":{"description":"Hub skill object","properties":{"createdAt":{"description":"Creation timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"},"hubId":{"description":"Hub identifier","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"id":{"description":"Skill identifier","example":"750e8400-e29b-41d4-a716-446655440004","type":"string"},"name":{"description":"Skill name","example":"Hazmat Certified","type":"string"},"updatedAt":{"description":"Last update timestamp","example":"2024-01-15T10:30:00Z","format":"date-time","type":"string"}},"required":["createdAt","hubId","id","name","updatedAt"],"type":"object"},"HubSkillsListHubSkillsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsResponseBody":{"properties":{"data":{"description":"Hub skills data","items":{"$ref":"#/components/schemas/HubSkillObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubSkillsResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubSkillsListHubSkillsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubSkillsListHubSkillsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsResponseBody":{"properties":{"data":{"description":"Hub data","items":{"$ref":"#/components/schemas/HubObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListHubsResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"HubsListHubsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"HubsListHubsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IDReferenceObjectRequestBody":{"description":"A reference to a resource.","properties":{"id":{"description":"The unique identifier of the resource.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"IDReferenceObjectResponseBody":{"description":"A reference to a resource.","properties":{"id":{"description":"The unique identifier of the resource.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"IFTACreateIftaDetailJobBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobRequestBody":{"description":"The payload to create a new IftaDetailJob.","properties":{"endHour":{"description":" An end time in RFC 3339 format. Hour precision and timezones are supported. Any minutes or seconds will be truncated down to the nearest hour. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. The maximum request duration is 1 month. Limit the number of vehicles to 1000 when requesting more than 24 hours of data. (Examples: 2019-06-13T19:00:00Z, 2019-06-13T19:00:00.000Z, OR 2015-09-15T14:00:00-04:00).","example":"2019-06-13T19:00:00Z","type":"string"},"startHour":{"description":" A start time in RFC 3339 format. Hour precision and timezones are supported. Any minutes or seconds will be truncated down to the nearest hour. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. The maximum request duration is 1 month. Limit the number of vehicles to 1000 when requesting more than 24 hours of data. (Examples: 2019-06-13T19:00:00Z, 2019-06-13T19:00:00.000Z, OR 2015-09-15T14:00:00-04:00).","example":"2019-06-13T19:00:00Z","type":"string"},"vehicleIds":{"description":"A filter on the data based on this comma-separated list of vehicle IDs and external IDs. The number of vehicles requested per job shouldn't exceed 5000. Example: `vehicleIds: '1234,5678,samsara.vin:1HGBH41JXMN109186'`","example":"1234,5678,samsara.vin:1HGBH41JXMN109186","type":"string"},"vehicleParentTagIds":{"description":" A filter on the data based on this comma-separated list of vehicle parent tag IDs. The number of vehicles requested per job shouldn't exceed 5000. Example: `vehicleParentTagIds: '1234,5678'`","example":"1234,5678","type":"string"},"vehicleTagIds":{"description":" A filter on the data based on this comma-separated list of vehicle tag IDs. The number of vehicles requested per job shouldn't exceed 5000. Example: `vehicleTagIds: '1234,5678'`","example":"1234,5678","type":"string"}},"required":["endHour","startHour"],"type":"object"},"IFTACreateIftaDetailJobResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/IftaDetailJobResponseBody"}},"required":["data"],"type":"object"},"IFTACreateIftaDetailJobServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTACreateIftaDetailJobUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/IftaDetailJobResponseBody"}},"required":["data"],"type":"object"},"IFTAGetIftaDetailJobServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaDetailJobUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/IftaJurisdictionReportDataObjectResponseBody"}},"required":["data"],"type":"object"},"IFTAGetIftaJurisdictionReportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaJurisdictionReportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/IftaVehicleReportDataObjectResponseBody"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"IFTAGetIftaVehicleReportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IFTAGetIftaVehicleReportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdleTimeDurationMs":{"description":"Time spent idling in milliseconds.","type":"number"},"IdlingEventAddressObjectResponseBody":{"description":"The geofence address associated with the idling event, if applicable.","properties":{"addressTypes":{"description":"The types of the geofence address of the idling location. An address can have multiple types.","example":["yard","industrialSite"],"items":{"description":"Address types  Valid values: `agricultureSource`, `alertsOnly`, `authorizedZone`, `avoidanceZone`, `customerSite`, `industrialSite`, `inventory`, `knownGPSJammingZone`, `riskZone`, `shortHaul`, `unauthorizedZone`, `undefined`, `vendor`, `workforceSite`, `yard`","enum":["agricultureSource","alertsOnly","authorizedZone","avoidanceZone","customerSite","industrialSite","inventory","knownGPSJammingZone","riskZone","shortHaul","unauthorizedZone","undefined","vendor","workforceSite","yard"],"example":"agricultureSource","type":"string"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids for the address.","type":"object"},"id":{"description":"The ID of the geofence address of the idling location. It will be the address at the time of idling.","example":"1234567890","type":"string"}},"required":["id"],"type":"object"},"IdlingEventAssetObjectResponseBody":{"description":"The asset associated with the idling event. Returns vehicle details at this time.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids for the asset.","type":"object"},"id":{"description":"Samsara ID of the asset assigned to the event. Returns vehicle ID at this time.","example":1234567890,"format":"int64","type":"integer"}},"required":["id"],"type":"object"},"IdlingEventObject_V2025_10_23ResponseBody":{"description":"An idling event object.","properties":{"address":{"$ref":"#/components/schemas/IdlingEventAddressObjectResponseBody"},"airTemperatureMillicelsius":{"description":"The air temperature in millicelsius during the idling event. Value is returned only when it is known.","example":25000,"format":"int64","type":"integer"},"asset":{"$ref":"#/components/schemas/IdlingEventAssetObjectResponseBody"},"durationMilliseconds":{"description":"The duration of the idling event in milliseconds.","example":860000,"format":"int64","type":"integer"},"eventUuid":{"description":"Universally unique identifier of the idling event.","example":"1234567890","type":"string"},"fuelConsumedMilliliters":{"description":"The amount of fuel consumed in milliliters during the idling event.","example":2500,"format":"double","type":"number"},"fuelCost":{"$ref":"#/components/schemas/FuelCostObjectResponseBody"},"gaseousFuelConsumedGrams":{"description":"The amount of gaseous fuel consumed in grams during the idling event.","example":2500,"format":"double","type":"number"},"gaseousFuelCost":{"$ref":"#/components/schemas/GaseousFuelCostObjectResponseBody"},"latitude":{"description":"The latitude of the location where the idling event occurred.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"The longitude of the location where the idling event occurred.","example":-122.4194,"format":"double","type":"number"},"operator":{"$ref":"#/components/schemas/IdlingEventOperatorObjectResponseBody"},"ptoState":{"description":"The PTO (Power Take-Off) state during the idling event.  Valid values: `active, inactive`","enum":["active, inactive"],"example":"inactive","type":"string"},"startTime":{"description":"The start time of the idling event in RFC 3339 format.","example":"2019-06-13T17:08:25Z","type":"string"}},"required":["asset","durationMilliseconds","eventUuid","fuelConsumedMilliliters","fuelCost","gaseousFuelConsumedGrams","gaseousFuelCost","ptoState","startTime"],"type":"object"},"IdlingEventOperatorObjectResponseBody":{"description":"The operator associated with the idling event. Returns driver details at this time. Value is returned when a driver is assigned to the vehicle","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids for the operator.","type":"object"},"id":{"description":"Samsara ID of the operator assigned to the event. Returns driver ID at this time.","example":1234567890,"format":"int64","type":"integer"}},"required":["id"],"type":"object"},"IdlingReportEventAddressResponseBody":{"description":"Address where the idling event took place.","properties":{"formatted":{"description":"The formatted address of the idling location.","example":"123 Main Street Atlanta, GA 30307","type":"string"},"latitude":{"description":"The latitude of the idling location.","example":34.654567,"format":"double","type":"number"},"longitude":{"description":"The longitude of the idling location.","example":34.654567,"format":"double","type":"number"}},"required":["formatted","latitude","longitude"],"type":"object"},"IdlingReportEventResponseBody":{"description":"A summary of the idling event.","properties":{"address":{"$ref":"#/components/schemas/IdlingReportEventAddressResponseBody"},"durationMs":{"description":"The duration of this idling event in milliseconds.","example":860000,"format":"int64","type":"integer"},"endTime":{"description":"The end time of this idling event in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"fuelConsumptionMl":{"description":"The amount of fuel consumed in milliliters during this idling event.","example":2500,"format":"double","type":"number"},"isPtoActive":{"description":"Whether or not power take-off was active during this idling event.","example":false,"type":"boolean"},"startTime":{"description":"The start time of this idling event in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["address","durationMs","endTime","fuelConsumptionMl","isPtoActive","startTime","vehicle"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsResponseBody":{"properties":{"data":{"description":"Multiple idling events.","items":{"$ref":"#/components/schemas/IdlingReportEventResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"},"requestEndTime":{"description":"The requested end time in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"requestStartTime":{"description":"The requested start time in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["data","pagination","requestEndTime","requestStartTime"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IdlingReportsGetVehicleIdlingReportsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IftaDetailJobArgsResponseBody":{"description":"The arguments used to create this job.","properties":{"endHour":{"description":"The `endHour` used to create this job.","example":"2019-06-13T19:00:00Z","type":"string"},"startHour":{"description":"The `startHour` used to create this job.","example":"2019-06-13T19:00:00Z","type":"string"},"vehicleIds":{"description":"The vehicleIds used to create this job. Determined by the filter list of `vehicleIds`, `vehicleTagIds`, and `vehicleParentTagIds` parameters (if provided).","example":[12345678,56789123],"items":{"description":"Vehicle ID element of array.","example":510973900003523200,"format":"int64","type":"integer"},"type":"array"}},"required":["endHour","startHour","vehicleIds"],"type":"object"},"IftaDetailJobOutputResponseBody":{"description":" The file outputs produced by a successfully completed job.","properties":{"createdAtTime":{"description":" When this file was created.","example":"2019-06-13T19:00:00Z","type":"string"},"downloadUrl":{"description":"A url to download the generated file. The contents will be gzipped. This url has an expiration and will no longer be valid after expiration.","example":"https://s3.download-url.com","type":"string"},"downloadUrlExpirationTime":{"description":" The expiration time of this file's download url. Requesting this job again by ID will refresh the download urls, if expired.","example":"2019-06-13T19:00:00Z","type":"string"},"name":{"description":"The name of this file.","example":"output-001.csv.gz","type":"string"},"recordCount":{"description":"The number of records in this file.","example":927776079462837100,"format":"int64","type":"integer"}},"required":["createdAtTime","downloadUrl","downloadUrlExpirationTime","name","recordCount"],"type":"object"},"IftaDetailJobResponseBody":{"description":" A job representing the async generation of IFTA mileage segments. The job should be polled until the state is terminal.","properties":{"args":{"$ref":"#/components/schemas/IftaDetailJobArgsResponseBody"},"completedAtTime":{"description":" The time this job completed successfully.","example":"2019-06-13T19:00:00Z","type":"string"},"details":{"description":"A message containing additional details about the job, if available.","example":"Try limiting the number of vehicles requested per job to reduce the processing duration.","type":"string"},"failedAtTime":{"description":" The time this job failed.","example":"2019-06-13T19:00:00Z","type":"string"},"files":{"description":"A list of files generated by this job. This field will be omitted when the job status is \"Failed\" or no data exists with the provided job arguments. Read about the file structure [here](https://developers.samsara.com/docs/ifta-detail-csv).","items":{"$ref":"#/components/schemas/IftaDetailJobOutputResponseBody"},"type":"array"},"jobId":{"description":" The ID used to retrieve this job.","example":"8cabba84-bef4-4951-8cd2-78ce898fd8e6","type":"string"},"jobStatus":{"description":" The status of this job. `jobStatus` can be one of Requested, Processing, Completed, or Failed.  Valid values: `Requested`, `Processing`, `Completed`, `Failed`","enum":["Requested","Processing","Completed","Failed"],"example":"Processing","type":"string"},"requestedAtTime":{"description":" The time this job was requested for creation.","example":"2019-06-13T19:00:00Z","type":"string"},"startedAtTime":{"description":" The time this job started processing.","example":"2019-06-13T19:00:00Z","type":"string"}},"required":["args","jobId","jobStatus","requestedAtTime"],"type":"object"},"IftaJurisdictionReportDataObjectResponseBody":{"description":"Dictionary containing summarized jurisdiction report data.","properties":{"jurisdictionReports":{"description":"List of summarized jurisdiction reports.","items":{"$ref":"#/components/schemas/IftaJurisdictionSummaryObjectResponseBody"},"type":"array"},"month":{"description":"The specified month duration for this IFTA report.","example":"January","type":"string"},"quarter":{"description":"The specified quarter duration for this IFTA report.","example":"Q4","type":"string"},"troubleshooting":{"$ref":"#/components/schemas/IftaReportTroubleshootingObjectResponseBody"},"year":{"description":"The specified year for this IFTA report.","example":2021,"format":"int64","type":"integer"}},"required":["jurisdictionReports","year"],"type":"object"},"IftaJurisdictionSummaryObjectResponseBody":{"description":"A summary of this jurisdiction's IFTA data.","properties":{"jurisdiction":{"description":"Jurisdiction code.","example":"GA","type":"string"},"taxPaidLiters":{"description":"Liters purchased for all qualified vehicles.","example":25.5,"format":"double","type":"number"},"taxableMeters":{"description":"Distance in meters traveled on public roads in an IFTA jurisdiction.","example":2350,"format":"double","type":"number"},"totalMeters":{"description":"Total meters driven in this jurisdiction, taxable and non-taxable.","example":2350,"format":"double","type":"number"}},"required":["jurisdiction","taxableMeters","totalMeters"],"type":"object"},"IftaReportTroubleshootingObjectResponseBody":{"description":"IFTA report troubleshooting information.","properties":{"noPurchasesFound":{"description":"Whether or not fuel purchases were found for this report.","example":false,"type":"boolean"},"unassignedFuelTypePurchases":{"description":"The number of fuel purchases without a fuel type assigned. Fuel purchases are used to calculate tax paid gallons.","example":200,"format":"int64","type":"integer"},"unassignedFuelTypeVehicles":{"description":"The number of vehicles without a fuel type assigned. Vehicles without an assigned fuel type may affect total mileage.","example":2500,"format":"int64","type":"integer"},"unassignedVehiclePurchases":{"description":"Purchases without an assigned fuel type may affect tax-paid gallons and fleet mpg.","example":2500,"format":"int64","type":"integer"}},"required":["noPurchasesFound","unassignedFuelTypePurchases","unassignedFuelTypeVehicles","unassignedVehiclePurchases"],"type":"object"},"IftaVehicleReportDataObjectResponseBody":{"description":"Dictionary containing summarized vehicle report data.","properties":{"month":{"description":"The specified month duration for this IFTA report.","example":"January","type":"string"},"quarter":{"description":"The specified quarter duration for this IFTA report.","example":"Q4","type":"string"},"troubleshooting":{"$ref":"#/components/schemas/IftaReportTroubleshootingObjectResponseBody"},"vehicleReports":{"description":"List of summarized vehicle reports.","items":{"$ref":"#/components/schemas/IftaVehicleReportObjectResponseBody"},"type":"array"},"year":{"description":"The specified year for this IFTA report.","example":2021,"format":"int64","type":"integer"}},"required":["vehicleReports","year"],"type":"object"},"IftaVehicleReportObjectResponseBody":{"description":"A summary of this vehicle's IFTA data.","properties":{"jurisdictions":{"description":"List of jurisdiction summaries.","items":{"$ref":"#/components/schemas/IftaJurisdictionSummaryObjectResponseBody"},"type":"array"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["jurisdictions","vehicle"],"type":"object"},"InAppNotificationOptionsObjectRequestBody":{"description":"Options for in-app notifications","properties":{"canDictateAlertTitle":{"default":false,"description":"Whether the alert will dictate the title of the alert. Both canDictateAlertTitle and canPlayAlertSound should be enabled or disabled together.","example":false,"type":"boolean"},"canPlayAlertSound":{"default":false,"description":"Whether the alert will play a sound. Both canDictateAlertTitle and canPlayAlertSound should be enabled or disabled together.","example":false,"type":"boolean"},"customText":{"description":"Custom text to display in the notification (320 character max).","example":"Custom text","maxLength":320,"type":"string"},"isEnabled":{"default":true,"description":"Whether in-app notifications are enabled.","example":true,"type":"boolean"}},"required":["isEnabled"],"type":"object"},"InAppNotificationOptionsObjectResponseBody":{"description":"Options for in-app notifications","properties":{"canDictateAlertTitle":{"default":false,"description":"Whether the alert will dictate the title of the alert. Both canDictateAlertTitle and canPlayAlertSound should be enabled or disabled together.","example":false,"type":"boolean"},"canPlayAlertSound":{"default":false,"description":"Whether the alert will play a sound. Both canDictateAlertTitle and canPlayAlertSound should be enabled or disabled together.","example":false,"type":"boolean"},"customText":{"description":"Custom text to display in the notification (320 character max).","example":"Custom text","maxLength":320,"type":"string"},"isEnabled":{"default":true,"description":"Whether in-app notifications are enabled.","example":true,"type":"boolean"}},"required":["isEnabled"],"type":"object"},"InactivityResponseBody":{"description":"Details specific to Inactivity.","properties":{"cameraStream":{"$ref":"#/components/schemas/alertObjectOnvifCameraStreamResponseBody"}},"type":"object"},"InattentiveDrivingDetectionAlertSettingsObjectResponseBody":{"description":"Enables AI detection of inattentive driving events.","properties":{"hasInCabAudioAlertsEnabled":{"description":"Indicates whether in-cab audio alerts for inattentive driving are turned on.","example":true,"type":"boolean"},"isEnabled":{"description":"Indicates whether AI event detection for inattentive driving is turned on.","example":true,"type":"boolean"},"severity":{"description":"Severity of inattentive driving events. Options include low (alerts for all events), medium (alerts for medium and high severity events), and high (alerts for high severity events only).  Valid values: `low`, `medium`, `high`","enum":["low","medium","high"],"example":"low","type":"string"},"speedingThresholdMph":{"description":"Alert when speed is over this many miles per hour.","example":10,"format":"double","type":"number"}},"type":"object"},"InsideGeofenceDataResponseBody":{"description":"Details specific to Inside Geofence.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"InsideGeofenceTriggerDetailsObjectRequestBody":{"description":"Details specific to Inside Geofence","properties":{"location":{"$ref":"#/components/schemas/LocationObjectRequestBody"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["location","minDurationMilliseconds"],"type":"object"},"InsideGeofenceTriggerDetailsObjectResponseBody":{"description":"Details specific to Inside Geofence","properties":{"location":{"$ref":"#/components/schemas/LocationObjectResponseBody"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["location","minDurationMilliseconds"],"type":"object"},"InvoiceScanFileRequestBody":{"description":"Invoice file object","properties":{"base64Content":{"description":"Base64 encoded file content. Maximum decoded size: 10MB.","example":"JVBERi0xLjQKJeLjz9MKMyAwIG9iago8P...","type":"string"},"contentType":{"description":"MIME type of the file. Supported types: application/pdf, image/jpeg, image/png.","example":"application/pdf","type":"string"}},"required":["base64Content","contentType"],"type":"object"},"IssueCreatedResponseBody":{"description":"Details specific to Issue Created.","properties":{"issue":{"$ref":"#/components/schemas/IssueResponseObjectResponseBody"}},"required":["issue"],"type":"object"},"IssueResponseObjectResponseBody":{"description":"Issue response object.","properties":{"asset":{"$ref":"#/components/schemas/FormsAssetObjectResponseBody"},"assignedTo":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"createdAtTime":{"description":"Creation time of the issue. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"description":{"description":"Description of the issue. Included if the issue was given a description.","example":"Oil spill in left corner of SF1","type":"string"},"dueDate":{"description":"Due date of the issue. UTC timestamp in RFC 3339 format. Included if the issue was assigned a due date.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the issue.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"issueSource":{"$ref":"#/components/schemas/IssueSourceObjectResponseBody"},"mediaList":{"description":"List of media objects for the issue. Included if the issue has media.","items":{"$ref":"#/components/schemas/FormsMediaRecordObjectResponseBody"},"type":"array"},"priority":{"description":"Priority of the issue. Included if the issue was assigned a priority.  Valid values: `low`, `medium`, `high`","enum":["low","medium","high"],"example":"high","type":"string"},"status":{"description":"Status of the issue.  Valid values: `open`, `inProgress`, `resolved`, `dismissed`","enum":["open","inProgress","resolved","dismissed"],"example":"open","type":"string"},"submittedAtTime":{"description":"Submission time of the issue. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"submittedBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"title":{"description":"Title of the issue.","example":"Oil spill","type":"string"},"updatedAtTime":{"description":"Update time of the issue. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["createdAtTime","id","issueSource","status","submittedAtTime","submittedBy","title","updatedAtTime"],"type":"object"},"IssueSourceObjectResponseBody":{"description":"Contains information about where an issue came from.","properties":{"id":{"description":"ID of the issue's source object. The format depends on the 'type'. Included if 'type' is not 'ad-hoc'.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"type":{"description":"The type of issue source.  Valid values: `form`, `ad-hoc`","enum":["form","ad-hoc"],"example":"form","type":"string"}},"required":["type"],"type":"object"},"IssuesGetIssuesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesResponseBody":{"properties":{"data":{"description":"List of issues.","items":{"$ref":"#/components/schemas/IssueResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"IssuesGetIssuesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamResponseBody":{"properties":{"data":{"description":"List of issues.","items":{"$ref":"#/components/schemas/IssueResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"IssuesGetIssuesStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesGetIssuesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueRequestBody":{"description":"Issue fields to update.","properties":{"assignedTo":{"$ref":"#/components/schemas/PatchIssueRequestBodyAssignedToRequestBody"},"description":{"description":"Description of the issue.","example":"8cm scratch detected on front bumper","type":"string"},"dueDate":{"description":"Due date of the issue. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the issue. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the issue.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"media":{"description":"Media items to append to the issue.","items":{"$ref":"#/components/schemas/FormSubmissionRequestMediaItemObjectRequestBody"},"type":"array"},"priority":{"description":"Priority of the issue.  Valid values: `low`, `medium`, `high`","enum":["low","medium","high"],"example":"medium","type":"string"},"status":{"description":"Status of the issue.  Valid values: `open`, `inProgress`, `resolved`, `dismissed`","enum":["open","inProgress","resolved","dismissed"],"example":"open","type":"string"},"title":{"description":"Title of the issue.","example":"Front bumper scratch","type":"string"}},"required":["id"],"type":"object"},"IssuesPatchIssueResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/IssueResponseObjectResponseBody"}},"required":["data"],"type":"object"},"IssuesPatchIssueServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPatchIssueUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueRequestBody":{"description":"Issue fields to create.","properties":{"asset":{"$ref":"#/components/schemas/PostIssueRequestBodyAssetRequestBody"},"assignedTo":{"$ref":"#/components/schemas/PostIssueRequestBodyAssignedToRequestBody"},"description":{"description":"Description of the issue.","example":"8cm scratch detected on front bumper","type":"string"},"dueDate":{"description":"Due date of the issue. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"media":{"description":"Media items to attach to the issue.","items":{"$ref":"#/components/schemas/FormSubmissionRequestMediaItemObjectRequestBody"},"type":"array"},"priority":{"description":"Priority of the issue.  Valid values: `low`, `medium`, `high`","enum":["low","medium","high"],"example":"low","type":"string"},"status":{"description":"Status of the issue. Defaults to `open` when omitted.  Valid values: `open`, `inProgress`, `resolved`, `dismissed`","enum":["open","inProgress","resolved","dismissed"],"example":"open","type":"string"},"title":{"description":"Title of the issue.","example":"Front bumper scratch","type":"string"}},"required":["asset","title"],"type":"object"},"IssuesPostIssueResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/IssueResponseObjectResponseBody"}},"required":["data"],"type":"object"},"IssuesPostIssueServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"IssuesPostIssueUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"J1939D1StatusDataPoint":{"description":"Active J1939D1 statuses of a device.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"List of active statuses.","items":{"$ref":"#/components/schemas/J1939D1StatusDataPoint_value"},"type":"array"}},"type":"object"},"J1939D1StatusDataPoint_value":{"description":"A single J1939D1 status","properties":{"amberLampStatus":{"format":"int32","type":"number"},"fmi":{"format":"int32","type":"number"},"milStatus":{"format":"int32","type":"number"},"occuranceCount":{"format":"int32","type":"number"},"protectLampStatus":{"format":"int32","type":"number"},"redLampStatus":{"format":"int32","type":"number"},"spn":{"format":"int32","type":"number"},"txId":{"format":"int32","type":"number"}},"type":"object"},"JammingDetectedResponseBody":{"description":"Details specific to Jamming Detected.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"JobResponseObjectResponseBody":{"description":"Job object to be passed back","properties":{"address":{"$ref":"#/components/schemas/jobLocationResponseObjectResponseBody"},"createdAt":{"description":"When the job was created","example":"2019-06-13T19:08:25Z","type":"string"},"customerName":{"description":"Customer name for job","example":"Samsara","type":"string"},"endDate":{"description":"End date of job in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"fleetDevices":{"description":"fleet devices in this job (cannot have both industrial assets and fleet devices in the same job)","items":{"$ref":"#/components/schemas/fleetDeviceObjectResponseBody"},"type":"array"},"id":{"description":"Job id","example":"1553","type":"string"},"industrialAssets":{"description":"Industrial Assets in this job (cannot have both industrial assets and fleet devices in the same job)","items":{"$ref":"#/components/schemas/industrialAssetObjectResponseBody"},"type":"array"},"modifiedAt":{"description":"When the job was last modified","example":"2019-06-13T19:08:25Z","type":"string"},"name":{"description":"Job name","example":"My Job Name","type":"string"},"notes":{"description":"Notes for the upcoming job","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"startDate":{"description":"Start date of job in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"status":{"description":"The current job status  Valid values: `active`, `scheduled`, `completed`","enum":["active","scheduled","completed"],"example":"active","type":"string"},"uuid":{"description":"Samsara uuid","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"}},"required":["address","createdAt","customerName","endDate","id","modifiedAt","name","notes","startDate","status","uuid"],"type":"object"},"JobsCreateJobBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobRequestBody":{"description":"Job object to be created","properties":{"job":{"$ref":"#/components/schemas/PostJobObjectRequestBody"}},"required":["job"],"type":"object"},"JobsCreateJobResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/JobResponseObjectResponseBody"},"id":{"description":"The job id of the failed request","example":"1553","type":"string"},"uuid":{"description":"The uuid of the failed request","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"}},"required":["data"],"type":"object"},"JobsCreateJobServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsCreateJobUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobResponseBody":{"properties":{"id":{"description":"The job id of the failed request","example":"1553","type":"string"},"uuid":{"description":"The uuid of the failed request","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"}},"type":"object"},"JobsDeleteJobServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsDeleteJobUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsResponseBody":{"properties":{"data":{"description":"List of Job Objects","items":{"$ref":"#/components/schemas/JobResponseObjectResponseBody"},"type":"array"},"id":{"description":"The job id of the failed request","example":"1553","type":"string"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"},"uuid":{"description":"The uuid of the failed request","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"}},"required":["data","pagination"],"type":"object"},"JobsGetJobsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsGetJobsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobRequestBody":{"description":"Job object with fields to update. If a field is not provided, it will not be updated","properties":{"job":{"$ref":"#/components/schemas/PatchJobObjectRequestBody"},"keepHistory":{"default":true,"description":"Defaults to true if user does not want to overwrite entire history for an active job (irrelevant for scheduled/completed jobs)","example":true,"type":"boolean"}},"required":["job"],"type":"object"},"JobsPatchJobResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/JobResponseObjectResponseBody"},"id":{"description":"The job id of the failed request","example":"1553","type":"string"},"uuid":{"description":"The uuid of the failed request","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"}},"required":["data"],"type":"object"},"JobsPatchJobServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"JobsPatchJobUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LastKnownLocationResponseResponseBody":{"description":"The most recent location information for the device.","properties":{"id":{"description":"The unique ID of the address.","example":12345,"format":"int64","type":"integer"},"latitude":{"description":"Latitude of a location.","example":12333122.3,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location.","example":1233331.4,"format":"double","type":"number"}},"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsResponseBody":{"properties":{"assets":{"description":"List of assets and their current locations.","items":{"$ref":"#/components/schemas/AssetsCurrentLocationsAssetResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/AssetsCurrentLocationsPaginationResponseBody"}},"required":["assets","pagination"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyAssetLocationsGetAllAssetCurrentLocationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreResponseBody":{"properties":{"crashCount":{"description":"Crash event count","example":0,"format":"int64","type":"integer"},"driverId":{"description":"Driver ID","example":1234,"format":"int64","type":"integer"},"harshAccelCount":{"description":"Harsh acceleration event count","example":1,"format":"int64","type":"integer"},"harshBrakingCount":{"description":"Harsh braking event count","example":2,"format":"int64","type":"integer"},"harshEvents":{"description":"List of harsh events","items":{"$ref":"#/components/schemas/LegacySafetyScoreHarshEventObjectResponseBody"},"type":"array"},"harshTurningCount":{"description":"Harsh turning event count","example":0,"format":"int64","type":"integer"},"safetyScore":{"description":"The driver's Safety Score for the requested period. Note that if the driver has zero drive time in this period, the Safety Score will be returned as 100.","example":97,"format":"int64","type":"integer"},"safetyScoreRank":{"description":"Safety Score Rank","example":"26","type":"string"},"timeOverSpeedLimitMs":{"description":"Amount of time driven over the speed limit in milliseconds","example":3769,"format":"int64","type":"integer"},"totalDistanceDrivenMeters":{"description":"Total distance driven in meters","example":291836,"format":"int64","type":"integer"},"totalHarshEventCount":{"description":"Total harsh event count","example":3,"format":"int64","type":"integer"},"totalTimeDrivenMs":{"description":"Amount of time driven in milliseconds","example":19708293,"format":"int64","type":"integer"}},"required":["crashCount","harshAccelCount","harshBrakingCount","harshEvents","harshTurningCount","safetyScore","safetyScoreRank","timeOverSpeedLimitMs","totalDistanceDrivenMeters","totalHarshEventCount","totalTimeDrivenMs"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyDriverSafetyScoreGetLegacyDriverSafetyScoreUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsResponseBody":{"properties":{"assets":{"description":"List of assets.","items":{"$ref":"#/components/schemas/V1AssetResponseBody"},"type":"array"}},"required":["assets"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacyFleetAssetsListLegacyFleetAssetsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LegacySafetyScoreHarshEventObjectResponseBody":{"description":"Safety score harsh event.","properties":{"harshEventType":{"description":"Harsh event type","example":"haAccel","type":"string"},"timestampMs":{"description":"Timestamp in milliseconds","example":1523830000000,"format":"int64","type":"integer"},"vehicleId":{"description":"Vehicle ID","example":1234,"format":"int64","type":"integer"}},"required":["harshEventType","timestampMs","vehicleId"],"type":"object"},"ListAddressesResponse":{"description":"A list of Addresses and pagination information.","properties":{"data":{"description":"A list of Addresses.","items":{"$ref":"#/components/schemas/Address"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeEventActorTypeResponseBody":{"description":"AssetStatusChangeEventActor object","properties":{"actorId":{"description":"ID of the user or API token that made the change. For system changes, a fixed label for the process.","example":"12345","type":"string"},"actorType":{"description":"Whether a user, an API token, or Samsara itself made the change.  Valid values: `unknown`, `user`, `system`, `apiToken`","enum":["unknown","user","system","apiToken"],"example":"unknown","type":"string"}},"type":"object"},"ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeEventStatusTypeResponseBody":{"description":"AssetStatusChangeEventStatus object","properties":{"category":{"description":"Whether the status counts as operational, down, or disposed in availability reporting.  Valid values: `unknown`, `operational`, `down`, `disposed`","enum":["unknown","operational","down","disposed"],"example":"unknown","type":"string"},"name":{"description":"Name of the status as shown in Maintenance Settings.","example":"12345","type":"string"},"statusUuid":{"description":"Stable ID of the status. It does not change when the status is renamed.","example":"12345","type":"string"}},"type":"object"},"ListAssetStatusChangeEventsEntityAssetStatusChangeEventAssetStatusChangeSourceEntityTypeResponseBody":{"description":"AssetStatusChangeSourceEntity object","properties":{"sourceEntityId":{"description":"ID of the record that triggered the change.","example":"12345","type":"string"},"sourceEntityType":{"description":"Kind of record that triggered the change.  Valid values: `unknown`, `workOrder`, `campaignItem`, `automationRule`, `geofence`, `dvir`, `csvUpload`","enum":["unknown","workOrder","campaignItem","automationRule","geofence","dvir","csvUpload"],"example":"unknown","type":"string"}},"type":"object"},"ListAssetStatusesEntityAssetStatusAssetStatusActorTypeResponseBody":{"description":"AssetStatusActor object","properties":{"actorId":{"description":"ID of the user or API token that made the change. For system changes, a fixed label for the process.","example":"12345","type":"string"},"actorType":{"description":"Whether a user, an API token, or Samsara itself made the change.  Valid values: `unknown`, `user`, `system`, `apiToken`","enum":["unknown","user","system","apiToken"],"example":"unknown","type":"string"}},"type":"object"},"ListAssetStatusesEntityAssetStatusAssetStatusRefTypeResponseBody":{"description":"AssetStatusRef object","properties":{"category":{"description":"Whether the asset counts as operational, down, or disposed in availability reporting.  Valid values: `unknown`, `operational`, `down`, `disposed`","enum":["unknown","operational","down","disposed"],"example":"unknown","type":"string"},"name":{"description":"Name of the status as shown in Maintenance Settings.","example":"12345","type":"string"},"statusUuid":{"description":"Stable ID of the status. It does not change when the status is renamed.","example":"12345","type":"string"}},"type":"object"},"ListCarrierProposedAssignmentResponse":{"description":"A list of carrier-proposed assignments and pagination information.","properties":{"data":{"description":"A list of carrier-proposed assignments","items":{"$ref":"#/components/schemas/CarrierProposedAssignment"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"ListContactsResponse":{"description":"A list of contacts.","properties":{"data":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"ListDriversResponse":{"description":"A list of drivers.","properties":{"data":{"items":{"$ref":"#/components/schemas/Driver"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"ListHubCapacitiesResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListHubCustomPropertiesResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListHubLocationsResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListHubPlanRoutesResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListHubPlansResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListHubSkillsResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListHubsResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListIndustrialAssetsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AssetResponse"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"ListIssuesEntityGroundIntelligenceIssueGroundIntelligenceIssueLocationTypeResponseBody":{"description":"ListIssuesEntityGroundIntelligenceIssueGroundIntelligenceIssueLocation object","properties":{"point":{"$ref":"#/components/schemas/ListIssuesEntityGroundIntelligenceIssueLatLngTypeResponseBody"},"type":{"description":"Shape of the issue location.","example":"point","type":"string"}},"type":"object"},"ListIssuesEntityGroundIntelligenceIssueGroundIntelligenceIssueRoadSegmentTypeResponseBody":{"description":"ListIssuesEntityGroundIntelligenceIssueGroundIntelligenceIssueRoadSegment object","properties":{"roadClass":{"description":"Read-only Base Maps Overture road-class slug for the matched road segment (for example, motorway or residential), when available. Sourced from basemapsservice; not writable via update.","example":"residential","type":"string"},"roadName":{"description":"Road name associated with this issue, when available.","example":"Market Street","type":"string"},"roadSurface":{"description":"Read-only Base Maps Overture surface slug covering the issue's snapped position (for example, paved or gravel), when available. Sourced from basemapsservice; not writable via update.","example":"paved","type":"string"}},"type":"object"},"ListIssuesEntityGroundIntelligenceIssueLatLngTypeResponseBody":{"description":"ListIssuesEntityGroundIntelligenceIssueLatLng object","properties":{"latitude":{"example":37.7749,"format":"double","type":"number"},"longitude":{"example":-122.4194,"format":"double","type":"number"}},"type":"object"},"ListMaintenanceSitesEntityMaintenanceSiteMaintenanceSiteCustomAddressTypeResponseBody":{"description":"MaintenanceSiteCustomAddress object","properties":{"formattedAddress":{"description":"Single free-form address line for the site.","example":"12345","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":123.45,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":123.45,"format":"double","type":"number"}},"type":"object"},"ListMaintenanceSitesEntityMaintenanceSiteMaintenanceSiteExternalIdTypeResponseBody":{"description":"MaintenanceSiteExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"ListPartInventoryEntityPartInventoryLocationMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"ListPartsEntityPartDefinitionMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"ListPlanOrdersResponsePaginationResponseBody":{"description":"Pagination information","properties":{"endCursor":{"description":"Cursor for the last item in the page","example":"YXJyYXljb25uZWN0aW9uOjEwMA==","type":"string"},"hasNextPage":{"description":"Whether there are more pages available","example":false,"type":"boolean"}},"required":["hasNextPage"],"type":"object"},"ListPurchaseOrdersEntityPurchaseOrderCoreRecoverabilityPolicyTypeResponseBody":{"description":"CoreRecoverabilityPolicy object","properties":{"fixedRecoverableUntilTime":{"description":"Absolute deadline for core return.","example":"2019-06-13T19:08:25Z","type":"string"},"policyType":{"description":"Recoverability policy type.  Valid values: `Unknown`, `RelativeToReceipt`, `FixedDate`, `NoDeadline`","enum":["Unknown","RelativeToReceipt","FixedDate","NoDeadline"],"example":"Unknown","type":"string"},"relativeWindowDuration":{"description":"Duration after receipt when the core must be returned. Measured in milliseconds.","example":12345,"format":"int64","type":"integer"}},"type":"object"},"ListPurchaseOrdersEntityPurchaseOrderMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"ListPurchaseOrdersEntityPurchaseOrderPurchaseOrderCoreChargeTypeResponseBody":{"description":"PurchaseOrderCoreCharge object","properties":{"coreChargeStatus":{"description":"Whether the core charge is active or removed or disabled.  Valid values: `Unknown`, `Active`, `RemovedOrDisabled`","enum":["Unknown","Active","RemovedOrDisabled"],"example":"Unknown","type":"string"},"corePartSamsara":{"$ref":"#/components/schemas/EntityListPurchaseOrdersPartDefinitionRefTypeResponseBody"},"recoverabilityPolicy":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderCoreRecoverabilityPolicyTypeResponseBody"},"returnRecipientVendor":{"$ref":"#/components/schemas/EntityListPurchaseOrdersVendorRefTypeResponseBody"},"unitCoreAmount":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderMoneyTypeResponseBody"}},"type":"object"},"ListPurchaseOrdersEntityPurchaseOrderPurchaseOrderPartTypeResponseBody":{"description":"PurchaseOrderPart object","properties":{"batchNumber":{"description":"Batch or lot number for the ordered part.","example":"12345","type":"string"},"coreCharge":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderPurchaseOrderCoreChargeTypeResponseBody"},"description":{"description":"Description of the ordered part.","example":"12345","type":"string"},"lineItemId":{"description":"Stable identifier for the purchase order line.","example":"12345","type":"string"},"partSamsara":{"$ref":"#/components/schemas/EntityListPurchaseOrdersPartDefinitionRefTypeResponseBody"},"place":{"$ref":"#/components/schemas/EntityListPurchaseOrdersPlaceRefTypeResponseBody"},"quantityOrdered":{"description":"Quantity ordered on this line.","example":123.45,"format":"double","type":"number"},"quantityReceived":{"description":"Quantity received on this line.","example":123.45,"format":"double","type":"number"},"tax":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderTaxAdjustmentTypeResponseBody"},"unitCost":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderMoneyTypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure for quantities on this line. Read-only: derived from the line's part definition, and ignored if supplied on create or update.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Unknown","type":"string"}},"type":"object"},"ListPurchaseOrdersEntityPurchaseOrderTaxAdjustmentTypeResponseBody":{"description":"TaxAdjustment object","properties":{"basisPoints":{"description":"Tax rate in basis points. Set exactly one of money or basisPoints.","example":12345,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/ListPurchaseOrdersEntityPurchaseOrderMoneyTypeResponseBody"}},"type":"object"},"ListTagsResponse":{"description":"A list of tags.","properties":{"data":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"ListTimeEntriesEntityTimeEntryMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"ListTimeEntriesEntityTimeEntryTimeEntryLocationTypeResponseBody":{"description":"TimeEntryLocation object","properties":{"latitude":{"description":"Latitude in decimal degrees.","example":123.45,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":123.45,"format":"double","type":"number"}},"type":"object"},"ListUploadedMediaObjectResponseBody":{"properties":{"media":{"description":"List of media retrieval objects.","items":{"$ref":"#/components/schemas/UploadedMediaObjectResponseBody"},"type":"array"}},"required":["media"],"type":"object"},"ListUserRolesResponse":{"description":"A list of user roles.","properties":{"data":{"description":"A list of user roles","items":{"$ref":"#/components/schemas/UserRole"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"ListUsersResponse":{"description":"A list of users.","properties":{"data":{"description":"A list of users.","items":{"$ref":"#/components/schemas/User"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"ListVehiclesResponse":{"description":"Response for retrieving a list of vehicles.","properties":{"data":{"items":{"$ref":"#/components/schemas/Vehicle"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"ListVendorGroupsEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/ListVendorGroupsEntityVendorProfileVendorAssetAttributeValueTypeResponseBody"},"type":"array"}},"type":"object"},"ListVendorGroupsEntityVendorProfileVendorAssetAttributeValueTypeResponseBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"type":"object"},"ListVendorGroupsEntityVendorProfileVendorGroupExternalIdTypeResponseBody":{"description":"VendorGroupExternalId object","properties":{"key":{"description":"External identifier namespace.","example":"12345","type":"string"},"value":{"description":"Customer-managed identifier.","example":"12345","type":"string"}},"type":"object"},"ListVendorGroupsEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody":{"description":"VendorGroupPrimaryCorporateContact object","properties":{"email":{"description":"Contact email. Opaque string; max 100 characters.","example":"12345","type":"string"},"name":{"description":"Display name. Max 50 characters.","example":"12345","type":"string"},"phoneNumber":{"description":"Contact phone. Opaque string; max 15 characters.","example":"12345","type":"string"}},"type":"object"},"ListVendorGroupsEntityVendorProfileVendorHourlyMoneyTypeResponseBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"type":"object"},"ListWarrantiesEntityWarrantyWarrantyCoverageItemTypeResponseBody":{"description":"WarrantyCoverageItem object","properties":{"id":{"description":"Identifier of the covered item. For a service task item this is the service task definition key. For a VMRS code item supply vmrsCode instead, or this internal VMRS code ID.","example":"12345","type":"string"},"itemType":{"description":"Kind of covered item, indicating how the ID should be interpreted (VMRS code or service task).  Valid values: `unknown`, `vmrsCode`, `serviceTask`","enum":["unknown","vmrsCode","serviceTask"],"example":"unknown","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001). Use with itemType vmrsCode instead of id.","example":"12345","type":"string"}},"type":"object"},"ListWarrantiesEntityWarrantyWarrantyCoverageTypeResponseBody":{"description":"WarrantyCoverage object","properties":{"description":{"description":"Description of what this coverage group covers.","example":"12345","type":"string"},"durationDays":{"description":"Coverage length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Coverage length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Coverage length by engine hours since the coverage start.","example":12345,"format":"int64","type":"integer"},"exclusions":{"description":"Items explicitly excluded from this coverage group.","items":{"$ref":"#/components/schemas/ListWarrantiesEntityWarrantyWarrantyCoverageItemTypeResponseBody"},"type":"array"},"inclusions":{"description":"Items explicitly covered by this coverage group.","items":{"$ref":"#/components/schemas/ListWarrantiesEntityWarrantyWarrantyCoverageItemTypeResponseBody"},"type":"array"},"isOdometerDistanceUnlimited":{"description":"When true, the coverage never expires by mileage and the odometer distance is ignored.","example":true,"type":"boolean"},"name":{"description":"Name of the coverage group.","example":"12345","type":"string"},"notes":{"description":"Free-form notes about this coverage group.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Coverage length by distance travelled since the coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startEngineHours":{"description":"Engine hours at the start of this coverage.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Odometer reading at the start of this coverage. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"Start time of this coverage.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"ListWarrantiesEntityWarrantyWarrantyExternalIdTypeResponseBody":{"description":"WarrantyExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"ListWarrantyClaimsEntityWarrantyClaimClaimReimbursementTypeResponseBody":{"description":"ClaimReimbursement object","properties":{"reimbursement":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimMoneyTypeResponseBody"},"workOrderId":{"description":"Work order the reimbursement is applied to.","example":"12345","type":"string"}},"type":"object"},"ListWarrantyClaimsEntityWarrantyClaimMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody":{"description":"WarrantyClaimExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody":{"description":"WarrantyClaimLabor object","properties":{"cost":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimMoneyTypeResponseBody"},"description":{"description":"Free-text labor description.","example":"12345","type":"string"},"serviceTaskId":{"description":"Service task the labor belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the labor cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.","example":"12345","type":"string"}},"type":"object"},"ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimPartTypeResponseBody":{"description":"WarrantyClaimPart object","properties":{"cost":{"$ref":"#/components/schemas/ListWarrantyClaimsEntityWarrantyClaimMoneyTypeResponseBody"},"description":{"description":"Free-text part description.","example":"12345","type":"string"},"partDefinitionId":{"description":"ID of the part definition being claimed.","example":"12345","type":"string"},"partId":{"description":"Specific part-instance ID.","example":"12345","type":"string"},"quantity":{"description":"Quantity claimed.","example":12345,"format":"int64","type":"integer"},"serviceTaskId":{"description":"Service task the part belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the part cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this part line.","example":"12345","type":"string"}},"type":"object"},"ListWarrantyClaimsEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody":{"description":"WarrantyClaimStatusHistory object","properties":{"happenedAtTime":{"description":"When the transition occurred.","example":"2019-06-13T19:08:25Z","type":"string"},"status":{"description":"The status the claim moved into.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"userId":{"description":"ID of the user who made the change.","example":"12345","type":"string"}},"type":"object"},"LiveSharingLinkFullResponseObjectResponseBody":{"description":"Live Sharing Link object","properties":{"assetsLocationLinkConfig":{"$ref":"#/components/schemas/AssetsLocationLinkResponseConfigObjectResponseBody"},"assetsNearLocationLinkConfig":{"$ref":"#/components/schemas/AssetsNearLocationLinkConfigObjectResponseBody"},"assetsOnRouteLinkConfig":{"$ref":"#/components/schemas/AssetsOnRouteLinkConfigObjectResponseBody"},"description":{"description":"Description for the Live Sharing Link (not applicable for 'assetsOnRoute' type).","example":"Sample description","maxLength":255,"type":"string"},"expiresAtTime":{"description":"Date that this link expires, in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"id":{"description":"Unique identifier for the Live Sharing Link.","example":"leesdwqjx42dkvp86so","type":"string"},"liveSharingUrl":{"description":"The shareable URL of the vehicle's location.","example":"https://cloud.samsara.com/o/123456/fleet/viewer/address/7hf4lnu455wep22rtun","type":"string"},"name":{"description":"Name of the Live Sharing Link.","example":"Example Live Sharing Link name","maxLength":255,"type":"string"},"type":{"description":"Type of the Live Sharing Link.  Valid values: `assetsLocation`, `assetsNearLocation`, `assetsOnRoute`","enum":["assetsLocation","assetsNearLocation","assetsOnRoute"],"example":"assetsLocation","type":"string"}},"required":["id","liveSharingUrl","name","type"],"type":"object"},"LiveSharingLinkResponseObjectResponseBody":{"description":"Live Sharing Link response object.","properties":{"expiresAtTime":{"description":"Date that this link expires, in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"liveSharingUrl":{"description":"The shareable URL of the vehicle's location.","example":"https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU","type":"string"},"name":{"description":"Name of the Live Sharing Link.","example":"Name","type":"string"}},"required":["liveSharingUrl","name"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkRequestBody":{"properties":{"assetsLocationLinkConfig":{"$ref":"#/components/schemas/AssetsLocationLinkRequestConfigObject"},"assetsNearLocationLinkConfig":{"$ref":"#/components/schemas/AssetsNearLocationLinkConfigObject"},"assetsOnRouteLinkConfig":{"$ref":"#/components/schemas/AssetsOnRouteLinkConfigObject"},"description":{"description":"Description for the Live Sharing Link (not applicable for 'assetsOnRoute' type).","example":"Sample description","maxLength":255,"type":"string"},"expiresAtTime":{"description":"Date that this link expires in RFC 3339 format. Can't be set in the past. If not provided then link will never expire.","example":"2020-01-27T07:06:25Z","type":"string"},"name":{"description":"Name of the Live Sharing Link.","example":"Example Live Sharing Link name","maxLength":255,"type":"string"},"type":{"description":"Type of the Live Sharing Link. This field specifies which one of '<type>LinkConfig' objects will be used to configure the sharing link.  Valid values: `assetsLocation`, `assetsNearLocation`, `assetsOnRoute`","enum":["assetsLocation","assetsNearLocation","assetsOnRoute"],"example":"assetsLocation","type":"string"}},"required":["name","type"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/LiveSharingLinkFullResponseObjectResponseBody"}},"required":["data"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksCreateLiveSharingLinkUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksDeleteLiveSharingLinkUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksResponseBody":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LiveSharingLinkFullResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksGetLiveSharingLinksUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkRequestBody":{"properties":{"description":{"description":"Description for the Live Sharing Link (not applicable for 'assetsOnRoute' type).","example":"Sample description","maxLength":255,"type":"string"},"expiresAtTime":{"description":"Date that this link expires in RFC 3339 format. Can't be set in the past. If not provided then link will never expire.","example":"2020-01-27T07:06:25Z","type":"string"},"name":{"description":"Name of the Live Sharing Link.","example":"Example Live Sharing Link name","maxLength":255,"type":"string"}},"required":["name"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/LiveSharingLinkFullResponseObjectResponseBody"}},"required":["data"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LiveSharingLinksUpdateLiveSharingLinkUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedResponseBody":{"properties":{"data":{"description":"List of location and speed objects.","items":{"$ref":"#/components/schemas/LocationAndSpeedResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationWithTokensResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedGetLocationAndSpeedUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"LocationAndSpeedResponseResponseBody":{"description":"Full location and speed objects.","properties":{"asset":{"$ref":"#/components/schemas/AssetResponseResponseBody"},"happenedAtTime":{"description":"UTC timestamp in RFC 3339 format of the event.","example":"2020-01-27T07:06:25Z","type":"string"},"location":{"$ref":"#/components/schemas/LocationResponseResponseBody"},"speed":{"$ref":"#/components/schemas/SpeedResponseResponseBody"}},"required":["asset","happenedAtTime","location"],"type":"object"},"LocationDataPoint":{"description":"A single location data point of a data input.","properties":{"gpsLocation":{"$ref":"#/components/schemas/LocationDataPoint_gpsLocation"},"time":{"$ref":"#/components/schemas/time"}},"type":"object"},"LocationDataPoint_gpsLocation":{"description":"GPS location information of the data input's datapoint.","properties":{"formattedAddress":{"description":"Formatted address of the location","example":"350 Rhode Island St, San Francisco CA, 94103","format":"string","type":"string"},"gpsMetersPerSecond":{"description":"Speed of GPS (meters per second)","example":35.5,"format":"double","type":"number"},"headingDegrees":{"description":"Heading degrees","example":91.2,"format":"double","type":"number"},"latitude":{"description":"Latitude of the location","example":42.44817,"format":"double","type":"number"},"longitude":{"description":"Longitude of the location","example":-71.224716,"format":"double","type":"number"},"place":{"$ref":"#/components/schemas/LocationDataPoint_gpsLocation_place"}},"type":"object"},"LocationDataPoint_gpsLocation_place":{"description":"Address of the location","properties":{"city":{"description":"City","example":"San Francisco","format":"string","type":"string"},"houseNumber":{"description":"House number","example":"350","format":"string","type":"string"},"neighborhood":{"description":"Neighborhood","example":"Castro","format":"string","type":"string"},"poi":{"description":"POI","example":"400","format":"string","type":"string"},"postcode":{"description":"Postcode","example":"94103","format":"string","type":"string"},"state":{"description":"State","example":"CA","format":"string","type":"string"},"street":{"description":"Street","example":"Rhode Island","format":"string","type":"string"}},"type":"object"},"LocationObjectRequestBody":{"description":"A location. Polygon and Circle is deprecated, but may be set for old Alerts. At least one location must be selected.","properties":{"addressIds":{"description":"All locations with selected address IDs will trigger.","example":["Ipsum commodi autem.","Saepe nisi sit.","Delectus dolores quo qui.","Et quis ab doloremque expedita et."],"items":{"description":"Id of the address.","example":"Neque error.","type":"string"},"type":"array"},"addressTypes":{"description":"All locations with the selected address types will trigger.","example":["knownGPSJammingZone","agricultureSource","yard"],"items":{"description":"Type of the address.  Valid values: `agricultureSource`, `alertsOnly`, `authorizedZone`, `avoidanceZone`, `customerSite`, `industrialSite`, `inventory`, `knownGPSJammingZone`, `riskZone`, `shortHaul`, `unauthorizedZone`, `undefined`, `vendor`, `workforceSite`, `yard`","enum":["agricultureSource","alertsOnly","authorizedZone","avoidanceZone","customerSite","industrialSite","inventory","knownGPSJammingZone","riskZone","shortHaul","unauthorizedZone","undefined","vendor","workforceSite","yard"],"example":"vendor","type":"string"},"type":"array"},"circle":{"$ref":"#/components/schemas/CircleRequestBody"},"polygon":{"$ref":"#/components/schemas/PolygonRequestBody"},"tagIds":{"description":"All locations with selected tag will trigger.","example":["4815","4815","4815","4815"],"items":{"description":"Id of the tag.","example":"4815","type":"string"},"type":"array"}},"type":"object"},"LocationObjectResponseBody":{"description":"A location. Polygon and Circle is deprecated, but may be set for old Alerts. At least one location must be selected.","properties":{"addressIds":{"description":"All locations with selected address IDs will trigger.","example":["Placeat tempore soluta.","Nostrum non omnis non esse voluptas.","Minus nobis."],"items":{"description":"Id of the address.","example":"Est eaque adipisci sed voluptate rerum voluptatibus.","type":"string"},"type":"array"},"addressTypes":{"description":"All locations with the selected address types will trigger.","example":["workforceSite","agricultureSource","shortHaul","agricultureSource"],"items":{"description":"Type of the address.  Valid values: `agricultureSource`, `alertsOnly`, `authorizedZone`, `avoidanceZone`, `customerSite`, `industrialSite`, `inventory`, `knownGPSJammingZone`, `riskZone`, `shortHaul`, `unauthorizedZone`, `undefined`, `vendor`, `workforceSite`, `yard`","enum":["agricultureSource","alertsOnly","authorizedZone","avoidanceZone","customerSite","industrialSite","inventory","knownGPSJammingZone","riskZone","shortHaul","unauthorizedZone","undefined","vendor","workforceSite","yard"],"example":"industrialSite","type":"string"},"type":"array"},"circle":{"$ref":"#/components/schemas/CircleResponseBody"},"polygon":{"$ref":"#/components/schemas/PolygonResponseBody"},"tagIds":{"description":"All locations with selected tag will trigger.","example":["4815","4815","4815","4815"],"items":{"description":"Id of the tag.","example":"4815","type":"string"},"type":"array"}},"type":"object"},"LocationResponseBody":{"description":"Equipment location.","properties":{"Latitude":{"description":"Location latitude.","example":12.34,"format":"double","type":"number"},"Longitude":{"description":"Location longitude.","example":12.34,"format":"double","type":"number"},"datetime":{"description":"Date time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"LocationResponseResponseBody":{"description":"Location object.","properties":{"accuracyMeters":{"description":"Radial accuracy of gps location in meters. This will only return if strong GPS is not available.","example":5.801,"format":"double","type":"number"},"address":{"$ref":"#/components/schemas/AddressResponseResponseBody"},"geofence":{"$ref":"#/components/schemas/GeofenceResponseResponseBody"},"headingDegrees":{"description":"Heading of the asset in degrees. May be 0 if the asset is not moving.","example":120,"format":"int64","type":"integer"},"latitude":{"description":"Latitude of the location of the asset.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the location of the asset.","example":137.2719,"format":"double","type":"number"}},"required":["headingDegrees","latitude","longitude"],"type":"object"},"LocationType":{"description":"The format of the location. This field is required if a location is provided. Valid values: `point`, `address`, `dataInput`.","enum":["point","address","dataInput"],"type":"string"},"LogMetaDataObjectResponseBody":{"description":"The metadata of the log.","properties":{"adverseDrivingClaimed":{"description":"Whether the driver has claimed the [Adverse Driving Exemption](https://kb.samsara.com/hc/en-us/articles/360047336792-Adverse-Driving-Exemption) for this HOS day chart.","example":true,"type":"boolean"},"bigDayClaimed":{"description":"Whether the driver has claimed the [Big Day Exemption](https://kb.samsara.com/hc/en-us/articles/360057113891-16-Hour-Short-Haul-Exemption-Big-Day-) for this HOS day chart.","example":false,"type":"boolean"},"carrierFormattedAddress":{"description":"The address of the carrier used for this HOS chart.","example":"1990 Alameda Street, San Francisco, CA 94103","type":"string"},"carrierName":{"description":"The name of the carrier used for this HOS chart.","example":"Carrier Name","type":"string"},"carrierUsDotNumber":{"description":"The US DOT number of the carrier used for this HOS chart.","example":1234,"format":"int64","type":"integer"},"certifiedAtTime":{"description":"The time this log was certified in RFC 3339 format.","example":"2020-01-01T06:00:00Z","type":"string"},"homeTerminalFormattedAddress":{"description":"The address of the Home Terminal used for this HOS chart.","example":"1990 Alameda Street, San Francisco, CA 94103","type":"string"},"homeTerminalName":{"description":"The name of the Home Terminal used for this HOS chart.","example":"Home Terminal Name","type":"string"},"isCertified":{"description":"Whether this HOS day chart was certified by the driver.","example":false,"type":"boolean"},"isUsShortHaulActive":{"description":"Whether the driver has the 150 air-mile Short Haul Exemption active for this HOS day chart.","example":true,"type":"boolean"},"shippingDocs":{"description":"List of shipping document names associated with the driver for the day. This field maps to Shipping ID in the dashboard.","example":"Delivery 123, chips and soda","type":"string"},"trailerNames":{"description":"List of trailer names associated with the driver for the day. If a trailer was associated with a log through the driver app the trailer name will be the trailer ID.","example":["10293","Trailer ID 1"],"items":{"example":"Enim veniam ad et repellendus quo.","type":"string"},"type":"array"},"vehicles":{"description":"List of vehicles associated with the driver for the day.","items":{"$ref":"#/components/schemas/VehicleResponseResponseBody"},"type":"array"}},"type":"object"},"MaintenanceAttachmentUploadRequestBody":{"description":"Create a presigned PUT upload session. Send the declared Content-Type, Content-MD5 and Content-Length with the PUT before expiry.","properties":{"contentMd5":{"description":"Standard base64 encoding of the file's 16-byte MD5 digest.","example":"1B2M2Y8AsgTpgAmY7PhCfg==","maxLength":24,"minLength":24,"type":"string"},"contentType":{"description":"File MIME type.  Valid values: `application/pdf`, `image/jpeg`, `image/png`","enum":["application/pdf","image/jpeg","image/png"],"example":"application/pdf","type":"string"},"fileSizeBytes":{"description":"Exact file length in bytes; at most 40 MB.","example":15000000,"maximum":40000000,"minimum":1,"type":"integer"}},"required":["contentMd5","contentType","fileSizeBytes"],"type":"object"},"MaintenanceEstimateAttachmentCreateResultResponseBody":{"description":"Created attachment and optional upload session.","properties":{"createdAtTime":{"description":"Time the attachment was created.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"id":{"description":"Stable attachment ID.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"name":{"description":"Original or generated filename.","example":"repair-quote.pdf","maxLength":255,"type":"string"},"processingStatus":{"description":"Attachment availability. Defaults to processing until a validated download is available; unknown when availability cannot be determined.  Valid values: `unknown`, `processing`, `finished`","enum":["unknown","processing","finished"],"example":"finished","type":"string"},"updatedAtTime":{"description":"Latest attachment change; initially equal to creation time.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"uploadPut":{"$ref":"#/components/schemas/FunctionsStorageSignedUrlOfTypeResponseBody"},"url":{"description":"Temporary download URL; present only when processingStatus is finished.","example":"https://example.com/file","format":"uri","type":"string"},"urlExpiresAt":{"description":"Expiration of the temporary download URL; present only with url.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"}},"required":["createdAtTime","id","name","processingStatus","updatedAtTime"],"type":"object"},"MaintenanceEstimateAttachmentResponseBody":{"description":"A file attached to an estimate or work order.","properties":{"createdAtTime":{"description":"Time the attachment was created.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"id":{"description":"Stable attachment ID.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"name":{"description":"Original or generated filename.","example":"repair-quote.pdf","maxLength":255,"type":"string"},"processingStatus":{"description":"Attachment availability. Defaults to processing until a validated download is available; unknown when availability cannot be determined.  Valid values: `unknown`, `processing`, `finished`","enum":["unknown","processing","finished"],"example":"finished","type":"string"},"updatedAtTime":{"description":"Latest attachment change; initially equal to creation time.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"url":{"description":"Temporary download URL; present only when processingStatus is finished.","example":"https://example.com/file","format":"uri","type":"string"},"urlExpiresAt":{"description":"Expiration of the temporary download URL; present only with url.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"}},"required":["createdAtTime","id","name","processingStatus","updatedAtTime"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentRequestBody":{"description":"Supply exactly one of file or upload. Upload creates a temporary PUT session; read the estimate after uploading to see availability.","properties":{"estimateId":{"description":"Estimate UUID or external ID. The estimate must be editable.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"file":{"$ref":"#/components/schemas/MaintenanceEstimateInlineFileRequestBody"},"name":{"description":"Filename, at most 255 Unicode characters; generated when omitted.","example":"repair-quote.pdf","maxLength":255,"type":"string"},"upload":{"$ref":"#/components/schemas/MaintenanceAttachmentUploadRequestBody"}},"required":["estimateId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentCreateResultResponseBody"}},"required":["data"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimateBatchCreateInputRequestBody":{"description":"One unapproved priced recommendation or vendor quote. Existing single-create quote validation applies.","properties":{"approvalStatus":{"description":"Defaults to unapproved. Batch ingestion does not approve, deny or award; use individual updates for lifecycle changes.  Valid values: `unapproved`","enum":["unapproved"],"example":"unapproved","type":"string"},"estimateType":{"description":"Recommendation or vendor quote. Defaults to vendorQuote when omitted. expectedCost requires an externally managed work order and must be created unapproved; lineItems and tax remain required.  Valid values: `expectedCost`, `vendorQuote`","enum":["expectedCost","vendorQuote"],"example":"vendorQuote","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Estimate external identifiers. Responses include these only when includeExternalIds=true; default omitted.","example":{"repairSystem":"quote-123"},"type":"object"},"externalRequest":{"$ref":"#/components/schemas/MaintenanceEstimateExternalRequestInputRequestBody"},"lineItems":{"description":"Complete set of 1 to 200 priced lines when supplied.","example":[{"amount":{"amount":"640.20","currency":"usd"},"description":"Replace turbocharger"}],"items":{"$ref":"#/components/schemas/MaintenanceEstimateLineInputRequestBody"},"maxItems":200,"minItems":1,"type":"array"},"notes":{"description":"Notes, at most 4000 Unicode characters.","example":"Repair quote","maxLength":4000,"type":"string"},"quotedAtTime":{"description":"Actual quote timestamp. Omit if the source only has a date; do not invent a time or offset.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"supersedesEstimateId":{"description":"Same-WO/vendor denied estimate superseded by this quote.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"tax":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyRequestBody"},"vendorId":{"description":"Same-org vendor location UUID or external ID. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"workOrderId":{"description":"Same-org numeric work order ID.","example":"464","type":"string"}},"required":["lineItems","tax","vendorId","workOrderId"],"type":"object"},"MaintenanceEstimateBatchItemResponseResponseBody":{"description":"One ordered result. Success includes data; failure includes message.","properties":{"data":{"$ref":"#/components/schemas/MaintenanceEstimateObjectResponseBody"},"message":{"description":"Caller-safe error message; present only on failure.","example":"An open estimate already exists for this vendor and work order.","type":"string"},"status":{"description":"HTTP-style result code. 200 on success.","example":200,"format":"int64","type":"integer"}},"required":["status"],"type":"object"},"MaintenanceEstimateExternalRequestInputRequestBody":{"description":"Optional provider metadata. Every child is optional. PATCH replaces the whole object, null or an empty object clears it, and omission preserves it. Nonempty provider metadata requires an actual quote or an active selected recommendation.","properties":{"actionUrl":{"description":"Optional provider URL. Nonempty values must be HTTPS without embedded credentials, at most 2048 bytes; empty strings are accepted.","example":"https://example.com/requests/AI-563-1","maxLength":2048,"type":"string"},"externalRequestId":{"description":"Optional provider request reference, not an estimate alias or idempotency key. Empty strings are accepted.","example":"AI-563-1","maxLength":200,"type":"string"},"externalSystem":{"description":"Optional external provider name; empty strings are accepted.","example":"Auto Integrate","maxLength":100,"type":"string"},"message":{"description":"Optional display message; empty strings are accepted.","example":"Review quote in Auto Integrate","maxLength":500,"type":"string"}},"type":"object"},"MaintenanceEstimateExternalRequestResponseBody":{"description":"Provider request details. This metadata does not create a request or change approval or award status.","properties":{"actionUrl":{"description":"HTTPS provider URL without embedded credentials; at most 2048 bytes.","example":"https://example.com/requests/AI-563-1","format":"uri","maxLength":2048,"type":"string"},"externalRequestId":{"description":"Provider request reference, not an estimate lookup alias or idempotency key; at most 200 characters.","example":"AI-563-1","maxLength":200,"type":"string"},"externalSystem":{"description":"External provider name; at most 100 characters.","example":"Auto Integrate","maxLength":100,"type":"string"},"message":{"description":"Optional display message; at most 500 characters.","example":"Review quote in Auto Integrate","maxLength":500,"type":"string"}},"type":"object"},"MaintenanceEstimateInlineFileRequestBody":{"description":"Inline file; at most 7.5 MB decoded or 10 MB base64 encoded.","properties":{"base64Content":{"description":"Base64-encoded document bytes; at most 10 MB encoded and 7.5 MB decoded.","example":"JVBERi0xLjcK","maxLength":10000000,"type":"string"},"contentType":{"description":"Media MIME type. Supported formats are PDF, JPEG and PNG.  Valid values: `application/pdf`, `image/jpeg`, `image/png`","enum":["application/pdf","image/jpeg","image/png"],"example":"application/pdf","type":"string"}},"required":["base64Content","contentType"],"type":"object"},"MaintenanceEstimateLineInputRequestBody":{"description":"Quote line. Omit id for a new line. Supply amount, or quantity and unitRate together, or both representations when they agree after rounding the extended amount once to cents.","properties":{"amount":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyRequestBody"},"costType":{"description":"Optional classification of the entire line. Labor assigns all cost to labor; parts assigns all cost to parts. Omission leaves a new or replacement line unclassified; it does not infer a type from description.  Valid values: `labor`, `parts`","enum":["labor","parts"],"example":"labor","type":"string"},"description":{"description":"Vendor's quote text, at most 2000 Unicode characters.","example":"Bundled repair","maxLength":2000,"type":"string"},"id":{"description":"Existing line ID when retaining a line during PATCH.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"quantity":{"description":"Quantity or labor hours, greater than zero with at most two fractional digits. When supplied, unitRate is also required. Omitted when actual quantity is unknown.","example":2,"maximum":1000000,"minimum":0.01,"type":"number"},"serviceTaskId":{"description":"Associated service-task instance belonging to this WO.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"unitRate":{"$ref":"#/components/schemas/MaintenanceEstimateUnitRateRequestBody"}},"type":"object"},"MaintenanceEstimateLineItemResponseBody":{"description":"One priced line from the quote.","properties":{"amount":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyResponseBody"},"costType":{"description":"Whether the entire line is labor or parts. Omitted when classification is absent or mixed; unknown represents an unrecognized classification. No classification is inferred from description.  Valid values: `unknown`, `labor`, `parts`","enum":["unknown","labor","parts"],"example":"labor","type":"string"},"description":{"description":"Vendor quote text; retained even when serviceTaskId is supplied. Maximum 2000 Unicode characters.","example":"Replace turbocharger","maxLength":2000,"type":"string"},"id":{"description":"Server-generated line ID.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"quantity":{"description":"Quantity or labor hours, greater than zero with at most two fractional digits. When supplied, unitRate is also required. Omitted when actual quantity is unknown.","example":2,"maximum":1000000,"minimum":0.01,"type":"number"},"serviceTaskId":{"description":"Associated WO service-task instance ID; not a task catalog ID.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"unitRate":{"$ref":"#/components/schemas/MaintenanceEstimateUnitRateResponseBody"}},"required":["amount","id"],"type":"object"},"MaintenanceEstimateMoneyRequestBody":{"description":"Nonnegative amount in the organization's currency. Supported currencies: usd, gbp, cad, eur, chf, mxn. Exact decimal strings are required.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"MaintenanceEstimateMoneyResponseBody":{"description":"Nonnegative amount in the organization's currency. Supported currencies: usd, gbp, cad, eur, chf, mxn. Exact decimal strings are required.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"MaintenanceEstimateObjectResponseBody":{"description":"A priced vendor recommendation or quote for one work order.","properties":{"approvalSource":{"description":"Authority for the current approval state. Defaults to none.  Valid values: `unknown`, `none`, `policy`, `samsara`","enum":["unknown","none","policy","samsara"],"example":"none","type":"string"},"approvalStatus":{"description":"Approval state. Vendor quotes default to unapproved; expectedCost recommendations report unknown until conversion, or cancelled after cancellation. Approval and award are separate operations.  Valid values: `unknown`, `unapproved`, `pending`, `approved`, `denied`, `cancelled`","enum":["unknown","unapproved","pending","approved","denied","cancelled"],"example":"unapproved","type":"string"},"attachments":{"description":"Quote documents. API additions enforce a 50-file WO admission limit against observed files and pending API reservations.","items":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentResponseBody"},"type":"array"},"createdAtTime":{"description":"Server creation time.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"estimateType":{"description":"Whether this estimate is a recommendation or a vendor quote. Omitted create values default to vendorQuote. Unknown represents an unrecognized type.  Valid values: `unknown`, `expectedCost`, `vendorQuote`","enum":["unknown","expectedCost","vendorQuote"],"example":"vendorQuote","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Estimate external identifiers. Responses include these only when includeExternalIds=true; default omitted.","example":{"repairSystem":"quote-123"},"type":"object"},"externalRequest":{"$ref":"#/components/schemas/MaintenanceEstimateExternalRequestResponseBody"},"id":{"description":"Stable estimate ID.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"isAwarded":{"description":"Whether this exact vendor quote has been awarded for the WO. Defaults to false; recommendation selection and approval do not award.","example":false,"type":"boolean"},"lineItems":{"description":"Up to 200 priced lines; incomplete dashboard quotes may have no lines.","items":{"$ref":"#/components/schemas/MaintenanceEstimateLineItemResponseBody"},"maxItems":200,"type":"array"},"notes":{"description":"Additional notes, at most 4000 Unicode characters.","example":"Contact shop before starting work.","maxLength":4000,"type":"string"},"quotedAtTime":{"description":"Actual instant the vendor issued the quote; omit when only a date is known.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"subtotal":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyResponseBody"},"supersededByEstimateId":{"description":"Successor estimate; a superseded quote is historical.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"supersedesEstimateId":{"description":"Previous denied estimate replaced by this new quote.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"tax":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyResponseBody"},"total":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyResponseBody"},"updatedAtTime":{"description":"Latest public content or lifecycle change.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"vendorId":{"description":"Vendor location ID. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"version":{"description":"Monotonic change counter including lifecycle and attachment updates.","example":1,"format":"int64","type":"integer"},"workOrderId":{"description":"Owning numeric work order ID.","example":"464","type":"string"}},"required":["approvalSource","approvalStatus","attachments","createdAtTime","estimateType","id","isAwarded","lineItems","updatedAtTime","version","workOrderId"],"type":"object"},"MaintenanceEstimateUnitRateRequestBody":{"description":"Price per quantity unit in the organization's currency. Rates can include fractional cents; round the extended line amount once to cents.","properties":{"amount":{"description":"Nonnegative decimal unit price, with up to six fractional digits. Signs, exponents and grouping separators are not accepted.","example":"95.005","maxLength":30,"pattern":"^[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"currency":{"description":"Three-letter ISO 4217 currency code. Must match the organization's current currency and the line amount.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"MaintenanceEstimateUnitRateResponseBody":{"description":"Price per quantity unit in the organization's currency. Rates can include fractional cents; round the extended line amount once to cents.","properties":{"amount":{"description":"Nonnegative decimal unit price, with up to six fractional digits. Signs, exponents and grouping separators are not accepted.","example":"95.005","maxLength":30,"pattern":"^[0-9]+(\\.[0-9]{1,6})?$","type":"string"},"currency":{"description":"Three-letter ISO 4217 currency code. Must match the organization's current currency and the line amount.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateRequestBody":{"description":"Create a priced recommendation or vendor quote. Only vendorQuote can be created with an approved or denied decision through Samsara approval and UTS. Native decision requests require nonempty externalIds for safe retries. Combined normalized quote content and external metadata must not exceed 245,760 bytes. Attach files through the attachment endpoint.","example":{"lineItems":[{"amount":{"amount":"640.20","currency":"usd"},"description":"Replace turbocharger"}],"tax":{"amount":"64.02","currency":"usd"},"vendorId":"a81e26e6-50cd-4ae2-85b9-132c493c0871","workOrderId":"464"},"properties":{"approvalStatus":{"description":"Defaults to unapproved on create. Approved or denied records a decision through Samsara approval and UTS and requires a stable externalIds identifier for retries; approval never awards the estimate.  Valid values: `unapproved`, `approved`, `denied`","enum":["unapproved","approved","denied"],"example":"unapproved","type":"string"},"estimateType":{"description":"Recommendation or vendor quote. Defaults to vendorQuote when omitted. expectedCost requires an externally managed work order and must be created unapproved; lineItems and tax remain required.  Valid values: `expectedCost`, `vendorQuote`","enum":["expectedCost","vendorQuote"],"example":"vendorQuote","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Estimate external identifiers. Responses include these only when includeExternalIds=true; default omitted.","example":{"repairSystem":"quote-123"},"type":"object"},"externalRequest":{"$ref":"#/components/schemas/MaintenanceEstimateExternalRequestInputRequestBody"},"lineItems":{"description":"Complete set of 1 to 200 priced lines when supplied.","example":[{"amount":{"amount":"640.20","currency":"usd"},"description":"Replace turbocharger"}],"items":{"$ref":"#/components/schemas/MaintenanceEstimateLineInputRequestBody"},"maxItems":200,"minItems":1,"type":"array"},"notes":{"description":"Notes, at most 4000 Unicode characters.","example":"Repair quote","maxLength":4000,"type":"string"},"quotedAtTime":{"description":"Actual quote timestamp. Omit if the source only has a date; do not invent a time or offset.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"supersedesEstimateId":{"description":"Same-WO/vendor denied estimate superseded by this quote.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"tax":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyRequestBody"},"vendorId":{"description":"Same-org vendor location UUID or external ID. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"a81e26e6-50cd-4ae2-85b9-132c493c0871","type":"string"},"workOrderId":{"description":"Same-org numeric work order ID.","example":"464","type":"string"}},"required":["lineItems","tax","vendorId","workOrderId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/MaintenanceEstimateObjectResponseBody"}},"required":["data"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimateUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchRequestBody":{"description":"Non-atomic batch of 1–10 priced recommendations or vendor quotes. Raw JSON is limited to 3000000 bytes; existing per-quote limits also apply.","example":{"estimates":[{"lineItems":[{"amount":{"amount":"640.20","currency":"usd"},"description":"Expected repair cost"}],"tax":{"amount":"0.00","currency":"usd"},"vendorId":"a81e26e6-50cd-4ae2-85b9-132c493c0871","workOrderId":"464"}]},"properties":{"estimates":{"description":"Estimates to create, in response order. Maximum 10; an excess returns HTTP 413.","items":{"$ref":"#/components/schemas/MaintenanceEstimateBatchCreateInputRequestBody"},"maxItems":10,"minItems":1,"type":"array"}},"required":["estimates"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchResponseBody":{"properties":{"requestId":{"description":"UUID identifying this batch request.","example":"672c7c45-1826-4162-8940-8ff9bd2a328b","format":"uuid","type":"string"},"responses":{"description":"One outcome per input, in the same order. Successful writes remain committed when another item fails.","items":{"$ref":"#/components/schemas/MaintenanceEstimateBatchItemResponseResponseBody"},"maxItems":10,"minItems":1,"type":"array"}},"required":["requestId","responses"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesCreateMaintenanceEstimatesBatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesResponseBody":{"properties":{"data":{"description":"Matching estimate records.","items":{"$ref":"#/components/schemas/MaintenanceEstimateObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/MaintenanceEstimatesPaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesListMaintenanceEstimatesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPaginationResponseBody":{"description":"Cursor pagination.","properties":{"endCursor":{"description":"Continuation cursor; empty when a finite result is exhausted.","example":"","type":"string"},"hasNextPage":{"description":"Whether the request has another page. Defaults to false at the end of a finite collection.","example":false,"type":"boolean"}},"required":["endCursor","hasNextPage"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateRequestBody":{"description":"Omitted fields remain unchanged. Priced content is frozen after decision. No public optimistic-concurrency parameter is required.","example":{"lineItems":[{"amount":{"amount":"640.20","currency":"usd"},"description":"Replace turbocharger","id":"8ea6ff70-1e60-4ed9-9c68-a00d72cb720e"}],"tax":{"amount":"64.02","currency":"usd"}},"properties":{"approvalStatus":{"description":"Approve or deny the current quote through Samsara approval and UTS. Cancel an unapproved or pending estimate and close any open approval ticket. For an active externally selected recommendation or unapproved quote, this existing cancellation path also releases that selection, clears its vendor assignment and returns an open work order to vendor selection. Unselected recommendations leave other selections unchanged, and native quote cancellation preserves vendor assignment. A current finished vendorQuote that is approved, denied or awarded can instead be withdrawn while retaining its approval decision and award history and retiring only its exact completed active award. This decided-quote withdrawal does not change the work order, vendor assignment, selection attempt, service tasks, actual costs or invoices. It is not restricted by whether repair work has started. Cancellation requires approval authority and, for a known or current award, separate award authority. Processing or superseded quotes and incomplete awards cannot be withdrawn; retry an award in progress after reconciliation. Repeating a cancellation is safe. Omit to preserve the current status. Send approval or cancellation separately from content changes, estimateType and isAwarded.  Valid values: `approved`, `denied`, `cancelled`","enum":["approved","denied","cancelled"],"example":"approved","type":"string"},"estimateType":{"description":"Omit to preserve the type. Repeating the current type is allowed. Only the active selected expectedCost recommendation can become a vendorQuote, preserving its estimate ID. The reverse transition is not allowed. Type conversion can include pricing changes, but must be separate from approval, cancellation and award.  Valid values: `expectedCost`, `vendorQuote`","enum":["expectedCost","vendorQuote"],"example":"vendorQuote","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Estimate external identifiers. Responses include these only when includeExternalIds=true; default omitted.","example":{"repairSystem":"quote-123"},"type":"object"},"externalRequest":{"$ref":"#/components/schemas/MaintenanceEstimateExternalRequestInputRequestBody"},"isAwarded":{"description":"Only true is writable: award an eligible approved quote, assign its vendor to the work order and preserve its financial baseline. Applying quote lines to work-order service tasks is a separate dashboard action. A different quote cannot replace an active award through this API; withdraw an eligible awarded quote before awarding its replacement. Send award separately from content and external ID changes. Defaults to unchanged when omitted; requires separate award authority.","example":true,"type":"boolean"},"lineItems":{"description":"Complete set of 1 to 200 priced lines when supplied.","example":[{"amount":{"amount":"640.20","currency":"usd"},"description":"Replace turbocharger","id":"8ea6ff70-1e60-4ed9-9c68-a00d72cb720e"}],"items":{"$ref":"#/components/schemas/MaintenanceEstimateLineInputRequestBody"},"maxItems":200,"type":"array"},"notes":{"description":"Notes, at most 4000 Unicode characters. PATCH null clears.","example":"Repair quote","maxLength":4000,"type":"string"},"quotedAtTime":{"description":"Actual quote timestamp. Omit if the source only has a date; do not invent a time or offset. PATCH null clears.","example":"2026-10-07T15:00:00Z","format":"date-time","type":"string"},"tax":{"$ref":"#/components/schemas/MaintenanceEstimateMoneyRequestBody"}},"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/MaintenanceEstimateObjectResponseBody"}},"required":["data"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceEstimatesPatchMaintenanceEstimateUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesResponseBody":{"properties":{"data":{"description":"An array of vendor categories.","items":{"$ref":"#/components/schemas/VendorCategoryObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"MaintenanceVendorsListVendorCategoriesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorCategoriesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsResponseBody":{"properties":{"data":{"description":"An array of vendor locations.","items":{"$ref":"#/components/schemas/VendorLocationObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"MaintenanceVendorsListVendorLocationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MaintenanceVendorsListVendorLocationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaObjectResponseBody":{"properties":{"auxcamSerial":{"description":"Serial number of the auxiliary camera (e.g. AI multicam) that captured this media. Only present for analog inputs. Examples: CSS6-23A-HJF","example":"CSS6-23A-HJF","type":"string"},"availableAtTime":{"description":"Timestamp, in RFC 3339 format, at which the media item was made available. Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00","example":"2019-11-11T14:00:12-04:00","type":"string"},"cameraRole":{"description":"Camera role for this media.  Valid values: `leftMirrorMount`, `leftSide`, `rightMirrorMount`, `rightSide`, `rearHigh`, `rearBumper`, `inCab`, `front`, `hopper`, `other1`, `other2`, `other3`, `other4`, `leftBev`, `rightBev`, `rearBev`, `frontBev`, `otherBev`, `bevNotUsed`","enum":["leftMirrorMount","leftSide","rightMirrorMount","rightSide","rearHigh","rearBumper","inCab","front","hopper","other1","other2","other3","other4","leftBev","rightBev","rearBev","frontBev","otherBev","bevNotUsed"],"example":"leftMirrorMount","type":"string"},"endTime":{"description":" An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"input":{"description":"Input type for this media.  Valid values: `dashcamDriverFacing`, `dashcamRoadFacing`, `analog1`, `analog2`, `analog3`, `analog4`","enum":["dashcamDriverFacing","dashcamRoadFacing","analog1","analog2","analog3","analog4"],"example":"dashcamDriverFacing","type":"string"},"mediaType":{"description":"Type of media.  Valid values: `image`, `videoHighRes`, `videoLowRes`, `hyperlapse`","enum":["image","videoHighRes","videoLowRes","hyperlapse"],"example":"image","type":"string"},"startTime":{"description":" A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"status":{"description":"Status of the media.  Valid values: `available`, `invalid`, `pending`, `failed`, `unavailable`","enum":["available","invalid","pending","failed","unavailable"],"example":"available","type":"string"},"urlInfo":{"$ref":"#/components/schemas/UrlInfoObjectResponseBody"},"vehicleId":{"description":"Vehicle ID for which this media was captured. Examples: 1234","example":"1234","type":"string"}},"required":["endTime","input","mediaType","startTime","status","vehicleId"],"type":"object"},"MediaRetrievalGetMediaRetrievalBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/GetMediaRetrievalObjectResponseBody"}},"required":["data"],"type":"object"},"MediaRetrievalGetMediaRetrievalServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalGetMediaRetrievalUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/ListUploadedMediaObjectResponseBody"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"MediaRetrievalListUploadedMediaServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalListUploadedMediaUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalRequestBody":{"properties":{"cameraRoles":{"description":"Optional list of camera roles to resolve to analog inputs at request time. Requires an AHD4 auxcam device. Can be used alone or combined with inputs.","example":["front","front"],"items":{"description":"camera role  Valid values: `leftMirrorMount`, `leftSide`, `rightMirrorMount`, `rightSide`, `rearHigh`, `rearBumper`, `inCab`, `front`, `hopper`, `other1`, `other2`, `other3`, `other4`, `leftBev`, `rightBev`, `rearBev`, `frontBev`, `otherBev`, `bevNotUsed`","enum":["leftMirrorMount","leftSide","rightMirrorMount","rightSide","rearHigh","rearBumper","inCab","front","hopper","other1","other2","other3","other4","leftBev","rightBev","rearBev","frontBev","otherBev","bevNotUsed"],"example":"front","type":"string"},"type":"array"},"endTime":{"description":"An end time in RFC 3339 format. If endTime is the same as startTime, an image will be captured at startTime. Must be 1 second or more after startTime and no more than the maximum allowed duration per video retrieval type. Please refer to our KB articles for more information. (Examples: 2019-06-13T19:08:55Z, 2019-06-13T19:08:55.455Z, OR 2015-09-15T14:00:42-04:00).","example":"2019-06-13T19:08:55Z","type":"string"},"inputs":{"description":"A list of desired camera inputs for which to capture media. Only media with valid inputs (e.g. device has that input stream and device was recording at the time) will be uploaded. At least one of inputs or cameraRoles must be provided.","example":["dashcamRoadFacing","dashcamRoadFacing"],"items":{"description":"input  Valid values: `dashcamRoadFacing`, `dashcamDriverFacing`, `analog1`, `analog2`, `analog3`, `analog4`","enum":["dashcamRoadFacing","dashcamDriverFacing","analog1","analog2","analog3","analog4"],"example":"dashcamRoadFacing","type":"string"},"type":"array"},"mediaType":{"description":"The desired media type. If a video is requested, endTime must be after startTime. If an image is requested, endTime must be the same as startTime. Must be one of: image, videoHighRes, videoLowRes. Examples: image, videoHighRes, videoLowRes, hyperlapse.  Valid values: `image`, `videoHighRes`, `videoLowRes`, `hyperlapse`","enum":["image","videoHighRes","videoLowRes","hyperlapse"],"example":"videoHighRes","type":"string"},"startTime":{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicleId":{"description":"Vehicle ID for which to initiate media capture. Examples: 1234","example":"1234","type":"string"}},"required":["endTime","mediaType","startTime","vehicleId"],"type":"object"},"MediaRetrievalPostMediaRetrievalResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostMediaRetrievalObjectResponseBody"}},"required":["data"],"type":"object"},"MediaRetrievalPostMediaRetrievalServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MediaRetrievalPostMediaRetrievalUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"MinimalRouteAuditLogsResponseBody":{"description":"A single route. Only the fields that have changed are present in the response. All other fields, including the route id, will not be present in the response. For now, only routeStops are included since only Route Tracking updates are supported.","properties":{"stops":{"description":"The route stops in the route. Only stops that have been updated will be included in the response.","items":{"$ref":"#/components/schemas/MinimalRouteStopAuditLogsResponseBody"},"type":"array"}},"type":"object"},"MinimalRouteStopAuditLogsResponseBody":{"description":"A single route stop for a route.","properties":{"actualArrivalTime":{"description":"Actual arrival time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"actualDepartureTime":{"description":"Actual departure time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"enRouteTime":{"description":"The time the stop became en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"eta":{"description":"Estimated time of arrival, if this stop is currently en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique identifier for the route stop.","example":"141414","type":"string"},"liveSharingUrl":{"description":"The shareable url of the stop's current status.","example":"https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token","type":"string"},"scheduledArrivalTime":{"description":"Scheduled arrival time, if it exists, for the stop in RFC 3339 format. If it does not exist, and this field was changed in the update, it will be an empty string.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledDepartureTime":{"description":"Scheduled departure time, if it exists, for the stop in RFC 3339 format. If it does not exist, and this field was changed in the update, it will be an empty string.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"skippedTime":{"description":"Skipped time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"state":{"description":"The current state of the route stop.  Valid values: `unassigned`, `scheduled`, `en route`, `skipped`, `arrived`, `departed`","enum":["unassigned","scheduled","en route","skipped","arrived","departed"],"example":"scheduled","type":"string"}},"required":["id"],"type":"object"},"MinimalRouteStopResponseBody":{"description":"A single route stop for a route.","properties":{"actualArrivalTime":{"description":"Actual arrival time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"actualDepartureTime":{"description":"Actual departure time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"enRouteTime":{"description":"The time the stop became en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"eta":{"description":"Estimated time of arrival, if this stop is currently en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique identifier for the route stop.","example":"141414","type":"string"},"liveSharingUrl":{"description":"The shareable url of the stop's current status.","example":"https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token","type":"string"},"skippedTime":{"description":"Skipped time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"state":{"description":"The current state of the route stop.  Valid values: `unassigned`, `scheduled`, `en route`, `skipped`, `arrived`, `departed`","enum":["unassigned","scheduled","en route","skipped","arrived","departed"],"example":"scheduled","type":"string"}},"required":["id","state"],"type":"object"},"MissingDvirPastDueResponseBody":{"description":"Details specific to Missing DVIR Past Due.","properties":{"dvir":{"$ref":"#/components/schemas/Dvir2SubmissionResponseObjectResponseBody"}},"type":"object"},"MissingStateResponseBody":{"description":"An asset currently marked as missing, including notification recipients.","properties":{"id":{"description":"The unique Samsara ID of the asset.","example":"12345","type":"string"},"initiated_at_ms":{"description":"Timestamp when the asset was first marked as missing, in milliseconds since epoch. Unlike updated_at_ms, this value is preserved when the missing state is edited.","example":1609459200000,"format":"int64","type":"integer"},"initiated_by_user_id":{"description":"The ID of the user who first marked this asset as missing. Unlike updated_by_user_id, this value is preserved when the missing state is edited.","example":1234,"format":"int64","type":"integer"},"name":{"description":"The human-readable name of the asset.","example":"Trailer-A1234","type":"string"},"note":{"description":"A note associated with the missing asset.","example":"Asset was last seen at warehouse A","type":"string"},"notification_recipients":{"description":"Users subscribed to location update notifications for this asset.","items":{"$ref":"#/components/schemas/NotificationRecipientResponseResponseBody"},"type":"array"},"update_source":{"description":"The source of the last update to this recovery state. Defaults to `dashboard` if not explicitly set.  Valid values: `dashboard`, `api`","enum":["dashboard","api"],"example":"dashboard","type":"string"},"updated_at_ms":{"description":"Timestamp when the asset was marked as missing, in milliseconds since epoch.","example":1609459200000,"format":"int64","type":"integer"},"updated_by_user_id":{"description":"The ID of the user who marked the asset as missing.","example":1234,"format":"int64","type":"integer"}},"required":["id","name","updated_at_ms"],"type":"object"},"MobileUsageDetectionAlertSettingsObjectResponseBody":{"description":"Enables AI detection of mobile usage events.","properties":{"hasInCabAudioAlertsEnabled":{"description":"Indicates whether in-cab audio alerts for mobile usage are turned on.","example":true,"type":"boolean"},"isEnabled":{"description":"Indicates whether AI event detection for mobile usage is turned on.","example":true,"type":"boolean"},"speedingThresholdMph":{"description":"Alert when speed is over this many miles per hour.","example":5,"format":"double","type":"number"}},"type":"object"},"MotionDetectedResponseBody":{"description":"Details specific to Motion Detected.","properties":{"cameraStream":{"$ref":"#/components/schemas/alertObjectOnvifCameraStreamResponseBody"}},"type":"object"},"NotificationRecipientRequestBody":{"description":"A user to notify about recovery state changes.","properties":{"notification_types":{"description":"How the user should be notified.","example":["email"],"items":{"description":"The type of notification. For Preview, only 'email' is supported.  Valid values: `email`","enum":["email"],"example":"email","type":"string"},"type":"array"},"user_id":{"description":"The ID of the user to notify. Users can be retrieved via the getUser API endpoint.","example":1234,"format":"int64","type":"integer"}},"required":["notification_types","user_id"],"type":"object"},"NotificationRecipientResponseResponseBody":{"description":"A user subscribed to recovery state change notifications, including their name and email.","properties":{"email":{"description":"The email address of the user.","example":"jane.doe@example.com","type":"string"},"name":{"description":"The display name of the user.","example":"Jane Doe","type":"string"},"notification_types":{"description":"How the user is notified.","example":["email"],"items":{"description":"The type of notification.  Valid values: `email`","enum":["email"],"example":"email","type":"string"},"type":"array"},"user_id":{"description":"The ID of the user.","example":1234,"format":"int64","type":"integer"}},"required":["email","name","notification_types","user_id"],"type":"object"},"NumberDataPoint":{"description":"A single numeric data point of a data input.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Numeric value of the data point.","example":1992.0506,"format":"double","type":"number"}},"type":"object"},"OperationalSettingsObjectRequestBody":{"description":"Settings on when the alert should be operational.","properties":{"timeRangeType":{"description":"The type of time ranges.  Valid values: `activeBetween`, `inactiveBetween`","enum":["activeBetween","inactiveBetween"],"example":"activeBetween","type":"string"},"timeRanges":{"description":"The time ranges this alert applies to.","items":{"$ref":"#/components/schemas/TimeRangeObjectRequestBody"},"type":"array"}},"required":["timeRangeType","timeRanges"],"type":"object"},"OperationalSettingsObjectResponseBody":{"description":"Settings on when the alert should be operational.","properties":{"timeRangeType":{"description":"The type of time ranges.  Valid values: `activeBetween`, `inactiveBetween`","enum":["activeBetween","inactiveBetween"],"example":"activeBetween","type":"string"},"timeRanges":{"description":"The time ranges this alert applies to.","items":{"$ref":"#/components/schemas/TimeRangeObjectResponseBody"},"type":"array"}},"required":["timeRangeType","timeRanges"],"type":"object"},"OrderCustomPropertyInputRequestBody":{"description":"Custom property input for an order","properties":{"customPropertyId":{"description":"The ID of the custom property definition","example":"750e8400-e29b-41d4-a716-446655440004","type":"string"},"value":{"description":"The value for this custom property","example":"Premium","type":"string"}},"required":["customPropertyId","value"],"type":"object"},"OrderCustomPropertyResponseBody":{"description":"Custom property for an order","properties":{"customPropertyId":{"description":"The ID of the custom property definition","example":"750e8400-e29b-41d4-a716-446655440004","type":"string"},"name":{"description":"The name of the custom property","example":"CustomerType","type":"string"},"value":{"description":"The value for this custom property","example":"Premium","type":"string"}},"required":["customPropertyId","name","value"],"type":"object"},"OrderInputObjectRequestBody":{"description":"Input object for creating orders","properties":{"customProperties":{"description":"An array of custom property values for the order","items":{"$ref":"#/components/schemas/OrderCustomPropertyInputRequestBody"},"type":"array"},"customerOrderId":{"description":"The customer-provided identifier for the order","example":"ORDER-2024-001","type":"string"},"delivery":{"$ref":"#/components/schemas/OrderTaskRequestBody"},"hubId":{"description":"The ID of the hub the order belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"pickup":{"$ref":"#/components/schemas/OrderTaskRequestBody"},"planId":{"description":"The ID of the plan the order belongs to","example":"650e8400-e29b-41d4-a716-446655440023","type":"string"},"priority":{"description":"Priority of the order (e.g., 1 for high, 5 for low)","example":1,"format":"int64","type":"integer"},"quantities":{"description":"An array of quantities for the order","items":{"$ref":"#/components/schemas/OrderQuantityInputRequestBody"},"type":"array"},"skillsRequired":{"description":"An array of skill IDs required to fulfill the order","example":["650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001"],"items":{"description":"Skill ID","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"type":"array"}},"required":["customerOrderId","hubId","planId"],"type":"object"},"OrderObjectResponseBody":{"description":"Order object","properties":{"createdAtTime":{"description":"The timestamp (in UTC) when the order was created","example":"2024-04-10T11:30:00Z","format":"date-time","type":"string"},"customProperties":{"description":"An array of custom property values for the order","items":{"$ref":"#/components/schemas/OrderCustomPropertyResponseBody"},"type":"array"},"customerOrderId":{"description":"The customer-provided identifier for the order","example":"ORDER-2024-001","type":"string"},"delivery":{"$ref":"#/components/schemas/OrderTaskResponseBody"},"hubId":{"description":"The ID of the hub the order belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the order","example":"a50e8400-e29b-41d4-a716-446655440006","type":"string"},"pickup":{"$ref":"#/components/schemas/OrderTaskResponseBody"},"planId":{"description":"The ID of the plan the order belongs to","example":"650e8400-e29b-41d4-a716-446655440023","type":"string"},"priority":{"description":"Priority of the order (e.g., 1 for high, 5 for low)","example":1,"format":"int64","type":"integer"},"quantities":{"description":"An array of quantities for the order","items":{"$ref":"#/components/schemas/OrderQuantityResponseBody"},"type":"array"},"routeId":{"description":"The ID of the route this order is assigned to. Null if the order is unassigned. Only populated on list responses.","example":"950e8400-e29b-41d4-a716-446655440005","type":"string"},"skillsRequired":{"description":"An array of skill IDs required to fulfill the order","example":["650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001"],"items":{"description":"Skill ID","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"type":"array"},"updatedAtTime":{"description":"The timestamp (in UTC) when the order was last updated","example":"2024-04-10T11:30:00Z","format":"date-time","type":"string"}},"required":["createdAtTime","customProperties","customerOrderId","hubId","id","planId","priority","quantities","skillsRequired","updatedAtTime"],"type":"object"},"OrderQuantityInputRequestBody":{"description":"Quantity requirement","properties":{"capacityId":{"description":"The ID of the required capacity type","example":"850e8400-e29b-41d4-a716-446655440003","type":"string"},"quantity":{"description":"The quantity of the required capacity","example":25.5,"format":"double","type":"number"}},"required":["capacityId","quantity"],"type":"object"},"OrderQuantityResponseBody":{"description":"Quantity requirement","properties":{"capacityId":{"description":"The ID of the required capacity type","example":"850e8400-e29b-41d4-a716-446655440003","type":"string"},"quantity":{"description":"The quantity of the required capacity","example":25.5,"format":"double","type":"number"}},"required":["capacityId","quantity"],"type":"object"},"OrderTaskCustomPropertyObjectResponseBody":{"description":"Order task custom property object","properties":{"id":{"description":"The custom property identifier","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012","type":"string"},"name":{"description":"The custom property name","example":"CustomerType","type":"string"},"value":{"description":"The custom property value","example":"Premium","type":"string"}},"required":["id","name","value"],"type":"object"},"OrderTaskObjectResponseBody":{"description":"Order task object with detailed information","properties":{"customProperties":{"description":"List of custom properties for the order","items":{"$ref":"#/components/schemas/OrderTaskCustomPropertyObjectResponseBody"},"type":"array"},"customerLocationId":{"description":"The external ID of the location associated with this order","example":"LOC-12345","type":"string"},"id":{"description":"The order identifier","example":"e5f6a7b8-c9d0-1234-efab-567890123456","type":"string"},"quantities":{"description":"List of quantity information for the order","items":{"$ref":"#/components/schemas/QuantityObjectResponseBody"},"type":"array"},"requiredSkills":{"description":"List of required skills for the order","items":{"$ref":"#/components/schemas/OrderTaskSkillObjectResponseBody"},"type":"array"},"serviceWindow":{"description":"The service window time range","example":"9:00AM - 5:00PM","type":"string"},"type":{"description":"The task type (pickup or delivery)","example":"pickup","type":"string"}},"required":["id","type"],"type":"object"},"OrderTaskRequestBody":{"description":"Order task. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","properties":{"address":{"description":"The full address string for the order. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":"123 Business Way, San Francisco","type":"string"},"appointmentWindow":{"$ref":"#/components/schemas/AppointmentWindowRequestBody"},"customerLocationId":{"description":"The customer-provided identifier of the location associated with the order. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":"LOC-123","type":"string"},"latitude":{"description":"Latitude of the order. Optional if address is provided; the address will be geocoded to obtain coordinates. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the order. Optional if address is provided; the address will be geocoded to obtain coordinates. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":-122.4194,"format":"double","type":"number"},"notes":{"description":"Any additional notes for the order","example":"Use main entrance","type":"string"},"position":{"description":"Position constraint for the order task  Valid values: `first`, `last`, `any`","enum":["first","last","any"],"example":"first","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time for the order in seconds","example":600,"format":"int32","type":"integer"}},"type":"object"},"OrderTaskResponseBody":{"description":"Order task. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","properties":{"address":{"description":"The full address string for the order. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":"123 Business Way, San Francisco","type":"string"},"appointmentWindow":{"$ref":"#/components/schemas/AppointmentWindowResponseBody"},"customerLocationId":{"description":"The customer-provided identifier of the location associated with the order. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":"LOC-123","type":"string"},"latitude":{"description":"Latitude of the order. Optional if address is provided; the address will be geocoded to obtain coordinates. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the order. Optional if address is provided; the address will be geocoded to obtain coordinates. One of `customerLocationId`, `address`, or both `latitude` and `longitude` is required.","example":-122.4194,"format":"double","type":"number"},"notes":{"description":"Any additional notes for the order","example":"Use main entrance","type":"string"},"position":{"description":"Position constraint for the order task  Valid values: `first`, `last`, `any`","enum":["first","last","any"],"example":"first","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time for the order in seconds","example":600,"format":"int32","type":"integer"}},"type":"object"},"OrderTaskSkillObjectResponseBody":{"description":"Order task skill object for required skills information","properties":{"id":{"description":"The skill identifier","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","type":"string"},"name":{"description":"The skill name","example":"Forklift Operation","type":"string"}},"required":["id","name"],"type":"object"},"OrdersDeleteOrderBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersDeleteOrderUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsResponseBody":{"properties":{"data":{"description":"Deletion markers ordered by deletedAtTime and ID.","items":{"$ref":"#/components/schemas/FleetOrderDeletionMarkerObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"OrdersGetOrderDeletionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrderDeletionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersResponseBody":{"properties":{"data":{"description":"Requested live orders.","items":{"$ref":"#/components/schemas/FleetOrderObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"OrdersGetOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamResponseBody":{"properties":{"data":{"description":"Live orders ordered by updatedAtTime and ID.","items":{"$ref":"#/components/schemas/FleetOrderObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"OrdersGetOrdersStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersGetOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchRequestBody":{"description":"Atomic canonical order upsert request.","properties":{"data":{"description":"Orders to upsert atomically. Maximum 250.","items":{"$ref":"#/components/schemas/FleetOrderBatchUpsertInputRequestBody"},"maxItems":250,"minItems":1,"type":"array"}},"required":["data"],"type":"object"},"OrdersPostOrdersBatchResponseBody":{"properties":{"requestId":{"description":"UUID for this batch operation.","example":"1f7f5081-9f8e-4b68-8b85-97dbe4b46d7e","format":"uuid","type":"string"},"responses":{"description":"One result per input order, in request order.","items":{"$ref":"#/components/schemas/FleetOrderBatchResponseItemResponseBody"},"type":"array"}},"required":["requestId","responses"],"type":"object"},"OrdersPostOrdersBatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrdersPostOrdersBatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"OrganizationInfo":{"description":"Information about your organization.","properties":{"carrierSettings":{"$ref":"#/components/schemas/OrganizationInfo_carrierSettings"},"id":{"description":"ID of the organization.","example":"123","type":"string"},"name":{"description":"Name of organization.","example":"Charlie's Dining Services","type":"string"}},"type":"object"},"OrganizationInfoResponse":{"description":"Information about an organization.","properties":{"data":{"$ref":"#/components/schemas/OrganizationInfo"}},"type":"object"},"OrganizationInfo_carrierSettings":{"description":"Carrier for a given organization.","properties":{"carrierName":{"description":"Carrier for a given organization.","example":"Acme Inc.","maxLength":255,"type":"string"},"dotNumber":{"description":"Carrier US DOT Number for the organization.","example":98231,"format":"int64","type":"integer"},"mainOfficeAddress":{"description":"Main office address for a given organization.","example":"1234 Pear St., Scranton, PA 62814","maxLength":255,"type":"string"}},"type":"object"},"OutOfRouteDetailsObjectRequestBody":{"description":"Details specific to Out Of Route","properties":{"maxOffRouteMeters":{"description":"The minimum distance in meters a vehicle has to be from its active route path to be considered out of its route.","example":100,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["maxOffRouteMeters","minDurationMilliseconds"],"type":"object"},"OutOfRouteDetailsObjectResponseBody":{"description":"Details specific to Out Of Route","properties":{"maxOffRouteMeters":{"description":"The minimum distance in meters a vehicle has to be from its active route path to be considered out of its route.","example":100,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["maxOffRouteMeters","minDurationMilliseconds"],"type":"object"},"OutOfRouteResponseBody":{"description":"Details specific to Out Of Route.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"OutOfSequenceStopArrivalDataResponseBody":{"description":"Details specific to Out-of-Sequence Stop Arrival.","properties":{"actualStopName":{"description":"Name of the stop the driver actually arrived at.","example":"Stop B","type":"string"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"expectedStopName":{"description":"Name of the stop the driver was expected to arrive at.","example":"Stop A","type":"string"},"route":{"$ref":"#/components/schemas/alertObjectRouteResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"OutsideGeofenceDataResponseBody":{"description":"Details specific to Outside Geofence.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"OutsideGeofenceTriggerDetailsObjectRequestBody":{"description":"Details specific to Outside Geofence","properties":{"location":{"$ref":"#/components/schemas/LocationObjectRequestBody"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["location","minDurationMilliseconds"],"type":"object"},"OutsideGeofenceTriggerDetailsObjectResponseBody":{"description":"Details specific to Outside Geofence","properties":{"location":{"$ref":"#/components/schemas/LocationObjectResponseBody"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["location","minDurationMilliseconds"],"type":"object"},"OverSpeedMs":{"description":"Driving time spent over the efficient speed threshold in milliseconds.","type":"number"},"PairGatewayPairObjectRequestBody":{"description":"A single gateway-to-device pairing instruction.","properties":{"deviceSerial":{"description":"The serial of the target device to pair the gateway with, in the standard Samsara serial format (e.g. GFRV-43N-VGX). All Samsara device types -- vehicle, asset, equipment, trailer, industrial, and asset tag (AT) -- expose their currently-paired gateway's serial as the device serial, so the same format applies regardless of device type.","example":"GFRV-43N-VGX","pattern":"^[a-zA-Z0-9]{4}-[a-zA-Z0-9]{3}-[a-zA-Z0-9]{3}$","type":"string"},"gatewaySerial":{"description":"The serial of the gateway to reassign. The gateway must already be activated in the organization.","example":"GFRV-43N-VGX","pattern":"^[a-zA-Z0-9]{4}-[a-zA-Z0-9]{3}-[a-zA-Z0-9]{3}$","type":"string"}},"required":["deviceSerial","gatewaySerial"],"type":"object"},"PairGatewayResultObjectResponseBody":{"description":"The outcome of a single gateway-to-device pairing. The `previousDevice` and `displacedGateway` fields describe the state of those entities immediately before this pairing was applied -- they identify the side-effects of the operation, not their post-pairing state.","properties":{"device":{"$ref":"#/components/schemas/PairResultDeviceObjectResponseBody"},"displacedGateway":{"$ref":"#/components/schemas/PairResultGatewayObjectResponseBody"},"gateway":{"$ref":"#/components/schemas/PairResultGatewayObjectResponseBody"},"previousDevice":{"$ref":"#/components/schemas/PairResultDeviceObjectResponseBody"}},"required":["device","gateway"],"type":"object"},"PairResultDeviceObjectResponseBody":{"description":"Identifying information for a device involved in a pairing operation.","properties":{"id":{"description":"The unique Samsara ID of the device.","example":"8393848111","type":"string"},"name":{"description":"The name of the device.","example":"Truck 17","type":"string"},"serial":{"description":"The serial number of the device.","example":"ABCD-123-EFG","type":"string"},"type":{"description":"The type of the device.  Valid values: `vehicle`, `asset`, `equipment`, `trailer`, `industrial`, `assetTag`","enum":["vehicle","asset","equipment","trailer","industrial","assetTag"],"example":"vehicle","type":"string"}},"required":["id","serial","type"],"type":"object"},"PairResultGatewayObjectResponseBody":{"description":"Identifying information for a gateway involved in a pairing operation.","properties":{"id":{"description":"The unique Samsara ID of the gateway.","example":"8393848111","type":"string"},"model":{"description":"The model of the gateway.  Valid values: `AG15`, `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG41`, `AG41EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `IG15`, `IG21`, `IG41`, `IG61`, `SG1`, `SG1B`, `SG1G`, `SG1G32`, `SG1x`, `VG32`, `VG33`, `VG34`, `VG34EU`, `VG34FN`, `VG34M`, `VG54ATT`, `VG54EU`, `VG54FN`, `VG54NA`, `VG54NAE`, `VG54NAH`, `VG55EU`, `VG55FN`, `VG55NA`","enum":["AG15","AG24","AG24EU","AG26","AG26EU","AG41","AG41EU","AG45","AG45EU","AG46","AG46EU","AG46P","AG46PEU","AG51","AG51EU","AG52","AG52EU","AG53","AG53EU","AT11","AT11X","AT12","AT12X","AT13","IG15","IG21","IG41","IG61","SG1","SG1B","SG1G","SG1G32","SG1x","VG32","VG33","VG34","VG34EU","VG34FN","VG34M","VG54ATT","VG54EU","VG54FN","VG54NA","VG54NAE","VG54NAH","VG55EU","VG55FN","VG55NA"],"example":"VG34","type":"string"},"serial":{"description":"The serial number of the gateway.","example":"GFRV-43N-VGX","type":"string"}},"required":["id","model","serial"],"type":"object"},"PanicButtonDetailsObjectRequestBody":{"description":"Details specific to Panic Button","properties":{"isFilteringOutPowerLoss":{"description":"If true, only receive alerts when the panic button is pressed, otherwise receive alerts when the panic button is pressed or looses connection.","example":true,"type":"boolean"}},"required":["isFilteringOutPowerLoss"],"type":"object"},"PanicButtonDetailsObjectResponseBody":{"description":"Details specific to Panic Button","properties":{"isFilteringOutPowerLoss":{"description":"If true, only receive alerts when the panic button is pressed, otherwise receive alerts when the panic button is pressed or looses connection.","example":true,"type":"boolean"}},"required":["isFilteringOutPowerLoss"],"type":"object"},"PanicButtonResponseBody":{"description":"Details specific to Panic Button.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"ParentId":{"description":"The id of the parent asset that the asset belongs to.","example":"123abcde-4567-8910-1112-fghi1314jklm","type":"string"},"ParentTag":{"description":"If this tag is part a hierarchical tag tree, this is the parent tag, otherwise this will be omitted.","properties":{"id":{"$ref":"#/components/schemas/TaggedObjectId"},"name":{"$ref":"#/components/schemas/ParentTagName"}},"required":["id"],"type":"object"},"ParentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"},"ParentTagName":{"description":"The tag name.","example":"US West Vehicles","type":"string"},"PartInstanceInputObjectRequestBody":{"description":"Work Order Part Instance object.","properties":{"costCentsOverride":{"description":"The cost of one unit of the part in cents. If not provided, the part defined cost will be used.","example":1000,"format":"int64","type":"integer"},"id":{"description":"ID of the part instance. Only set if updating an existing part instance.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"partId":{"description":"ID of the part definition.","example":"P0077","type":"string"},"quantity":{"description":"The quantity of the part in the parts pre defined unit of measure.","example":2.5,"format":"double","type":"number"}},"required":["partId","quantity"],"type":"object"},"PartInstanceObjectResponseBody":{"description":"Work Order Part Instance object.","properties":{"costCentsOverride":{"description":"The cost of one unit of the part in cents. If not provided, the part defined cost will be used.","example":1000,"format":"int64","type":"integer"},"id":{"description":"ID of the part instance.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"partId":{"description":"ID of the part definition.","example":"P0077","type":"string"},"quantity":{"description":"The quantity of the part in the parts pre defined unit of measure.","example":2.5,"format":"double","type":"number"}},"required":["id","partId","quantity"],"type":"object"},"PartPhotoFileRequestBody":{"description":"Photo to add to a part.","properties":{"base64Content":{"description":"Base64 encoded image content. Maximum decoded size: 7.5MB.","example":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB...","type":"string"},"contentType":{"description":"MIME type of the image. Supported types: image/jpeg, image/png.","example":"image/jpeg","type":"string"}},"required":["base64Content","contentType"],"type":"object"},"PartPhotoObjectResponseBody":{"description":"A photo of a part.","properties":{"id":{"description":"ID of the photo.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"processingStatus":{"description":"Processing status of the photo.  Valid values: `unknown`, `processing`, `finished`","enum":["unknown","processing","finished"],"example":"finished","type":"string"},"url":{"description":"Link to the photo. Included when processingStatus is 'finished'.","example":"https://samsara-media.s3.us-west-2.amazonaws.com/123456","format":"uri","type":"string"},"urlExpiresAtTime":{"description":"Expiration time of url in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["id","processingStatus"],"type":"object"},"PartPhotosDeletePartPhotoBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosDeletePartPhotoUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PartPhotosObjectResponseBody"}},"required":["data"],"type":"object"},"PartPhotosGetPartPhotosServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosGetPartPhotosUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosObjectResponseBody":{"description":"The photos of a part.","properties":{"partId":{"description":"ID of the part.","example":"4c6d8f2e-9b1a-4e3f-8a7b-2d5c6e9f0a1b","type":"string"},"photos":{"description":"Photos of the part other than the profile photo.","items":{"$ref":"#/components/schemas/PartPhotoObjectResponseBody"},"type":"array"},"profilePhoto":{"$ref":"#/components/schemas/PartPhotoObjectResponseBody"}},"required":["partId","photos"],"type":"object"},"PartPhotosPostPartPhotoBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoRequestBody":{"description":"Part photo request","properties":{"file":{"$ref":"#/components/schemas/PartPhotoFileRequestBody"},"isProfilePhoto":{"description":"Whether the photo is the part's profile photo. A part has at most one profile photo; delete the existing one before adding another. Defaults to false.","example":false,"type":"boolean"},"partId":{"description":"ID of the part to add the photo to.","example":"4c6d8f2e-9b1a-4e3f-8a7b-2d5c6e9f0a1b","type":"string"}},"required":["file","partId"],"type":"object"},"PartPhotosPostPartPhotoResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PartPhotoObjectResponseBody"}},"required":["data"],"type":"object"},"PartPhotosPostPartPhotoServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartPhotosPostPartPhotoUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestLinkedPurchaseOrderLineResponseObjectResponseBody":{"description":"A purchase order line that orders part of the requested quantity.","properties":{"orderedQuantity":{"description":"Quantity ordered on the purchase order line.","example":4,"format":"double","type":"number"},"partSamsaraId":{"description":"Samsara ID of the part on the purchase order line.","example":"6f1c2b3a-9d8e-4f00-a1b2-c3d4e5f60718","type":"string"},"purchaseOrderNumber":{"description":"Number of the purchase order.","example":"PO-1001","type":"string"},"receivedQuantity":{"description":"Quantity received on the purchase order line.","example":2,"format":"double","type":"number"}},"required":["orderedQuantity","partSamsaraId","receivedQuantity"],"type":"object"},"PartsRequestResponseObjectResponseBody":{"description":"One line of a parts request: the demand for one part.","properties":{"fulfillmentMethod":{"description":"How the line is fulfilled. `unknown` when no method is set yet.  Valid values: `stock`, `purchase`, `transfer`, `unknown`","enum":["stock","purchase","transfer","unknown"],"example":"purchase","type":"string"},"id":{"description":"Unique ID of the parts request line, in the format `{partsRequestId}-{lineId}`.","example":"1042-3","type":"string"},"lineId":{"description":"ID of the line. Unique within its parts request.","example":"3","type":"string"},"linkedPurchaseOrderLines":{"description":"Purchase order lines that order this line's part. Excludes deleted purchase orders and purchase orders you cannot read. All linked lines still count toward `status`. Quantities are per purchase order line.","items":{"$ref":"#/components/schemas/PartsRequestLinkedPurchaseOrderLineResponseObjectResponseBody"},"type":"array"},"maintenanceSiteId":{"description":"ID of the maintenance site that requested the part. Uses the same ID as GET /maintenance/sites.","example":"2d0e5e9b-4b2a-4e4e-9b8e-6c3f8a7d1e2f","type":"string"},"needByTime":{"description":"Time the part is needed by, in RFC 3339 format.","example":"2026-03-01T00:00:00Z","format":"date-time","type":"string"},"partSamsaraId":{"description":"Samsara ID of the requested part. Uses the same ID as the `partSamsaraId` of the Purchase Orders API.","example":"6f1c2b3a-9d8e-4f00-a1b2-c3d4e5f60718","type":"string"},"partsRequestId":{"description":"ID of the parts request that contains the line.","example":"1042","type":"string"},"priority":{"description":"Priority of the parts request. Defaults to `unknown` when the priority is not recognized.  Valid values: `low`, `medium`, `high`, `critical`, `unknown`","enum":["low","medium","high","critical","unknown"],"example":"high","type":"string"},"requestedQuantity":{"description":"Quantity of the part requested on the line.","example":4,"format":"double","type":"number"},"reservedQuantity":{"description":"Quantity of inventory reserved for the line from stock, transfers and purchase order receipts. Separate from `requestedQuantity` and from the quantities of `linkedPurchaseOrderLines`.","example":2,"format":"double","type":"number"},"status":{"description":"Status of the line. For lines fulfilled by purchase, the status is derived from the ordered and received quantities of all linked purchase order lines, including lines on deleted purchase orders, to match the dashboard. Returns `unknown` for an unrecognized or unsupported status.  Valid values: `draft`, `submitted`, `partiallyOrdered`, `ordered`, `partiallyReceived`, `received`, `closed`, `cancelled`, `unknown`","enum":["draft","submitted","partiallyOrdered","ordered","partiallyReceived","received","closed","cancelled","unknown"],"example":"partiallyReceived","type":"string"},"submittedAtTime":{"description":"Time the parts request was submitted, in RFC 3339 format. Omitted for drafts.","example":"2026-02-20T15:04:05Z","format":"date-time","type":"string"},"workOrderId":{"description":"ID of the linked work order. Uses the same ID as the Work Orders API. Omitted when the line has no work order or you cannot read the work order.","example":"1234567","type":"string"}},"required":["fulfillmentMethod","id","lineId","linkedPurchaseOrderLines","maintenanceSiteId","partSamsaraId","partsRequestId","priority","requestedQuantity","reservedQuantity","status"],"type":"object"},"PartsRequestsGetPartsRequestsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsResponseBody":{"properties":{"data":{"description":"Parts request lines.","items":{"$ref":"#/components/schemas/PartsRequestResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"PartsRequestsGetPartsRequestsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PartsRequestsGetPartsRequestsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PatchAssetDataOutputsSingleResponseResponseBody":{"description":"A response that corresponds to an element in the original request body.","properties":{"errorMessage":{"description":"If the request failed, this displays the error message.","example":"Failed to write to Device: GFRV-43N-VGX","type":"string"},"id":{"description":"The data output ID.","example":"8a9371af-82d1-4158-bf91-4ecc8d3a114c","type":"string"},"statusCode":{"description":"The status code of the request. 200 indicates the request succeeded for this data output. 500 indicates an internal server error.","example":200,"format":"int64","type":"integer"}},"required":["id","statusCode"],"type":"object"},"PatchDriverTrailerAssignmentsResponseBodyResponseBody":{"description":"Response after successfully updating a Driver Trailer Assignment","properties":{"createdAtTime":{"description":"Time when the driver trailer assignment was created, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"driverId":{"description":"Samsara ID for the driver that this assignment is for.","example":"0987","type":"string"},"endTime":{"description":"Time when the driver trailer assignment ends, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"id":{"description":"Samsara ID for the assignment.","example":"08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d6","type":"string"},"startTime":{"description":"Time when the driver trailer assignment starts, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"trailerId":{"description":"Samsara ID of the trailer","example":"494123","type":"string"},"updatedAtTime":{"description":"Time when the driver trailer assignment was last updated, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["driverId","endTime","id","startTime","trailerId"],"type":"object"},"PatchDriverVehicleAssignmentsV2RequestBodyMetadataRequestBody":{"description":"Metadata about this driver assignment","properties":{"sourceName":{"description":"Exact metadata source name. When vehicleId, driverId, and startTime are omitted, identifies the existing assignment to update. When those identity fields are provided, sets or updates the assignment's source name.","example":"My custom assignment source","maxLength":100,"type":"string"}},"type":"object"},"PatchDriverVehicleAssignmentsV2ResponseBodyResponseBody":{"description":"Response after successfully updating a Driver Assignment","properties":{"message":{"description":"A description of the outcome from updating Driver Assignment information","example":"Driver assignment was successfully updated","type":"string"}},"type":"object"},"PatchFunctionDetailResponseBody":{"description":"Details of an updated Function, including a URL for uploading a new code package. After uploading, call the deploy endpoint for the changes to be applied.","properties":{"lastUpdateTimestampMs":{"description":"Epoch milliseconds of the last update. Use this value in subsequent patch requests.","example":1609459200000,"format":"int64","type":"integer"},"name":{"description":"Name of the Function.","example":"my-function","type":"string"},"updatedAtTime":{"description":"RFC 3339 timestamp when the Function was last updated.","example":"2021-01-01T00:00:00Z","format":"date-time","type":"string"},"uploadPutUrl":{"description":"A presigned PUT URL for uploading the function's code package. Valid for a limited time. After uploading, call `POST /functions/{name}/deploy` for the changes to be applied.","example":"https://example.com/upload?token=...","type":"string"}},"required":["lastUpdateTimestampMs","name","updatedAtTime","uploadPutUrl"],"type":"object"},"PatchFunctionRequestConfigRequestBody":{"description":"Configuration fields to update on the Function. All fields are optional; only provided fields are updated.","properties":{"handler":{"description":"The handler entrypoint for the function code (e.g. 'index.handler').","example":"index.handler","type":"string"},"isScheduleEnabled":{"description":"Whether the run schedule is enabled.","example":true,"type":"boolean"},"params":{"description":"Default parameter values for the function. Replaces all existing parameters.","example":{"region":"us-west","threshold":"100"},"properties":{},"type":"object"},"schedule":{"$ref":"#/components/schemas/FunctionScheduleRequestBody"},"secrets":{"description":"Secrets available to the function at runtime. Replaces all existing secrets.","example":{"API_KEY":"my-secret-value"},"properties":{},"type":"object"}},"type":"object"},"PatchIssueRequestBodyAssignedToRequestBody":{"description":"Issue assignee update object","properties":{"id":{"description":"ID of the issue assignee.","example":"938172","type":"string"},"type":{"description":"Type of the issue assignee.  Valid values: `user`","enum":["user"],"example":"user","type":"string"}},"required":["id","type"],"type":"object"},"PatchJobObjectRequestBody":{"description":"Job object with fields to update. If a field is not provided, it will not be updated","properties":{"address":{"$ref":"#/components/schemas/PatchJobObjectjobLocationRequestObjectRequestBody"},"customerName":{"description":"Customer name for job","example":"Samsara","type":"string"},"endDate":{"description":"End date of job in RFC 3339 format. Must be greater than or equal to the start date","example":"2019-06-13T19:08:25Z","type":"string"},"fleetDeviceIds":{"description":"Fleet devices to be added to this job (cannot have both industrial assets and fleet devices in the same job)","example":[1234567,654321],"items":{"example":1029035531578737500,"format":"int64","type":"integer"},"type":"array"},"id":{"description":"Job Id","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"},"industrialAssetIds":{"description":"IndustrialAssets to be added to this job (cannot have both industrial assets and fleet devices in the same job)","example":["8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","ba84a7e2-9c8d-481f-a248-7cce6b22be9d"],"items":{"example":"Aut laborum.","type":"string"},"type":"array"},"name":{"description":"Job name","example":"My Job Name","type":"string"},"notes":{"description":"Notes for the upcoming job","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"maximum":259200000,"minimum":0,"type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"maximum":259200000,"minimum":0,"type":"integer"},"startDate":{"description":"Start date of job in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"PatchJobObjectjobLocationRequestObjectRequestBody":{"description":"A location object for the job","properties":{"address":{"description":"Address of a location","example":"1990 Alameda st, San Francisco, Ca 94103","type":"string"},"latitude":{"description":"Latitude of a location","example":37.456345,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location","example":34.5633749,"format":"double","type":"number"},"name":{"description":"Name of the location","example":"Worksite #1","type":"string"}},"required":["address","latitude","longitude","name"],"type":"object"},"PatchResponseWorkflowConfigurationObjectResponseBody":{"description":"The configuration of a alert.","properties":{"actions":{"description":"An array of actions.","items":{"$ref":"#/components/schemas/ActionObjectResponseBody"},"type":"array"},"createdAtTime":{"description":"The time the configuration was created in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unqiue Samsara id of the alert configuration.","example":"e1c5dffc-c7b7-47b0-a778-6a65de638abf","type":"string"},"isEnabled":{"default":true,"description":"Whether the alert is enabled or not.","example":true,"type":"boolean"},"lastModifiedAtTime":{"description":"The time the configuration was last modified in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"name":{"description":"The custom name of the configuration.","example":"My Harsh Event Alert","type":"string"},"operationalSettings":{"$ref":"#/components/schemas/OperationalSettingsObjectResponseBody"},"scope":{"$ref":"#/components/schemas/ScopeObjectResponseBody"},"triggers":{"description":"An array of triggers.","items":{"$ref":"#/components/schemas/WorkflowTriggerObjectResponseBody"},"type":"array"}},"required":["actions","createdAtTime","id","isEnabled","lastModifiedAtTime","name","scope","triggers"],"type":"object"},"PatchSafetyEventsDismissalReasonBodyRequestBody":{"description":"Dismissal reason. Required when eventState is `dismissed`. Must not be provided for other states.","properties":{"code":{"description":"The dismissal reason code associated with the event.  Valid values: `incorrect`, `minorEvent`, `other`","enum":["incorrect","minorEvent","other"],"example":"incorrect","type":"string"},"comment":{"description":"The dismissal reason comment associated with the event.","example":"minorEvent","type":"string"}},"required":["code"],"type":"object"},"PatchSafetyEventsResponseItemDataResponseBody":{"description":"Data payload for a single Safety Event in the batch response.","properties":{"safetyEventId":{"description":"The unique Samsara ID (uuid) of the safety event.","example":"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590","type":"string"}},"required":["safetyEventId"],"type":"object"},"PatchSafetyEventsResponseItemResponseBody":{"description":"Per-item result for a single Safety Event in the batch.","properties":{"data":{"$ref":"#/components/schemas/PatchSafetyEventsResponseItemDataResponseBody"},"status":{"description":"HTTP status code for this item. Always 202 on success.","example":202,"format":"int64","type":"integer"}},"required":["data","status"],"type":"object"},"PatchShippingDocsResponseBodyResponseBody":{"description":"Response after successfully updating the LogMetaData object.","properties":{"adverseDrivingClaimed":{"description":"Whether the driver has claimed the [Adverse Driving Exemption](https://kb.samsara.com/hc/en-us/articles/360047336792-Adverse-Driving-Exemption) for this HOS day chart.","example":false,"type":"boolean"},"bigDayClaimed":{"description":"Whether the driver has claimed the [Big Day Exemption](https://kb.samsara.com/hc/en-us/articles/360057113891-16-Hour-Short-Haul-Exemption-Big-Day-) for this HOS day chart.","example":false,"type":"boolean"},"carrierFormattedAddress":{"description":"The address of the carrier used for this HOS chart.","example":"1990 Alameda Street, San Francisco, CA 94103","type":"string"},"carrierName":{"description":"The name of the carrier used for this HOS chart.","example":"Carrier Name","type":"string"},"carrierUsDotNumber":{"description":"The US DOT number of the carrier used for this HOS chart.","example":1234,"format":"int64","type":"integer"},"homeTerminalFormattedAddress":{"description":"The address of the Home Terminal used for this HOS chart.","example":"1990 Alameda Street, San Francisco, CA 94103","type":"string"},"homeTerminalName":{"description":"The name of the Home Terminal used for this HOS chart.","example":"Home Terminal Name","type":"string"},"isCertified":{"description":"Whether this HOS day chart was certified by the driver.","example":true,"type":"boolean"},"isUsShortHaulActive":{"description":"Whether the driver has the 150 air-mile Short Haul Exemption active for this HOS day chart.","example":false,"type":"boolean"},"trailerNames":{"description":"List of trailer names associated with the driver for the day. If a trailer was associated with a log through the driver app, the trailer name will be the trailer ID.","example":["10293","Trailer ID 1"],"items":{"example":"Repudiandae occaecati.","type":"string"},"type":"array"}},"type":"object"},"PatchTagRequest":{"properties":{"addresses":{"description":"The addresses that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"assets":{"description":"The trailers, unpowered, and powered assets that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"drivers":{"description":"The drivers that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"machines":{"description":"The machines that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"name":{"description":"Name of this tag.","example":"California","maxLength":191,"minLength":1,"type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"},"sensors":{"description":"The sensors that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"vehicles":{"description":"The vehicles that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"}},"type":"object"},"PeerGroupTagId":{"description":"The tag id of the peer group this driver belong to, used for gamification, leave blank for group with everyone.","example":"1234","type":"string"},"PendingDutyStatusDurationsObjectResponseBody":{"description":"What the duty status durations on the driver’s log would be if all pending carrier edits are accepted by the driver.","properties":{"activeDurationMs":{"description":"Duration the driver was active for in the log period in milliseconds.","example":38825000,"format":"int64","type":"integer"},"driveDurationMs":{"description":"Duration the driver was driving for in the log period in milliseconds.","example":31970000,"format":"int64","type":"integer"},"offDutyDurationMs":{"description":"Duration the driver was off duty for in the log period in milliseconds.","example":20555000,"format":"int64","type":"integer"},"onDutyDurationMs":{"description":"Duration the driver was on duty for in the log period in milliseconds.","example":5423000,"format":"int64","type":"integer"},"personalConveyanceDurationMs":{"description":"Duration the driver was driving for personal conveyance for in the log period in milliseconds.","example":4358000,"format":"int64","type":"integer"},"sleeperBerthDurationMs":{"description":"Duration the driver was in their sleeper berth for in the log period in milliseconds.","example":27020000,"format":"int64","type":"integer"},"waitingTimeDurationMs":{"description":"Duration the driver was waiting for in the log period in milliseconds.","example":1560000,"format":"int64","type":"integer"},"yardMoveDurationMs":{"description":"Duration the driver was driving for yard moves for in the log period in milliseconds.","example":1432000,"format":"int64","type":"integer"}},"type":"object"},"PersonDetectedResponseBody":{"description":"Details specific to Person Detected.","properties":{"cameraStream":{"$ref":"#/components/schemas/alertObjectOnvifCameraStreamResponseBody"}},"type":"object"},"PlaceBusinessContactResponseResponseBody":{"description":"Named business contact.","properties":{"email":{"description":"Contact email.","example":"bob@example.com","type":"string"},"name":{"description":"Display name.","example":"Bob Smith","type":"string"},"phoneNumber":{"description":"Contact phone.","example":"+14155555678","type":"string"}},"type":"object"},"PlaceBusinessContactsResponseResponseBody":{"description":"Business contact information for a place.","properties":{"contacts":{"description":"Named contacts.","items":{"$ref":"#/components/schemas/PlaceBusinessContactResponseResponseBody"},"type":"array"},"email":{"description":"Place-level email addresses.","example":["warehouse@example.com"],"items":{"description":"email address","example":"Aperiam omnis rerum autem maxime odit.","type":"string"},"type":"array"},"phoneNumbers":{"description":"Place-level phone numbers.","example":["+14155551234"],"items":{"description":"phone number","example":"Corrupti et voluptatibus sapiente voluptas.","type":"string"},"type":"array"}},"type":"object"},"PlaceDeletionMarkerObjectResponseBody":{"description":"Deletion marker for a soft-deleted place.","properties":{"deletedAtTime":{"description":"When the delete became customer-visible, in RFC 3339 format.","example":"2026-04-07T15:42:00Z","format":"date-time","type":"string"},"externalIds":{"description":"External ids captured for the place when present.","example":{"crmId":"abc123"},"properties":{},"type":"object"},"id":{"description":"Samsara place id.","example":"12345","type":"string"}},"required":["deletedAtTime","id"],"type":"object"},"PlaceGeocodeResultResponseResponseBody":{"description":"A forward-geocode candidate for an address.","properties":{"latitude":{"description":"Latitude in WGS84 decimal degrees.","example":37.8044,"format":"double","type":"number"},"longitude":{"description":"Longitude in WGS84 decimal degrees.","example":-122.2712,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"PlaceGeofenceAutoFallbackBehaviorInputRequestBody":{"description":"Action when auto-geofencing finds no matching candidate after filtering.","properties":{"behaviorType":{"description":"Fallback action: fail (default) or circle. Optional when fallbackBehavior.circle is set; inferred as circle.  Valid values: `fail`, `circle`","enum":["fail","circle"],"example":"fail","type":"string"},"circle":{"$ref":"#/components/schemas/PlaceGeofenceAutoFallbackCircleInputRequestBody"}},"type":"object"},"PlaceGeofenceAutoFallbackCircleInputRequestBody":{"description":"Circle geometry for circle fallback. When present, behaviorType defaults to circle if omitted.","properties":{"radiusMeters":{"description":"Fallback circle radius in meters; must be positive.","example":200,"minimum":1,"type":"integer"}},"required":["radiusMeters"],"type":"object"},"PlaceGeofenceAutoInputRequestBody":{"description":"Auto-geofence settings on write. Server geocodes from top-level address when seed coordinates are omitted, then suggests and persists resolved geometry.","properties":{"fallbackBehavior":{"$ref":"#/components/schemas/PlaceGeofenceAutoFallbackBehaviorInputRequestBody"},"isSuggestedNameEnabled":{"default":false,"description":"When true, replace the request name with the winning suggestion name when non-empty.","example":false,"type":"boolean"},"isValidateAddressEnabled":{"default":false,"description":"When true and both top-level address and seed coordinates are present, geocode the address and reject the request when the result does not correlate with the seed.","example":false,"type":"boolean"},"latitude":{"description":"Seed latitude in WGS84 decimal degrees. Supply together with longitude, or omit both to geocode from top-level address.","example":37.8044,"format":"double","type":"number"},"longitude":{"description":"Seed longitude in WGS84 decimal degrees. Supply together with latitude, or omit both to geocode from top-level address.","example":-122.2712,"format":"double","type":"number"},"maxAreaSquareMeters":{"description":"Drop candidates with area above this value in square meters.","example":500000,"format":"double","type":"number"},"maxSourceVertices":{"description":"Drop candidates whose source polygon exceeds this vertex count before simplification.","example":1000,"format":"int64","type":"integer"},"maxVertices":{"description":"Simplify the selected polygon to at most this many vertices before persist.","example":39,"format":"int64","type":"integer"},"searchBounds":{"$ref":"#/components/schemas/PlaceGeofenceAutoSearchBoundsInputRequestBody"},"sizeOrder":{"description":"Candidate sort order within each type tier.  Valid values: `smallestFirst`, `largestFirst`","enum":["smallestFirst","largestFirst"],"example":"smallestFirst","type":"string"},"suggestionTypes":{"description":"Candidate types in priority order. Defaults to building, parcel, landUse, boundary.","example":["building","parcel","landUse","boundary"],"items":{"description":"Geofence suggestion type filter token.  Valid values: `building`, `parcel`, `landUse`, `boundary`, `facility`, `infrastructure`","enum":["building","parcel","landUse","boundary","facility","infrastructure"],"example":"facility","type":"string"},"type":"array"}},"type":"object"},"PlaceGeofenceAutoSearchBoundsInputRequestBody":{"description":"Optional search bounds for geofence suggestion lookup.","properties":{"maxLatitude":{"description":"Maximum latitude in WGS84 decimal degrees.","example":37.84,"format":"double","type":"number"},"maxLongitude":{"description":"Maximum longitude in WGS84 decimal degrees.","example":-122.35,"format":"double","type":"number"},"minLatitude":{"description":"Minimum latitude in WGS84 decimal degrees.","example":37.7,"format":"double","type":"number"},"minLongitude":{"description":"Minimum longitude in WGS84 decimal degrees.","example":-122.52,"format":"double","type":"number"}},"required":["maxLatitude","maxLongitude","minLatitude","minLongitude"],"type":"object"},"PlaceGeofenceCircleInputRequestBody":{"description":"Circle geofence on write.","properties":{"latitude":{"description":"Circle center latitude in decimal degrees. Omit on POST to geocode from top-level address.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Circle center longitude in decimal degrees. Omit on POST to geocode from top-level address.","example":-122.4194,"format":"double","type":"number"},"radiusMeters":{"description":"Radius in meters; must be positive.","example":150,"minimum":1,"type":"integer"}},"required":["radiusMeters"],"type":"object"},"PlaceGeofenceCircleResponseResponseBody":{"description":"Circle geofence geometry.","properties":{"latitude":{"description":"Circle center latitude in decimal degrees.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Circle center longitude in decimal degrees.","example":-122.4194,"format":"double","type":"number"},"radiusMeters":{"description":"Radius in meters; must be positive.","example":150,"minimum":1,"type":"integer"}},"required":["latitude","longitude","radiusMeters"],"type":"object"},"PlaceGeofenceInputRequestBody":{"description":"Discriminated geofence on write. Exactly one of circle, polygon, or auto must be set.","properties":{"auto":{"$ref":"#/components/schemas/PlaceGeofenceAutoInputRequestBody"},"circle":{"$ref":"#/components/schemas/PlaceGeofenceCircleInputRequestBody"},"polygon":{"$ref":"#/components/schemas/PlaceGeofencePolygonInputRequestBody"},"type":{"description":"Geofence type: circle, polygon, or auto (write only). When present, must match the populated branch.  Valid values: `circle`, `polygon`, `auto`","enum":["circle","polygon","auto"],"example":"circle","type":"string"}},"type":"object"},"PlaceGeofencePolygonInputRequestBody":{"description":"Polygon geofence on write.","properties":{"vertices":{"description":"Polygon vertices; at least three.","items":{"$ref":"#/components/schemas/GeofenceVertexInputRequestBody"},"type":"array"}},"required":["vertices"],"type":"object"},"PlaceGeofencePolygonResponseResponseBody":{"description":"Polygon geofence geometry.","properties":{"vertices":{"description":"Polygon vertices; at least three.","items":{"$ref":"#/components/schemas/PlaceGeofenceVertexResponseResponseBody"},"type":"array"}},"required":["vertices"],"type":"object"},"PlaceGeofenceResponseResponseBody":{"description":"Discriminated place geofence. GET returns circle, polygon, or unknown when stored geometry cannot be mapped.","properties":{"circle":{"$ref":"#/components/schemas/PlaceGeofenceCircleResponseResponseBody"},"polygon":{"$ref":"#/components/schemas/PlaceGeofencePolygonResponseResponseBody"},"type":{"description":"Geofence type: circle, polygon, or unknown.  Valid values: `circle`, `polygon`, `unknown`","enum":["circle","polygon","unknown"],"example":"circle","type":"string"}},"required":["type"],"type":"object"},"PlaceGeofenceSuggestionCandidateResponseResponseBody":{"description":"A geofence suggestion candidate.","properties":{"areaSquareMeters":{"description":"Candidate area in square meters.","example":1240.5,"format":"double","type":"number"},"geofence":{"$ref":"#/components/schemas/PlaceGeofenceResponseResponseBody"},"name":{"description":"Candidate name from map data when available.","example":"Oakland Warehouse","type":"string"},"type":{"description":"Candidate category from map data.  Valid values: `building`, `parcel`, `landUse`, `boundary`, `facility`, `infrastructure`, `unknown`","enum":["building","parcel","landUse","boundary","facility","infrastructure","unknown"],"example":"building","type":"string"}},"required":["areaSquareMeters","geofence","name","type"],"type":"object"},"PlaceGeofenceVertexResponseResponseBody":{"description":"Vertex of a polygon geofence.","properties":{"latitude":{"description":"Latitude in decimal degrees.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":-122.4194,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"PlaceNavigationLocationResponseResponseBody":{"description":"Navigation location.","properties":{"driverInstructions":{"description":"Driver instructions.","example":"Check in at booth.","type":"string"},"latitude":{"description":"Latitude.","example":37.7749,"format":"double","type":"number"},"locationType":{"description":"Navigation location type.","example":"entrance","type":"string"},"longitude":{"description":"Longitude.","example":-122.4194,"format":"double","type":"number"},"name":{"description":"Location name.","example":"Main gate","type":"string"}},"required":["latitude","locationType","longitude","name"],"type":"object"},"PlaceNavigationResponseResponseBody":{"description":"Navigation metadata.","properties":{"locations":{"description":"Navigation locations.","items":{"$ref":"#/components/schemas/PlaceNavigationLocationResponseResponseBody"},"type":"array"}},"required":["locations"],"type":"object"},"PlaceResponseObjectResponseBody":{"description":"A place (geofence / location) in the organization.","properties":{"address":{"description":"Address string.","example":"123 Main St","type":"string"},"addressLatitude":{"description":"Latitude of the place pin (map marker), stored independently of the geofence. Omitted when no pin is set.","example":37.7749,"format":"double","type":"number"},"addressLongitude":{"description":"Longitude of the place pin (map marker), stored independently of the geofence. Omitted when no pin is set.","example":-122.4194,"format":"double","type":"number"},"businessContacts":{"$ref":"#/components/schemas/PlaceBusinessContactsResponseResponseBody"},"cameraRecordingModeType":{"description":"Camera recording mode: inherit, fullRecording, driverPrivacy, completePrivacy, or unknown.","example":"inherit","type":"string"},"createdAtTime":{"description":"Created timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"externalIds":{"description":"External ids when includeExternalIds=true.","example":{"Veritatis inventore ut debitis distinctio sed et.":"Tempore amet nostrum alias repellat ut commodi."},"properties":{},"type":"object"},"geofence":{"$ref":"#/components/schemas/PlaceGeofenceResponseResponseBody"},"id":{"description":"Samsara place id.","example":"12345","type":"string"},"iftaExemptionTypes":{"description":"IFTA exemption labels.","example":["Autem aut.","Soluta molestias delectus veniam neque alias ea.","Doloremque illo saepe."],"items":{"description":"IFTA exemption type.","example":"Nemo dolore error tenetur.","type":"string"},"type":"array"},"isAutoDismissRolledStopsEnabled":{"description":"Auto-dismiss rolled stops.","example":false,"type":"boolean"},"isShowAddressesEnabled":{"description":"Show addresses inside geofence.","example":true,"type":"boolean"},"name":{"description":"Place name.","example":"Oakland Yard","type":"string"},"navigation":{"$ref":"#/components/schemas/PlaceNavigationResponseResponseBody"},"notes":{"description":"Notes.","example":"Receiving 6-2","type":"string"},"placeTypes":{"description":"Assigned place types.","example":["Quo sint dolor.","Quam sunt sit doloribus in deserunt voluptate.","Temporibus enim quia.","Praesentium in accusamus neque maiores."],"items":{"description":"Place type token.","example":"Aut dolorum.","type":"string"},"type":"array"},"routing":{"description":"Route-planning rows when present.","items":{"$ref":"#/components/schemas/RoutingResponseResponseBody"},"type":"array"},"safetyEventExclusions":{"description":"Configured safety exclusions.","example":["Ea voluptatem voluptas et architecto sapiente suscipit.","Porro ipsum quo enim alias error.","At dolores exercitationem non consectetur."],"items":{"description":"Safety event exclusion token.","example":"Placeat animi.","type":"string"},"type":"array"},"streetView":{"$ref":"#/components/schemas/PlaceStreetViewResponseResponseBody"},"tags":{"description":"Tags when includeTags=true.","items":{"$ref":"#/components/schemas/PlaceTagResponseResponseBody"},"type":"array"},"updatedAtTime":{"description":"Updated timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["address","createdAtTime","geofence","id","name","updatedAtTime"],"type":"object"},"PlaceRoutingCapacityServiceTimeInputRequestBody":{"description":"Per-capacity order service time for a routing row.","properties":{"capacityId":{"description":"Capacity UUID.","example":"550e8400-e29b-41d4-a716-446655440001","type":"string"},"quantityPerServiceTime":{"description":"Quantity units per service time chunk.","example":0.5,"format":"double","type":"number"},"serviceTimeSeconds":{"description":"Service time in seconds.","example":60,"format":"int64","type":"integer"}},"required":["capacityId","quantityPerServiceTime","serviceTimeSeconds"],"type":"object"},"PlaceRoutingInputRequestBody":{"description":"Route-planning metadata row for a place and hub.","properties":{"driverInstructions":{"description":"Default instructions for drivers at this stop.","example":"Use lane 2 for trucks","type":"string"},"hubId":{"description":"Planner hub UUID for this row.","example":"de28b51e-20c2-4804-9f70-4d677454bc49","type":"string"},"hubNotes":{"description":"Hub-facing notes for this routing row.","example":"Zone A preferred","type":"string"},"isDepot":{"description":"Whether this routing row is a depot.","example":false,"type":"boolean"},"orderServiceTime":{"$ref":"#/components/schemas/PlaceRoutingOrderServiceTimeInputRequestBody"},"position":{"description":"Stop position preference: first or last.  Valid values: `first`, `last`","enum":["first","last"],"example":"first","type":"string"},"priority":{"description":"Route priority from 1 (lowest) to 5 (highest).","example":3,"format":"int32","type":"integer"},"requiredSkills":{"description":"Required planner skills for this routing row.","example":[{"id":"650e8400-e29b-41d4-a716-446655440001"}],"items":{"$ref":"#/components/schemas/PlaceRoutingRequiredSkillInputRequestBody"},"type":"array"},"routingExternalId":{"description":"Customer-defined external identifier within the hub.","example":"store-A","type":"string"},"serviceTime":{"$ref":"#/components/schemas/PlaceRoutingServiceTimeInputRequestBody"},"serviceWindows":{"description":"Recurring local-time service windows for this routing row.","items":{"$ref":"#/components/schemas/PlaceRoutingServiceWindowInputRequestBody"},"type":"array"}},"required":["hubId"],"type":"object"},"PlaceRoutingOrderServiceTimeInputRequestBody":{"description":"Order service time configuration for a routing row.","properties":{"capacityServiceTime":{"$ref":"#/components/schemas/PlaceRoutingCapacityServiceTimeInputRequestBody"},"fixedServiceTimeSeconds":{"description":"Fixed order service time in seconds. Required when modeType is fixed.","example":300,"format":"int64","type":"integer"},"isEnabled":{"description":"When true, order service time settings apply at this stop; when false, hub/session defaults apply.","example":true,"type":"boolean"},"modeType":{"description":"Mode: fixed or variable.  Valid values: `fixed`, `variable`","enum":["fixed","variable"],"example":"variable","type":"string"}},"required":["modeType"],"type":"object"},"PlaceRoutingPatchInputRequestBody":{"description":"Targeted route-planning updates on PATCH.","properties":{"removeHubIds":{"description":"Hub ids to delete. Omitted hubs are unchanged. Removing an unknown hub id is a no-op.","example":["de28b51e-20c2-4804-9f70-4d677454bc49"],"items":{"description":"Planner hub UUID to remove from this place.","example":"Delectus sunt est et voluptatem debitis.","type":"string"},"type":"array"},"upsert":{"description":"Rows to create or update by hubId. Each entry requires hubId; (placeId, hubId) must be unique within upsert.","example":[{"hubId":"550e8400-e29b-41d4-a716-446655440000","routingExternalId":"store-A-updated"}],"items":{"$ref":"#/components/schemas/PlaceRoutingInputRequestBody"},"type":"array"}},"type":"object"},"PlaceRoutingRequiredSkillInputRequestBody":{"description":"Required planner skill reference for a routing row.","properties":{"id":{"description":"Planner skill UUID.","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"}},"required":["id"],"type":"object"},"PlaceRoutingServiceTimeInputRequestBody":{"description":"Additional service time configuration for a routing row.","properties":{"isEnabled":{"description":"Whether additional service time is enabled.","example":true,"type":"boolean"},"serviceTimeMinutes":{"description":"Whole minutes of additional service time.","example":5,"format":"int64","type":"integer"}},"required":["isEnabled","serviceTimeMinutes"],"type":"object"},"PlaceRoutingServiceWindowInputRequestBody":{"description":"Recurring service window for a routing row.","properties":{"days":{"description":"Days this window applies.","example":["mon","tue","wed","thu","fri"],"items":{"description":"Weekday: mon, tue, wed, thu, fri, sat, or sun.","example":"Est laborum voluptate nemo.","type":"string"},"type":"array"},"endTime":{"description":"End time as HH:MM:SS in the org timezone. Overnight windows may have endTime before startTime.","example":"17:00:00","type":"string"},"startTime":{"description":"Start time as HH:MM:SS in the org timezone.","example":"09:00:00","type":"string"}},"required":["days","endTime","startTime"],"type":"object"},"PlaceStreetViewInputRequestBody":{"description":"Street view settings on write.","properties":{"headingDegrees":{"description":"Camera heading clockwise from true north; 0 ≤ headingDegrees < 360.","example":90,"minimum":0,"type":"number"},"isEnabled":{"description":"Whether street view is enabled.","example":true,"type":"boolean"},"latitude":{"description":"Latitude.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude.","example":-122.4194,"format":"double","type":"number"},"pitchDegrees":{"description":"Camera pitch relative to the Street View horizon; −90 ≤ pitchDegrees ≤ 90.","example":0,"maximum":90,"minimum":-90,"type":"number"},"zoom":{"description":"Zoom level.","example":1,"format":"double","type":"number"}},"required":["isEnabled"],"type":"object"},"PlaceStreetViewResponseResponseBody":{"description":"Street view settings for a place.","properties":{"headingDegrees":{"description":"Camera heading clockwise from true north; 0 ≤ headingDegrees < 360 on write, normalized mod 360 on GET.","example":90,"format":"double","type":"number"},"isEnabled":{"description":"Whether street view is enabled.","example":true,"type":"boolean"},"latitude":{"description":"Latitude.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude.","example":-122.4194,"format":"double","type":"number"},"pitchDegrees":{"description":"Camera pitch relative to the Street View horizon; −90 ≤ pitchDegrees ≤ 90.","example":0,"format":"double","type":"number"},"zoom":{"description":"Zoom level.","example":1,"format":"double","type":"number"}},"required":["isEnabled"],"type":"object"},"PlaceTagResponseResponseBody":{"description":"Tag associated with a place.","properties":{"id":{"description":"Samsara tag id.","example":"1001","type":"string"},"name":{"description":"Tag name when resolved.","example":"Yard","type":"string"},"parentTagId":{"description":"Parent tag id when present.","example":"500","type":"string"}},"required":["id"],"type":"object"},"PlacesDeletePlaceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesDeletePlaceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsResponseBody":{"properties":{"data":{"description":"Deletion markers for soft-deleted places.","items":{"$ref":"#/components/schemas/PlaceDeletionMarkerObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"PlacesGetPlaceDeletionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceDeletionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeResponseBody":{"properties":{"data":{"description":"Geocode candidates for the requested address.","items":{"$ref":"#/components/schemas/PlaceGeocodeResultResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"PlacesGetPlaceGeocodeServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeocodeUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceResponseBody":{"properties":{"data":{"description":"Matching geofence candidates for this page.","items":{"$ref":"#/components/schemas/PlaceGeofenceSuggestionCandidateResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"},"recommended":{"$ref":"#/components/schemas/PlaceGeofenceSuggestionCandidateResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"PlacesGetPlaceGeofenceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlaceGeofenceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesResponseBody":{"properties":{"data":{"description":"Places matching the request.","items":{"$ref":"#/components/schemas/PlaceResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"PlacesGetPlacesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesGetPlacesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceRequestBody":{"description":"Partial update for a place.","properties":{"address":{"description":"Single-line address string.","example":"123 Main St, Oakland, CA","type":"string"},"addressLatitude":{"description":"Latitude of the place pin (map marker), stored independently of the geofence. When supplied, updates the pin; omitting it leaves the existing pin unchanged. Provide together with addressLongitude.","example":37.7749,"format":"double","type":"number"},"addressLongitude":{"description":"Longitude of the place pin (map marker), stored independently of the geofence. When supplied, updates the pin; omitting it leaves the existing pin unchanged. Provide together with addressLatitude.","example":-122.4194,"format":"double","type":"number"},"businessContacts":{"$ref":"#/components/schemas/PostPlaceBusinessContactsInputRequestBody"},"cameraRecordingModeType":{"description":"Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit.  Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified`","enum":["fullRecording","driverPrivacy","completePrivacy","inherit","unknown","unspecified"],"example":"fullRecording","type":"string"},"externalIds":{"description":"When present, replaces external ids for the place.","example":{"crmId":"warehouse-east"},"properties":{},"type":"object"},"geofence":{"$ref":"#/components/schemas/PlaceGeofenceInputRequestBody"},"iftaExemptionTypes":{"description":"When present, replaces IFTA exemption types for the place.","example":["privateRoad"],"items":{"description":"IFTA exemption type.","example":"Dignissimos tempore.","type":"string"},"type":"array"},"isShowAddressesEnabled":{"description":"When true, show addresses inside the geofence on the map.","example":true,"type":"boolean"},"name":{"description":"Place name.","example":"Oakland Yard","type":"string"},"navigation":{"$ref":"#/components/schemas/PostPlaceNavigationInputRequestBody"},"notes":{"description":"Notes.","example":"Receiving hours 6am-2pm","type":"string"},"placeTypes":{"description":"When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match routing, navigation, and IFTA metadata after this request; conflicting combinations return InvalidArgument.","example":["yard"],"items":{"description":"Place type token (e.g. yard, normalGeofence).","example":"In rem.","type":"string"},"type":"array"},"routing":{"$ref":"#/components/schemas/PlaceRoutingPatchInputRequestBody"},"safetyEventExclusions":{"description":"When present, replaces safety event exclusions for the place.","example":["harshAcceleration","distractedDriving"],"items":{"description":"Safety event exclusion token.","example":"Aut illo et doloribus.","type":"string"},"type":"array"},"streetView":{"$ref":"#/components/schemas/PlaceStreetViewInputRequestBody"},"tags":{"description":"When present, replaces all tag associations for the place.","example":[{"id":"1001"}],"items":{"$ref":"#/components/schemas/PostPlaceTagRefRequestBody"},"type":"array"}},"type":"object"},"PlacesPatchPlaceResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PlaceResponseObjectResponseBody"}},"required":["data"],"type":"object"},"PlacesPatchPlaceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPatchPlaceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceRequestBody":{"description":"Fields for creating a place. Required: name, address, and geofence with exactly one of circle, polygon, or auto populated.","properties":{"address":{"description":"Single-line address string.","example":"123 Main St, Oakland, CA","type":"string"},"addressLatitude":{"description":"Latitude of the place pin (map marker), stored independently of the geofence. When supplied, sets the pin; otherwise the pin is left empty. Provide together with addressLongitude.","example":37.7749,"format":"double","type":"number"},"addressLongitude":{"description":"Longitude of the place pin (map marker), stored independently of the geofence. When supplied, sets the pin; otherwise the pin is left empty. Provide together with addressLatitude.","example":-122.4194,"format":"double","type":"number"},"businessContacts":{"$ref":"#/components/schemas/PostPlaceBusinessContactsInputRequestBody"},"cameraRecordingModeType":{"description":"Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit.  Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified`","enum":["fullRecording","driverPrivacy","completePrivacy","inherit","unknown","unspecified"],"example":"fullRecording","type":"string"},"externalIds":{"description":"External identifiers.","example":{"crmId":"warehouse-east"},"properties":{},"type":"object"},"geofence":{"$ref":"#/components/schemas/PlaceGeofenceInputRequestBody"},"iftaExemptionTypes":{"description":"IFTA exemption types for this place.","example":["privateRoad"],"items":{"description":"IFTA exemption type.","example":"Quia adipisci.","type":"string"},"type":"array"},"isShowAddressesEnabled":{"description":"When true, show addresses inside the geofence on the map.","example":true,"type":"boolean"},"name":{"description":"Place name.","example":"Oakland Yard","type":"string"},"navigation":{"$ref":"#/components/schemas/PostPlaceNavigationInputRequestBody"},"notes":{"description":"Optional notes.","example":"Receiving hours 6am-2pm","type":"string"},"placeTypes":{"description":"When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match routing, navigation, and existing IFTA metadata in the same request; conflicting combinations return InvalidArgument.","example":["yard"],"items":{"description":"Place type token (e.g. yard, normalGeofence).","example":"Libero totam.","type":"string"},"type":"array"},"routing":{"description":"Initial route-planning rows for the new place. Each entry requires hubId; (placeId, hubId) must be unique.","example":[{"hubId":"550e8400-e29b-41d4-a716-446655440000","isDepot":false}],"items":{"$ref":"#/components/schemas/PlaceRoutingInputRequestBody"},"type":"array"},"safetyEventExclusions":{"description":"Safety event types excluded at this place.","example":["harshAcceleration","distractedDriving"],"items":{"description":"Safety event exclusion token.","example":"Molestias repudiandae delectus.","type":"string"},"type":"array"},"streetView":{"$ref":"#/components/schemas/PlaceStreetViewInputRequestBody"},"tags":{"description":"Tags to associate.","example":[{"id":"1001"}],"items":{"$ref":"#/components/schemas/PostPlaceTagRefRequestBody"},"type":"array"}},"required":["address","geofence","name"],"type":"object"},"PlacesPostPlaceResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PlaceResponseObjectResponseBody"}},"required":["data"],"type":"object"},"PlacesPostPlaceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlacesPostPlaceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanObjectResponseBody":{"description":"Plan object","properties":{"createdAt":{"description":"The timestamp (in UTC) when the plan was created","example":"2024-04-10T10:30:00Z","format":"date-time","type":"string"},"hubId":{"description":"The ID of the hub this plan belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the plan","example":"950e8400-e29b-41d4-a716-446655440005","type":"string"},"name":{"description":"The name of the plan","example":"Weekly Plan - Week 15","type":"string"},"shiftStartTime":{"description":"The shift start time for the plan in RFC 3339 format","example":"2024-04-15T09:00:00Z","format":"date-time","type":"string"},"updatedAt":{"description":"The timestamp (in UTC) when the plan was last updated","example":"2024-04-10T10:30:00Z","format":"date-time","type":"string"}},"required":["createdAt","hubId","id","name","shiftStartTime","updatedAt"],"type":"object"},"PlanOrdersCreatePlanOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersRequestBody":{"description":"Request body for creating plan orders","properties":{"data":{"description":"An array of order objects to be created or updated","items":{"$ref":"#/components/schemas/OrderInputObjectRequestBody"},"type":"array"},"enableUpdateExistingOrders":{"description":"Enable update of existing orders if an order with the same customerOrderId exists. The input must match the same quantity dimensions as the existing order. If not provided, requests will fail if an order's customerOrderId already exists.","example":false,"type":"boolean"}},"required":["data"],"type":"object"},"PlanOrdersCreatePlanOrdersResponseBody":{"properties":{"data":{"description":"Created order objects","items":{"$ref":"#/components/schemas/OrderObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"PlanOrdersCreatePlanOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersCreatePlanOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersDeletePlanOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersResponseBody":{"properties":{"data":{"description":"Order objects","items":{"$ref":"#/components/schemas/OrderObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/ListPlanOrdersResponsePaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"PlanOrdersListPlanOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PlanOrdersListPlanOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PolicyViolationsDetectionAlertSettingsObjectResponseBody":{"description":"Enables detection of policy violations, surfaces events in Safety Inbox, and enables configurable alerts. While the feature is in beta, in-cab alerts are recommended for testing use only.","properties":{"eventsAvailableForTesting":{"description":"List of selectable beta policy violation events to be tested.","example":["smoking","eatingDrinking"],"items":{"description":"Enables testing for selected policy violation beta events.  Valid values: `mobileUsage`, `smoking`, `eatingDrinking`, `inwardCameraObstruction`, `outwardCameraObstruction`","enum":["mobileUsage","smoking","eatingDrinking","inwardCameraObstruction","outwardCameraObstruction"],"example":"smoking","type":"string"},"type":"array"},"eventsToCoach":{"description":"List of selectable policy violation events to enable coaching for.","example":["noSeatbelt","noMask"],"items":{"description":"Enables coaching for selected policy violation events.  Valid values: `noSeatbelt`, `noMask`, `mobileUsage`, `smoking`, `eatingDrinking`, `inwardCameraObstruction`, `outwardCameraObstruction`","enum":["noSeatbelt","noMask","mobileUsage","smoking","eatingDrinking","inwardCameraObstruction","outwardCameraObstruction"],"example":"noSeatbelt","type":"string"},"type":"array"},"hasInCabAudioAlertsEnabled":{"description":"Indicates whether in-cab audio alerts for rolling stops are turned on.","example":true,"type":"boolean"},"isEnabled":{"description":"Indicates whether AI event detection for rolling stops is turned on.","example":true,"type":"boolean"},"speedingThresholdMph":{"description":"Alert when speed is over this many miles per hour.","example":5,"format":"double","type":"number"}},"type":"object"},"PolygonRequestBody":{"description":"Information about a polygon geofence. This field is only needed if the geofence is a polygon.","properties":{"name":{"description":"The name of the polygon.","example":"My Geofence Polygon","type":"string"},"vertices":{"description":"The vertices of the polygon geofence. These geofence vertices describe the perimeter of the polygon, and must consist of at least 3 vertices and less than 40.","items":{"$ref":"#/components/schemas/VertexRequestBody"},"type":"array"}},"required":["name"],"type":"object"},"PolygonResponseBody":{"description":"Information about a polygon geofence. This field is only needed if the geofence is a polygon.","properties":{"name":{"description":"The name of the polygon.","example":"My Geofence Polygon","type":"string"},"vertices":{"description":"The vertices of the polygon geofence. These geofence vertices describe the perimeter of the polygon, and must consist of at least 3 vertices and less than 40.","items":{"$ref":"#/components/schemas/VertexResponseBody"},"type":"array"}},"required":["name"],"type":"object"},"PostDriverTrailerAssignmentsResponseBodyResponseBody":{"description":"Response after successfully submitting a Driver Trailer Assignment","properties":{"createdAtTime":{"description":"Time when the driver trailer assignment was created, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"driverId":{"description":"Samsara ID for the driver that this assignment is for.","example":"0987","type":"string"},"id":{"description":"Samsara ID for the assignment.","example":"08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d6","type":"string"},"startTime":{"description":"Time when the driver trailer assignment starts, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"},"trailerId":{"description":"Samsara ID of the trailer","example":"494123","type":"string"},"updatedAtTime":{"description":"Time when the driver trailer assignment was last updated, in RFC 3339 format","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["createdAtTime","driverId","id","startTime","trailerId","updatedAtTime"],"type":"object"},"PostDriverVehicleAssignmentsV2RequestBodyMetadataRequestBody":{"description":"Metadata about this driver assignment","properties":{"sourceName":{"description":"Describes where the external assignment is coming from","example":"My custom assignment source","maxLength":100,"type":"string"}},"type":"object"},"PostDriverVehicleAssignmentsV2ResponseBodyResponseBody":{"description":"Response after successfully submitting a Driver Assignment","properties":{"message":{"description":"A description of the outcome from submitting Driver Assignment information","example":"Driver assignment was successfully submitted","type":"string"}},"type":"object"},"PostDriverWorkflowAssignmentResponseDataObjectResponseBody":{"description":"Confirmation of the workflow publish operation.","properties":{"workflowId":{"description":"The UUID of the workflow that was published.","example":"a4db8702-79d5-4396-a717-e301d52ecc11","type":"string"}},"required":["workflowId"],"type":"object"},"PostElectricPurchaseRequestBodyDiscountRequestBody":{"description":"The amount of money discounted from the gross price of the charging transaction in the currency of the country where the transaction occurred.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PostElectricPurchaseRequestBodyPriceRequestBody":{"description":"The gross price of the charging transaction in the currency of the country where the transaction occurred.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PostElectricPurchaseResponseBodyDiscountResponseBody":{"description":"The amount of money discounted from the gross price of the charging transaction.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PostElectricPurchaseResponseBodyPriceResponseBody":{"description":"The gross price of the charging transaction.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PostElectricPurchaseResponseBodyResponseBody":{"description":"The electric charging purchase transaction that was created.","properties":{"discount":{"$ref":"#/components/schemas/PostElectricPurchaseResponseBodyDiscountResponseBody"},"driverId":{"description":"Samsara ID of the driver.","example":"1234","type":"string"},"energyKilowattHours":{"description":"The amount of energy delivered in kilowatt hours.","example":"42.7","type":"string"},"id":{"description":"Unique identifier for the electric purchase.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"merchantName":{"description":"Name of the charging network or operator.","example":"ChargePoint","type":"string"},"source":{"description":"The integration provider.","example":"ChargePoint Integration","type":"string"},"transactionLocation":{"description":"The street address or latitude/longitude of the charger.","example":"350 Rhode Island St, San Francisco, CA 94103","type":"string"},"transactionPrice":{"$ref":"#/components/schemas/PostElectricPurchaseResponseBodyPriceResponseBody"},"transactionReference":{"description":"The charging transaction reference.","example":"CP-88231","type":"string"},"transactionTime":{"description":"The time of the charging transaction in RFC 3339 format.","example":"2026-10-12T08:41:05-07:00","type":"string"},"vehicleId":{"description":"Samsara ID of the vehicle that was charged.","example":"281474900488527","type":"string"}},"required":["energyKilowattHours","id","transactionLocation","transactionPrice","transactionReference","transactionTime"],"type":"object"},"PostFuelPurchaseRequestBodyDiscountRequestBody":{"description":"The amount of money discounted from the gross purchase price of the fuel transaction in the currency of the country where the transaction occurred.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PostFuelPurchaseRequestBodyPriceRequestBody":{"description":"The price of the fuel transaction in the currency of the country where the transaction occurred.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PostFuelPurchaseResponseBodyResponseBody":{"description":"Response after successfully adding a Fuel Purchase transaction","properties":{"uuid":{"description":"Universally unique identifier for the fuel purchase.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"}},"required":["uuid"],"type":"object"},"PostInvoiceScanResponseDataResponseBody":{"description":"Invoice scan response data","properties":{"workOrderId":{"description":"The work order ID that the invoice was attached to or created.","example":"123456","type":"string"}},"required":["workOrderId"],"type":"object"},"PostIssueRequestBodyAssetRequestBody":{"description":"Asset the issue is associated with.","properties":{"id":{"description":"ID of the asset. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the asset.","example":"hertzAssetId:HZ-100423","type":"string"}},"required":["id"],"type":"object"},"PostIssueRequestBodyAssignedToRequestBody":{"description":"Issue assignee.","properties":{"id":{"description":"ID of the issue assignee.","example":"938172","type":"string"},"type":{"description":"Type of the issue assignee.  Valid values: `user`","enum":["user"],"example":"user","type":"string"}},"required":["id","type"],"type":"object"},"PostJobObjectRequestBody":{"description":"Job object to be created","properties":{"address":{"$ref":"#/components/schemas/PostJobObjectjobLocationRequestObjectRequestBody"},"customerName":{"description":"Customer name for job","example":"Samsara","type":"string"},"endDate":{"description":"End date of job in RFC 3339 format. Must be greater than or equal to the start date","example":"2019-06-13T19:08:25Z","type":"string"},"fleetDeviceIds":{"description":"Fleet devices to be added to this job (cannot have both industrial assets and fleet devices in the same job)","example":[1234567,654321],"items":{"example":8238417221441809000,"format":"int64","type":"integer"},"type":"array"},"id":{"description":"Job Id","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"},"industrialAssetIds":{"description":"IndustrialAssets to be added to this job (cannot have both industrial assets and fleet devices in the same job)","example":["8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","ba84a7e2-9c8d-481f-a248-7cce6b22be9d"],"items":{"example":"Ut autem sed.","type":"string"},"type":"array"},"name":{"description":"Job name","example":"My Job Name","type":"string"},"notes":{"description":"Notes for the upcoming job","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"maximum":259200000,"minimum":0,"type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"maximum":259200000,"minimum":0,"type":"integer"},"startDate":{"description":"Start date of job in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["endDate","id","name","startDate"],"type":"object"},"PostJobObjectjobLocationRequestObjectRequestBody":{"description":"A location object for the job","properties":{"address":{"description":"Address of a location","example":"1990 Alameda st, San Francisco, Ca 94103","type":"string"},"latitude":{"description":"Latitude of a location","example":37.456345,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location","example":34.5633749,"format":"double","type":"number"},"name":{"description":"Name of the location","example":"Worksite #1","type":"string"}},"required":["address","latitude","longitude","name"],"type":"object"},"PostMediaRetrievalObjectResponseBody":{"properties":{"quotaStatus":{"description":"Quota status for this media capture request. Reflects completed retrievals only; retrievals still uploading, including this request, are not yet counted and may push usage higher once they complete. Examples: Current monthly usage is 80000.4 seconds of high-res video out of 900000.0 available.","example":"Current monthly usage is 80000.4 seconds of high-res video out of 900000.0 available.","type":"string"},"retrievalId":{"description":"Retrieval ID associated with this media capture request. Examples: 2308cec4-82e0-46f1-8b3c-a3592e5cc21e","example":"2308cec4-82e0-46f1-8b3c-a3592e5cc21e","type":"string"}},"required":["quotaStatus","retrievalId"],"type":"object"},"PostPlaceBusinessContactInputRequestBody":{"description":"Named business contact for a place.","properties":{"email":{"description":"Contact email. Opaque string; max 100 characters.","example":"bob@example.com","type":"string"},"name":{"description":"Display name. Max 50 characters.","example":"Bob Smith","type":"string"},"phoneNumber":{"description":"Contact phone. Opaque string; max 15 characters.","example":"+14155555678","type":"string"}},"type":"object"},"PostPlaceBusinessContactsInputRequestBody":{"description":"Business contact information for a place.","properties":{"contacts":{"description":"Named contacts with optional phone and email.","example":[{"email":"bob@example.com","name":"Bob Smith","phoneNumber":"+14155555678"}],"items":{"$ref":"#/components/schemas/PostPlaceBusinessContactInputRequestBody"},"type":"array"},"email":{"description":"Place-level email addresses. Opaque strings; max 100 characters each.","example":["warehouse@example.com"],"items":{"description":"Place-level email address.","example":"Et in autem explicabo voluptatem voluptatem.","type":"string"},"type":"array"},"phoneNumbers":{"description":"Place-level phone numbers. Opaque strings; max 15 characters each.","example":["+14155551234"],"items":{"description":"Place-level phone number.","example":"Quae et eos inventore rem blanditiis inventore.","type":"string"},"type":"array"}},"type":"object"},"PostPlaceNavigationInputRequestBody":{"description":"Navigation metadata for create.","properties":{"locations":{"description":"Navigation locations.","items":{"$ref":"#/components/schemas/PostPlaceNavigationLocationInputRequestBody"},"type":"array"}},"required":["locations"],"type":"object"},"PostPlaceNavigationLocationInputRequestBody":{"description":"Navigation location for a place.","properties":{"driverInstructions":{"description":"Optional instructions for drivers.","example":"Check in at the guard booth.","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":37.7749,"format":"double","type":"number"},"locationType":{"description":"Navigation location type: entrance, exit, or twoWay.  Valid values: `entrance`, `exit`, `twoWay`","enum":["entrance","exit","twoWay"],"example":"entrance","type":"string"},"longitude":{"description":"Longitude in decimal degrees.","example":-122.4194,"format":"double","type":"number"},"name":{"description":"Display name for the navigation location.","example":"Main gate","type":"string"}},"required":["latitude","locationType","longitude","name"],"type":"object"},"PostPlaceTagRefRequestBody":{"description":"Tag association; only the Samsara tag id is accepted on write.","properties":{"id":{"description":"Numeric Samsara tag id.","example":"1001","type":"string"}},"required":["id"],"type":"object"},"PostResponseResWorkflowConfigurationObjectResponseBody":{"description":"The configuration of a alert.","properties":{"actions":{"description":"An array of actions.","items":{"$ref":"#/components/schemas/ActionObjectResponseBody"},"type":"array"},"createdAtTime":{"description":"The time the configuration was created in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unqiue Samsara id of the alert configuration.","example":"e1c5dffc-c7b7-47b0-a778-6a65de638abf","type":"string"},"isEnabled":{"default":true,"description":"Whether the alert is enabled or not.","example":true,"type":"boolean"},"lastModifiedAtTime":{"description":"The time the configuration was last modified in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"},"name":{"description":"The custom name of the configuration.","example":"My Harsh Event Alert","type":"string"},"operationalSettings":{"$ref":"#/components/schemas/OperationalSettingsObjectResponseBody"},"scope":{"$ref":"#/components/schemas/ScopeObjectResponseBody"},"triggers":{"description":"An array of triggers.","items":{"$ref":"#/components/schemas/WorkflowTriggerObjectResponseBody"},"type":"array"}},"required":["actions","createdAtTime","id","isEnabled","lastModifiedAtTime","name","scope","triggers"],"type":"object"},"PowerTakeOffDurationMs":{"description":"Time spent with power take off enabled while idling in milliseconds.","type":"number"},"PreferredStationAddressRequestBody":{"description":"Address of the preferred fuel station.","properties":{"city":{"description":"City of the station.","example":"Green River","type":"string"},"country":{"description":"ISO 3166-1 alpha-2 country code.","example":"US","type":"string"},"line1":{"description":"Street address of the station.","example":"8901 US Hwy 374","type":"string"},"postalCode":{"description":"Postal or ZIP code.","example":"82935","type":"string"},"state":{"description":"State or province code. Required when country is \"US\".","example":"WY","type":"string"}},"required":["city","country","line1","postalCode"],"type":"object"},"PreferredStationAddressResponseResponseBody":{"description":"Address of the preferred fuel station.","properties":{"city":{"description":"City of the station.","example":"Green River","type":"string"},"country":{"description":"Country code.","example":"US","type":"string"},"line1":{"description":"Street address of the station.","example":"8901 US Hwy 374","type":"string"},"postalCode":{"description":"Postal or ZIP code.","example":"82935","type":"string"},"state":{"description":"State or province code.","example":"WY","type":"string"}},"type":"object"},"PreferredStationDiscountInputRequestBody":{"description":"A negotiated discount for a specific fuel type at this station.","properties":{"discount":{"$ref":"#/components/schemas/PreferredStationDiscountMoneyRequestBody"},"discountPercent":{"description":"The discount percentage. Used for percentage discount type.","example":"3.5","type":"string"},"discountType":{"description":"How the discount is calculated.  Valid values: `centsPerUnit`, `percentage`, `fixedPrice`","enum":["centsPerUnit","percentage","fixedPrice"],"example":"centsPerUnit","type":"string"},"fuelType":{"description":"The fuel type this discount applies to.  Valid values: `gasoline`, `diesel`, `biodiesel`, `flexibleFuelE85`, `ethanolE100`, `renewableDiesel`, `m100`, `cng`, `lng`, `lpg`, `rng`, `fcev`, `unknown`","enum":["gasoline","diesel","biodiesel","flexibleFuelE85","ethanolE100","renewableDiesel","m100","cng","lng","lpg","rng","fcev","unknown"],"example":"diesel","type":"string"},"volumeUnit":{"description":"Volume/energy unit. Required for centsPerUnit and fixedPrice.  Valid values: `liter`, `gallon`, `imperialGallon`","enum":["liter","gallon","imperialGallon"],"example":"gallon","type":"string"}},"required":["discountType","fuelType"],"type":"object"},"PreferredStationDiscountMoneyRequestBody":{"description":"The discount value. Required for centsPerUnit and fixedPrice.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PreferredStationDiscountResponseMoneyResponseBody":{"description":"The discount value.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PreferredStationDiscountResponseResponseBody":{"description":"A discount at the preferred fuel station.","properties":{"discount":{"$ref":"#/components/schemas/PreferredStationDiscountResponseMoneyResponseBody"},"discountPercent":{"description":"The discount percentage value.","example":"3.5","type":"string"},"discountType":{"description":"How the discount is calculated.  Valid values: `centsPerUnit`, `percentage`, `fixedPrice`, `unknown`","enum":["centsPerUnit","percentage","fixedPrice","unknown"],"example":"centsPerUnit","type":"string"},"fuelType":{"description":"The fuel type this discount applies to.  Valid values: `gasoline`, `diesel`, `biodiesel`, `flexibleFuelE85`, `electricity`, `ethanolE100`, `renewableDiesel`, `m100`, `cng`, `lng`, `lpg`, `rng`, `fcev`, `unknown`","enum":["gasoline","diesel","biodiesel","flexibleFuelE85","electricity","ethanolE100","renewableDiesel","m100","cng","lng","lpg","rng","fcev","unknown"],"example":"diesel","type":"string"},"volumeUnit":{"description":"Volume/energy unit.  Valid values: `liter`, `gallon`, `imperialGallon`, `unknown`","enum":["liter","gallon","imperialGallon","unknown"],"example":"gallon","type":"string"}},"required":["discountType","fuelType"],"type":"object"},"PreferredStationGrossPriceRequestBody":{"description":"Gross price per unit of fuel.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PreferredStationGrossPriceResponseResponseBody":{"description":"Gross price per unit of fuel.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PreferredStationNetPriceRequestBody":{"description":"Net price per unit of fuel.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PreferredStationNetPriceResponseResponseBody":{"description":"Net price per unit of fuel.","properties":{"amount":{"description":"The money amount.","example":"640.2","type":"string"},"currency":{"description":"The currency of money. This is a 3-letter ISO 4217 currency code.  Valid values: `usd`, `gbp`, `cad`, `eur`, `chf`, `mxn`","enum":["usd","gbp","cad","eur","chf","mxn"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"PreferredStationObjectResponseBody":{"description":"A preferred fuel station.","properties":{"address":{"$ref":"#/components/schemas/PreferredStationAddressResponseResponseBody"},"discounts":{"description":"Discount overrides per fuel type.","items":{"$ref":"#/components/schemas/PreferredStationDiscountResponseResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"External IDs for this station.","type":"object"},"id":{"description":"Samsara-assigned station ID.","example":"sta_abc123","type":"string"},"latitude":{"description":"Latitude in WGS84 degrees.","example":41.5168,"format":"double","type":"number"},"longitude":{"description":"Longitude in WGS84 degrees.","example":-109.471,"format":"double","type":"number"},"name":{"description":"Display name of the station.","example":"Pilot Travel Center #432","type":"string"},"prices":{"description":"Per-fuel-type prices.","items":{"$ref":"#/components/schemas/PreferredStationPriceResponseResponseBody"},"type":"array"}},"required":["name"],"type":"object"},"PreferredStationPriceInputRequestBody":{"description":"A customer-set price for a specific fuel type at this station.","properties":{"fuelType":{"description":"The fuel type this price applies to.  Valid values: `gasoline`, `diesel`, `biodiesel`, `flexibleFuelE85`, `ethanolE100`, `renewableDiesel`, `m100`, `cng`, `lng`, `lpg`, `rng`, `fcev`, `unknown`","enum":["gasoline","diesel","biodiesel","flexibleFuelE85","ethanolE100","renewableDiesel","m100","cng","lng","lpg","rng","fcev","unknown"],"example":"diesel","type":"string"},"grossPrice":{"$ref":"#/components/schemas/PreferredStationGrossPriceRequestBody"},"netPrice":{"$ref":"#/components/schemas/PreferredStationNetPriceRequestBody"},"volumeUnit":{"description":"Volume/energy unit.  Valid values: `liter`, `gallon`, `imperialGallon`","enum":["liter","gallon","imperialGallon"],"example":"gallon","type":"string"}},"required":["fuelType","volumeUnit"],"type":"object"},"PreferredStationPriceResponseResponseBody":{"description":"A fuel price at the preferred fuel station.","properties":{"fuelType":{"description":"The fuel type this price applies to.  Valid values: `gasoline`, `diesel`, `biodiesel`, `flexibleFuelE85`, `electricity`, `ethanolE100`, `renewableDiesel`, `m100`, `cng`, `lng`, `lpg`, `rng`, `fcev`, `unknown`","enum":["gasoline","diesel","biodiesel","flexibleFuelE85","electricity","ethanolE100","renewableDiesel","m100","cng","lng","lpg","rng","fcev","unknown"],"example":"diesel","type":"string"},"grossPrice":{"$ref":"#/components/schemas/PreferredStationGrossPriceResponseResponseBody"},"netPrice":{"$ref":"#/components/schemas/PreferredStationNetPriceResponseResponseBody"},"volumeUnit":{"description":"Volume/energy unit.  Valid values: `liter`, `gallon`, `imperialGallon`, `unknown`","enum":["liter","gallon","imperialGallon","unknown"],"example":"gallon","type":"string"}},"required":["fuelType","volumeUnit"],"type":"object"},"PreferredStationsDeletePreferredStationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsDeletePreferredStationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PreferredStationObjectResponseBody"}},"required":["data"],"type":"object"},"PreferredStationsGetPreferredStationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsGetPreferredStationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsResponseBody":{"properties":{"data":{"description":"List of preferred fuel stations.","items":{"$ref":"#/components/schemas/PreferredStationObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"PreferredStationsListPreferredStationsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsListPreferredStationsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationRequestBody":{"description":"Request payload for updating a preferred fuel station.","properties":{"discounts":{"description":"Replaces all discount overrides. Pass empty array to remove all. Max 14 items.","items":{"$ref":"#/components/schemas/PreferredStationDiscountInputRequestBody"},"type":"array"},"prices":{"description":"Replaces all per-fuel-type prices. Pass empty array to remove all. Max 14 items.","items":{"$ref":"#/components/schemas/PreferredStationPriceInputRequestBody"},"type":"array"}},"type":"object"},"PreferredStationsPatchPreferredStationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PreferredStationObjectResponseBody"}},"required":["data"],"type":"object"},"PreferredStationsPatchPreferredStationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPatchPreferredStationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationRequestBody":{"description":"Request payload for creating a preferred fuel station.","properties":{"address":{"$ref":"#/components/schemas/PreferredStationAddressRequestBody"},"discounts":{"description":"Array of discount overrides per fuel type. Max 14 items.","items":{"$ref":"#/components/schemas/PreferredStationDiscountInputRequestBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Map of source-system key to customer-provided station ID.","type":"object"},"latitude":{"description":"Latitude in WGS84 degrees.","example":41.5168,"format":"double","type":"number"},"longitude":{"description":"Longitude in WGS84 degrees.","example":-109.471,"format":"double","type":"number"},"name":{"description":"Display name of the station.","example":"Station #432","type":"string"},"prices":{"description":"Array of per-fuel-type prices. Max 14 items.","items":{"$ref":"#/components/schemas/PreferredStationPriceInputRequestBody"},"type":"array"}},"required":["address","externalIds","name"],"type":"object"},"PreferredStationsPostPreferredStationResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PreferredStationObjectResponseBody"}},"required":["data"],"type":"object"},"PreferredStationsPostPreferredStationServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreferredStationsPostPreferredStationUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"PreventiveMaintenanceScheduleDueDataResponseBody":{"description":"Details specific to Preventive Maintenance Schedule Due.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"dueReasons":{"description":"The dimension(s) (date, odometer, engine hours) that caused this schedule instance to become due.","example":["engineHours","date"],"items":{"description":"A dimension that caused this schedule instance to become due.  Valid values: `date`, `odometer`, `engineHours`","enum":["date","odometer","engineHours"],"example":"date","type":"string"},"type":"array"},"scheduleDescription":{"description":"Description of the preventive maintenance schedule.","example":"Replace synthetic oil and filter","type":"string"},"scheduleId":{"description":"Unique ID of the preventive maintenance schedule.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"scheduleTitle":{"description":"Title of the preventive maintenance schedule.","example":"Oil Change - Synthetic","type":"string"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"PushNotificationOptionsObjectRequestBody":{"description":"Options for push notifications","properties":{"isEnabled":{"default":true,"description":"Whether push notifications are enabled.","example":true,"type":"boolean"}},"required":["isEnabled"],"type":"object"},"PushNotificationOptionsObjectResponseBody":{"description":"Options for push notifications","properties":{"isEnabled":{"default":true,"description":"Whether push notifications are enabled.","example":true,"type":"boolean"}},"required":["isEnabled"],"type":"object"},"QrCodeResponseObjectResponseBody":{"description":"A single document.","properties":{"driverId":{"description":"ID for the driver the QR code belongs to.","example":494123,"format":"int64","type":"integer"},"qrCodeLink":{"description":"URL link to the driver assignment QR code. Included if a QR code has been created for the driver.","example":"https://cloud.samsara.com/qr_code/18979ef6-663e-446b-8d5a-0ff0781b8bab","type":"string"}},"required":["driverId"],"type":"object"},"QualificationFieldInputObjectResponseBody":{"description":"Qualification input field object.","properties":{"checkBoxesValue":{"$ref":"#/components/schemas/FormsCheckBoxesValueObjectResponseBody"},"dateTimeValue":{"$ref":"#/components/schemas/FormsDateTimeValueObjectResponseBody"},"id":{"description":"ID of the qualification input field object.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"label":{"description":"Qualification input field label.","example":"License Number","type":"string"},"mediaList":{"description":"List of qualification media record objects.","items":{"$ref":"#/components/schemas/FormsMediaRecordObjectResponseBody"},"type":"array"},"multipleChoiceValue":{"$ref":"#/components/schemas/FormsMultipleChoiceValueObjectResponseBody"},"numberValue":{"$ref":"#/components/schemas/FormsNumberValueObjectResponseBody"},"signatureValue":{"$ref":"#/components/schemas/FormsSignatureValueObjectResponseBody"},"tableValue":{"$ref":"#/components/schemas/FormsTableValueObjectResponseBody"},"textValue":{"$ref":"#/components/schemas/FormsTextValueObjectResponseBody"},"type":{"description":"Type of the qualification field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `datetime`, `signature`, `media`, `table`","enum":["number","text","multiple_choice","check_boxes","datetime","signature","media","table"],"example":"text","type":"string"}},"required":["id","type"],"type":"object"},"QualificationOwnerObjectResponseBody":{"description":"Owner of the qualification record.","properties":{"entityType":{"description":"Owner entity type  Valid values: `worker`, `asset`","enum":["worker","asset"],"example":"worker","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the owner (worker/asset)","example":"281474","type":"string"}},"required":["entityType","id"],"type":"object"},"QualificationOwnerRequestObjectRequestBody":{"description":"Owner of the qualification record.","properties":{"entityType":{"description":"Owner entity type  Valid values: `worker`, `asset`","enum":["worker","asset"],"example":"worker","type":"string"},"id":{"description":"ID of the owner (worker/asset)","example":"281474","type":"string"}},"required":["entityType","id"],"type":"object"},"QualificationRecordRequestFieldInputObjectRequestBody":{"description":"Qualification input field request body object.","properties":{"checkBoxesValue":{"$ref":"#/components/schemas/FormSubmissionRequestCheckBoxesValueObjectRequestBody"},"dateTimeValue":{"$ref":"#/components/schemas/FormSubmissionRequestDateTimeValueObjectRequestBody"},"id":{"description":"ID of the qualification input field object.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"mediaValue":{"$ref":"#/components/schemas/FormSubmissionRequestMediaValueObjectRequestBody"},"multipleChoiceValue":{"$ref":"#/components/schemas/FormSubmissionRequestMultipleChoiceValueObjectRequestBody"},"numberValue":{"$ref":"#/components/schemas/FormSubmissionRequestNumberValueObjectRequestBody"},"signatureValue":{"$ref":"#/components/schemas/FormSubmissionRequestSignatureValueObjectRequestBody"},"tableValue":{"$ref":"#/components/schemas/FormSubmissionRequestTableValueObjectRequestBody"},"textValue":{"$ref":"#/components/schemas/FormSubmissionRequestTextValueObjectRequestBody"},"type":{"description":"Type of the qualification field.  Valid values: `number`, `text`, `multiple_choice`, `check_boxes`, `datetime`, `table`, `media`, `signature`","enum":["number","text","multiple_choice","check_boxes","datetime","table","media","signature"],"example":"text","type":"string"}},"required":["id","type"],"type":"object"},"QualificationRecordResponseObjectResponseBody":{"description":"Qualification Record response object.","properties":{"createdAtTime":{"description":"Creation time. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"expirationDate":{"description":"Expiration date. UTC timestamp in RFC 3339 format.","example":"2026-08-27T10:20:30Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"fields":{"description":"List of field inputs in a qualification record.","items":{"$ref":"#/components/schemas/QualificationFieldInputObjectResponseBody"},"type":"array"},"id":{"description":"ID of the qualification record.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"issueDate":{"description":"Issue/effective date. UTC timestamp in RFC 3339 format.","example":"2025-08-27T10:20:30Z","format":"date-time","type":"string"},"owner":{"$ref":"#/components/schemas/QualificationOwnerObjectResponseBody"},"qualificationType":{"$ref":"#/components/schemas/QualificationTypeReferenceObjectResponseBody"},"recordStatus":{"description":"Status of the qualification record.  Valid values: `active`, `archived`, `deleted`","enum":["active","archived","deleted"],"example":"active","type":"string"},"updatedAtTime":{"description":"Last updated time. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"updatedBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"}},"required":["createdAtTime","createdBy","fields","id","issueDate","owner","qualificationType","recordStatus","updatedAtTime","updatedBy"],"type":"object"},"QualificationTypeReferenceObjectResponseBody":{"description":"Qualification type (form template) reference.","properties":{"id":{"description":"ID of the qualification type (template UUID)","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"name":{"description":"Name of the qualification type","example":"Driver License","type":"string"},"revisionId":{"description":"ID of the qualification type revision (template revision UUID)","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"}},"required":["id"],"type":"object"},"QualificationTypeRequestObjectRequestBody":{"description":"Qualification type reference.","properties":{"id":{"description":"ID of the qualification type","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"}},"required":["id"],"type":"object"},"QualificationTypeResponseObjectResponseBody":{"description":"Qualification type response object.","properties":{"createdAtTime":{"description":"Creation time of the qualification type. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"},"entityType":{"description":"Owner entity type  Valid values: `worker`, `asset`","enum":["worker","asset"],"example":"worker","type":"string"},"fields":{"description":"List of fields in the qualification type.","items":{"$ref":"#/components/schemas/FormsFieldDefinitionObjectResponseBody"},"type":"array"},"id":{"description":"Unique identifier of the qualification type.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"name":{"description":"Name of the qualification type.","example":"Driver License","type":"string"},"revisionId":{"description":"Unique identifier of the qualification type revision.","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"updatedAtTime":{"description":"Update time of the qualification type. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"updatedBy":{"$ref":"#/components/schemas/FormsPolymorphicUserObjectResponseBody"}},"required":["createdAtTime","createdBy","entityType","fields","id","name","revisionId","updatedAtTime","updatedBy"],"type":"object"},"QualificationsArchiveQualificationRecordBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordRequestBody":{"description":"Qualification record ID to archive.","properties":{"id":{"description":"ID of the qualification record to archive.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"}},"required":["id"],"type":"object"},"QualificationsArchiveQualificationRecordServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsArchiveQualificationRecordUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordRequestBody":{"description":"Qualification record ID to delete.","properties":{"id":{"description":"ID of the qualification record to delete.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"}},"required":["id"],"type":"object"},"QualificationsDeleteQualificationRecordServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsDeleteQualificationRecordUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsResponseBody":{"properties":{"data":{"description":"List of qualification records.","items":{"$ref":"#/components/schemas/QualificationRecordResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"QualificationsGetQualificationRecordsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamResponseBody":{"properties":{"data":{"description":"List of qualification records.","items":{"$ref":"#/components/schemas/QualificationRecordResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"QualificationsGetQualificationRecordsStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationRecordsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesResponseBody":{"properties":{"data":{"description":"List of qualification types.","items":{"$ref":"#/components/schemas/QualificationTypeResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"QualificationsGetQualificationTypesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsGetQualificationTypesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordRequestBody":{"description":"Qualification record fields to update. All fields except id are optional.","example":{"id":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","issueDate":"2025-08-27T10:20:30Z","owner":{"entityType":"worker","id":"281474"}},"properties":{"expirationDate":{"description":"Expiration date. UTC timestamp in RFC 3339 format. Set to '1970-01-01T00:00:00Z' to clear existing expiration date.","example":"2026-08-27T10:20:30Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"fields":{"description":"Other custom fields in a qualification record. Only set fields that needs to be updated.","items":{"$ref":"#/components/schemas/QualificationRecordRequestFieldInputObjectRequestBody"},"type":"array"},"id":{"description":"ID of the qualification record to update.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"issueDate":{"description":"Issue/effective date. UTC timestamp in RFC 3339 format.","example":"2025-08-27T10:20:30Z","format":"date-time","type":"string"},"owner":{"$ref":"#/components/schemas/QualificationOwnerRequestObjectRequestBody"}},"required":["id"],"type":"object"},"QualificationsPatchQualificationRecordResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/QualificationRecordResponseObjectResponseBody"}},"required":["data"],"type":"object"},"QualificationsPatchQualificationRecordServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPatchQualificationRecordUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordRequestBody":{"description":"Qualification record fields to create. All fields defined as required in qualification type should be provided.","example":{"fields":[],"issueDate":"2025-08-27T10:20:30Z","owner":{"entityType":"worker","id":"281474"},"qualificationType":{"id":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7"}},"properties":{"expirationDate":{"description":"Expiration date. UTC timestamp in RFC 3339 format.","example":"2026-08-27T10:20:30Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"fields":{"description":"Other custom fields in a qualification record.","items":{"$ref":"#/components/schemas/QualificationRecordRequestFieldInputObjectRequestBody"},"type":"array"},"issueDate":{"description":"Issue/effective date. UTC timestamp in RFC 3339 format.","example":"2025-08-27T10:20:30Z","format":"date-time","type":"string"},"owner":{"$ref":"#/components/schemas/QualificationOwnerRequestObjectRequestBody"},"qualificationType":{"$ref":"#/components/schemas/QualificationTypeRequestObjectRequestBody"}},"required":["issueDate","owner","qualificationType"],"type":"object"},"QualificationsPostQualificationRecordResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/QualificationRecordResponseObjectResponseBody"}},"required":["data"],"type":"object"},"QualificationsPostQualificationRecordServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsPostQualificationRecordUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordRequestBody":{"description":"Qualification record ID to unarchive.","properties":{"id":{"description":"ID of the qualification record to unarchive.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"}},"required":["id"],"type":"object"},"QualificationsUnarchiveQualificationRecordServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QualificationsUnarchiveQualificationRecordUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"QuantityObjectResponseBody":{"description":"Quantity object for route capacity information","properties":{"capacityId":{"description":"The capacity identifier","example":"f1e2d3c4-b5a6-9870-fedc-ba0987654321","type":"string"},"quantity":{"description":"The quantity value","example":750,"format":"double","type":"number"}},"required":["capacityId","quantity"],"type":"object"},"ReadingDatapointRequestBody":{"description":"A single reading data point to be created.","properties":{"entityId":{"description":"Samsara entity ID. Required if externalId is not provided. In case of an asset, it’s the assetId. If the asset is not yet present in the system, it is required to create a new one via the /assets endpoint.","example":"123451234512345","type":"string"},"entityType":{"description":"The type of the entity (e.g., asset).  Valid values: `asset`","enum":["asset"],"example":"asset","type":"string"},"externalId":{"description":"An external ID in key:value format. Required if entityId is not provided. Use this to reference an asset by its external ID instead of the Samsara entity ID.","example":"maintenanceId:250020","type":"string"},"happenedAtTime":{"description":"The timestamp of when the reading happened in RFC 3339 format. happenedAtTime must not be older than the last known reading for the same series.","example":"2023-10-27T10:00:00Z","type":"string"},"readingId":{"description":"The ID of the reading, you can get it from the /readings/definitions endpoint.","example":"airInletPressure","type":"string"},"value":{"description":"The value of the reading. Can be any object. See the /readings/definitions endpoint for the value type for each reading.","example":"off"}},"required":["entityType","happenedAtTime","readingId","value"],"type":"object"},"ReadingDefinitionResponseBody":{"description":"Definition of a reading.","properties":{"category":{"description":"The category enumeration that this reading belongs to.","example":"smartTrailer","type":"string"},"description":{"description":"The human readable description for this reading. Translated to English.","example":"Engine Speed","type":"string"},"entityType":{"description":"Entity type of this reading.","example":"sensor","type":"string"},"enumValues":{"description":"Array of enumeration values","items":{"$ref":"#/components/schemas/EnumValueResponseBody"},"type":"array"},"grouping":{"$ref":"#/components/schemas/ReadingGroupingResponseBody"},"ingestionEnabled":{"description":"Indicates whether this reading can be ingested using the API.","example":true,"type":"boolean"},"label":{"description":"The label for this reading that is suitable to show to a user. Translated to English.","example":"engineRpm","type":"string"},"readingId":{"description":"The ID of the reading used to fetch time series data in other endpoints.","example":"12345","type":"string"},"type":{"description":"The type information for the reading. Contains the complete type structure including dataType, unit, enumValues, fields, etc.","example":"Ipsa id recusandae libero sit qui officiis."}},"required":["category","description","entityType","ingestionEnabled","label","readingId","type"],"type":"object"},"ReadingGroupingResponseBody":{"description":"The grouping this reading belongs to. Readings sharing a grouping measure the same property across different positions or components.","properties":{"id":{"description":"The ID of the grouping.","example":"brakeLiningRemaining","type":"string"},"label":{"description":"The label for the grouping that is suitable to show to a user. Translated to English.","example":"Brake Lining Remaining","type":"string"}},"required":["id","label"],"type":"object"},"ReadingHistoryResponseBody":{"description":"A history of reading values for an entity.","properties":{"entityId":{"description":"The ID of the entity this reading is for.","example":"123456","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"happenedAtTime":{"description":"The time in RFC 3339 format when the reading was measured.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The value of the reading.","example":"off"}},"required":["entityId"],"type":"object"},"ReadingSnapshotResponseBody":{"description":"A snapshot of a reading value at a point in time.","properties":{"entityId":{"description":"The ID of the entity this reading is for.","example":"123456","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"happenedAtTime":{"description":"The time in RFC 3339 format when the reading was measured.","example":"2020-01-27T07:06:25Z","type":"string"},"readingId":{"description":"The ID of the reading for which the data is being returned.","example":"engineSpeed","type":"string"},"value":{"description":"The value of the reading.","example":"off"}},"required":["entityId","readingId"],"type":"object"},"ReadingTriggerContinuousValueObjectRequestBody":{"description":"Threshold to alert on if reading is continuous, either enum or continuous threshold may be set.","properties":{"operation":{"description":"The operation to use when comparing the value to the threshold.  Valid values: `GREATER`, `INSIDE_RANGE`, `LESS`, `OUTSIDE_RANGE`","enum":["GREATER","INSIDE_RANGE","LESS","OUTSIDE_RANGE"],"example":"GREATER","type":"string"},"threshold":{"description":"The lower threshold of criticality.","example":20,"format":"int64","type":"integer"},"unit":{"description":"The unit of the threshold defined by reading type. If not provided base unit of the reading will be used.  Valid values: `ampere`, `bar`, `cad`, `celsius`, `chf`, `day`, `decimaldegrees`, `eur`, `fahrenheit`, `foot`, `gallon`, `gallonperkilogram`, `gallonsperhour`, `galpermi`, `gbp`, `gforce`, `gperliter`, `gperm`, `hertz`, `hour`, `imperialgallonperkilogram`, `impgallon`, `impgallonsperhour`, `impgalpermi`, `inch`, `kelvin`, `kgper100kmgaseousfuel`, `kgpergallon`, `kgperkm`, `kgperliter`, `kgpermi`, `kilogram`, `kilogramgaseousfuel`, `kilometer`, `kilopascal`, `kilowatthour`, `kmperhr`, `kmperl`, `kmperlgaseousfuel`, `lbpermi`, `liter`, `litergaseousfuel`, `literperkilogram`, `literpertonne`, `litersperhour`, `lper100km`, `lper100kmgaseousfuel`, `lperkm`, `lperm`, `meter`, `meterspersec`, `mile`, `milliknot`, `millisecond`, `millivolt`, `minute`, `mipergal`, `miperhr`, `miperimpgal`, `month`, `mpgusgalgaseousfuel`, `mpkggaseousfuel`, `mxn`, `percent`, `pound`, `poundsPerSquareInch`, `poundspergallon`, `poundsperliter`, `rpm`, `second`, `usd`, `usgallongaseousfuel`, `volt`, `voltAmpere`, `voltAmpereReactive`, `watt`, `watthour`, `week`","enum":["ampere","bar","cad","celsius","chf","day","decimaldegrees","eur","fahrenheit","foot","gallon","gallonperkilogram","gallonsperhour","galpermi","gbp","gforce","gperliter","gperm","hertz","hour","imperialgallonperkilogram","impgallon","impgallonsperhour","impgalpermi","inch","kelvin","kgper100kmgaseousfuel","kgpergallon","kgperkm","kgperliter","kgpermi","kilogram","kilogramgaseousfuel","kilometer","kilopascal","kilowatthour","kmperhr","kmperl","kmperlgaseousfuel","lbpermi","liter","litergaseousfuel","literperkilogram","literpertonne","litersperhour","lper100km","lper100kmgaseousfuel","lperkm","lperm","meter","meterspersec","mile","milliknot","millisecond","millivolt","minute","mipergal","miperhr","miperimpgal","month","mpgusgalgaseousfuel","mpkggaseousfuel","mxn","percent","pound","poundsPerSquareInch","poundspergallon","poundsperliter","rpm","second","usd","usgallongaseousfuel","volt","voltAmpere","voltAmpereReactive","watt","watthour","week"],"example":"celsius","type":"string"},"upperThreshold":{"description":"The upper threshold of criticality. Required for RANGE operations.","example":30,"format":"int64","type":"integer"}},"required":["operation","threshold"],"type":"object"},"ReadingTriggerContinuousValueObjectResponseBody":{"description":"Threshold to alert on if reading is continuous, either enum or continuous threshold may be set.","properties":{"operation":{"description":"The operation to use when comparing the value to the threshold.  Valid values: `GREATER`, `INSIDE_RANGE`, `LESS`, `OUTSIDE_RANGE`","enum":["GREATER","INSIDE_RANGE","LESS","OUTSIDE_RANGE"],"example":"GREATER","type":"string"},"threshold":{"description":"The lower threshold of criticality.","example":20,"format":"int64","type":"integer"},"unit":{"description":"The unit of the threshold defined by reading type. If not provided base unit of the reading will be used.  Valid values: `ampere`, `bar`, `cad`, `celsius`, `chf`, `day`, `decimaldegrees`, `eur`, `fahrenheit`, `foot`, `gallon`, `gallonperkilogram`, `gallonsperhour`, `galpermi`, `gbp`, `gforce`, `gperliter`, `gperm`, `hertz`, `hour`, `imperialgallonperkilogram`, `impgallon`, `impgallonsperhour`, `impgalpermi`, `inch`, `kelvin`, `kgper100kmgaseousfuel`, `kgpergallon`, `kgperkm`, `kgperliter`, `kgpermi`, `kilogram`, `kilogramgaseousfuel`, `kilometer`, `kilopascal`, `kilowatthour`, `kmperhr`, `kmperl`, `kmperlgaseousfuel`, `lbpermi`, `liter`, `litergaseousfuel`, `literperkilogram`, `literpertonne`, `litersperhour`, `lper100km`, `lper100kmgaseousfuel`, `lperkm`, `lperm`, `meter`, `meterspersec`, `mile`, `milliknot`, `millisecond`, `millivolt`, `minute`, `mipergal`, `miperhr`, `miperimpgal`, `month`, `mpgusgalgaseousfuel`, `mpkggaseousfuel`, `mxn`, `percent`, `pound`, `poundsPerSquareInch`, `poundspergallon`, `poundsperliter`, `rpm`, `second`, `usd`, `usgallongaseousfuel`, `volt`, `voltAmpere`, `voltAmpereReactive`, `watt`, `watthour`, `week`","enum":["ampere","bar","cad","celsius","chf","day","decimaldegrees","eur","fahrenheit","foot","gallon","gallonperkilogram","gallonsperhour","galpermi","gbp","gforce","gperliter","gperm","hertz","hour","imperialgallonperkilogram","impgallon","impgallonsperhour","impgalpermi","inch","kelvin","kgper100kmgaseousfuel","kgpergallon","kgperkm","kgperliter","kgpermi","kilogram","kilogramgaseousfuel","kilometer","kilopascal","kilowatthour","kmperhr","kmperl","kmperlgaseousfuel","lbpermi","liter","litergaseousfuel","literperkilogram","literpertonne","litersperhour","lper100km","lper100kmgaseousfuel","lperkm","lperm","meter","meterspersec","mile","milliknot","millisecond","millivolt","minute","mipergal","miperhr","miperimpgal","month","mpgusgalgaseousfuel","mpkggaseousfuel","mxn","percent","pound","poundsPerSquareInch","poundspergallon","poundsperliter","rpm","second","usd","usgallongaseousfuel","volt","voltAmpere","voltAmpereReactive","watt","watthour","week"],"example":"celsius","type":"string"},"upperThreshold":{"description":"The upper threshold of criticality. Required for RANGE operations.","example":30,"format":"int64","type":"integer"}},"required":["operation","threshold"],"type":"object"},"ReadingTriggerDetailsObjectRequestBody":{"description":"Details specific to reading based Trigger, readings can be discovered through the Readings API.","properties":{"continuousThreshold":{"$ref":"#/components/schemas/ReadingTriggerContinuousValueObjectRequestBody"},"entityType":{"description":"The type of the entity associated with the reading.","example":"Asset","type":"string"},"enumThreshold":{"$ref":"#/components/schemas/ReadingTriggerEnumValueObjectRequestBody"},"id":{"description":"The ID of the reading.","example":"engineTemperature","type":"string"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["entityType","id","minDurationMilliseconds"],"type":"object"},"ReadingTriggerDetailsObjectResponseBody":{"description":"Details specific to reading based Trigger, readings can be discovered through the Readings API.","properties":{"continuousThreshold":{"$ref":"#/components/schemas/ReadingTriggerContinuousValueObjectResponseBody"},"entityType":{"description":"The type of the entity associated with the reading.","example":"Asset","type":"string"},"enumThreshold":{"$ref":"#/components/schemas/ReadingTriggerEnumValueObjectResponseBody"},"id":{"description":"The ID of the reading.","example":"engineTemperature","type":"string"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["entityType","id","minDurationMilliseconds"],"type":"object"},"ReadingTriggerDetailsResponseBody":{"description":"Details specific to Reading Triggers.","properties":{"asset":{"$ref":"#/components/schemas/alertObjectAssetResponseBody"},"continuousThreshold":{"$ref":"#/components/schemas/ContinuousReadingAlertThresholdResponseBody"},"enumThreshold":{"$ref":"#/components/schemas/EnumReadingAlertThresholdResponseBody"},"id":{"description":"The ID of the reading.","example":"engineTemperature","type":"string"}},"required":["id"],"type":"object"},"ReadingTriggerEnumValueObjectRequestBody":{"description":"Enum value to alert on if reading is discrete, either enum or continuous threshold may be set.","properties":{"number":{"description":"The numeric representation of the enum value.","example":2,"format":"int64","type":"integer"},"symbol":{"description":"The symbol representation of the enum value.","example":"HIGH","type":"string"}},"type":"object"},"ReadingTriggerEnumValueObjectResponseBody":{"description":"Enum value to alert on if reading is discrete, either enum or continuous threshold may be set.","properties":{"number":{"description":"The numeric representation of the enum value.","example":2,"format":"int64","type":"integer"},"symbol":{"description":"The symbol representation of the enum value.","example":"HIGH","type":"string"}},"type":"object"},"ReadingsGetReadingsHistoryBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryResponseBody":{"properties":{"data":{"description":"A list of reading data points.","items":{"$ref":"#/components/schemas/ReadingHistoryResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReadingsGetReadingsHistoryServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsHistoryUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotResponseBody":{"properties":{"data":{"description":"A list of reading data points.","items":{"$ref":"#/components/schemas/ReadingSnapshotResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReadingsGetReadingsSnapshotServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsGetReadingsSnapshotUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsResponseBody":{"properties":{"data":{"description":"A list of reading definitions.","items":{"$ref":"#/components/schemas/ReadingDefinitionResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReadingsListReadingsDefinitionsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsListReadingsDefinitionsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsRequestBody":{"properties":{"data":{"description":"An array of readings data points to create.","items":{"$ref":"#/components/schemas/ReadingDatapointRequestBody"},"maxItems":1000,"type":"array"}},"required":["data"],"type":"object"},"ReadingsPostReadingsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReadingsPostReadingsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RecipientObjectRequestBody":{"description":"Recipient of an Action. One of userId contactId or roleId needs to be set.","properties":{"contactId":{"description":"The ID of the contact.","example":"1234","type":"string"},"notificationTypes":{"description":"How the user/contact/role should be notified.","example":["email","push"],"items":{"description":"The type of notification.  Valid values: `push`, `sms`, `email`","enum":["push","sms","email"],"example":"push","type":"string"},"type":"array"},"roleId":{"description":"The ID of the role.","example":"67004a16-be3c-4ef6-a51b-1c45a2c27a92","type":"string"},"type":{"description":"The type of recipients  Valid values: `user`, `contact`, `role`","enum":["user","contact","role"],"example":"user","type":"string"},"userId":{"description":"The ID of the user.","example":"1234","type":"string"}},"required":["type"],"type":"object"},"RecipientObjectResponseBody":{"description":"Recipient of an Action. One of userId contactId or roleId needs to be set.","properties":{"contactId":{"description":"The ID of the contact.","example":"1234","type":"string"},"notificationTypes":{"description":"How the user/contact/role should be notified.","example":["sms","email","email"],"items":{"description":"The type of notification.  Valid values: `push`, `sms`, `email`","enum":["push","sms","email"],"example":"push","type":"string"},"type":"array"},"roleId":{"description":"The ID of the role.","example":"67004a16-be3c-4ef6-a51b-1c45a2c27a92","type":"string"},"type":{"description":"The type of recipients  Valid values: `user`, `contact`, `role`","enum":["user","contact","role"],"example":"user","type":"string"},"userId":{"description":"The ID of the user.","example":"1234","type":"string"}},"required":["type"],"type":"object"},"RecoveryPhotoResponseBody":{"description":"A photo associated with an asset recovery event.","properties":{"start_ms":{"description":"Timestamp of when the photo was captured, in milliseconds since epoch.","example":1609459200000,"format":"int64","type":"integer"},"status":{"description":"The availability status of the photo.  Valid values: `EXISTS`, `NOT_FOUND`, `SERVER_ERROR`","enum":["EXISTS","NOT_FOUND","SERVER_ERROR"],"example":"EXISTS","type":"string"},"url":{"description":"A temporary presigned URL for the recovery photo. This URL expires at the time indicated by url_expires_at_ms.","example":"https://s3.amazonaws.com/samsara-recovery-photos/example.jpg","type":"string"},"url_expires_at_ms":{"description":"Timestamp when the presigned URL expires, in milliseconds since epoch.","example":1609462800000,"format":"int64","type":"integer"}},"required":["start_ms","status","url","url_expires_at_ms"],"type":"object"},"RecoveryStateResponseBody":{"description":"A recovered asset with its recovery details, including recovery photos.","properties":{"id":{"description":"The unique Samsara ID of the asset.","example":"12345","type":"string"},"name":{"description":"The human-readable name of the asset.","example":"Trailer-A1234","type":"string"},"note":{"description":"A note associated with the recovery.","example":"Asset was last seen at warehouse A","type":"string"},"notification_recipients":{"description":"Users subscribed to location update notifications for this asset.","items":{"$ref":"#/components/schemas/NotificationRecipientResponseResponseBody"},"type":"array"},"recovery_photos":{"description":"Photos associated with the recovery event. URLs are temporary and expire at url_expires_at_ms.","items":{"$ref":"#/components/schemas/RecoveryPhotoResponseBody"},"type":"array"},"update_source":{"description":"The source of the last update to this recovery state. Defaults to `dashboard` if not explicitly set.  Valid values: `dashboard`, `api`","enum":["dashboard","api"],"example":"dashboard","type":"string"},"updated_at_ms":{"description":"Timestamp when the recovery state was last updated, in milliseconds since epoch.","example":1609459200000,"format":"int64","type":"integer"},"updated_by_user_id":{"description":"The ID of the user who last updated the recovery state.","example":1234,"format":"int64","type":"integer"}},"required":["id","name","updated_at_ms"],"type":"object"},"ReeferTemperatureResponseBody":{"description":"Details specific to Reefer Temperature.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"ReplaceTagRequest":{"properties":{"addresses":{"description":"The addresses that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"assets":{"description":"The trailers, unpowered, and powered assets that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"drivers":{"description":"The drivers that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"machines":{"description":"The machines that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"name":{"description":"Name of this tag.","example":"California","maxLength":191,"minLength":1,"type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"},"sensors":{"description":"The sensors that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"},"vehicles":{"description":"The vehicles that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObjectId"},"type":"array"}},"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsRequestBody":{"description":"Request body for the ReplaceWarrantyAssetAssignments action","properties":{"assets":{"description":"The full desired asset set for the warranty.","items":{"$ref":"#/components/schemas/EntityReplaceWarrantyAssetAssignmentsWarrantyAssetAssignmentInputTypeRequestBody"},"type":"array"}},"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsResponseObjectTypeResponseBody"}},"required":["data"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReplaceWarrantyAssetAssignmentsResponseObjectTypeResponseBody":{"description":"Response for the ReplaceWarrantyAssetAssignments action","properties":{"data":{"description":"The resulting asset assignments after the replace.","items":{"$ref":"#/components/schemas/EntityReplaceWarrantyAssetAssignmentsWarrantyAssetAssignmentTypeResponseBody"},"type":"array"}},"type":"object"},"ReportConfigObjectResponseBody":{"properties":{"columns":{"description":"Columns included in the report configuration.","items":{"$ref":"#/components/schemas/columnResponseBody"},"type":"array"},"datasetId":{"description":"ID of dataset for report configuration.","example":"Assets","type":"string"},"filters":{"$ref":"#/components/schemas/filtersResponseBody"},"id":{"description":"ID of report configuration.","example":"4f71fd67-54f0-41de-991c-ee1e031134d1","type":"string"},"name":{"description":"Name of report configuration.","example":"Asset Report","type":"string"}},"required":["columns","datasetId","id","name"],"type":"object"},"ReportRunObjectResponseBody":{"description":"Base custom report run response object.","properties":{"createdAtTime":{"description":"Time when the report run was created in RFC3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"id":{"description":"ID of report run.","example":"4f71fd67-54f0-41de-991c-ee1e031134d1","type":"string"},"status":{"description":"Status of the report run.  Valid values: `complete`, `pending`, `failed`, `canceled`, `unknown`","enum":["complete","pending","failed","canceled","unknown"],"example":"complete","type":"string"},"updatedAtTime":{"description":"Time when the report run was last updated in RFC3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["createdAtTime","id","status","updatedAtTime"],"type":"object"},"ReportsCreateReportRunBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunRequestBody":{"description":"Contains information required to trigger report run","properties":{"reportConfig":{"$ref":"#/components/schemas/createReportConfigObjectRequestBody"}},"required":["reportConfig"],"type":"object"},"ReportsCreateReportRunResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/ReportRunObjectResponseBody"}},"required":["data"],"type":"object"},"ReportsCreateReportRunServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsCreateReportRunUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsDatasetFieldResponseBody":{"description":"Information about a dataset field.","properties":{"dataType":{"description":"Data type of the field.  Valid values: `string`, `integer`, `float`, `timestamp`, `unknown`","enum":["string","integer","float","timestamp","unknown"],"example":"string","type":"string"},"displayName":{"description":"Display name of the field.","example":"Asset: Name","type":"string"},"name":{"description":"Name of the field.","example":"Name","type":"string"},"unit":{"description":"Unit of the field.  Valid values: `amperes`, `bars`, `cad`, `chf`, `days`, `decimalDegrees`, `degreesCelsius`, `degreesFahrenheit`, `eur`, `feet`, `gForces`, `gallons`, `gallonsPerHour`, `gallonsPerKilogram`, `gallonsPerMile`, `gbp`, `gramsPerLiter`, `gramsPerMeter`, `hertz`, `hours`, `imperialGallons`, `imperialGallonsPerHour`, `imperialGallonsPerKilogram`, `imperialGallonsPerMile`, `inches`, `kelvins`, `kilograms`, `kilogramsGaseousFuel`, `kilogramsPer100KilometerGaseousFuel`, `kilogramsPerGallon`, `kilogramsPerKilometer`, `kilogramsPerLiter`, `kilogramsPerMile`, `kilometers`, `kilometersPerHour`, `kilometersPerLiter`, `kilometersPerLiterGaseousFuel`, `kilopascals`, `kilowattHours`, `liters`, `litersGaseousFuel`, `litersPer100Kilometers`, `litersPer100KilometersGaseousFuel`, `litersPerHour`, `litersPerKilogram`, `litersPerKilometer`, `litersPerMeter`, `litersPerTonne`, `meters`, `metersPerSecond`, `miles`, `milesPerGallon`, `milesPerHour`, `milesPerImperialGallon`, `milesPerKilogramGaseousFuel`, `milesPerUSGallonGaseousFuel`, `milliknots`, `milliseconds`, `millivolts`, `minutes`, `months`, `mxn`, `percents`, `pounds`, `poundsPerGallon`, `poundsPerLiter`, `poundsPerMile`, `poundsPerSquareInch`, `revolutionsPerMinute`, `seconds`, `unknown`, `usGallonsGaseousFuel`, `usd`, `voltAmperes`, `voltAmperesReactive`, `volts`, `wattHours`, `watts`, `weeks`","enum":["amperes","bars","cad","chf","days","decimalDegrees","degreesCelsius","degreesFahrenheit","eur","feet","gForces","gallons","gallonsPerHour","gallonsPerKilogram","gallonsPerMile","gbp","gramsPerLiter","gramsPerMeter","hertz","hours","imperialGallons","imperialGallonsPerHour","imperialGallonsPerKilogram","imperialGallonsPerMile","inches","kelvins","kilograms","kilogramsGaseousFuel","kilogramsPer100KilometerGaseousFuel","kilogramsPerGallon","kilogramsPerKilometer","kilogramsPerLiter","kilogramsPerMile","kilometers","kilometersPerHour","kilometersPerLiter","kilometersPerLiterGaseousFuel","kilopascals","kilowattHours","liters","litersGaseousFuel","litersPer100Kilometers","litersPer100KilometersGaseousFuel","litersPerHour","litersPerKilogram","litersPerKilometer","litersPerMeter","litersPerTonne","meters","metersPerSecond","miles","milesPerGallon","milesPerHour","milesPerImperialGallon","milesPerKilogramGaseousFuel","milesPerUSGallonGaseousFuel","milliknots","milliseconds","millivolts","minutes","months","mxn","percents","pounds","poundsPerGallon","poundsPerLiter","poundsPerMile","poundsPerSquareInch","revolutionsPerMinute","seconds","unknown","usGallonsGaseousFuel","usd","voltAmperes","voltAmperesReactive","volts","wattHours","watts","weeks"],"example":"kilometersPerHour","type":"string"}},"required":["dataType","displayName","name"],"type":"object"},"ReportsDatasetResponseBody":{"description":"Information about a dataset.","properties":{"displayName":{"description":"Display name of the dataset.","example":"Assets","type":"string"},"fields":{"description":"Fields within the dataset.","items":{"$ref":"#/components/schemas/ReportsDatasetFieldResponseBody"},"type":"array"},"hasTimeRangeFilter":{"description":"Indicates if the dataset has a time range filter.","example":true,"type":"boolean"},"id":{"description":"Unique ID of the dataset.","example":"Assets","type":"string"},"timeRangeLimitDays":{"description":"Time range limit for the dataset measured in days.","example":31,"format":"int64","type":"integer"}},"required":["displayName","fields","hasTimeRangeFilter","id"],"type":"object"},"ReportsGetDatasetsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsResponseBody":{"properties":{"data":{"description":"List of datasets.","items":{"$ref":"#/components/schemas/ReportsDatasetResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReportsGetDatasetsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetDatasetsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsResponseBody":{"properties":{"data":{"description":"Array of report configuration objects.","items":{"$ref":"#/components/schemas/ReportConfigObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReportsGetReportConfigsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportConfigsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/GetReportRunsDataObjectResponseBody"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReportsGetReportRunDataServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunDataUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsResponseBody":{"properties":{"data":{"description":"Array of report run objects.","items":{"$ref":"#/components/schemas/ReportRunObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"ReportsGetReportRunsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ReportsGetReportRunsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsRequestBody":{"description":"Request body for resolving a driver assignment by driver name and vehicle ID.","properties":{"driverName":{"description":"The full name of the driver to resolve.","example":"Jane Doe","type":"string"},"vehicleId":{"description":"The vehicle ID. This can be either a unique Samsara ID or an external ID for the vehicle.","example":"281474978683353","type":"string"}},"required":["driverName","vehicleId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResponseBodyResponseBody"}},"required":["data"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResolveAssignmentByDetailsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolveAssignmentByDetailsResponseBodyResponseBody":{"description":"Response body containing the resolved driver information.","properties":{"driverId":{"description":"The resolved Samsara driver ID.","example":"1234567","type":"string"},"driverName":{"description":"The matched driver name.","example":"Jane Doe","type":"string"}},"required":["driverId","driverName"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceRequestBody":{"description":"Request body for the ResolvePreventiveMaintenance action","properties":{"resolvedAt":{"description":"RFC3339 time when the maintenance was resolved. Defaults to the current time if not provided.","example":"2026-08-14T09:30:00Z","type":"string"},"resolvedAtEngineHours":{"description":"Engine hours reading at the time of resolution.","example":4120,"format":"int64","type":"integer"},"resolvedAtOdometer":{"description":"Odometer reading at the time of resolution. Measured in meters.","example":120700800,"format":"int64","type":"integer"}},"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceResponseObjectTypeResponseBody"}},"required":["data"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ResolvePreventiveMaintenanceResponseObjectTypeResponseBody":{"description":"Response for the ResolvePreventiveMaintenance action","type":"object"},"ResolvedBy":{"description":"Information about the user who is resolving a defect.","properties":{"id":{"description":"The Id of user who is resolving the defect.","example":"11","type":"string"},"type":{"description":"The type of user who is resolving the defect. Must be \"mechanic\".","enum":["mechanic"],"example":"mechanic","type":"string"}},"required":["id","type"],"type":"object"},"ReverseGeoObjectResponseBody":{"description":"Reverse geocoded information","properties":{"formattedLocation":{"description":"Formatted address of the reverse geocoding data.","example":"850 Made Up Lane, Orange, CA","type":"string"}},"type":"object"},"RidershipPassengerIdentifierInputRequestBody":{"description":"An identifier used to recognize the passenger, such as an RFID card value. This is separate from the passenger's external IDs.","properties":{"status":{"default":"active","description":"Whether the identifier is active or inactive. Defaults to `active`.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"type":{"description":"The type of identifier.  Valid values: `rfid`, `unknown`","enum":["rfid","unknown"],"example":"rfid","type":"string"},"value":{"description":"Value of the identifier, such as the value read from an RFID card.","example":"0418A2BC93","type":"string"}},"required":["status","type","value"],"type":"object"},"RidershipPassengerIdentifierObjectResponseBody":{"description":"An identifier used to recognize the passenger, such as an RFID card value.","properties":{"id":{"description":"The unique Samsara ID of the identifier.","example":"b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e","type":"string"},"status":{"description":"Whether the identifier is active or inactive.  Valid values: `active`, `inactive`, `unknown`","enum":["active","inactive","unknown"],"example":"active","type":"string"},"type":{"description":"The type of identifier.  Valid values: `rfid`, `unknown`","enum":["rfid","unknown"],"example":"rfid","type":"string"},"value":{"description":"Value of the identifier, such as the value read from an RFID card.","example":"0418A2BC93","type":"string"}},"required":["id","status","type","value"],"type":"object"},"RidershipPassengerObjectResponseBody":{"description":"A passenger and their ridership details.","properties":{"classification":{"description":"Passenger grade level: `pk1`–`pk4` are pre-kindergarten categories, `k` is kindergarten, and `grade1`–`grade12` are grades 1–12.","example":"grade5","type":"string"},"createdAtTime":{"description":"The time the passenger was created in RFC 3339 format.","example":"2024-11-15T10:00:00Z","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Customer-defined IDs that link this passenger to another system, such as {\"student\": \"STU-001\"}.","type":"object"},"firstName":{"description":"First name of the passenger.","example":"John","type":"string"},"id":{"description":"The unique Samsara ID of the passenger.","example":"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","type":"string"},"identifiers":{"description":"List of identifiers associated with the passenger.","items":{"$ref":"#/components/schemas/RidershipPassengerIdentifierObjectResponseBody"},"type":"array"},"isActive":{"description":"Whether the passenger is active.","example":true,"type":"boolean"},"lastName":{"description":"Last name of the passenger.","example":"Doe","type":"string"},"specialInstructions":{"$ref":"#/components/schemas/RidershipPassengerSpecialInstructionsObjectResponseBody"},"tagIds":{"description":"Samsara IDs of the tags assigned to this passenger.","example":["5678","9012"],"items":{"description":"Samsara tag ID, represented as a string.","example":"5678","type":"string"},"type":"array"},"updatedAtTime":{"description":"The time the passenger was last updated in RFC 3339 format.","example":"2024-11-15T10:30:00Z","type":"string"}},"required":["createdAtTime","firstName","id","isActive","lastName","updatedAtTime"],"type":"object"},"RidershipPassengerSpecialInstructionsInputRequestBody":{"description":"Special handling flags for the passenger. Omitted flags default to false.","properties":{"isGuardianRequired":{"default":false,"description":"Whether a guardian is required for the passenger.","example":false,"type":"boolean"},"isSpecialEducation":{"default":false,"description":"Whether the passenger requires special education accommodations.","example":false,"type":"boolean"}},"type":"object"},"RidershipPassengerSpecialInstructionsObjectResponseBody":{"description":"Special instructions for the passenger.","properties":{"isGuardianRequired":{"description":"Whether a guardian is required for the passenger.","example":false,"type":"boolean"},"isSpecialEducation":{"description":"Whether the passenger requires special education accommodations.","example":false,"type":"boolean"}},"type":"object"},"RidershipPassengersCreateRidershipPassengerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerRequestBody":{"properties":{"classification":{"description":"Passenger grade level: `pk1`–`pk4` are pre-kindergarten categories, `k` is kindergarten, and `grade1`–`grade12` are grades 1–12. Use `unknown` when the grade level is not known.  Valid values: `unknown`, `pk1`, `pk2`, `pk3`, `pk4`, `k`, `grade1`, `grade2`, `grade3`, `grade4`, `grade5`, `grade6`, `grade7`, `grade8`, `grade9`, `grade10`, `grade11`, `grade12`","enum":["unknown","pk1","pk2","pk3","pk4","k","grade1","grade2","grade3","grade4","grade5","grade6","grade7","grade8","grade9","grade10","grade11","grade12"],"example":"grade5","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Customer-defined IDs that link this passenger to another system, such as {\"student\": \"STU-001\"}.","type":"object"},"firstName":{"description":"Passenger's first name. Maximum 100 characters.","example":"John","type":"string"},"identifiers":{"description":"Identifiers used to recognize the passenger, such as RFID card values. Maximum 10.","items":{"$ref":"#/components/schemas/RidershipPassengerIdentifierInputRequestBody"},"type":"array"},"lastName":{"description":"Passenger's last name. Maximum 100 characters.","example":"Doe","type":"string"},"specialInstructions":{"$ref":"#/components/schemas/RidershipPassengerSpecialInstructionsInputRequestBody"},"tagIds":{"description":"Up to 10 Samsara tag IDs to assign to the passenger; external IDs are not supported here. Omit or send `[]` to create a passenger without tags. If your API token is restricted to certain tags, every tag must be within its scope.","example":["5678","9012"],"items":{"description":"Samsara tag ID, represented as a string.","example":"5678","type":"string"},"type":"array"}},"required":["firstName","lastName"],"type":"object"},"RidershipPassengersCreateRidershipPassengerResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RidershipPassengerObjectResponseBody"}},"required":["data"],"type":"object"},"RidershipPassengersCreateRidershipPassengerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersCreateRidershipPassengerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersDeleteRidershipPassengerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RidershipPassengerObjectResponseBody"}},"required":["data"],"type":"object"},"RidershipPassengersGetRidershipPassengerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersGetRidershipPassengerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersResponseBody":{"properties":{"data":{"description":"List of ridership passengers","items":{"$ref":"#/components/schemas/RidershipPassengerObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"RidershipPassengersListRidershipPassengersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersListRidershipPassengersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerRequestBody":{"properties":{"classification":{"description":"Passenger grade level: `pk1`–`pk4` are pre-kindergarten categories, `k` is kindergarten, and `grade1`–`grade12` are grades 1–12. Use `unknown` when the grade level is not known.  Valid values: `unknown`, `pk1`, `pk2`, `pk3`, `pk4`, `k`, `grade1`, `grade2`, `grade3`, `grade4`, `grade5`, `grade6`, `grade7`, `grade8`, `grade9`, `grade10`, `grade11`, `grade12`","enum":["unknown","pk1","pk2","pk3","pk4","k","grade1","grade2","grade3","grade4","grade5","grade6","grade7","grade8","grade9","grade10","grade11","grade12"],"example":"grade5","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"Customer-defined IDs that link this passenger to another system, such as {\"student\": \"STU-001\"}.","type":"object"},"firstName":{"description":"Passenger's first name. Maximum 100 characters.","example":"John","type":"string"},"identifiers":{"description":"Identifiers used to recognize the passenger, such as RFID card values. Maximum 10.","items":{"$ref":"#/components/schemas/RidershipPassengerIdentifierInputRequestBody"},"type":"array"},"lastName":{"description":"Passenger's last name. Maximum 100 characters.","example":"Doe","type":"string"},"specialInstructions":{"$ref":"#/components/schemas/RidershipPassengerSpecialInstructionsInputRequestBody"},"tagIds":{"description":"Replaces the passenger's tags with up to 10 Samsara tag IDs; external IDs are not supported here. Omit to keep existing tags, or send `[]` to remove all tags. If your API token is restricted to certain tags, tags outside its scope are kept and can't be added.","example":["5678","9012"],"items":{"description":"Samsara tag ID, represented as a string.","example":"5678","type":"string"},"type":"array"}},"required":["firstName","lastName"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RidershipPassengerObjectResponseBody"}},"required":["data"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipPassengersUpdateRidershipPassengerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupObjectResponseBody":{"description":"A ridership route setup representing planned passenger assignments.","properties":{"createdAtTime":{"description":"The time the route setup was created in RFC 3339 format.","example":"2024-11-15T10:00:00Z","type":"string"},"passengers":{"description":"List of passenger assignments.","items":{"$ref":"#/components/schemas/RidershipRouteSetupPassengerObjectResponseBody"},"type":"array"},"routeId":{"description":"Samsara ID of the Routing API route associated with this passenger setup.","example":"123456","type":"string"},"updatedAtTime":{"description":"The time the route setup was last updated in RFC 3339 format.","example":"2024-11-15T10:30:00Z","type":"string"}},"required":["createdAtTime","passengers","routeId","updatedAtTime"],"type":"object"},"RidershipRouteSetupPassengerInputRequestBody":{"description":"A passenger assignment for a route.","properties":{"dropOffStopId":{"description":"Drop-off stop task ID from the Routing API, or an external ID such as `stopKey:stop-456`. Omit to leave the drop-off stop unspecified.","example":"790","type":"string"},"passengerId":{"description":"The Samsara UUID of the passenger, or an external ID in `key:value` format. For example, `student:STU-001`.","example":"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","type":"string"},"pickUpStopId":{"description":"Pickup stop task ID from the Routing API, or an external ID such as `stopKey:stop-123`. Omit to leave the pickup stop unspecified.","example":"789","type":"string"}},"required":["passengerId"],"type":"object"},"RidershipRouteSetupPassengerObjectResponseBody":{"description":"A passenger assignment within a route setup.","properties":{"dropOffStopId":{"description":"Routing API stop task ID for the passenger's drop-off. Omitted when no drop-off stop is assigned.","example":"790","type":"string"},"passengerId":{"description":"The Samsara UUID of the passenger.","example":"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","type":"string"},"pickUpStopId":{"description":"Routing API stop task ID for the passenger's pickup. Omitted when no pickup stop is assigned.","example":"789","type":"string"}},"required":["passengerId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupRequestBody":{"properties":{"passengers":{"description":"Passenger assignments for the route, with each passenger listed once.","items":{"$ref":"#/components/schemas/RidershipRouteSetupPassengerInputRequestBody"},"type":"array"},"routeId":{"description":"The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`.","example":"123456","type":"string"}},"required":["passengers","routeId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RidershipRouteSetupObjectResponseBody"}},"required":["data"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsCreateRidershipRouteSetupUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsDeleteRidershipRouteSetupUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RidershipRouteSetupObjectResponseBody"}},"required":["data"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsGetRidershipRouteSetupUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsResponseBody":{"properties":{"data":{"description":"List of ridership route setups","items":{"$ref":"#/components/schemas/RidershipRouteSetupObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsListRidershipRouteSetupsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody":{"properties":{"passengers":{"description":"Passenger assignments for the route, with each passenger listed once.","items":{"$ref":"#/components/schemas/RidershipRouteSetupPassengerInputRequestBody"},"type":"array"}},"required":["passengers"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/RidershipRouteSetupObjectResponseBody"}},"required":["data"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RidershipRouteSetupsUpdateRidershipRouteSetupUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RollingStopDetectionAlertSettingsObjectResponseBody":{"description":"AI event detection settings for the rolling stop behavior. Detection is available in vehicles with compatible dash cams.","properties":{"isEnabled":{"description":"Indicates whether AI event detection for rolling stops is turned on.","example":true,"type":"boolean"},"speedingThresholdMph":{"description":"Alert when speed is over this many miles per hour.","example":0,"format":"double","type":"number"}},"type":"object"},"RouteChangesResponseBody":{"description":"A diff of the changes for a route update.","properties":{"after":{"$ref":"#/components/schemas/MinimalRouteAuditLogsResponseBody"},"before":{"$ref":"#/components/schemas/MinimalRouteAuditLogsResponseBody"}},"required":["after","before"],"type":"object"},"RouteDriverObjectResponseBody":{"description":"A driver object. This object is only returned if the route is assigned to a driver.","properties":{"id":{"description":"ID of the driver","example":"12345","type":"string"},"name":{"description":"Name of the driver","example":"Driver Bob","type":"string"}},"required":["id"],"type":"object"},"RouteEquipmentProfileObjectRequestBody":{"description":"Routing equipment profile association for a route.","properties":{"hubId":{"description":"ID of the hub that the equipment profile belongs to. Optional; only needed to disambiguate when an organization has multiple hubs with equipment profiles that share the same name. If provided, must match the equipment profile's own hub or the request is rejected.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10393","type":"string"},"id":{"description":"ID of the routing equipment profile (e.g. a HAZMAT profile).","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"}},"required":["id"],"type":"object"},"RouteEquipmentProfileObjectResponseBody":{"description":"Routing equipment profile association for a route.","properties":{"hubId":{"description":"ID of the hub that the equipment profile belongs to. Optional; only needed to disambiguate when an organization has multiple hubs with equipment profiles that share the same name. If provided, must match the equipment profile's own hub or the request is rejected.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10393","type":"string"},"id":{"description":"ID of the routing equipment profile (e.g. a HAZMAT profile).","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"}},"required":["id"],"type":"object"},"RouteEventDetailsResponseBody":{"description":"Contains additional information specific to the event type.","properties":{"stopEtaUpdated":{"$ref":"#/components/schemas/StopEtaUpdatedEventDetailsResponseBody"},"stopTaskCompleted":{"$ref":"#/components/schemas/StopTaskCompletedEventDetailsResponseBody"},"stopTaskSkipped":{"$ref":"#/components/schemas/StopTaskSkippedEventDetailsResponseBody"}},"type":"object"},"RouteEventResponseResponseBody":{"description":"A single route event.","properties":{"eventDetails":{"$ref":"#/components/schemas/RouteEventDetailsResponseBody"},"eventTime":{"description":"Time the event was processed in RFC 3339 format","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"eventType":{"description":"Type of the event that occurred.  Valid values: `stopArrived`, `stopCompleted`, `stopEnRoute`, `stopSkipped`, `stopTaskCompleted`, `stopTaskSkipped`, `stopEtaUpdated`, `unspecified`","enum":["stopArrived","stopCompleted","stopEnRoute","stopSkipped","stopTaskCompleted","stopTaskSkipped","stopEtaUpdated","unspecified"],"example":"stopArrived","type":"string"},"happenedAtTime":{"description":"Time the event happened in RFC 3339 format","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"id":{"description":"Unique ID of the route event.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"route":{"$ref":"#/components/schemas/RouteEventRouteResponseResponseBody"},"stop":{"$ref":"#/components/schemas/RouteEventStopResponseResponseBody"}},"required":["eventTime","eventType","happenedAtTime","id","route"],"type":"object"},"RouteEventRouteResponseResponseBody":{"description":"Normalized route object this event belongs to.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the route this event belongs to.","example":"494123","type":"string"}},"required":["id"],"type":"object"},"RouteEventStopResponseResponseBody":{"description":"Normalized stop object this event belongs to.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the stop this event belongs to.","example":"141414","type":"string"}},"required":["id"],"type":"object"},"RouteFeedObjectResponseBody":{"description":"Route feed object.","properties":{"changes":{"$ref":"#/components/schemas/RouteChangesResponseBody"},"operation":{"description":"The operation that was performed as part of this route update.  Valid values: `stop scheduled`, `stop en route`, `stop skipped`, `stop arrived`, `stop departed`, `stop ETA updated`, `stop arrival time updated`, `stop completion time updated`, `stop order changed`, `stop arrival prevented`","enum":["stop scheduled","stop en route","stop skipped","stop arrived","stop departed","stop ETA updated","stop arrival time updated","stop completion time updated","stop order changed","stop arrival prevented"],"example":"stop skipped","type":"string"},"route":{"$ref":"#/components/schemas/baseRouteResponseObjectResponseBody"},"source":{"description":"The source of this route update. Updates that are triggered by time or by the route being completed are 'automatic'.  Valid values: `automatic`, `driver`, `admin`","enum":["automatic","driver","admin"],"example":"automatic","type":"string"},"time":{"description":"The timestamp of the route in RFC 3339 format.","example":"2020-01-27T07:06:25Z","format":"date-time","type":"string"},"type":{"description":"The type of route update. The route tracking updates occur as a route is completed and stops transition from one state to another. Currently only Route Tracking updates are supported, but this will change in the future when additional types are added.  Valid values: `route tracking`","enum":["route tracking"],"example":"route tracking","type":"string"}},"required":["changes","route","source","time","type"],"type":"object"},"RouteObjectResponseBody":{"description":"Route object","properties":{"cost":{"description":"The cost of the route","example":125.5,"format":"double","type":"number"},"createdAt":{"description":"The timestamp (in UTC) when the route was created","example":"2024-04-10T10:30:00Z","format":"date-time","type":"string"},"dispatchRouteId":{"description":"The dispatch route identifier","example":"123456","type":"string"},"distanceMeters":{"description":"The total distance of the route in meters","example":15420,"format":"int32","type":"integer"},"driver":{"$ref":"#/components/schemas/RouteDriverObjectResponseBody"},"durationSeconds":{"description":"The total duration of the route in seconds","example":3600,"format":"int32","type":"integer"},"hubId":{"description":"The ID of the hub this route belongs to","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the route","example":"950e8400-e29b-41d4-a716-446655440005","type":"string"},"isEdited":{"description":"Whether the route has been edited","example":false,"type":"boolean"},"isPinned":{"description":"Whether the route is pinned","example":false,"type":"boolean"},"name":{"description":"The name of the route","example":"Route 1","type":"string"},"orgLocationTimezone":{"description":"The organization location timezone calculated from hub","example":"America/Los_Angeles","type":"string"},"planId":{"description":"The ID of the plan this route belongs to","example":"850e8400-e29b-41d4-a716-446655440003","type":"string"},"quantities":{"description":"List of quantity information for the route","items":{"$ref":"#/components/schemas/QuantityObjectResponseBody"},"type":"array"},"scheduledRouteEndTime":{"description":"The scheduled end time of the route calculated from last stop","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledRouteStartTime":{"description":"The scheduled start time of the route calculated from first stop","example":"2024-04-10T08:00:00Z","format":"date-time","type":"string"},"stops":{"description":"List of stops on the route","items":{"$ref":"#/components/schemas/RouteStopObjectResponseBody"},"type":"array"},"type":{"description":"The type of route","example":"dynamic","type":"string"},"updatedAt":{"description":"The timestamp (in UTC) when the route was last updated","example":"2024-04-10T10:30:00Z","format":"date-time","type":"string"},"vehicle":{"$ref":"#/components/schemas/RouteVehicleObjectResponseBody"}},"required":["cost","createdAt","distanceMeters","durationSeconds","hubId","id","isEdited","isPinned","name","orgLocationTimezone","planId","scheduledRouteEndTime","scheduledRouteStartTime","stops","type","updatedAt"],"type":"object"},"RouteSettingsRequestBody":{"description":"An optional dictionary, only necessary to override the defaults for route start and end conditions.","properties":{"routeCompletionCondition":{"default":"arriveLastStop","description":"Defaults to 'arriveLastStop' which ends the route upon arriving at the final stop. The condition 'departLastStop' \nends the route upon departing the last stop. If 'arriveLastStop' is set, then the departure time of the final stop should not be set.  Valid values: `arriveLastStop`, `departLastStop`","enum":["arriveLastStop","departLastStop"],"example":"arriveLastStop","type":"string"},"routeStartingCondition":{"default":"departFirstStop","description":"Defaults to 'departFirstStop' which starts the route upon departing the first stop in the route.\n The condition 'arriveFirstStop' starts the route upon arriving at the first stop in the route. If 'departFirstStop' is set,\nthe arrival time of the first stop should not be set.  Valid values: `departFirstStop`, `arriveFirstStop`","enum":["departFirstStop","arriveFirstStop"],"example":"departFirstStop","type":"string"},"sequencingMethod":{"default":"scheduledArrivalTime","description":"Determines how stops are sequenced on the route. 'scheduledArrivalTime' sequences stops by their scheduled arrival times (default). 'manual' allows custom sequencing via stop.sequenceNumber. 'unknown' indicates the method is not specified.  Valid values: `unknown`, `scheduledArrivalTime`, `manual`","enum":["unknown","scheduledArrivalTime","manual"],"example":"scheduledArrivalTime","type":"string"}},"type":"object"},"RouteSettingsResponseBody":{"description":"An optional dictionary, only necessary to override the defaults for route start and end conditions.","properties":{"routeCompletionCondition":{"default":"arriveLastStop","description":"Defaults to 'arriveLastStop' which ends the route upon arriving at the final stop. The condition 'departLastStop' \nends the route upon departing the last stop. If 'arriveLastStop' is set, then the departure time of the final stop should not be set.  Valid values: `arriveLastStop`, `departLastStop`","enum":["arriveLastStop","departLastStop"],"example":"arriveLastStop","type":"string"},"routeStartingCondition":{"default":"departFirstStop","description":"Defaults to 'departFirstStop' which starts the route upon departing the first stop in the route.\n The condition 'arriveFirstStop' starts the route upon arriving at the first stop in the route. If 'departFirstStop' is set,\nthe arrival time of the first stop should not be set.  Valid values: `departFirstStop`, `arriveFirstStop`","enum":["departFirstStop","arriveFirstStop"],"example":"departFirstStop","type":"string"},"sequencingMethod":{"default":"scheduledArrivalTime","description":"Determines how stops are sequenced on the route. 'scheduledArrivalTime' sequences stops by their scheduled arrival times (default). 'manual' allows custom sequencing via stop.sequenceNumber. 'unknown' indicates the method is not specified.  Valid values: `unknown`, `scheduledArrivalTime`, `manual`","enum":["unknown","scheduledArrivalTime","manual"],"example":"scheduledArrivalTime","type":"string"}},"type":"object"},"RouteStartDelayedDataResponseBody":{"description":"Details specific to Route Start Delayed.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"RouteStopAppointmentWindowRequestBody":{"properties":{"endTime":{"description":"The end time of the appointment window for the stop in RFC 3339 format.","example":"2019-06-13T20:08:25Z","type":"string"},"startTime":{"description":"The start time of the appointment window for the stop in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["endTime","startTime"],"type":"object"},"RouteStopAppointmentWindowResponseBody":{"properties":{"endTime":{"description":"The end time of the appointment window for the stop in RFC 3339 format.","example":"2019-06-13T20:08:25Z","type":"string"},"startTime":{"description":"The start time of the appointment window for the stop in RFC 3339 format.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["endTime","startTime"],"type":"object"},"RouteStopDetailsObjectResponseBody":{"properties":{"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"operation":{"description":"The operation that was performed as part of this route update.  Valid values: `stop arrived`, `stop departed`","enum":["stop arrived","stop departed"],"example":"stop arrived","type":"string"},"route":{"$ref":"#/components/schemas/WebhookRouteResponseObjectResponseBody"},"routeStopDetails":{"$ref":"#/components/schemas/MinimalRouteStopResponseBody"},"time":{"description":"The timestamp of the route in RFC 3339 format.","example":"2020-01-27T07:06:25Z","format":"date-time","type":"string"},"type":{"description":"The type of route update. The route tracking updates occur as a route is completed and stops transition from one state to another. Currently only Route Tracking updates are supported, but this will change in the future when additional types are added.  Valid values: `route tracking`","enum":["route tracking"],"example":"route tracking","type":"string"},"vehicle":{"$ref":"#/components/schemas/VehicleWithGatewayTinyResponseResponseBody"}},"required":["route","routeStopDetails","time","type"],"type":"object"},"RouteStopETAResponseBody":{"description":"Details specific to Route Stop ETA.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"RouteStopEarlyLateArrivalDataResponseBody":{"description":"Details specific to Route Stop Early/Late Arrival.","properties":{"arrivalStatus":{"description":"Whether the vehicle arrived early or late relative to the scheduled time.  Valid values: `early`, `late`","enum":["early","late"],"example":"late","type":"string"},"deviationMinutes":{"description":"The absolute deviation in minutes from the scheduled arrival time. Always positive. Use arrivalStatus to determine if early or late.","example":15,"format":"int64","type":"integer"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"RouteStopEstimatedArrivalDetailsObjectRequestBody":{"description":"Details specific to Route Stop Estimated Arrival","properties":{"alertBeforeArrivalMilliseconds":{"description":"Time threshold for when to send an alert. Sends an alert when the ETA is less than the threshold.","example":300000,"format":"int64","type":"integer"},"hasLiveShareLink":{"description":"If true, will include a live sharing link in the alert. Defaults to false.","example":true,"type":"boolean"},"isAlertOnRouteStopOnly":{"description":"If true, will only alert if the vehicle is en-route to the stop. Defaults to false.","example":true,"type":"boolean"},"location":{"$ref":"#/components/schemas/LocationObjectRequestBody"}},"required":["alertBeforeArrivalMilliseconds","location"],"type":"object"},"RouteStopEstimatedArrivalDetailsObjectResponseBody":{"description":"Details specific to Route Stop Estimated Arrival","properties":{"alertBeforeArrivalMilliseconds":{"description":"Time threshold for when to send an alert. Sends an alert when the ETA is less than the threshold.","example":300000,"format":"int64","type":"integer"},"hasLiveShareLink":{"description":"If true, will include a live sharing link in the alert. Defaults to false.","example":true,"type":"boolean"},"isAlertOnRouteStopOnly":{"description":"If true, will only alert if the vehicle is en-route to the stop. Defaults to false.","example":true,"type":"boolean"},"location":{"$ref":"#/components/schemas/LocationObjectResponseBody"}},"required":["alertBeforeArrivalMilliseconds","location"],"type":"object"},"RouteStopFormRequestObjectRequestBody":{"description":"Form attachment for a route stop.","properties":{"formTemplateId":{"description":"ID of the form template to attach to the stop.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"isRequired":{"default":true,"description":"Whether the driver must complete the form before departing the stop.","example":true,"type":"boolean"}},"required":["formTemplateId"],"type":"object"},"RouteStopFormResponseObjectResponseBody":{"description":"Form attachment associated with a route stop.","properties":{"formTemplateId":{"description":"ID of the form template.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"id":{"description":"ID of the form submission.","example":"41234","type":"string"},"isRequired":{"description":"Whether the driver must complete the form before departing the stop.","example":true,"type":"boolean"}},"required":["id"],"type":"object"},"RouteStopObjectResponseBody":{"description":"Route stop object","properties":{"hubLocationId":{"description":"The hub location identifier from dispatch","example":"d4e5f6a7-b8c9-0123-defa-456789012345","type":"string"},"id":{"description":"The Samsara-generated unique identifier (UUID) for the stop","example":"c3d4e5f6-a7b8-9012-cdef-345678901234","type":"string"},"name":{"description":"The name of the stop","example":"Stop 1","type":"string"},"notes":{"description":"Additional notes for the stop","example":"","type":"string"},"orders":{"description":"List of order tasks associated with this stop","items":{"$ref":"#/components/schemas/OrderTaskObjectResponseBody"},"type":"array"},"scheduledArrivalTime":{"description":"The scheduled arrival time at the stop","example":"2024-04-10T09:00:00Z","format":"date-time","type":"string"},"scheduledDepartureTime":{"description":"The scheduled departure time from the stop","example":"2024-04-10T09:30:00Z","format":"date-time","type":"string"},"singleUseLocation":{"$ref":"#/components/schemas/SingleUseLocationObjectResponseBody"}},"required":["id","name","scheduledArrivalTime","scheduledDepartureTime"],"type":"object"},"RouteStopOrderTaskReferenceObjectResponseBody":{"description":"A canonical order task attached to a route stop.","properties":{"id":{"description":"Samsara-generated canonical order UUID.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"taskId":{"description":"Order task ID attached to this stop.","example":"12345678","type":"string"}},"required":["id","taskId"],"type":"object"},"RouteStopOrderUpsertInputRequestBody":{"description":"A canonical order to upsert and attach to the containing route stop.","properties":{"customerProperties":{"description":"Order-specific customer metadata.","items":{"$ref":"#/components/schemas/FleetOrderCustomerPropertyObjectRequestBody"},"type":"array"},"externalIds":{"description":"Org-scoped external identifiers.","example":{"tmsOrder":"12345"},"properties":{},"type":"object"},"id":{"description":"Existing Samsara order UUID. Required unless externalIds is supplied.","example":"018f7b62-7d55-7b9e-a92f-2a6b7ff10392","type":"string"},"samsaraCustomerOrderName":{"description":"Human-readable order label.","example":"Order 12345","type":"string"},"tasks":{"description":"Tasks to upsert and attach to the containing stop.","items":{"$ref":"#/components/schemas/FleetOrderTaskUpsertInputRequestBody"},"maxItems":250,"minItems":1,"type":"array"}},"required":["tasks"],"type":"object"},"RouteStopWithOrdersResponseObjectResponseBody":{"properties":{"actualArrivalTime":{"description":"Actual arrival time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"actualDepartureTime":{"description":"Actual departure time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"actualDistanceMeters":{"description":"Actual GPS-measured distance traveled from the previous stop's departure to this stop's arrival, in meters. Null for the first stop, skipped stops, or if GPS data is unavailable.","example":5450,"format":"int64","type":"integer"},"address":{"$ref":"#/components/schemas/GoaAddressTinyResponseResponseBody"},"appointmentWindows":{"description":"Appointment windows for the stop.","items":{"$ref":"#/components/schemas/RouteStopAppointmentWindowResponseBody"},"maxItems":3,"type":"array"},"documents":{"description":"List of documents associated with the stop.","items":{"$ref":"#/components/schemas/GoaDocumentTinyResponseResponseBody"},"type":"array"},"enRouteTime":{"description":"The time the stop became en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"eta":{"description":"Estimated time of arrival, if this stop is currently en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"forms":{"description":"List of forms associated with the stop.","items":{"$ref":"#/components/schemas/RouteStopFormResponseObjectResponseBody"},"type":"array"},"id":{"description":"Id of the stop","example":"324231","type":"string"},"issues":{"description":"List of issues associated with the stop.","items":{"$ref":"#/components/schemas/GoaIssueTinyResponseResponseBody"},"type":"array"},"liveSharingUrl":{"description":"The shareable url of the stop's current status.","example":"https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token","type":"string"},"locationLiveSharingLinks":{"description":"List of shareable, non-expired 'By Location' Live Sharing Links.","items":{"$ref":"#/components/schemas/LiveSharingLinkResponseObjectResponseBody"},"type":"array"},"name":{"description":"Name of the stop","example":"Stop #1","type":"string"},"notes":{"description":"Notes for the stop","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"orders":{"description":"Canonical order tasks attached to this stop.","items":{"$ref":"#/components/schemas/RouteStopOrderTaskReferenceObjectResponseBody"},"type":"array"},"plannedDistanceMeters":{"description":"Planned driving distance from the previous stop in meters. Based on routing calculations at route creation time. Null for the first stop or if routing data is unavailable.","example":5200,"format":"int64","type":"integer"},"scheduledArrivalTime":{"description":"Scheduled arrival time, if it exists, for the stop in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledDepartureTime":{"description":"Scheduled departure time, if it exists, for the stop in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"sequenceNumber":{"description":"Manual sequence position of this stop. Only used when route.settings.sequencingMethod=manual.","example":10,"format":"int64","type":"integer"},"singleUseLocation":{"$ref":"#/components/schemas/RoutesSingleUseAddressObjectResponseBody"},"skippedTime":{"description":"Skipped time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"state":{"description":"The current state of the route stop.  Valid values: `unassigned`, `scheduled`, `en route`, `skipped`, `arrived`, `departed`","enum":["unassigned","scheduled","en route","skipped","arrived","departed"],"example":"scheduled","type":"string"}},"required":["id","name","orders","state"],"type":"object"},"RouteVehicleObjectResponseBody":{"description":"A vehicle object. This object is only returned if the route is assigned to a vehicle.","properties":{"id":{"description":"ID of the vehicle","example":"67890","type":"string"},"name":{"description":"Name of the vehicle","example":"Fleet Truck #1","type":"string"}},"type":"object"},"RoutesCreateRouteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteRequestBody":{"properties":{"driverId":{"description":"ID of the driver. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.","example":"1234","type":"string"},"equipmentProfile":{"$ref":"#/components/schemas/RouteEquipmentProfileObjectRequestBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"name":{"description":"Name for the route","example":"Bid 123","type":"string"},"notes":{"description":"Notes about the route.","example":"These are my notes","maxLength":2000,"type":"string"},"recomputeScheduledTimes":{"description":"This optional boolean parameter controls whether route schedule arrival and departure times are recalculated. When set to true, the system will automatically recompute the scheduledArrivalTime and scheduledDepartureTime for each stop along the route during route creation. This process overrides any manually provided values, with the exception of the first stop, which retains its user-defined schedule.","example":true,"type":"boolean"},"settings":{"$ref":"#/components/schemas/RouteSettingsRequestBody"},"stops":{"description":"List of stops along the route. For each stop, exactly one of `addressId` and `singleUseLocation` are required. Depending on the `settings` on your route, either a `scheduledArrivalTime` or `scheduledDepartureTime` must be specified for the first job.","items":{"$ref":"#/components/schemas/CreateRouteStopWithOrdersRequestObjectRequestBody"},"minItems":2,"type":"array"},"tagIds":{"description":"An array of IDs of tags to associate with this route.","example":["123","321"],"items":{"example":"Rerum odio.","type":"string"},"type":"array"},"vehicleId":{"description":"ID of the vehicle. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the vehicle.","example":"453546","type":"string"}},"required":["name","stops"],"type":"object"},"RoutesCreateRouteResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/BaseRouteWithOrdersResponseObjectResponseBody"}},"type":"object"},"RoutesCreateRouteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesCreateRouteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesDeleteRouteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/BaseRouteWithOrdersResponseObjectResponseBody"}},"type":"object"},"RoutesFetchRouteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRouteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesResponseBody":{"properties":{"data":{"description":"An array containing multiple routes.","items":{"$ref":"#/components/schemas/BaseRouteWithOrdersResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"RoutesFetchRoutesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesFetchRoutesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamResponseBody":{"properties":{"data":{"description":"List of route event objects.","items":{"$ref":"#/components/schemas/RouteEventResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"RoutesGetRouteEventsStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRouteEventsStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedResponseBody":{"properties":{"data":{"description":"Route feed response.","items":{"$ref":"#/components/schemas/RouteFeedObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"RoutesGetRoutesFeedServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesGetRoutesFeedUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteRequestBody":{"properties":{"driverId":{"description":"ID of the driver. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver. Set to null to unassign the driver from the route.","example":"1234","nullable":true,"type":"string"},"equipmentProfile":{"$ref":"#/components/schemas/RouteEquipmentProfileObjectRequestBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"name":{"description":"Name for the route","example":"Bid 123","type":"string"},"notes":{"description":"Notes about the route.","example":"These are my notes","maxLength":2000,"type":"string"},"recomputeScheduledTimes":{"description":"This optional boolean parameter controls whether route schedule arrival and departure times are recalculated. When set to true, the system will automatically recompute the scheduledArrivalTime and scheduledDepartureTime for each stop along the route during route creation. This process overrides any manually provided values, with the exception of the first stop, which retains its user-defined schedule.","example":true,"type":"boolean"},"settings":{"$ref":"#/components/schemas/RouteSettingsRequestBody"},"stops":{"description":"List of stops along the route. If a valid `id` of a stop is provided, that stop will be updated. If no `id` is provided for a passed in stop, that stop will be created. If `id` value are passed in for some stops and not for others, those with `id` value specified will be retained and updated in the original route, those without `id` value specified in the body will be created, and those without `id` value specified that already existed on the route will be deleted. For each new stop, exactly one of `addressId` and `singleUseLocation` are required. Depending on the `settings` on your route, either a `scheduledArrivalTime` or `scheduledDepartureTime` must be specified for the first job, if a new first job is being added.","items":{"$ref":"#/components/schemas/UpdateRoutesStopRequestObjectRequestBody"},"type":"array"},"tagIds":{"description":"An array of IDs of tags to associate with this route.","example":["123","321"],"items":{"example":"Sit aut vitae.","type":"string"},"type":"array"},"vehicleId":{"description":"ID of the vehicle. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the vehicle. Set to null to unassign the vehicle from the route.","example":"453546","nullable":true,"type":"string"}},"type":"object"},"RoutesPatchRouteResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/BaseRouteWithOrdersResponseObjectResponseBody"}},"type":"object"},"RoutesPatchRouteServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesPatchRouteUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"RoutesSingleUseAddressObjectRequestBody":{"description":"This field is used to indicate stops along the route for which an address has not been persisted. This field is mutually exclusive with addressId.","properties":{"address":{"description":"Address of the stop.","example":"1234 Main St, San Jose, CA","maxLength":255,"type":"string"},"latitude":{"description":"The latitude of the location","example":123.456,"format":"double","type":"number"},"longitude":{"description":"The longitude of the location","example":37.459,"format":"double","type":"number"},"radiusMeters":{"description":"The radius in meters for the geofence around this location. Must be a positive value.","example":100,"minimum":0.1,"type":"number"}},"required":["latitude","longitude"],"type":"object"},"RoutesSingleUseAddressObjectResponseBody":{"description":"This field is used to indicate stops along the route for which an address has not been persisted. This field is mutually exclusive with addressId.","properties":{"address":{"description":"Address of the stop.","example":"1234 Main St, San Jose, CA","maxLength":255,"type":"string"},"latitude":{"description":"The latitude of the location","example":123.456,"format":"double","type":"number"},"longitude":{"description":"The longitude of the location","example":37.459,"format":"double","type":"number"},"radiusMeters":{"description":"The radius in meters for the geofence around this location. Must be a positive value.","example":100,"minimum":0.1,"type":"number"}},"required":["latitude","longitude"],"type":"object"},"RoutesStopResponseObjectResponseBody":{"properties":{"actualArrivalTime":{"description":"Actual arrival time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"actualDepartureTime":{"description":"Actual departure time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"actualDistanceMeters":{"description":"Actual GPS-measured distance traveled from the previous stop's departure to this stop's arrival, in meters. Null for the first stop, skipped stops, or if GPS data is unavailable.","example":5450,"format":"int64","type":"integer"},"address":{"$ref":"#/components/schemas/GoaAddressTinyResponseResponseBody"},"appointmentWindows":{"description":"Appointment windows for the stop.","items":{"$ref":"#/components/schemas/RouteStopAppointmentWindowResponseBody"},"maxItems":3,"type":"array"},"documents":{"description":"List of documents associated with the stop.","items":{"$ref":"#/components/schemas/GoaDocumentTinyResponseResponseBody"},"type":"array"},"enRouteTime":{"description":"The time the stop became en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"eta":{"description":"Estimated time of arrival, if this stop is currently en-route, in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"forms":{"description":"List of forms associated with the stop.","items":{"$ref":"#/components/schemas/IDReferenceObjectResponseBody"},"type":"array"},"id":{"description":"Id of the stop","example":"324231","type":"string"},"issues":{"description":"List of issues associated with the stop.","items":{"$ref":"#/components/schemas/GoaIssueTinyResponseResponseBody"},"type":"array"},"liveSharingUrl":{"description":"The shareable url of the stop's current status.","example":"https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token","type":"string"},"locationLiveSharingLinks":{"description":"List of shareable, non-expired 'By Location' Live Sharing Links.","items":{"$ref":"#/components/schemas/LiveSharingLinkResponseObjectResponseBody"},"type":"array"},"name":{"description":"Name of the stop","example":"Stop #1","type":"string"},"notes":{"description":"Notes for the stop","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"format":"int64","type":"integer"},"plannedDistanceMeters":{"description":"Planned driving distance from the previous stop in meters. Based on routing calculations at route creation time. Null for the first stop or if routing data is unavailable.","example":5200,"format":"int64","type":"integer"},"scheduledArrivalTime":{"description":"Scheduled arrival time, if it exists, for the stop in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledDepartureTime":{"description":"Scheduled departure time, if it exists, for the stop in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"sequenceNumber":{"description":"Manual sequence position of this stop. Only used when route.settings.sequencingMethod=manual.","example":10,"format":"int64","type":"integer"},"singleUseLocation":{"$ref":"#/components/schemas/RoutesSingleUseAddressObjectResponseBody"},"skippedTime":{"description":"Skipped time, if it exists, for the route stop in RFC 3339 format.","example":"2006-01-02T15:04:05+07:00","format":"date-time","type":"string"},"state":{"description":"The current state of the route stop.  Valid values: `unassigned`, `scheduled`, `en route`, `skipped`, `arrived`, `departed`","enum":["unassigned","scheduled","en route","skipped","arrived","departed"],"example":"scheduled","type":"string"}},"required":["id","name","state"],"type":"object"},"RoutingCapacityServiceTimeResponseResponseBody":{"description":"Per-capacity order service time entry.","properties":{"capacityId":{"description":"Capacity UUID.","example":"550e8400-e29b-41d4-a716-446655440001","type":"string"},"quantityPerServiceTime":{"description":"Quantity units per service time chunk.","example":0.5,"format":"double","type":"number"},"serviceTimeSeconds":{"description":"Service time in seconds.","example":60,"format":"int64","type":"integer"}},"required":["capacityId","quantityPerServiceTime","serviceTimeSeconds"],"type":"object"},"RoutingOrderServiceTimeResponseResponseBody":{"description":"Order service time configuration for a routing row.","properties":{"capacityServiceTime":{"$ref":"#/components/schemas/RoutingCapacityServiceTimeResponseResponseBody"},"fixedServiceTimeSeconds":{"description":"Fixed order service time in seconds.","example":300,"format":"int64","type":"integer"},"isEnabled":{"description":"Whether order service time settings apply at this stop.","example":true,"type":"boolean"},"modeType":{"description":"Mode: unknown, unspecified, fixed, or variable.","example":"variable","type":"string"}},"required":["isEnabled","modeType"],"type":"object"},"RoutingRequiredSkillResponseResponseBody":{"description":"Required planner skill reference.","properties":{"id":{"description":"Planner skill UUID.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"name":{"description":"Skill display name when resolved on GET.","example":"Refrigerated","type":"string"}},"required":["id"],"type":"object"},"RoutingResponseResponseBody":{"description":"Route-planning metadata row for a place and hub.","properties":{"driverInstructions":{"description":"Default instructions for drivers.","example":"Use lane 2","type":"string"},"hubId":{"description":"Hub (planner) UUID.","example":"550e8400-e29b-41d4-a716-446655440003","type":"string"},"hubNotes":{"description":"Hub-facing notes.","example":"Zone A preferred","type":"string"},"isDepot":{"description":"Whether this routing row is a depot.","example":false,"type":"boolean"},"orderServiceTime":{"$ref":"#/components/schemas/RoutingOrderServiceTimeResponseResponseBody"},"position":{"description":"Stop position preference: first or last.","example":"first","type":"string"},"priority":{"description":"Route priority from 1 (lowest) to 5 (highest).","example":3,"format":"int32","type":"integer"},"requiredSkills":{"description":"Required planner skills.","items":{"$ref":"#/components/schemas/RoutingRequiredSkillResponseResponseBody"},"type":"array"},"routingExternalId":{"description":"Customer-defined external identifier within the hub.","example":"store-A","type":"string"},"serviceTime":{"$ref":"#/components/schemas/RoutingServiceTimeResponseResponseBody"},"serviceWindows":{"description":"Configured service windows.","items":{"$ref":"#/components/schemas/RoutingServiceWindowResponseResponseBody"},"type":"array"}},"required":["hubId","isDepot"],"type":"object"},"RoutingServiceTimeResponseResponseBody":{"description":"Additional service time at a routing row.","properties":{"isEnabled":{"description":"Whether additional service time is enabled.","example":true,"type":"boolean"},"serviceTimeMinutes":{"description":"Whole minutes of additional service time.","example":5,"format":"int64","type":"integer"}},"required":["isEnabled","serviceTimeMinutes"],"type":"object"},"RoutingServiceWindowResponseResponseBody":{"description":"Recurring service window for a routing row.","properties":{"days":{"description":"Days this window applies.","example":["Sapiente cum facere aut asperiores blanditiis quas.","Dolor qui eum maiores eos maiores."],"items":{"description":"Weekday: mon, tue, wed, thu, fri, sat, or sun.","example":"Sint quaerat sint ut ad.","type":"string"},"type":"array"},"endTime":{"description":"End time as HH:MM:SS in the org timezone.","example":"17:00:01","type":"string"},"startTime":{"description":"Start time as HH:MM:SS in the org timezone.","example":"09:00:00","type":"string"}},"required":["days","endTime","startTime"],"type":"object"},"SafetyBehaviorTriggerDetailsObjectRequestBody":{"description":"Details specific to Safety Behavior","properties":{"behaviorCount":{"$ref":"#/components/schemas/BehaviorCountDetailsRequestBody"},"behaviors":{"description":"On which safety behaviors to trigger on.","example":["SamsaraCustomEvent10","NearCollison"],"items":{"description":"The type of safety behavior.  Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `CustomerCustomEvent1`, `CustomerCustomEvent10`, `CustomerCustomEvent2`, `CustomerCustomEvent3`, `CustomerCustomEvent4`, `CustomerCustomEvent5`, `CustomerCustomEvent6`, `CustomerCustomEvent7`, `CustomerCustomEvent8`, `CustomerCustomEvent9`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HeavySpeeding`, `HighSpeedSuddenDisconnect`, `HosViolation`, `Idling`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `Reversing`, `RollingStop`, `RolloverProtection`, `SamsaraCustomEvent1`, `SamsaraCustomEvent10`, `SamsaraCustomEvent2`, `SamsaraCustomEvent3`, `SamsaraCustomEvent4`, `SamsaraCustomEvent5`, `SamsaraCustomEvent6`, `SamsaraCustomEvent7`, `SamsaraCustomEvent8`, `SamsaraCustomEvent9`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`","enum":["Acceleration","AggressiveDriving","BluetoothHeadset","Braking","ContextConstructionOrWorkZone","ContextSnowyOrIcy","ContextVulnerableRoadUser","ContextWet","Crash","CustomerCustomEvent1","CustomerCustomEvent10","CustomerCustomEvent2","CustomerCustomEvent3","CustomerCustomEvent4","CustomerCustomEvent5","CustomerCustomEvent6","CustomerCustomEvent7","CustomerCustomEvent8","CustomerCustomEvent9","DefensiveDriving","DidNotYield","Drinking","Drowsy","Eating","EatingDrinking","EdgeDistractedDriving","EdgeRailroadCrossingViolation","FollowingDistance","FollowingDistanceModerate","FollowingDistanceSevere","ForwardCollisionWarning","GenericDistraction","GenericTailgating","HarshImpact","HarshTurn","HeavySpeeding","HighSpeedSuddenDisconnect","HosViolation","Idling","ImproperEgress","Invalid","LaneDeparture","LateResponse","LeftTurn","LightSpeeding","MaxSpeed","MobileUsage","ModerateSpeeding","NearCollison","NearPedestrianCollision","NoSeatbelt","ObstructedCamera","OtherViolation","Passenger","PolicyViolationMask","ProtectiveEquipment","ProximityWarning","RanRedLight","Reversing","RollingStop","RolloverProtection","SamsaraCustomEvent1","SamsaraCustomEvent10","SamsaraCustomEvent2","SamsaraCustomEvent3","SamsaraCustomEvent4","SamsaraCustomEvent5","SamsaraCustomEvent6","SamsaraCustomEvent7","SamsaraCustomEvent8","SamsaraCustomEvent9","SevereSpeeding","Smoking","Speeding","UTurn","UnsafeManeuver","UnsafeParking","VehicleInBlindSpotWarning","VulnerableRoadUserCollisionWarning","YawControl"],"example":"HeavySpeeding","type":"string"},"type":"array"},"drivers":{"$ref":"#/components/schemas/DriverOrTagIdsDetailsRequestBody"},"safetyScore":{"$ref":"#/components/schemas/SafetyScoreDetailsRequestBody"},"severities":{"description":"On which event severity to trigger on.","example":["low","low","high","medium"],"items":{"description":"The severity of the event.  Valid values: `low`, `medium`, `high`","enum":["low","medium","high"],"example":"low","type":"string"},"type":"array"},"statuses":{"description":"On which event status to trigger on.","example":["NEEDS_REVIEW","NEEDS_REVIEW","NEEDS_COACHING"],"items":{"description":"The status of the event.  Valid values: `NEEDS_COACHING`, `NEEDS_RECOGNITION`, `NEEDS_REVIEW`, `RECOGNIZED`, `REVIEWED`","enum":["NEEDS_COACHING","NEEDS_RECOGNITION","NEEDS_REVIEW","RECOGNIZED","REVIEWED"],"example":"RECOGNIZED","type":"string"},"type":"array"}},"required":["behaviors"],"type":"object"},"SafetyBehaviorTriggerDetailsObjectResponseBody":{"description":"Details specific to Safety Behavior","properties":{"behaviorCount":{"$ref":"#/components/schemas/BehaviorCountDetailsResponseBody"},"behaviors":{"description":"On which safety behaviors to trigger on.","example":["NearPedestrianCollision","VehicleInBlindSpotWarning"],"items":{"description":"The type of safety behavior.  Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `CustomerCustomEvent1`, `CustomerCustomEvent10`, `CustomerCustomEvent2`, `CustomerCustomEvent3`, `CustomerCustomEvent4`, `CustomerCustomEvent5`, `CustomerCustomEvent6`, `CustomerCustomEvent7`, `CustomerCustomEvent8`, `CustomerCustomEvent9`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HeavySpeeding`, `HighSpeedSuddenDisconnect`, `HosViolation`, `Idling`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `Reversing`, `RollingStop`, `RolloverProtection`, `SamsaraCustomEvent1`, `SamsaraCustomEvent10`, `SamsaraCustomEvent2`, `SamsaraCustomEvent3`, `SamsaraCustomEvent4`, `SamsaraCustomEvent5`, `SamsaraCustomEvent6`, `SamsaraCustomEvent7`, `SamsaraCustomEvent8`, `SamsaraCustomEvent9`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`","enum":["Acceleration","AggressiveDriving","BluetoothHeadset","Braking","ContextConstructionOrWorkZone","ContextSnowyOrIcy","ContextVulnerableRoadUser","ContextWet","Crash","CustomerCustomEvent1","CustomerCustomEvent10","CustomerCustomEvent2","CustomerCustomEvent3","CustomerCustomEvent4","CustomerCustomEvent5","CustomerCustomEvent6","CustomerCustomEvent7","CustomerCustomEvent8","CustomerCustomEvent9","DefensiveDriving","DidNotYield","Drinking","Drowsy","Eating","EatingDrinking","EdgeDistractedDriving","EdgeRailroadCrossingViolation","FollowingDistance","FollowingDistanceModerate","FollowingDistanceSevere","ForwardCollisionWarning","GenericDistraction","GenericTailgating","HarshImpact","HarshTurn","HeavySpeeding","HighSpeedSuddenDisconnect","HosViolation","Idling","ImproperEgress","Invalid","LaneDeparture","LateResponse","LeftTurn","LightSpeeding","MaxSpeed","MobileUsage","ModerateSpeeding","NearCollison","NearPedestrianCollision","NoSeatbelt","ObstructedCamera","OtherViolation","Passenger","PolicyViolationMask","ProtectiveEquipment","ProximityWarning","RanRedLight","Reversing","RollingStop","RolloverProtection","SamsaraCustomEvent1","SamsaraCustomEvent10","SamsaraCustomEvent2","SamsaraCustomEvent3","SamsaraCustomEvent4","SamsaraCustomEvent5","SamsaraCustomEvent6","SamsaraCustomEvent7","SamsaraCustomEvent8","SamsaraCustomEvent9","SevereSpeeding","Smoking","Speeding","UTurn","UnsafeManeuver","UnsafeParking","VehicleInBlindSpotWarning","VulnerableRoadUserCollisionWarning","YawControl"],"example":"GenericDistraction","type":"string"},"type":"array"},"drivers":{"$ref":"#/components/schemas/DriverOrTagIdsDetailsResponseBody"},"safetyScore":{"$ref":"#/components/schemas/SafetyScoreDetailsResponseBody"},"severities":{"description":"On which event severity to trigger on.","example":["high","medium","high"],"items":{"description":"The severity of the event.  Valid values: `low`, `medium`, `high`","enum":["low","medium","high"],"example":"low","type":"string"},"type":"array"},"statuses":{"description":"On which event status to trigger on.","example":["NEEDS_RECOGNITION","NEEDS_REVIEW","NEEDS_COACHING"],"items":{"description":"The status of the event.  Valid values: `NEEDS_COACHING`, `NEEDS_RECOGNITION`, `NEEDS_REVIEW`, `RECOGNIZED`, `REVIEWED`","enum":["NEEDS_COACHING","NEEDS_RECOGNITION","NEEDS_REVIEW","RECOGNIZED","REVIEWED"],"example":"NEEDS_RECOGNITION","type":"string"},"type":"array"}},"required":["behaviors"],"type":"object"},"SafetyEvent":{"description":"A safety event.","properties":{"behaviorLabels":{"$ref":"#/components/schemas/SafetyEventBehaviorLabels"},"coachingState":{"$ref":"#/components/schemas/SafetyEventCoachingState"},"downloadForwardVideoUrl":{"$ref":"#/components/schemas/SafetyEventDownloadForwardVideoUrl"},"downloadInwardVideoUrl":{"$ref":"#/components/schemas/SafetyEventDownloadInwardVideoUrl"},"downloadTrackedInwardVideoUrl":{"$ref":"#/components/schemas/SafetyEventDownloadTrackedInwardVideoUrl"},"driver":{"$ref":"#/components/schemas/driverTinyResponse"},"id":{"$ref":"#/components/schemas/SafetyEventId"},"location":{"$ref":"#/components/schemas/location"},"maxAccelerationGForce":{"$ref":"#/components/schemas/SafetyEventMaxAccelerationGForce"},"time":{"$ref":"#/components/schemas/SafetyEventTime"},"vehicle":{"$ref":"#/components/schemas/vehicleTinyResponse"}},"type":"object"},"SafetyEventActivityFeedItemResponseBody":{"description":"Safety event activity feed item.","properties":{"id":{"description":"The ID of the activity event feed line item.","example":"1622151765-212014918174029-1550954461759","type":"string"},"safetyEvent":{"$ref":"#/components/schemas/SafetyEventObjectResponseBody"},"time":{"description":"The time the activity occurred in the corresponding safety event in RFC 3339 milliseconds format.","example":"2019-10-12T07:20:50.52Z","type":"string"},"type":{"description":"The type of activity that occurred in the safety event. We currently only support CoachingStateActivityType, BehaviorLabelActivityType, and CreateSafetyEventActivityType, but we may add support for more activity types in the future.  Valid values: `BehaviorLabelActivityType`, `CoachingStateActivityType`, `CreateSafetyEventActivityType`","enum":["BehaviorLabelActivityType","CoachingStateActivityType","CreateSafetyEventActivityType"],"example":"CreateSafetyEventActivityType","type":"string"}},"required":["id","safetyEvent","time","type"],"type":"object"},"SafetyEventBehaviorLabel":{"description":"The label and source of the label associated with the safety event.","properties":{"label":{"$ref":"#/components/schemas/SafetyEventBehaviorLabelType"},"name":{"$ref":"#/components/schemas/SafetyEventBehaviorLabelName"},"source":{"$ref":"#/components/schemas/SafetyEventBehaviorLabelSource"}},"required":["label","source"],"type":"object"},"SafetyEventBehaviorLabelName":{"description":"The name of the label associated with the safety event.","example":"Tailgating","type":"string"},"SafetyEventBehaviorLabelSource":{"description":"The source of the label associated with the safety event. Valid values: `automated`, `userGenerated`.","enum":["automated","userGenerated"],"type":"string"},"SafetyEventBehaviorLabelType":{"description":"The label associated with the safety event. This list often changes, so it is recommended that clients gracefully handle any types not enumerated in this list. Valid values: `genericTailgating`, `genericDistraction`, `defensiveDriving`, `rollingStop`, `nearCollison`, `speeding`, `obstructedCamera`, `didNotYield`, `noSeatbelt`, `mobileUsage`, `drowsy`, `laneDeparture`, `followingDistanceSevere`, `followingDistanceModerate`, `lateResponse`, `acceleration`, `braking`, `harshTurn`, `crash`, `rolloverProtection`, `yawControl`, `ranRedLight`, `forwardCollisionWarning`, `eatingDrinking`, `smoking`, `followingDistance`, `edgeDistractedDriving`.","enum":["genericTailgating","genericDistraction","defensiveDriving","rollingStop","nearCollison","speeding","obstructedCamera","didNotYield","noSeatbelt","mobileUsage","drowsy","laneDeparture","followingDistanceSevere","followingDistanceModerate","lateResponse","acceleration","braking","harshTurn","crash","rolloverProtection","yawControl","ranRedLight","forwardCollisionWarning","eatingDrinking","smoking","followingDistance","edgeDistractedDriving"],"type":"string"},"SafetyEventBehaviorLabels":{"description":"The most up-to-date behavior labels associated with the safety event. These labels can be updated by the Safety Report Admin.","items":{"$ref":"#/components/schemas/SafetyEventBehaviorLabel"},"type":"array"},"SafetyEventBehaviorLabelsResponseBody":{"description":"Behavior label for a safety event.","properties":{"name":{"description":"Name of the behavior label.","example":"Acceleration","type":"string"},"type":{"description":"Type of the BehaviorLabel.  Valid values: `Acceleration`, `Braking`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HighSpeedSuddenDisconnect`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `MobileUsage`, `NearCollison`, `NoSeatbelt`, `ObstructedCamera`, `OperationalEvent`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `RearCollisionWarning`, `RollingStop`, `RolloverProtection`, `Smoking`, `Speeding`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`","enum":["Acceleration","Braking","Crash","DefensiveDriving","DidNotYield","Drinking","Drowsy","Eating","EatingDrinking","EdgeDistractedDriving","EdgeRailroadCrossingViolation","FollowingDistance","FollowingDistanceModerate","FollowingDistanceSevere","ForwardCollisionWarning","GenericDistraction","GenericTailgating","HarshImpact","HarshTurn","HighSpeedSuddenDisconnect","ImproperEgress","Invalid","LaneDeparture","LateResponse","MobileUsage","NearCollison","NoSeatbelt","ObstructedCamera","OperationalEvent","Passenger","PolicyViolationMask","ProtectiveEquipment","ProximityWarning","RanRedLight","RearCollisionWarning","RollingStop","RolloverProtection","Smoking","Speeding","VehicleInBlindSpotWarning","VulnerableRoadUserCollisionWarning","YawControl"],"example":"Acceleration","type":"string"}},"type":"object"},"SafetyEventCoachingState":{"description":"The current coaching status of the event.  Valid values: `needsReview`, `coached`, `dismissed`, `reviewed`, `archived`, `manualReview`, `needsCoaching`, `autoDismissed`, `needsRecognition`, `recognized`, `invalid`.","enum":["needsReview","coached","dismissed","reviewed","archived","manualReview","needsCoaching","autoDismissed","needsRecognition","recognized","invalid"],"type":"string"},"SafetyEventDismissalReasonResponseBody":{"description":"Dismissal reason associated with a Safety Event.","properties":{"code":{"description":"The dismissal reason code associated with the event.  Valid values: `incorrect`, `minorEvent`, `other`","enum":["incorrect","minorEvent","other"],"example":"incorrect","type":"string"},"comment":{"description":"The dismissal reason comment associated with the event.","example":"minorEvent","type":"string"}},"type":"object"},"SafetyEventDownloadForwardVideoUrl":{"description":"URL to download the forward video.","example":"https://s3.console.aws.amazon.com/s3/buckets/samsara-dashcam-videos/21575/212014918400828/1553060687222/huKA7IhpBV-camera-video-segment-1244214895.mp4","type":"string"},"SafetyEventDownloadInwardVideoUrl":{"description":"URL to download the inward video.","example":"https://s3.console.aws.amazon.com/s3/buckets/samsara-dashcam-videos/21575/212014918400828/1553060687222/huKA7IhpBV-camera-video-segment-1244214895.mp4","type":"string"},"SafetyEventDownloadTrackedInwardVideoUrl":{"description":"URL to download the tracked inward video.","example":"https://s3.console.aws.amazon.com/s3/buckets/samsara-dashcam-videos/21575/212014918400828/1553060687222/huKA7IhpBV-camera-video-segment-1244214895.mp4","type":"string"},"SafetyEventDriver":{"$ref":"#/components/schemas/driverTinyResponse"},"SafetyEventDriverObjectResponseBody":{"description":"A minified driver object.","properties":{"id":{"description":"ID of the driver.","example":"0987","type":"string"}},"type":"object"},"SafetyEventId":{"description":"The unique Samsara ID of the safety event.","example":"212014918174029-1550954461759","type":"string"},"SafetyEventLocation":{"$ref":"#/components/schemas/location"},"SafetyEventMaxAccelerationGForce":{"description":"The maximum acceleration value as a multiplier on the force of gravity (g).","example":0.123,"type":"number"},"SafetyEventObjectResponseBody":{"description":"The safety event that was updated.","properties":{"behaviorLabels":{"description":"Behavior labels for a safety event.","items":{"$ref":"#/components/schemas/SafetyEventBehaviorLabelsResponseBody"},"type":"array"},"driver":{"$ref":"#/components/schemas/SafetyEventDriverObjectResponseBody"},"id":{"description":"The unique Samsara ID of the safety event.","example":"212014918174029-1550954461759","type":"string"},"time":{"description":"The time the safety event occurred in RFC 3339 milliseconds format.","example":"2019-06-13T19:08:25.455Z","type":"string"},"uuid":{"description":"The unique Samsara ID (uuid) of the safety event.","example":"abc123de-4567-89fg-hijk-lmnop1234567","type":"string"},"vehicle":{"$ref":"#/components/schemas/SafetyEventVehicleObjectResponseBody"}},"type":"object"},"SafetyEventSpeedingMetadataResponseBody":{"description":"Speeding data associated with the event. Only returned for speeding related events.","properties":{"maxSpeedKilometersPerHour":{"description":"The max speed exceeded during the event, provided in kilometers per hour.","example":2754648524753701400,"format":"int64","type":"integer"},"postedSpeedLimitKilometersPerHour":{"description":"The posted speed limit associated with the event, provided in kilometers per hour.","example":5991025357425570000,"format":"int64","type":"integer"}},"required":["maxSpeedKilometersPerHour","postedSpeedLimitKilometersPerHour"],"type":"object"},"SafetyEventTime":{"description":"The time the safety event occurred in RFC 3339 milliseconds format.","example":"2019-06-13T19:08:25.455Z","type":"string"},"SafetyEventV2AssetObjectResponseBody":{"description":"Asset that the safety event is tied to.","properties":{"attributes":{"description":"Attributes for the asset associated with the safety event. Only returns when `includeAsset` is set to `true`.","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique ID for the asset object that is reporting the safety event.","example":"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590,6caeb9c0-7e3d-49ae-a015-45c2f68fed4c","type":"string"},"name":{"description":"Name for the asset object that is reporting the safety event. Only returns when `includeAsset` is set to `true`.","example":"MyAsset-1234","type":"string"},"tags":{"description":"Tags for the asset associated with the safety event. Only returns when `includeAsset` is set to `true`.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"type":{"description":"Type for the asset object that is reporting the location. Only returns when `includeAsset` is set to `true`.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"},"vin":{"description":"VIN for the asset object. Only returns when `includeAsset` is set to `true`.","example":"1GBJ6P1B2HV112765","type":"string"}},"required":["id"],"type":"object"},"SafetyEventV2BehaviorLabelsResponseBody":{"description":"The most up-to-date behavior labels associated with the safety event. These labels can be updated by Safety Admins.","properties":{"label":{"description":"The label associated with the safety event. Labels can be updated by Safety Admins, if a label is removed from a safety event it will be removed from this list.  Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HeavySpeeding`, `HighSpeedSuddenDisconnect`, `HosViolation`, `Idling`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OperationalEvent`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `RearCollisionWarning`, `Reversing`, `RollingStop`, `RolloverProtection`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`","enum":["Acceleration","AggressiveDriving","BluetoothHeadset","Braking","ContextConstructionOrWorkZone","ContextSnowyOrIcy","ContextVulnerableRoadUser","ContextWet","Crash","DefensiveDriving","DidNotYield","Drinking","Drowsy","Eating","EatingDrinking","EdgeDistractedDriving","EdgeRailroadCrossingViolation","FollowingDistance","FollowingDistanceModerate","FollowingDistanceSevere","ForwardCollisionWarning","GenericDistraction","GenericTailgating","HarshImpact","HarshTurn","HeavySpeeding","HighSpeedSuddenDisconnect","HosViolation","Idling","ImproperEgress","Invalid","LaneDeparture","LateResponse","LeftTurn","LightSpeeding","MaxSpeed","MobileUsage","ModerateSpeeding","NearCollison","NearPedestrianCollision","NoSeatbelt","ObstructedCamera","OperationalEvent","OtherViolation","Passenger","PolicyViolationMask","ProtectiveEquipment","ProximityWarning","RanRedLight","RearCollisionWarning","Reversing","RollingStop","RolloverProtection","SevereSpeeding","Smoking","Speeding","UTurn","UnsafeManeuver","UnsafeParking","VehicleInBlindSpotWarning","VulnerableRoadUserCollisionWarning","YawControl"],"example":"Acceleration","type":"string"},"source":{"description":"The source of the label associated with the safety event.  Valid values: `automated`, `userGenerated`","enum":["automated","userGenerated"],"example":"automated","type":"string"}},"type":"object"},"SafetyEventV2ContextLabelsResponseBody":{"description":"The most up-to-date context labels associated with the safety event. AI generated labels can be updated by Safety Admins.","properties":{"authorId":{"description":"The user ID associated with the user who created the context label. A value of 0 indicates the label is auto-generated.","example":"1234","type":"string"},"createdAtTime":{"description":"Time the context label was created.","example":"2023-01-27T07:06:25Z","type":"string"},"name":{"description":"Name of the context label","example":"Moderate Traffic","type":"string"}},"required":["authorId","createdAtTime","name"],"type":"object"},"SafetyEventV2DriverObjectResponseBody":{"description":"Driver that is assigned to the safety event.","properties":{"attributes":{"description":"Attributes for the driver associated with the safety event. Only returns when `includeDriver` is set to `true`.","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique ID for the driver object that is assigned to the safety event.","example":"0987","type":"string"},"name":{"description":"Name of the driver. Only returns when `includeDriver` is set to `true`.","example":"Driver Name","type":"string"},"tags":{"description":"Tags for the driver associated with the safety event. Only returns when `includeDriver` is set to `true`.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"SafetyEventV2MediaResponseBody":{"description":"Media asset available for the safety event.","properties":{"auxcamSerial":{"description":"The serial number of the auxiliary camera device.","example":"ABC123","type":"string"},"cameraRole":{"description":"The currently assigned role name of the camera. May change if camera role settings are updated.  Valid values: `leftMirrorMount`, `leftSide`, `rightMirrorMount`, `rightSide`, `rearHigh`, `rearBumper`, `inCab`, `front`, `hopper`, `other1`, `other2`, `other3`, `other4`, `leftBev`, `rightBev`, `rearBev`, `frontBev`, `otherBev`, `bevNotUsed`","enum":["leftMirrorMount","leftSide","rightMirrorMount","rightSide","rearHigh","rearBumper","inCab","front","hopper","other1","other2","other3","other4","leftBev","rightBev","rearBev","frontBev","otherBev","bevNotUsed"],"example":"leftMirrorMount","type":"string"},"input":{"description":"The media input type of the camera.  Valid values: `dashcamRoadFacing`, `dashcamDriverFacing`, `analog1`, `analog2`, `analog3`, `analog4`","enum":["dashcamRoadFacing","dashcamDriverFacing","analog1","analog2","analog3","analog4"],"example":"dashcamRoadFacing","type":"string"},"url":{"description":"URL to download the media asset.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"required":["input","url"],"type":"object"},"SafetyEventV2ObjectResponseBody":{"description":"Full Safety Event object","properties":{"asset":{"$ref":"#/components/schemas/SafetyEventV2AssetObjectResponseBody"},"assignedCoach":{"description":"Unique user ID for the assigned coach.","example":"0987","type":"string"},"behaviorLabels":{"description":"The most up-to-date behavior labels associated with the safety event. These labels can be updated by Safety Admins.","items":{"$ref":"#/components/schemas/SafetyEventV2BehaviorLabelsResponseBody"},"type":"array"},"contextLabels":{"description":"The most up-to-date context labels associated with the safety event. AI generated labels can be updated by Safety Admins.","items":{"$ref":"#/components/schemas/SafetyEventV2ContextLabelsResponseBody"},"type":"array"},"createdAtTime":{"description":"UTC time the Safety Event was created in Samsara in RFC 3339 format. This field may differ from when the event was detected (`startMs`).","example":"2023-01-27T07:06:25Z","type":"string"},"detectedStreams":{"description":"Camera streams that detected the safety event.","items":{"$ref":"#/components/schemas/SafetyEventV2MediaResponseBody"},"type":"array"},"dismissalReason":{"$ref":"#/components/schemas/SafetyEventDismissalReasonResponseBody"},"driver":{"$ref":"#/components/schemas/SafetyEventV2DriverObjectResponseBody"},"endMs":{"description":"UTC time the Safety Event detection ended in RFC 3339 format.","example":"2023-01-27T07:06:25Z","type":"string"},"eventState":{"description":"The current state of the Safety Event.  Valid values: `unknown`, `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized`","enum":["unknown","needsReview","reviewed","needsCoaching","coached","dismissed","needsRecognition","recognized"],"example":"needsCoaching","type":"string"},"id":{"description":"The unique Samsara ID (uuid) of the safety event.","example":"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590,6caeb9c0-7e3d-49ae-a015-45c2f68fed4c","type":"string"},"inboxEventUrl":{"description":"A link to the Safety Event review page for the associated event.","example":"https://cloud.samsara.com/","type":"string"},"incidentReportUrl":{"description":"If a harsh event, returns the URL of the associated incident report page. If a speeding event, returns the URL of the associated speeding report page.","example":"https://cloud.samsara.com/","type":"string"},"location":{"$ref":"#/components/schemas/LocationResponseResponseBody"},"maxAccelerationGForce":{"description":"The maximum acceleration value as a multiplier on the force of gravity (g).","example":1,"format":"double","type":"number"},"media":{"description":"Media assets available for the safety event.","items":{"$ref":"#/components/schemas/SafetyEventV2MediaResponseBody"},"type":"array"},"speedingMetadata":{"$ref":"#/components/schemas/SafetyEventSpeedingMetadataResponseBody"},"startMs":{"description":"UTC time the Safety Event was detected in RFC 3339 format.","example":"2023-01-27T07:01:25Z","type":"string"},"tripEndTime":{"description":"UTC time the trip ended in RFC 3339 format. Null when Safety Event occurs off-trip or the trip is ongoing.","example":"2023-01-27T07:06:25Z","type":"string"},"tripStartTime":{"description":"UTC time the trip started in RFC 3339 format. Null when Safety Event occurs off-trip.","example":"2023-01-27T07:06:25Z","type":"string"},"updatedAtTime":{"description":"UTC time the Safety Event was updated in Samsara in RFC 3339 format.","example":"2023-01-27T10:04:20Z","type":"string"},"updatedByUserId":{"description":"The user ID associated with the user who made the event state change. Only returned if the event state changes.","example":"0987","type":"string"}},"required":["asset","behaviorLabels","contextLabels","createdAtTime","driver","endMs","eventState","id","inboxEventUrl","incidentReportUrl","location","maxAccelerationGForce","startMs","updatedAtTime"],"type":"object"},"SafetyEventVehicle":{"$ref":"#/components/schemas/vehicleTinyResponse"},"SafetyEventVehicleObjectResponseBody":{"description":"A minified vehicle object.","properties":{"id":{"description":"ID of the vehicle.","example":"1234","type":"string"}},"type":"object"},"SafetyEventsGetSafetyActivityEventFeedBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedResponseBody":{"properties":{"data":{"description":"Paginated safety event activity feed limited to 10 events.","items":{"$ref":"#/components/schemas/SafetyEventActivityFeedItemResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsGetSafetyActivityEventFeedUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsListResponse":{"description":"List of safety events.","properties":{"data":{"items":{"$ref":"#/components/schemas/SafetyEvent"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"SafetyEventsV2GetSafetyEventsV2BadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2BadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2ContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2GatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2InternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2MethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2NotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2NotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2ResponseBody":{"properties":{"data":{"description":"List of safety event objects.","items":{"$ref":"#/components/schemas/SafetyEventV2ObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2ServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamResponseBody":{"properties":{"data":{"description":"List of safety event objects.","items":{"$ref":"#/components/schemas/SafetyEventV2ObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2StreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2TooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2GetSafetyEventsV2UnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchRequestBody":{"description":"Request body for updating Safety Events. At least one of eventState, contextLabelsToAdd, contextLabelsToRemove, behaviorLabelsToAdd, or behaviorLabelsToRemove must be provided. Maximum 200 IDs per request.","properties":{"behaviorLabelsToAdd":{"description":"Behavior labels to add to the Safety Events.","example":["FollowingDistance","DefensiveDriving","ProtectiveEquipment"],"items":{"description":"A behavior label name to add.  Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HeavySpeeding`, `HighSpeedSuddenDisconnect`, `HosViolation`, `Idling`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OperationalEvent`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `RearCollisionWarning`, `Reversing`, `RollingStop`, `RolloverProtection`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`","enum":["Acceleration","AggressiveDriving","BluetoothHeadset","Braking","ContextConstructionOrWorkZone","ContextSnowyOrIcy","ContextVulnerableRoadUser","ContextWet","Crash","DefensiveDriving","DidNotYield","Drinking","Drowsy","Eating","EatingDrinking","EdgeDistractedDriving","EdgeRailroadCrossingViolation","FollowingDistance","FollowingDistanceModerate","FollowingDistanceSevere","ForwardCollisionWarning","GenericDistraction","GenericTailgating","HarshImpact","HarshTurn","HeavySpeeding","HighSpeedSuddenDisconnect","HosViolation","Idling","ImproperEgress","Invalid","LaneDeparture","LateResponse","LeftTurn","LightSpeeding","MaxSpeed","MobileUsage","ModerateSpeeding","NearCollison","NearPedestrianCollision","NoSeatbelt","ObstructedCamera","OperationalEvent","OtherViolation","Passenger","PolicyViolationMask","ProtectiveEquipment","ProximityWarning","RanRedLight","RearCollisionWarning","Reversing","RollingStop","RolloverProtection","SevereSpeeding","Smoking","Speeding","UTurn","UnsafeManeuver","UnsafeParking","VehicleInBlindSpotWarning","VulnerableRoadUserCollisionWarning","YawControl"],"example":"BluetoothHeadset","type":"string"},"type":"array"},"behaviorLabelsToRemove":{"description":"Behavior labels to remove from the Safety Events.","example":["Invalid","UTurn","GenericDistraction"],"items":{"description":"A behavior label name to remove.  Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HeavySpeeding`, `HighSpeedSuddenDisconnect`, `HosViolation`, `Idling`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OperationalEvent`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `RearCollisionWarning`, `Reversing`, `RollingStop`, `RolloverProtection`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`","enum":["Acceleration","AggressiveDriving","BluetoothHeadset","Braking","ContextConstructionOrWorkZone","ContextSnowyOrIcy","ContextVulnerableRoadUser","ContextWet","Crash","DefensiveDriving","DidNotYield","Drinking","Drowsy","Eating","EatingDrinking","EdgeDistractedDriving","EdgeRailroadCrossingViolation","FollowingDistance","FollowingDistanceModerate","FollowingDistanceSevere","ForwardCollisionWarning","GenericDistraction","GenericTailgating","HarshImpact","HarshTurn","HeavySpeeding","HighSpeedSuddenDisconnect","HosViolation","Idling","ImproperEgress","Invalid","LaneDeparture","LateResponse","LeftTurn","LightSpeeding","MaxSpeed","MobileUsage","ModerateSpeeding","NearCollison","NearPedestrianCollision","NoSeatbelt","ObstructedCamera","OperationalEvent","OtherViolation","Passenger","PolicyViolationMask","ProtectiveEquipment","ProximityWarning","RanRedLight","RearCollisionWarning","Reversing","RollingStop","RolloverProtection","SevereSpeeding","Smoking","Speeding","UTurn","UnsafeManeuver","UnsafeParking","VehicleInBlindSpotWarning","VulnerableRoadUserCollisionWarning","YawControl"],"example":"Idling","type":"string"},"type":"array"},"contextLabelsToAdd":{"description":"Context labels to add to the Safety Events.","example":["Wet Road","Improper Seat Belt","Speed Sign Verified","Wildlife"],"items":{"description":"A context label name to add.  Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Facing Away From Vehicle`, `Fog`, `Improper Seat Belt`, `Items in Hand`, `Lead Car`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `No Boots`, `No Coveralls`, `No Face Shield`, `No Gloves`, `No Hard Hat`, `No Hi-Vis Vest`, `No Safety Glasses`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Trailer Car`, `Very Drowsy`, `Wet Road`, `Wildlife`","enum":["Congested","Construction","Coupling/Uncoupling","Cyclist/Motorcyclist","Defensive","Facing Away From Vehicle","Fog","Improper Seat Belt","Items in Hand","Lead Car","Light Traffic","Moderate Traffic","Moderately Drowsy","Mounted Phone","No Boots","No Coveralls","No Face Shield","No Gloves","No Hard Hat","No Hi-Vis Vest","No Safety Glasses","Parking Lot","Passenger Mobile Usage","Passenger Sleeping","Passengers","Pedestrians","Raining","Sensitive Media","Slightly Drowsy","Snowing","Snowy Road","Speed Sign Verified","Trailer Car","Very Drowsy","Wet Road","Wildlife"],"example":"Defensive","type":"string"},"type":"array"},"contextLabelsToRemove":{"description":"Context labels to remove from the Safety Events.","example":["Wet Road","Lead Car"],"items":{"description":"A context label name to remove.  Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Facing Away From Vehicle`, `Fog`, `Improper Seat Belt`, `Items in Hand`, `Lead Car`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `No Boots`, `No Coveralls`, `No Face Shield`, `No Gloves`, `No Hard Hat`, `No Hi-Vis Vest`, `No Safety Glasses`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Trailer Car`, `Very Drowsy`, `Wet Road`, `Wildlife`","enum":["Congested","Construction","Coupling/Uncoupling","Cyclist/Motorcyclist","Defensive","Facing Away From Vehicle","Fog","Improper Seat Belt","Items in Hand","Lead Car","Light Traffic","Moderate Traffic","Moderately Drowsy","Mounted Phone","No Boots","No Coveralls","No Face Shield","No Gloves","No Hard Hat","No Hi-Vis Vest","No Safety Glasses","Parking Lot","Passenger Mobile Usage","Passenger Sleeping","Passengers","Pedestrians","Raining","Sensitive Media","Slightly Drowsy","Snowing","Snowy Road","Speed Sign Verified","Trailer Car","Very Drowsy","Wet Road","Wildlife"],"example":"Moderate Traffic","type":"string"},"type":"array"},"dismissalReason":{"$ref":"#/components/schemas/PatchSafetyEventsDismissalReasonBodyRequestBody"},"eventState":{"description":"The new state to apply to all specified Safety Events.  Valid values: `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized`","enum":["needsReview","reviewed","needsCoaching","coached","dismissed","needsRecognition","recognized"],"example":"needsReview","type":"string"},"safetyEventIds":{"description":"IDs of the Safety Events to update. Maximum 200.","example":["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590","bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"],"items":{"description":"The unique Samsara ID (uuid) of the safety event.","example":"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590","type":"string"},"type":"array"}},"required":["safetyEventIds"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchResponseBody":{"properties":{"requestId":{"description":"Server-generated UUID for client-side correlation and logging. Not stored or queryable on the backend.","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","type":"string"},"responses":{"description":"One entry per requested safetyEventId, in the same order as the request.","items":{"$ref":"#/components/schemas/PatchSafetyEventsResponseItemResponseBody"},"type":"array"}},"required":["requestId","responses"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyEventsV2PatchSafetyEventsV2BatchUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoreBehaviorObjectResponseBody":{"description":"Safety score behavior object.","properties":{"behaviorType":{"description":"Type of the behavior.  Valid values: `acceleration`, `braking`, `crash`, `defensiveDriving`, `didNotYield`, `distractedDrivingAutomatic`, `distractedDrivingManual`, `drowsy`, `eatingDrinking`, `followingDistance`, `followingDistanceModerate`, `followingDistanceSevere`, `forwardCollisionWarning`, `harshTurn`, `laneDeparture`, `lateResponse`, `mobileUsage`, `nearCollision`, `noSeatbelt`, `obstructedCamera`, `ranRedLight`, `rollingStop`, `smoking`, `speedingManual`, `unknown`","enum":["acceleration","braking","crash","defensiveDriving","didNotYield","distractedDrivingAutomatic","distractedDrivingManual","drowsy","eatingDrinking","followingDistance","followingDistanceModerate","followingDistanceSevere","forwardCollisionWarning","harshTurn","laneDeparture","lateResponse","mobileUsage","nearCollision","noSeatbelt","obstructedCamera","ranRedLight","rollingStop","smoking","speedingManual","unknown"],"example":"acceleration","type":"string"},"count":{"description":"Count of occurrences of the behavior.","example":5,"format":"int64","type":"integer"},"scoreImpact":{"description":"Total points increased or deducted from the score due to the total count of behaviors of this type. Weights for this calculation are defined in organisation settings. Negative numbers indicate points deducted and positive indicates points increased (e.g. defensive driving).","example":-18.91020325321117,"format":"double","type":"number"}},"required":["behaviorType","count","scoreImpact"],"type":"object"},"SafetyScoreConfigurationSettingsObjectResponseBody":{"description":"The configurable safety infraction weights.","properties":{"aiInattentiveDrivingDetectionWeight":{"description":"Score weight for AI-detected inattentive driving behavior.","example":2,"format":"int64","type":"integer"},"crashWeight":{"description":"Score weight for crash behavior.","example":1,"format":"int64","type":"integer"},"defensiveDrivingWeight":{"description":"Score weight for defensive driving behavior. This behavior has a positive impact on the safety score.","example":0,"format":"int64","type":"integer"},"didNotYieldWeight":{"description":"Score weight for driver not yielding.","example":0,"format":"int64","type":"integer"},"drowsyWeight":{"description":"Score weight for drowsy behavior.","example":0,"format":"int64","type":"integer"},"eatingDrinkingWeight":{"description":"Score weight for eating/drinking behavior.","example":0,"format":"int64","type":"integer"},"followingDistanceModerateWeight":{"description":"Score weight for moderate (2-4s) following distance behavior.","example":0,"format":"int64","type":"integer"},"followingDistanceSevereWeight":{"description":"Score weight for severe (0-2s) following distance behavior.","example":0,"format":"int64","type":"integer"},"followingDistanceWeight":{"description":"Score weight for following distance behavior.","example":2,"format":"int64","type":"integer"},"forwardCollisionWarningWeight":{"description":"Score weight for forward collision warning behavior.","example":0,"format":"int64","type":"integer"},"harshAccelWeight":{"description":"Score weight for harsh acceleration behavior.","example":1,"format":"int64","type":"integer"},"harshBrakeWeight":{"description":"Score weight for harsh braking behavior.","example":1,"format":"int64","type":"integer"},"harshTurnWeight":{"description":"Score weight for harsh turn behavior.","example":1,"format":"int64","type":"integer"},"heavySpeedingWeight":{"description":"Score weight for heavy speeding (20-30% over limit).","example":1,"format":"int64","type":"integer"},"inattentiveDrivingWeight":{"description":"Score weight for inattentive driving behavior.","example":0,"format":"int64","type":"integer"},"laneDepartureWeight":{"description":"Score weight for lane departure behavior.","example":0,"format":"int64","type":"integer"},"lateResponseWeight":{"description":"Score weight for late response behavior.","example":0,"format":"int64","type":"integer"},"lightSpeedingWeight":{"description":"Score weight for light speeding (0-10% over limit).","example":0,"format":"int64","type":"integer"},"maxSpeedWeight":{"description":"Score weight for max speed events.","example":1,"format":"int64","type":"integer"},"mobileUsageWeight":{"description":"Score weight for mobile usage behavior.","example":0,"format":"int64","type":"integer"},"moderateSpeedingWeight":{"description":"Score weight for moderate speeding (10-20% over limit).","example":1,"format":"int64","type":"integer"},"nearCollisionWeight":{"description":"Score weight for near collision behavior.","example":0,"format":"int64","type":"integer"},"noSeatbeltWeight":{"description":"Score weight for no seatbelt behavior.","example":0,"format":"int64","type":"integer"},"obstructedCameraWeight":{"description":"Score weight for obstructed camera behavior.","example":0,"format":"int64","type":"integer"},"ranRedLightWeight":{"description":"Score weight for driver running red light.","example":0,"format":"int64","type":"integer"},"rollingStopWeight":{"description":"Score weight for rolling stop behavior.","example":0,"format":"int64","type":"integer"},"severeSpeedingWeight":{"description":"Score weight for severe speeding (over 30% over limit).","example":1,"format":"int64","type":"integer"},"smokingWeight":{"description":"Score weight for smoking behavior.","example":0,"format":"int64","type":"integer"},"speedingWeight":{"description":"Score weight for manual speeding event.","example":0,"format":"int64","type":"integer"},"vulnerableRoadUserWeight":{"description":"Score weight for vulnerable road user behavior.","example":0,"format":"int64","type":"integer"}},"type":"object"},"SafetyScoreDetailsRequestBody":{"description":"Trigger when safety score meets the specified condition.","properties":{"comparison":{"description":"The comparison to use when comparing the value to the threshold.  Valid values: `EQUAL_TO`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL_TO`, `LESS_THAN`, `LESS_THAN_OR_EQUAL_TO`","enum":["EQUAL_TO","GREATER_THAN","GREATER_THAN_OR_EQUAL_TO","LESS_THAN","LESS_THAN_OR_EQUAL_TO"],"example":"EQUAL_TO","type":"string"},"score":{"description":"The score to compare to.","example":60,"maximum":100,"minimum":0,"type":"integer"}},"required":["comparison","score"],"type":"object"},"SafetyScoreDetailsResponseBody":{"description":"Trigger when safety score meets the specified condition.","properties":{"comparison":{"description":"The comparison to use when comparing the value to the threshold.  Valid values: `EQUAL_TO`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL_TO`, `LESS_THAN`, `LESS_THAN_OR_EQUAL_TO`","enum":["EQUAL_TO","GREATER_THAN","GREATER_THAN_OR_EQUAL_TO","LESS_THAN","LESS_THAN_OR_EQUAL_TO"],"example":"EQUAL_TO","type":"string"},"score":{"description":"The score to compare to.","example":60,"maximum":100,"minimum":0,"type":"integer"}},"required":["comparison","score"],"type":"object"},"SafetyScoreSpeedingObjectResponseBody":{"description":"Safety score speeding object.","properties":{"durationMilliseconds":{"description":"Total time spent speeding for the speeding type.","example":178773,"format":"int64","type":"integer"},"scoreImpact":{"description":"Total points increased or deducted from the score due to the total time spent speeding of this type. Weights for this calculation are defined in organisation settings. Negative numbers indicate points deducted.","example":-0.13049340306587562,"format":"double","type":"number"},"speedingType":{"description":"Type of speeding.  Valid values: `light`, `moderate`, `heavy`, `severe`, `maxSpeed`, `unknown`","enum":["light","moderate","heavy","severe","maxSpeed","unknown"],"example":"light","type":"string"}},"required":["durationMilliseconds","scoreImpact","speedingType"],"type":"object"},"SafetyScoresGetDriverSafetyScoresBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresResponseBody":{"properties":{"data":{"description":"List of driver risk factors.","items":{"$ref":"#/components/schemas/DriverSafetyScoreResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SafetyScoresGetDriverSafetyScoresServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetDriverSafetyScoresUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TagGroupSafetyScoreResponseBody"}},"required":["data"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagGroupSafetyScoresUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresResponseBody":{"properties":{"data":{"description":"List of tag risk factors.","items":{"$ref":"#/components/schemas/TagSafetyScoreResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SafetyScoresGetTagSafetyScoresServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetTagSafetyScoresUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresResponseBody":{"properties":{"data":{"description":"List of vehicle risk factors.","items":{"$ref":"#/components/schemas/VehicleSafetyScoreResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetyScoresGetVehicleSafetyScoresUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsResponseBody":{"properties":{"data":{"description":"Safety settings for a single organization.","items":{"$ref":"#/components/schemas/SafetySettingsObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"SafetySettingsGetSafetySettingsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsGetSafetySettingsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SafetySettingsObjectResponseBody":{"description":"Safety settings for a single organization.","properties":{"defaultVehicleType":{"description":"Default vehicle type (for newly added or activated vehicles).  Valid values: `off`, `automatic`, `passengerCar`, `lightTruck`, `heavyDuty`","enum":["off","automatic","passengerCar","lightTruck","heavyDuty"],"example":"heavyDuty","type":"string"},"distractedDrivingDetectionAlerts":{"$ref":"#/components/schemas/DistractedDrivingDetectionAlertSettingsObjectResponseBody"},"followingDistanceDetectionAlerts":{"$ref":"#/components/schemas/FollowingDistanceDetectionAlertSettingsObjectResponseBody"},"forwardCollisionDetectionAlerts":{"$ref":"#/components/schemas/ForwardCollisionDetectionAlertSettingsObjectResponseBody"},"harshEventSensitivity":{"$ref":"#/components/schemas/HarshEventSensitivitySettingsObjectResponseBody"},"harshEventSensitivityV2":{"$ref":"#/components/schemas/HarshEventSensitivityV2SettingsObjectResponseBody"},"policyViolationsDetectionAlerts":{"$ref":"#/components/schemas/PolicyViolationsDetectionAlertSettingsObjectResponseBody"},"rollingStopDetectionAlerts":{"$ref":"#/components/schemas/RollingStopDetectionAlertSettingsObjectResponseBody"},"safetyScoreConfiguration":{"$ref":"#/components/schemas/SafetyScoreConfigurationSettingsObjectResponseBody"},"safetyScoreTarget":{"description":"The fleet-wide target safety score that is shown on safety score graphs. A safety score goal of 0 means that score benchmarking is disabled.","example":90,"format":"int64","type":"integer"},"speedingSettings":{"$ref":"#/components/schemas/SpeedingSettingsObjectResponseBody"},"voiceCoaching":{"$ref":"#/components/schemas/VoiceCoachingSettingsObjectResponseBody"}},"required":["defaultVehicleType","distractedDrivingDetectionAlerts","followingDistanceDetectionAlerts","forwardCollisionDetectionAlerts","harshEventSensitivity","harshEventSensitivityV2","policyViolationsDetectionAlerts","rollingStopDetectionAlerts","safetyScoreConfiguration","safetyScoreTarget","speedingSettings","voiceCoaching"],"type":"object"},"ScheduledMaintenanceByEngineHoursDetailsObjectRequestBody":{"description":"Details specific to Scheduled Maintenance By Engine Hours","properties":{"dueInHours":{"description":"Alert when maintenance is due in the specified number of hours.","example":5000,"format":"int64","type":"integer"},"scheduleId":{"description":"The id of the maintenance schedule.","example":"123","type":"string"}},"required":["dueInHours","scheduleId"],"type":"object"},"ScheduledMaintenanceByEngineHoursDetailsObjectResponseBody":{"description":"Details specific to Scheduled Maintenance By Engine Hours","properties":{"dueInHours":{"description":"Alert when maintenance is due in the specified number of hours.","example":5000,"format":"int64","type":"integer"},"scheduleId":{"description":"The id of the maintenance schedule.","example":"123","type":"string"}},"required":["dueInHours","scheduleId"],"type":"object"},"ScheduledMaintenanceByEngineHoursResponseBody":{"description":"Details specific to Scheduled Maintenance By Engine Hours.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"ScheduledMaintenanceDataResponseBody":{"description":"Details specific to Scheduled Maintenance.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"ScheduledMaintenanceOdometerDataResponseBody":{"description":"Details specific to Scheduled Maintenance By Odometer.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"ScheduledMaintenanceOdometerTriggerDetailsObjectRequestBody":{"description":"Details specific to Scheduled Maintenance by Odometer","properties":{"dueInMeters":{"description":"Alert when vehicle odometer has this many meters left until maintenance is due.","example":5000,"format":"int64","type":"integer"},"scheduleId":{"description":"The id of the maintenance schedule.","example":"123","type":"string"}},"required":["dueInMeters","scheduleId"],"type":"object"},"ScheduledMaintenanceOdometerTriggerDetailsObjectResponseBody":{"description":"Details specific to Scheduled Maintenance by Odometer","properties":{"dueInMeters":{"description":"Alert when vehicle odometer has this many meters left until maintenance is due.","example":5000,"format":"int64","type":"integer"},"scheduleId":{"description":"The id of the maintenance schedule.","example":"123","type":"string"}},"required":["dueInMeters","scheduleId"],"type":"object"},"ScheduledMaintenanceTriggerDetailsObjectRequestBody":{"description":"Details specific to Scheduled Maintenance by Date","properties":{"dueInDays":{"description":"Alert when maintenance is due in the specified number of days.","example":10,"format":"int64","type":"integer"},"scheduleId":{"description":"The id of the maintenance schedule.","example":"123","type":"string"}},"required":["dueInDays","scheduleId"],"type":"object"},"ScheduledMaintenanceTriggerDetailsObjectResponseBody":{"description":"Details specific to Scheduled Maintenance by Date","properties":{"dueInDays":{"description":"Alert when maintenance is due in the specified number of days.","example":10,"format":"int64","type":"integer"},"scheduleId":{"description":"The id of the maintenance schedule.","example":"123","type":"string"}},"required":["dueInDays","scheduleId"],"type":"object"},"ScopeObjectRequestBody":{"description":"What the triggers are scoped to. These are the objects this alert applies to.","properties":{"all":{"description":"Whether it applies to all applicable objects.","example":true,"type":"boolean"},"assets":{"description":"The assets these triggers are scoped to.","items":{"$ref":"#/components/schemas/TinyAssetObjectRequestBody"},"type":"array"},"drivers":{"description":"The drivers these triggers are scoped to.","items":{"$ref":"#/components/schemas/TinyDriverObjectRequestBody"},"type":"array"},"tags":{"description":"The tags these triggers are scoped to.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseRequestBody"},"type":"array"},"widgets":{"description":"The widgets these triggers are scoped to.","items":{"$ref":"#/components/schemas/TinyWidgetObjectRequestBody"},"type":"array"}},"required":["all"],"type":"object"},"ScopeObjectResponseBody":{"description":"What the triggers are scoped to. These are the objects this alert applies to.","properties":{"all":{"description":"Whether it applies to all applicable objects.","example":true,"type":"boolean"},"assets":{"description":"The assets these triggers are scoped to.","items":{"$ref":"#/components/schemas/TinyAssetObjectResponseBody"},"type":"array"},"drivers":{"description":"The drivers these triggers are scoped to.","items":{"$ref":"#/components/schemas/TinyDriverObjectResponseBody"},"type":"array"},"tags":{"description":"The tags these triggers are scoped to.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"widgets":{"description":"The widgets these triggers are scoped to.","items":{"$ref":"#/components/schemas/TinyWidgetObjectResponseBody"},"type":"array"}},"required":["all"],"type":"object"},"Sensor":{"properties":{"id":{"description":"ID of the sensor","type":"string"},"mac":{"description":"MAC address of the sensor","type":"string"},"name":{"description":"Name of the sensor","type":"string"}},"required":["id","mac","name"],"type":"object"},"SensorsGetSensorsHistoryBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryRequestBody":{"description":"Time range and resolution, and list of sensor ID, field pairs to query.","properties":{"durationMs":{"description":"Duration of the time range, specified in milliseconds.","example":3600000,"format":"int64","type":"integer"},"endMs":{"description":"End of the time range, specified in milliseconds UNIX time.","example":1462881998034,"format":"int64","type":"integer"},"fillMissing":{"example":"withPrevious","type":"string"},"groupId":{"description":"Group ID to query.","example":1234,"format":"int64","type":"integer"},"includeBroadcastData":{"description":"Optional parameter to return datapoints received via [Broadcast Mode](https://kb.samsara.com/hc/en-us/articles/6790401650445-Improved-Sensor-Connectivity-with-Broadcast-Mode).","example":false,"type":"boolean"},"series":{"description":"Sensor ID and field pairs to query.","items":{"$ref":"#/components/schemas/SensorsHistorySeriesRequestBody"},"type":"array"},"startMs":{"description":"Beginning of the time range, specified in milliseconds UNIX time.","example":1462878398034,"format":"int64","type":"integer"},"stepMs":{"description":"Time resolution for which data should be returned, in milliseconds. Specifying 3600000 will return data at hour intervals.","example":3600000,"format":"int64","type":"integer"}},"required":["endMs","series","startMs","stepMs"],"type":"object"},"SensorsGetSensorsHistoryResponseBody":{"properties":{"results":{"description":"List of results objects, each containing a time and a datapoint for each requested sensor/field pair.","items":{"$ref":"#/components/schemas/SensorsHistoryResultResponseBody"},"type":"array"}},"type":"object"},"SensorsGetSensorsHistoryServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsGetSensorsHistoryUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsHistoryResultResponseBody":{"properties":{"series":{"description":"List of datapoints, one for each requested (sensor, field) pair. Values may be null when fillMissing is withNull.","example":[1,1],"items":{"description":"Datapoint value.","example":1,"format":"int64","nullable":true,"type":"integer"},"type":"array"},"timeMs":{"description":"Timestamp in UNIX milliseconds.","example":1453449599999,"format":"int64","type":"integer"}},"type":"object"},"SensorsHistorySeriesRequestBody":{"description":"Sensor ID and field to query.","properties":{"field":{"description":"Field to query.","example":"ambientTemperature","type":"string"},"widgetId":{"description":"V1Sensor ID to query.","example":1,"format":"int64","type":"integer"}},"required":["field","widgetId"],"type":"object"},"SensorsListPostSensorsListBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListResponseBody":{"properties":{"sensors":{"description":"List of sensor objects.","items":{"$ref":"#/components/schemas/V1SensorResponseBody"},"type":"array"}},"required":["sensors"],"type":"object"},"SensorsListPostSensorsListServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SensorsListPostSensorsListUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"Serial":{"description":"The serial number of the gateway installed in the vehicle.","example":"VG12345","type":"string"},"ServiceTaskAssigneeObjectResponseBody":{"description":"A technician assigned to a service task.","properties":{"userId":{"description":"Samsara dashboard user ID of the assigned technician. Joinable against the public users API.","example":"67890","type":"string"}},"required":["userId"],"type":"object"},"ServiceTaskDefinitionObjectResponseBody":{"description":"A service task definition object.","properties":{"category":{"description":"The category of the service task.","example":"Engine","type":"string"},"description":{"description":"A description of the service task.","example":"Standard oil change service including filter replacement.","type":"string"},"estimatedLaborTimeMinutes":{"description":"Estimated time in minutes to complete the task.","example":30,"format":"int32","type":"integer"},"estimatedPartsCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"},"id":{"description":"The unique id of the service task definition.","example":"abf63a9a-4d75-423d-b49f-38a071e6ce36","type":"string"},"name":{"description":"The name of the service task.","example":"Oil Change","type":"string"},"subcategory":{"description":"The subcategory of the service task.","example":"Oil and Lubrication","type":"string"},"vmrsCode":{"description":"Full VMRS code path (e.g. 034-005-001) assigned to the service task. Omitted when the task has no VMRS code or the organization has VMRS codes turned off.","example":"034-005-001","type":"string"}},"required":["id","name"],"type":"object"},"ServiceTaskFormSubtaskObjectResponseBody":{"description":"A form subtask.","properties":{"formSubmissionUuid":{"description":"The UUID of the form submission.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"}},"required":["formSubmissionUuid"],"type":"object"},"ServiceTaskInstanceInputObjectRequestBody":{"description":"Work Order Service Task object.","properties":{"id":{"description":"ID of the service task instance. Only set if updating an existing service task instance.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"laborHourlyCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectRequestBody"},"laborTimeMinutes":{"description":"The time of labor needed","example":60,"format":"int32","type":"integer"},"notes":{"description":"Free-form technician notes for the service task.","example":"Replaced gasket; will revisit next service.","type":"string"},"parts":{"description":"Parts for the service task.","items":{"$ref":"#/components/schemas/PartInstanceInputObjectRequestBody"},"type":"array"},"partsCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectRequestBody"},"serviceTaskId":{"description":"ID of the service task.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"status":{"description":"The status of the service task.  Valid values: `Unknown`, `Open`, `In Progress`, `On Hold`, `Completed`","enum":["Unknown","Open","In Progress","On Hold","Completed"],"example":"Unknown","type":"string"}},"required":["serviceTaskId","status"],"type":"object"},"ServiceTaskInstanceObjectResponseBody":{"description":"Work Order Service Task object.","properties":{"assignees":{"description":"Dashboard users assigned to the service task. Only returned for organizations with service task assignees enabled. Technicians backed only by a driver are not represented.","items":{"$ref":"#/components/schemas/ServiceTaskAssigneeObjectResponseBody"},"type":"array"},"id":{"description":"ID of the service task instance.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"laborHourlyCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"},"laborTimeMinutes":{"description":"The time of labor needed","example":60,"format":"int32","type":"integer"},"notes":{"description":"Free-form technician notes for the service task.","example":"Replaced gasket; will revisit next service.","type":"string"},"parts":{"description":"Parts for the service task.","items":{"$ref":"#/components/schemas/PartInstanceObjectResponseBody"},"type":"array"},"partsCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"},"serviceTaskId":{"description":"ID of the service task.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"status":{"description":"The status of the service task.  Valid values: `Unknown`, `Open`, `In Progress`, `On Hold`, `Completed`","enum":["Unknown","Open","In Progress","On Hold","Completed"],"example":"Unknown","type":"string"},"subtasks":{"description":"Subtasks for the service task.","items":{"$ref":"#/components/schemas/ServiceTaskSubtaskObjectResponseBody"},"type":"array"}},"required":["id","serviceTaskId","status"],"type":"object"},"ServiceTaskInstanceWithTimeEntriesObjectResponseBody":{"description":"Work Order Service Task object.","properties":{"assignees":{"description":"Dashboard users assigned to the service task. Only returned for organizations with service task assignees enabled. Technicians backed only by a driver are not represented.","items":{"$ref":"#/components/schemas/ServiceTaskAssigneeObjectResponseBody"},"type":"array"},"id":{"description":"ID of the service task instance.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"laborHourlyCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"},"laborTimeMinutes":{"description":"The time of labor needed","example":60,"format":"int32","type":"integer"},"notes":{"description":"Free-form technician notes for the service task.","example":"Replaced gasket; will revisit next service.","type":"string"},"parts":{"description":"Parts for the service task.","items":{"$ref":"#/components/schemas/PartInstanceObjectResponseBody"},"type":"array"},"partsCost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"},"serviceTaskId":{"description":"ID of the service task.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"status":{"description":"The status of the service task.  Valid values: `Unknown`, `Open`, `In Progress`, `On Hold`, `Completed`","enum":["Unknown","Open","In Progress","On Hold","Completed"],"example":"Unknown","type":"string"},"subtasks":{"description":"Subtasks for the service task.","items":{"$ref":"#/components/schemas/ServiceTaskSubtaskObjectResponseBody"},"type":"array"},"timeEntries":{"description":"Technician time entries logged against this service task. Only returned for organizations using Technician Management. Includes both completed entries (clockOutAtTime is set) and entries that are still open (clockOutAtTime is null).","items":{"$ref":"#/components/schemas/WorkOrderTimeEntryObjectResponseBody"},"type":"array"}},"required":["id","serviceTaskId","status"],"type":"object"},"ServiceTaskProcedureSubtaskObjectResponseBody":{"description":"A procedure subtask.","properties":{"isCompleted":{"description":"Whether the procedure is complete.","example":false,"type":"boolean"},"name":{"description":"The name of the procedure.","example":"Inspect brakes","type":"string"}},"required":["isCompleted","name"],"type":"object"},"ServiceTaskSubtaskObjectResponseBody":{"description":"A service task subtask. Exactly one of procedure or form is populated.","properties":{"form":{"$ref":"#/components/schemas/ServiceTaskFormSubtaskObjectResponseBody"},"procedure":{"$ref":"#/components/schemas/ServiceTaskProcedureSubtaskObjectResponseBody"}},"type":"object"},"ServiceWindowObjectResponseBody":{"description":"Service window","properties":{"daysOfWeek":{"description":"Days of the week when the service window applies","example":["monday","monday","monday","monday"],"items":{"description":"Day of week","example":"monday","type":"string"},"type":"array"},"endTime":{"description":"End time of the service window","example":"17:00:00","type":"string"},"startTime":{"description":"Start time of the service window","example":"08:00:00","type":"string"}},"required":["daysOfWeek","endTime","startTime"],"type":"object"},"SetEquipmentDigitalOutputDataResponseBody":{"description":"The digital output state that was successfully applied to the device.","properties":{"durationSeconds":{"description":"The duration, in seconds, the state will be held. `0` means indefinitely.","example":60,"format":"int32","type":"integer"},"id":{"description":"The Samsara ID of the gateway whose digital output was controlled.","example":1234,"format":"int64","type":"integer"},"pinId":{"description":"The digital output pin that was controlled.","example":1,"format":"int32","type":"integer"},"state":{"description":"The output state that was applied.","example":true,"type":"boolean"}},"required":["durationSeconds","id","pinId","state"],"type":"object"},"SettingsComplianceResponseObjectResponseBody":{"description":"Information set here will be displayed in roadside inspections and in the transferred US DOT datafile.","properties":{"allowUnregulatedVehiclesEnabled":{"description":"[deprecated] Allow Unregulated Vehicles. This setting is deprecated as all organizations can now mark vehicles as unregulated.","example":false,"type":"boolean"},"canadaHosEnabled":{"description":"Enable Canada HOS","example":true,"type":"boolean"},"carrierName":{"description":"Carrier name of the organization","example":"ABC Trucking","type":"string"},"dotNumber":{"description":"DOT Number","example":12345678,"format":"int64","type":"integer"},"driverAutoDutyEnabled":{"description":"Enable Driver Auto-Duty","example":false,"type":"boolean"},"editCertifiedLogsEnabled":{"description":"Drivers Can Edit Certified Log","example":true,"type":"boolean"},"forceManualLocationForDutyStatusChangesEnabled":{"description":"Force Manual Location For Duty Status Changes","example":true,"type":"boolean"},"forceReviewUnassignedHosEnabled":{"description":"Force Review of Unassigned HOS","example":false,"type":"boolean"},"mainOfficeFormattedAddress":{"description":"Office Address","example":"123 Main Street","type":"string"},"persistentDutyStatusEnabled":{"description":"Persistent Duty Status","example":false,"type":"boolean"}},"type":"object"},"SettingsGetComplianceSettingsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/SettingsComplianceResponseObjectResponseBody"}},"required":["data"],"type":"object"},"SettingsGetComplianceSettingsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetComplianceSettingsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/DriverAppSettingsResponseObjectResponseBody"}},"required":["data"],"type":"object"},"SettingsGetDriverAppSettingsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsGetDriverAppSettingsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsRequestBody":{"description":"Information set here will be displayed in roadside inspections and in the transferred US DOT datafile. Can be set or updated through the Samsara Settings page or the API at any time. To override these fields for specific drivers, please visit Driver Settings","properties":{"allowUnregulatedVehiclesEnabled":{"description":"[deprecated] Allow Unregulated Vehicles. This setting is deprecated as all organizations can now mark vehicles as unregulated.","example":false,"type":"boolean"},"canadaHosEnabled":{"description":"Enable Canada HOS","example":false,"type":"boolean"},"carrierName":{"description":"Carrier Name / Principal Place of Business Name","example":"ABC Trucking","type":"string"},"dotNumber":{"description":"Carrier US DOT Number","example":12345678,"format":"int64","type":"integer"},"driverAutoDutyEnabled":{"description":"Enable Driver Auto-Duty","example":false,"type":"boolean"},"editCertifiedLogsEnabled":{"description":"Drivers Can Edit Certified Log","example":true,"type":"boolean"},"forceManualLocationForDutyStatusChangesEnabled":{"description":"Force Manual Location For Duty Status Changes","example":false,"type":"boolean"},"forceReviewUnassignedHosEnabled":{"description":"Force Review of Unassigned HOS","example":true,"type":"boolean"},"mainOfficeFormattedAddress":{"description":"Main Office Address / Principal Place of Businesss Address","example":"123 Main Street","type":"string"},"persistentDutyStatusEnabled":{"description":"Persistent Duty Status","example":false,"type":"boolean"}},"type":"object"},"SettingsPatchComplianceSettingsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/SettingsComplianceResponseObjectResponseBody"}},"required":["data"],"type":"object"},"SettingsPatchComplianceSettingsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchComplianceSettingsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsRequestBody":{"description":"The configuration settings for the Samsara Driver App. Can be set or updated through the Samsara Settings page or the API at any time.","properties":{"driverFleetId":{"description":"Global login user name for the fleet driver app","example":"abc-trucking-co","pattern":"^[a-zA-Z0-9-:]*$","type":"string"},"gamification":{"description":"Driver gamification feature. Enabling this will turn on the feature for all drivers using the mobile app. Drivers can be configured into peer groups within the Drivers Page. Unconfigured drivers will be grouped on an organization level.","example":false,"type":"boolean"},"gamificationConfig":{"$ref":"#/components/schemas/DriverAppSettingsGamificationConfigTinyObjectRequestBody"},"orgVehicleSearch":{"description":"Allow drivers to search for vehicles outside of their selection tag when connected to the internet.","example":true,"type":"boolean"},"trailerSelection":{"description":"Allow drivers to see and select trailers in the Samsara Driver app. ","example":false,"type":"boolean"},"trailerSelectionConfig":{"$ref":"#/components/schemas/DriverAppSettingsTrailerSelectionConfigTinyObjectRequestBody"}},"type":"object"},"SettingsPatchDriverAppSettingsResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/DriverAppSettingsResponseObjectResponseBody"}},"required":["data"],"type":"object"},"SettingsPatchDriverAppSettingsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsPatchDriverAppSettingsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SettingsResponseBody":{"description":"Information about a geofence settings.","properties":{"showAddresses":{"description":"The geofence setting. If this setting set to true, then underlying geofence addresses will be shown in reports instead of a geofence's name.","items":{"$ref":"#/components/schemas/VertexResponseBody"},"type":"array"}},"type":"object"},"SevereSpeedingStartedObjectResponseBody":{"description":"The start of a severe speeding event","properties":{"startTime":{"description":"The speeding start time in RFC 3339 format (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"tripStartTime":{"description":"The trip start time in RFC 3339 format (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/VehicleResponseResponseBody"}},"required":["startTime","vehicle"],"type":"object"},"SevereSpeedingStartedResponseObjectResponseBody":{"description":"The start of a severe speeding event","properties":{"data":{"$ref":"#/components/schemas/SevereSpeedingStartedObjectResponseBody"}},"required":["data"],"type":"object"},"SharedAssetResponseObjectResponseBody":{"description":"Shared asset response object.","properties":{"createdAtTime":{"description":"Time the shared asset was created, in RFC 3339 format.","example":"2024-01-13T10:00:00Z","type":"string"},"createdByUserId":{"description":"User ID who created the shared asset.","example":"111","type":"string"},"endTime":{"description":"End time of the sharing period in RFC 3339 format. Null means indefinite sharing.","example":"2025-01-13T10:00:00Z","type":"string"},"id":{"description":"Unique identifier for the shared asset.","example":"11111111-1111-1111-1111-111111111111","type":"string"},"providerAssetId":{"description":"Asset ID in the provider organization.","example":"1234567890","type":"string"},"recipientAssetId":{"description":"Asset ID in the recipient organization. Only populated after asset is mirrored.","example":"9876543210","type":"string"},"serial":{"description":"The serial number of the shared asset.","example":"GVJC-3VX-XXX","type":"string"},"startTime":{"description":"Start time of the sharing period in RFC 3339 format.","example":"2024-01-13T10:00:00Z","type":"string"}},"required":["createdAtTime","id","providerAssetId","serial","startTime"],"type":"object"},"SignatoryUserObjectResponseBody":{"description":"The user who signed the DVIR.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the user.","example":"938172","type":"string"}},"required":["id"],"type":"object"},"SingleApprovalRequirementsObjectResponseBody":{"description":"Single approval requirements object.","properties":{"roleIds":{"description":"List of role IDs representing which user roles can be approvers.","example":["23d4d8d3-dc10-4e7a-a183-69968751f23e"],"items":{"example":"Mollitia architecto ad rerum.","type":"string"},"type":"array"}},"required":["roleIds"],"type":"object"},"SingleUseLocationObjectResponseBody":{"description":"Single use location for route stops","properties":{"address":{"description":"The full address string","example":"1234 Main St, San Jose, CA","type":"string"},"latitude":{"description":"Latitude coordinate","example":123.456,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate","example":37.459,"format":"double","type":"number"}},"required":["address","latitude","longitude"],"type":"object"},"SiteGatewayDisconnectedResponseBody":{"description":"Details specific to Site Gateway Disconnected.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"SkillObjectResponseBody":{"description":"Skill object","properties":{"id":{"description":"The unique identifier for the skill","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"name":{"description":"The name of the skill","example":"Heavy Lifting","type":"string"}},"required":["id","name"],"type":"object"},"SpecificVehicleFaultCodeObjectRequestBody":{"description":"A specific vehicle fault code.","properties":{"faultCode":{"description":"The specific fault code name.","example":"1067","type":"string"},"type":{"description":"The specific fault code type.  Valid values: `INVALID_FAULT_CODE_TYPE`, `J1939_DTC`, `J1939_SPN`, `PASSENGER_DTC`","enum":["INVALID_FAULT_CODE_TYPE","J1939_DTC","J1939_SPN","PASSENGER_DTC"],"example":"J1939_SPN","type":"string"}},"required":["faultCode","type"],"type":"object"},"SpecificVehicleFaultCodeObjectResponseBody":{"description":"A specific vehicle fault code.","properties":{"faultCode":{"description":"The specific fault code name.","example":"1067","type":"string"},"type":{"description":"The specific fault code type.  Valid values: `INVALID_FAULT_CODE_TYPE`, `J1939_DTC`, `J1939_SPN`, `PASSENGER_DTC`","enum":["INVALID_FAULT_CODE_TYPE","J1939_DTC","J1939_SPN","PASSENGER_DTC"],"example":"J1939_SPN","type":"string"}},"required":["faultCode","type"],"type":"object"},"SpeedDataResponseBody":{"description":"Details specific to Speed.","properties":{"currentSpeedKilometersPerHour":{"description":"Current speed of the vehicle in kilometers per hour.","example":100,"format":"int32","type":"integer"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"minDurationMilliseconds":{"description":"Minimum duration of the current speed in milliseconds.","example":100000,"format":"int64","type":"integer"},"operation":{"description":"Operation of the current and threshold comparison.  Valid values: `GREATER`, `INSIDE_RANGE`, `LESS`, `OUTSIDE_RANGE`","enum":["GREATER","INSIDE_RANGE","LESS","OUTSIDE_RANGE"],"example":"GREATER","type":"string"},"thresholdSpeedKilometersPerHour":{"description":"Threshold speed of the vehicle in kilometers per hour.","example":100,"format":"int32","type":"integer"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"required":["currentSpeedKilometersPerHour","minDurationMilliseconds","operation","thresholdSpeedKilometersPerHour"],"type":"object"},"SpeedResponseResponseBody":{"description":"Speed object.","properties":{"ecuSpeedMetersPerSecond":{"description":"Speed of asset based on ECU data.","example":30.2,"format":"double","type":"number"},"gpsSpeedMetersPerSecond":{"description":"Speed of asset based on GPS data.","example":30.2,"format":"double","type":"number"}},"type":"object"},"SpeedTriggerDetailsObjectRequestBody":{"description":"Details specific to Speed","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `LESS`","enum":["GREATER","LESS"],"example":"GREATER","type":"string"},"speedKilometersPerHour":{"description":"The speed threshold value.","example":120,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds","operation","speedKilometersPerHour"],"type":"object"},"SpeedTriggerDetailsObjectResponseBody":{"description":"Details specific to Speed","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `LESS`","enum":["GREATER","LESS"],"example":"GREATER","type":"string"},"speedKilometersPerHour":{"description":"The speed threshold value.","example":120,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds","operation","speedKilometersPerHour"],"type":"object"},"SpeedingIntervalLocationResponseResponseBody":{"description":"Location object of the closest location point to the interval.","properties":{"accuracyMeters":{"description":"Radial accuracy of gps location in meters. This will only return if strong GPS is not available.","example":5.801,"format":"double","type":"number"},"address":{"$ref":"#/components/schemas/AddressResponseResponseBody"},"headingDegrees":{"description":"Heading of the asset in degrees. May be 0 if the asset is not moving.","example":120,"format":"int64","type":"integer"},"latitude":{"description":"Latitude of the closest location point to the interval.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the closest location point to the interval.","example":137.2719,"format":"double","type":"number"}},"required":["address","headingDegrees","latitude","longitude"],"type":"object"},"SpeedingIntervalResponseBody":{"description":"Speeding Interval Object","properties":{"endTime":{"description":"UTC time the interval ended in RFC 3339 format.","example":"2023-01-27T07:06:25Z","type":"string"},"isDismissed":{"description":"Whether the interval is dismissed.","example":true,"type":"boolean"},"location":{"$ref":"#/components/schemas/SpeedingIntervalLocationResponseResponseBody"},"maxSpeedKilometersPerHour":{"description":"The max speed exceeded for the speeding interval.","example":65,"format":"double","type":"number"},"postedSpeedLimitKilometersPerHour":{"description":"The posted speed limit associated with the speeding interval.","example":75,"format":"double","type":"number"},"severityLevel":{"description":"Specifies the severity level of the speeding interval.  Valid values: `light`, `moderate`, `heavy`, `severe`","enum":["light","moderate","heavy","severe"],"example":"severe","type":"string"},"startTime":{"description":"UTC time the interval started in RFC 3339 format.","example":"2023-01-27T07:06:25Z","type":"string"}},"required":["endTime","isDismissed","location","maxSpeedKilometersPerHour","postedSpeedLimitKilometersPerHour","severityLevel","startTime"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsResponseBody":{"properties":{"data":{"description":"List of speeding intervals associated with trips.","items":{"$ref":"#/components/schemas/TripSpeedingIntervalsResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingIntervalsGetSpeedingIntervalsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"SpeedingSettingsObjectResponseBody":{"description":"Enables custom speeding levels.","properties":{"severityLevels":{"description":"The speeding severity levels for an organization.","items":{"$ref":"#/components/schemas/speedingSeverityLevelResponseBody"},"type":"array"},"unit":{"description":"The unit of measurement for speeding  Valid values: `milesPerHour`, `kilometersPerHour`, `percentage`","enum":["milesPerHour","kilometersPerHour","percentage"],"example":"milesPerHour","type":"string"}},"type":"object"},"StartFunctionRunResponseBodyResponseBody":{"description":"Response body after successfully starting a Function run.","properties":{"correlationId":{"description":"Unique identifier for this function execution.","example":"550e8400-e29b-41d4-a716-446655440000","type":"string"}},"required":["correlationId"],"type":"object"},"StopEtaUpdatedEventDetailsResponseBody":{"description":"Details for stop ETA updated events.","properties":{"etaMs":{"description":"Estimated arrival time in milliseconds since epoch.","example":"1640995200000","type":"string"},"etaUpdatedAtMs":{"description":"Time when the ETA was updated in milliseconds since epoch.","example":"1640995100000","type":"string"}},"required":["etaMs","etaUpdatedAtMs"],"type":"object"},"StopTaskCompletedEventDetailsResponseBody":{"description":"Details for stop task completed events.","properties":{"taskId":{"description":"ID of the completed stop task.","example":"789","type":"string"},"taskType":{"description":"Type of the completed stop task.  Valid values: `form`, `document`","enum":["form","document"],"example":"form","type":"string"}},"required":["taskId","taskType"],"type":"object"},"StopTaskSkippedEventDetailsResponseBody":{"description":"Details for stop task skipped events.","properties":{"taskId":{"description":"ID of the skipped stop task.","example":"789","type":"string"},"taskType":{"description":"Type of the skipped stop task.  Valid values: `form`, `document`","enum":["form","document"],"example":"form","type":"string"}},"required":["taskId","taskType"],"type":"object"},"StringDataPoint":{"description":"A single string data point of a data input.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"String value of the data point.","example":"On","format":"string","type":"string"}},"type":"object"},"SuddenFuelLevelDropResponseBody":{"description":"Details specific to Sudden Fuel Level Drop.","properties":{"changeEndTime":{"description":"The end time of the fuel level change in RFC 3339 format.","example":"2020-01-27T07:06:25Z","format":"date-time","type":"string"},"changeStartTime":{"description":"The start time of the fuel level change in RFC 3339 format.","example":"2020-01-27T07:06:25Z","format":"date-time","type":"string"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"fuelLevelAfterMillipercent":{"description":"The fuel level after the sudden fuel level drop in millipercents.","example":70000,"format":"int32","type":"integer"},"fuelLevelBeforeMillipercent":{"description":"The fuel level before the sudden fuel level drop in millipercents.","example":50000,"format":"int32","type":"integer"},"location":{"$ref":"#/components/schemas/EventLocationResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"SuddenFuelLevelDropTriggerDetailsObjectRequestBody":{"description":"Details specific to Sudden Fuel Level Drop","properties":{"minFuelLevelChangeInPercents":{"description":"The minimum fuel level change in percents to trigger on. Need to be between 5 to 100.","example":6,"format":"int64","type":"integer"}},"required":["minFuelLevelChangeInPercents"],"type":"object"},"SuddenFuelLevelDropTriggerDetailsObjectResponseBody":{"description":"Details specific to Sudden Fuel Level Drop","properties":{"minFuelLevelChangeInPercents":{"description":"The minimum fuel level change in percents to trigger on. Need to be between 5 to 100.","example":6,"format":"int64","type":"integer"}},"required":["minFuelLevelChangeInPercents"],"type":"object"},"SuddenFuelLevelRiseResponseBody":{"description":"Details specific to Sudden Fuel Level Rise.","properties":{"changeEndTime":{"description":"The end time of the fuel level change in RFC 3339 format.","example":"2020-01-27T07:06:25Z","format":"date-time","type":"string"},"changeStartTime":{"description":"The start time of the fuel level change in RFC 3339 format.","example":"2020-01-27T07:06:25Z","format":"date-time","type":"string"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"fuelLevelAfterMillipercent":{"description":"The fuel level after the sudden fuel level rise in millipercents.","example":70000,"format":"int32","type":"integer"},"fuelLevelBeforeMillipercent":{"description":"The fuel level before the sudden fuel level rise in millipercents.","example":50000,"format":"int32","type":"integer"},"location":{"$ref":"#/components/schemas/EventLocationResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"SuddenFuelLevelRiseTriggerDetailsObjectRequestBody":{"description":"Details specific to Sudden Fuel Level Rise","properties":{"minFuelLevelChangeInPercents":{"description":"The minimum fuel level change in percents to trigger on. Need to be between 5 to 100.","example":6,"format":"int64","type":"integer"}},"required":["minFuelLevelChangeInPercents"],"type":"object"},"SuddenFuelLevelRiseTriggerDetailsObjectResponseBody":{"description":"Details specific to Sudden Fuel Level Rise","properties":{"minFuelLevelChangeInPercents":{"description":"The minimum fuel level change in percents to trigger on. Need to be between 5 to 100.","example":6,"format":"int64","type":"integer"}},"required":["minFuelLevelChangeInPercents"],"type":"object"},"TachographActivity":{"description":"Tachograph activity","properties":{"endTime":{"description":"End time of state in RFC 3339 format.","example":"2020-01-03T16:04:05Z07:00","type":"string"},"isManualEntry":{"description":"A flag indicating whether the activity was manually entered by the driver. If this is `true`, the state cannot be \"UNKNOWN\"","example":false,"type":"boolean"},"startTime":{"description":"Start time of state in RFC 3339 format.","example":"2020-01-02T15:04:05Z07:00","type":"string"},"state":{"description":"Tachograph activity state. Valid values: `BREAK/REST`, `WORK`, `AVAILABILITY`, `DRIVING`, `UNKNOWN`.","enum":["BREAK/REST","WORK","AVAILABILITY","DRIVING","UNKNOWN"],"type":"string"}},"type":"object"},"TachographActivityList":{"description":"List of all driver tachograph activities in a specified time range.","items":{"$ref":"#/components/schemas/TachographActivity"},"type":"array"},"TachographActivityListWrapper":{"properties":{"activity":{"$ref":"#/components/schemas/TachographActivityList"},"driver":{"$ref":"#/components/schemas/driverTinyResponse"}},"type":"object"},"TachographDriverFile":{"description":"Tachograph driver file","properties":{"cardNumber":{"description":"Tachograph card number associated with the file.","example":"1000000492436002","type":"string"},"createdAtTime":{"description":"Creation time of files in RFC 3339 format. This is either the download time from the tachograph itself (for files downloaded via Samsara VG) or upload time (for files manually uploaded via Samsara UI).","example":"2020-01-02T15:04:05Z07:00","type":"string"},"id":{"description":"ID of the file.","example":"4aff772c-a7bb-45e6-8e41-6a53e34feb83","type":"string"},"url":{"description":"A temporary URL which can be used to download the file. The link can be used multiple times and expires after an hour.","example":"https://samsara-tachograph-files.s3.us-west-2.amazonaws.com/123/456/789/4aff772c-a7bb-45e6-8e41-6a53e34feb83.ddd","type":"string"}},"type":"object"},"TachographDriverFileData":{"items":{"$ref":"#/components/schemas/TachographDriverFileListWrapper"},"type":"array"},"TachographDriverFileList":{"description":"List of all tachograph driver files in a specified time range.","items":{"$ref":"#/components/schemas/TachographDriverFile"},"type":"array"},"TachographDriverFileListWrapper":{"properties":{"driver":{"$ref":"#/components/schemas/driverTinyResponse"},"files":{"$ref":"#/components/schemas/TachographDriverFileList"}},"type":"object"},"TachographDriverFilesResponse":{"description":"List of all driver tachograph files in a specified time range.","properties":{"data":{"$ref":"#/components/schemas/TachographDriverFileData"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"TachographFileUploadResponseBody":{"description":"A reserved tachograph file upload with a presigned URL to upload the file bytes to.","properties":{"expiresAtTime":{"description":"RFC 3339 timestamp when the presigned upload URL expires.","example":"2024-01-01T13:00:00Z","format":"date-time","type":"string"},"requiredHeaders":{"description":"The HTTP headers that must be included on the upload PUT request.","items":{"$ref":"#/components/schemas/TachographUploadRequiredHeaderResponseBody"},"type":"array"},"uploadUrl":{"description":"The presigned URL to upload the file bytes to with an HTTP PUT. Upload the raw bytes directly to this URL with the required headers.","example":"https://example-bucket.s3.amazonaws.com/tachograph-uploads/v1/...?X-Amz-Signature=...","type":"string"}},"required":["expiresAtTime","requiredHeaders","uploadUrl"],"type":"object"},"TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadRequestBody":{"description":"Request body for reserving a tachograph file upload.","properties":{"contentMd5":{"description":"Base64-encoded MD5 digest of the file bytes (base64(md5(bytes))). Used as the Content-MD5 integrity check enforced by object storage on upload.","example":"rL0Y20zC+Fzt72VPzMSk2A==","type":"string"},"contentType":{"description":"The MIME content type of the file. The upload is sent to object storage as raw bytes.  Valid values: `application/octet-stream`","enum":["application/octet-stream"],"example":"application/octet-stream","type":"string"},"fileSizeBytes":{"description":"The size of the file in bytes. Enforced as the Content-Length on upload. Maximum 10 MB (10485760 bytes).","example":8192,"maximum":10485760,"minimum":1,"type":"integer"},"fileType":{"description":"The kind of tachograph file being uploaded. The driver or device the file belongs to is resolved from the file contents, not from this field.  Valid values: `driverCard`, `vehicleUnit`","enum":["driverCard","vehicleUnit"],"example":"driverCard","type":"string"}},"required":["contentMd5","contentType","fileSizeBytes","fileType"],"type":"object"},"TachographFileUploadsPostTachographFileUploadResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TachographFileUploadResponseBody"}},"required":["data"],"type":"object"},"TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TachographUploadRequiredHeaderResponseBody":{"description":"An HTTP header that must be included when uploading the file bytes to the presigned URL.","properties":{"name":{"description":"The header name.","example":"Content-MD5","type":"string"},"value":{"description":"The header value.","example":"rL0Y20zC+Fzt72VPzMSk2A==","type":"string"}},"required":["name","value"],"type":"object"},"TachographVehicleFile":{"description":"Tachograph vehicle file","properties":{"createdAtTime":{"description":"Creation time of files in RFC 3339 format. This is either the download time from the tachograph itself (for files downloaded via Samsara VG) or upload time (for files manually uploaded via Samsara UI).","example":"2020-01-02T15:04:05Z07:00","type":"string"},"id":{"description":"ID of the file.","example":"4aff772c-a7bb-45e6-8e41-6a53e34feb83","type":"string"},"url":{"description":"A temporary URL which can be used to download the file. The link can be used multiple times and expires after an hour.","example":"https://samsara-tachograph-files.s3.us-west-2.amazonaws.com/123/456/789/4aff772c-a7bb-45e6-8e41-6a53e34feb83.ddd","type":"string"},"vehicleIdentificationNumber":{"description":"VIN associated with the vehicle file.","example":"1000000492436002","type":"string"}},"type":"object"},"TachographVehicleFileData":{"items":{"$ref":"#/components/schemas/TachographVehicleFileListWrapper"},"type":"array"},"TachographVehicleFileList":{"description":"List of all tachograph vehicle files in a specified time range.","items":{"$ref":"#/components/schemas/TachographVehicleFile"},"type":"array"},"TachographVehicleFileListWrapper":{"properties":{"files":{"$ref":"#/components/schemas/TachographVehicleFileList"},"vehicle":{"$ref":"#/components/schemas/vehicleTinyResponse"}},"type":"object"},"TachographVehicleFilesResponse":{"description":"List of all vehicle tachograph files in a specified time range.","properties":{"data":{"$ref":"#/components/schemas/TachographVehicleFileData"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"type":"object"},"Tag":{"allOf":[{"$ref":"#/components/schemas/TinyTag"},{"$ref":"#/components/schemas/Tag_allOf"}]},"TagGroupSafetyScoreResponseBody":{"description":"Safety score details for tag group.","properties":{"behaviors":{"description":"Aggregated list of behaviors, one row for each unique type of behavior.","items":{"$ref":"#/components/schemas/SafetyScoreBehaviorObjectResponseBody"},"type":"array"},"combinedScore":{"description":"Safety score for the tag group. The score is a rounded number between 0-100.","example":92,"format":"int32","type":"integer"},"driveDistanceMeters":{"description":"Total sum of distance driven in all trips across the group.","example":2207296,"format":"int64","type":"integer"},"driveTimeMilliseconds":{"description":"Total time spent driving in all trips across the group.","example":136997730,"format":"int64","type":"integer"},"speeding":{"description":"Aggregated list of speeding events, one row for each unique type of speeding.","items":{"$ref":"#/components/schemas/SafetyScoreSpeedingObjectResponseBody"},"type":"array"}},"required":["behaviors","combinedScore","driveDistanceMeters","driveTimeMilliseconds","speeding"],"type":"object"},"TagId":{"description":"Unique Samsara ID of this tag.","example":"342417","type":"string"},"TagIds":{"description":"The ids of the tags that the asset should belong to.","items":{"example":"123","type":"string"},"type":"array"},"TagName":{"description":"Name of this tag.","example":"California","maxLength":191,"minLength":1,"type":"string"},"TagResponse":{"description":"A single tag.","properties":{"data":{"$ref":"#/components/schemas/Tag"}},"type":"object"},"TagSafetyScoreResponseBody":{"description":"Safety score details for tag.","properties":{"behaviors":{"description":"Aggregated list of behaviors, one row for each unique type of behavior.","items":{"$ref":"#/components/schemas/SafetyScoreBehaviorObjectResponseBody"},"type":"array"},"driveDistanceMeters":{"description":"Total sum of distance driven by drivers / vehicles in the tag.","example":2207296,"format":"int64","type":"integer"},"driveTimeMilliseconds":{"description":"Total time spent driving by drivers / vehicles in the tag.","example":136997730,"format":"int64","type":"integer"},"speeding":{"description":"Aggregated list of speeding events, one row for each unique type of speeding.","items":{"$ref":"#/components/schemas/SafetyScoreSpeedingObjectResponseBody"},"type":"array"},"tagId":{"description":"ID of the tag.","example":"5678","type":"string"},"tagScore":{"description":"Safety score for the tag. The score is a rounded number between 0-100.","example":92,"format":"int32","type":"integer"}},"required":["behaviors","driveDistanceMeters","driveTimeMilliseconds","speeding","tagId","tagScore"],"type":"object"},"Tag_allOf":{"properties":{"addresses":{"description":"The addresses that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObject"},"type":"array"},"assets":{"description":"The trailers, unpowered, and powered assets that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObject"},"type":"array"},"drivers":{"description":"The drivers that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObject"},"type":"array"},"externalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"properties":{},"type":"object"},"machines":{"description":"The machines that belong to thistag.","items":{"$ref":"#/components/schemas/TaggedObject"},"type":"array"},"parentTag":{"$ref":"#/components/schemas/ParentTag"},"sensors":{"description":"The sensors that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObject"},"type":"array"},"vehicles":{"description":"The vehicles that belong to this tag.","items":{"$ref":"#/components/schemas/TaggedObject"},"type":"array"}},"type":"object"},"TaggedObject":{"properties":{"id":{"$ref":"#/components/schemas/TaggedObjectId"},"name":{"$ref":"#/components/schemas/TaggedObjectName"}},"required":["id"],"type":"object"},"TaggedObjectId":{"description":"The object ID.","example":"23502866574","type":"string"},"TaggedObjectName":{"description":"The object name.","example":"Driver Don","type":"string"},"TamperingDetectedResponseBody":{"description":"Details specific to Tampering Detected.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"TechnicianShiftObjectResponseBody":{"description":"A technician attendance shift.","properties":{"clockInAtTime":{"description":"Shift start.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"clockInSource":{"description":"Surface that recorded clock-in.  Valid values: `api`, `cloud`, `mobile`, `unknown`","enum":["api","cloud","mobile","unknown"],"example":"api","type":"string"},"clockOutAtTime":{"description":"Shift end; omitted while open.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"clockOutSource":{"description":"Surface that recorded clock-out; omitted while open.  Valid values: `api`, `cloud`, `mobile`, `unknown`","enum":["api","cloud","mobile","unknown"],"example":"api","type":"string"},"createdAtTime":{"description":"Server-recorded creation time.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"driverId":{"description":"Linked Driver captured when the shift was created.","example":"281474976710657","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"External identifiers, with at most 30 pairs.","example":{"hrisShiftId":"SHIFT-9001"},"type":"object"},"externalTechnicianIds":{"additionalProperties":{"type":"string"},"description":"External identifiers, with at most 30 pairs.","example":{"hrisShiftId":"SHIFT-9001"},"type":"object"},"id":{"description":"Stable server-generated shift UUID.","example":"27df219c-2e98-4c4d-9c1f-11dfe40f46ed","format":"uuid","type":"string"},"placeId":{"description":"Maintenance-shop Place ID.","example":"281474976710658","type":"string"},"status":{"description":"Derived shift status.  Valid values: `inProgress`, `completed`, `unknown`","enum":["inProgress","completed","unknown"],"example":"inProgress","type":"string"},"updatedAtTime":{"description":"Last material shift update.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"userId":{"description":"Samsara User captured when the shift was created.","example":"281474976710656","type":"string"},"version":{"description":"Server-managed revision. Echo the received value on PATCH.","example":1,"format":"int64","type":"integer"}},"required":["clockInAtTime","clockInSource","createdAtTime","id","status","updatedAtTime","version"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftRequestBody":{"description":"Creates an open or completed shift. Only the documented fields are accepted.","properties":{"clockInAtTime":{"description":"Shift start.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"clockOutAtTime":{"description":"Shift end, strictly after start.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"External identifiers, with at most 30 pairs.","example":{"hrisShiftId":"SHIFT-9001"},"type":"object"},"placeId":{"description":"Maintenance-shop Place ID.","example":"281474976710658","type":"string"},"userId":{"description":"Owning technician's Samsara User ID.","example":"281474976710656","type":"string"}},"required":["clockInAtTime","userId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TechnicianShiftObjectResponseBody"}},"required":["data"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsCreateTechnicianShiftUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsResponseBody":{"properties":{"data":{"description":"Matching shifts.","items":{"$ref":"#/components/schemas/TechnicianShiftObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/TechnicianShiftsPaginationResponseBody"}},"required":["data","pagination"],"type":"object"},"TechnicianShiftsListTechnicianShiftsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsListTechnicianShiftsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPaginationResponseBody":{"description":"Cursor pagination.","properties":{"endCursor":{"description":"Continue with this cursor and the same filters; empty at the end.","example":"","type":"string"},"hasNextPage":{"description":"Whether another page is available.","example":false,"type":"boolean"}},"required":["endCursor","hasNextPage"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftRequestBody":{"description":"At least one change is required. Null and unsupported fields are rejected; omitted fields remain unchanged.","properties":{"clockInAtTime":{"description":"Corrected shift start.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"clockOutAtTime":{"description":"Shift end, strictly after start.","example":"2026-09-10T15:00:00Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"External identifiers, with at most 30 pairs.","example":{"hrisShiftId":"SHIFT-9001"},"type":"object"},"placeId":{"description":"Maintenance-shop Place ID.","example":"281474976710658","type":"string"},"version":{"description":"Expected revision from the last response; stale material changes return 409.","example":1,"minimum":1,"type":"integer"}},"required":["version"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TechnicianShiftObjectResponseBody"}},"required":["data"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TechnicianShiftsPatchTechnicianShiftUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"ThermographTemperatureResponseBody":{"description":"Details specific to Thermograph Temperature.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"TimeRangeObjectRequestBody":{"description":"A daily time range. If start time of day is greater than end time of day, then the time range applies overnight from the specified day of week into the following day.","properties":{"daysOfWeek":{"description":"Which days this timezone applies to.","example":["THURSDAY","SUNDAY","SUNDAY","MONDAY"],"items":{"description":"The day of the week.  Valid values: `FRIDAY`, `MONDAY`, `SATURDAY`, `SUNDAY`, `THURSDAY`, `TUESDAY`, `WEDNESDAY`","enum":["FRIDAY","MONDAY","SATURDAY","SUNDAY","THURSDAY","TUESDAY","WEDNESDAY"],"example":"FRIDAY","type":"string"},"type":"array"},"endTime":{"description":"The time of day at which the time range starts. In 24 hour kitchen clock format.","example":"20:00","type":"string"},"startTime":{"description":"The time of day at which the time range starts. In 24 hour kitchen clock format.","example":"11:00","type":"string"},"timezone":{"description":"The timezone of the time range uses [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"}},"required":["daysOfWeek","endTime","startTime","timezone"],"type":"object"},"TimeRangeObjectResponseBody":{"description":"A daily time range. If start time of day is greater than end time of day, then the time range applies overnight from the specified day of week into the following day.","properties":{"daysOfWeek":{"description":"Which days this timezone applies to.","example":["SATURDAY","WEDNESDAY","SUNDAY","FRIDAY"],"items":{"description":"The day of the week.  Valid values: `FRIDAY`, `MONDAY`, `SATURDAY`, `SUNDAY`, `THURSDAY`, `TUESDAY`, `WEDNESDAY`","enum":["FRIDAY","MONDAY","SATURDAY","SUNDAY","THURSDAY","TUESDAY","WEDNESDAY"],"example":"SUNDAY","type":"string"},"type":"array"},"endTime":{"description":"The time of day at which the time range starts. In 24 hour kitchen clock format.","example":"20:00","type":"string"},"startTime":{"description":"The time of day at which the time range starts. In 24 hour kitchen clock format.","example":"11:00","type":"string"},"timezone":{"description":"The timezone of the time range uses [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"}},"required":["daysOfWeek","endTime","startTime","timezone"],"type":"object"},"TinyAssetObjectRequestBody":{"description":"Vehicle, trailer or other equipment to be tracked.","properties":{"assetId":{"description":"ID of the asset.","example":"12443","type":"string"},"assetType":{"default":"uncategorized","description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"}},"required":["assetId","assetType"],"type":"object"},"TinyAssetObjectResponseBody":{"description":"Vehicle, trailer or other equipment to be tracked.","properties":{"assetId":{"description":"ID of the asset.","example":"12443","type":"string"},"assetType":{"default":"uncategorized","description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"}},"required":["assetId","assetType"],"type":"object"},"TinyDriverObjectRequestBody":{"description":"The driver of a vehicle.","properties":{"driverId":{"description":"ID of the driver.","example":"12434","type":"string"}},"required":["driverId"],"type":"object"},"TinyDriverObjectResponseBody":{"description":"The driver of a vehicle.","properties":{"driverId":{"description":"ID of the driver.","example":"12434","type":"string"}},"required":["driverId"],"type":"object"},"TinyTag":{"properties":{"id":{"$ref":"#/components/schemas/TagId"},"name":{"$ref":"#/components/schemas/TagName"},"parentTagId":{"$ref":"#/components/schemas/ParentTagId"}},"type":"object"},"TinyWidgetObjectRequestBody":{"description":"Widget to be tracked.","properties":{"widgetId":{"description":"ID of the widget.","example":"12434","type":"string"}},"required":["widgetId"],"type":"object"},"TinyWidgetObjectResponseBody":{"description":"Widget to be tracked.","properties":{"widgetId":{"description":"ID of the widget.","example":"12434","type":"string"}},"required":["widgetId"],"type":"object"},"TireFaultCodeDetailsObjectRequestBody":{"description":"Details specific to Tire Fault Code. At least one fault code or fault code group must be selected.","properties":{"hasCautionaryTireFaultCodes":{"description":"If true then alert over pressure, under pressure, across axle fault, or leak detected fault codes. Defaults to false.","example":true,"type":"boolean"},"hasCriticalTireFaultCodes":{"description":"If true then alert over temperature or extreme pressure over or under fault codes. Defaults to false.","example":true,"type":"boolean"},"manufacturer":{"description":"The tire manufacturer.  Valid values: `MANUFACTURER_BENDIX`, `MANUFACTURER_CONTINENTAL`, `MANUFACTURER_DORAN`, `MANUFACTURER_HENDRICKSON`, `MANUFACTURER_INVALID`, `MANUFACTURER_PASSENGER_CAN`, `MANUFACTURER_PRESSURE_PRO`, `MANUFACTURER_SENSATA`, `MANUFACTURER_SYSGRATION`, `MANUFACTURER_UNIVERSAL_J1939`, `MANUFACTURER_UNIVERSAL_R141`","enum":["MANUFACTURER_BENDIX","MANUFACTURER_CONTINENTAL","MANUFACTURER_DORAN","MANUFACTURER_HENDRICKSON","MANUFACTURER_INVALID","MANUFACTURER_PASSENGER_CAN","MANUFACTURER_PRESSURE_PRO","MANUFACTURER_SENSATA","MANUFACTURER_SYSGRATION","MANUFACTURER_UNIVERSAL_J1939","MANUFACTURER_UNIVERSAL_R141"],"example":"MANUFACTURER_BENDIX","type":"string"},"specificTireFaultCodes":{"description":"The list of specific tire fault codes to be alerted on.","example":["TIRE_ALERT_ACROSS_AXLE_FAULT","TIRE_ALERT_ACROSS_AXLE_FAULT","TIRE_ALERT_ACROSS_AXLE_FAULT","TIRE_ALERT_ACROSS_AXLE_FAULT"],"items":{"description":"The specific tire fault codes.  Valid values: `TIRE_ALERT_ACROSS_AXLE_FAULT`, `TIRE_ALERT_EXTREME_OVER_PRESSURE`, `TIRE_ALERT_EXTREME_UNDER_PRESSURE`, `TIRE_ALERT_FLAT_SPOT`, `TIRE_ALERT_IMBALANCE`, `TIRE_ALERT_INVALID`, `TIRE_ALERT_LEAK_DETECTED`, `TIRE_ALERT_OVER_PRESSURE`, `TIRE_ALERT_OVER_TEMPERATURE`, `TIRE_ALERT_SENSOR_DEFECT`, `TIRE_ALERT_SENSOR_LOOSE_OR_FLIPPED`, `TIRE_ALERT_SENSOR_LOW_BATTERY`, `TIRE_ALERT_SENSOR_MISSING`, `TIRE_ALERT_UNDER_PRESSURE`","enum":["TIRE_ALERT_ACROSS_AXLE_FAULT","TIRE_ALERT_EXTREME_OVER_PRESSURE","TIRE_ALERT_EXTREME_UNDER_PRESSURE","TIRE_ALERT_FLAT_SPOT","TIRE_ALERT_IMBALANCE","TIRE_ALERT_INVALID","TIRE_ALERT_LEAK_DETECTED","TIRE_ALERT_OVER_PRESSURE","TIRE_ALERT_OVER_TEMPERATURE","TIRE_ALERT_SENSOR_DEFECT","TIRE_ALERT_SENSOR_LOOSE_OR_FLIPPED","TIRE_ALERT_SENSOR_LOW_BATTERY","TIRE_ALERT_SENSOR_MISSING","TIRE_ALERT_UNDER_PRESSURE"],"example":"TIRE_ALERT_ACROSS_AXLE_FAULT","type":"string"},"type":"array"}},"required":["manufacturer"],"type":"object"},"TireFaultCodeDetailsObjectResponseBody":{"description":"Details specific to Tire Fault Code. At least one fault code or fault code group must be selected.","properties":{"hasCautionaryTireFaultCodes":{"description":"If true then alert over pressure, under pressure, across axle fault, or leak detected fault codes. Defaults to false.","example":true,"type":"boolean"},"hasCriticalTireFaultCodes":{"description":"If true then alert over temperature or extreme pressure over or under fault codes. Defaults to false.","example":true,"type":"boolean"},"manufacturer":{"description":"The tire manufacturer.  Valid values: `MANUFACTURER_BENDIX`, `MANUFACTURER_CONTINENTAL`, `MANUFACTURER_DORAN`, `MANUFACTURER_HENDRICKSON`, `MANUFACTURER_INVALID`, `MANUFACTURER_PASSENGER_CAN`, `MANUFACTURER_PRESSURE_PRO`, `MANUFACTURER_SENSATA`, `MANUFACTURER_SYSGRATION`, `MANUFACTURER_UNIVERSAL_J1939`, `MANUFACTURER_UNIVERSAL_R141`","enum":["MANUFACTURER_BENDIX","MANUFACTURER_CONTINENTAL","MANUFACTURER_DORAN","MANUFACTURER_HENDRICKSON","MANUFACTURER_INVALID","MANUFACTURER_PASSENGER_CAN","MANUFACTURER_PRESSURE_PRO","MANUFACTURER_SENSATA","MANUFACTURER_SYSGRATION","MANUFACTURER_UNIVERSAL_J1939","MANUFACTURER_UNIVERSAL_R141"],"example":"MANUFACTURER_BENDIX","type":"string"},"specificTireFaultCodes":{"description":"The list of specific tire fault codes to be alerted on.","example":["TIRE_ALERT_ACROSS_AXLE_FAULT","TIRE_ALERT_ACROSS_AXLE_FAULT"],"items":{"description":"The specific tire fault codes.  Valid values: `TIRE_ALERT_ACROSS_AXLE_FAULT`, `TIRE_ALERT_EXTREME_OVER_PRESSURE`, `TIRE_ALERT_EXTREME_UNDER_PRESSURE`, `TIRE_ALERT_FLAT_SPOT`, `TIRE_ALERT_IMBALANCE`, `TIRE_ALERT_INVALID`, `TIRE_ALERT_LEAK_DETECTED`, `TIRE_ALERT_OVER_PRESSURE`, `TIRE_ALERT_OVER_TEMPERATURE`, `TIRE_ALERT_SENSOR_DEFECT`, `TIRE_ALERT_SENSOR_LOOSE_OR_FLIPPED`, `TIRE_ALERT_SENSOR_LOW_BATTERY`, `TIRE_ALERT_SENSOR_MISSING`, `TIRE_ALERT_UNDER_PRESSURE`","enum":["TIRE_ALERT_ACROSS_AXLE_FAULT","TIRE_ALERT_EXTREME_OVER_PRESSURE","TIRE_ALERT_EXTREME_UNDER_PRESSURE","TIRE_ALERT_FLAT_SPOT","TIRE_ALERT_IMBALANCE","TIRE_ALERT_INVALID","TIRE_ALERT_LEAK_DETECTED","TIRE_ALERT_OVER_PRESSURE","TIRE_ALERT_OVER_TEMPERATURE","TIRE_ALERT_SENSOR_DEFECT","TIRE_ALERT_SENSOR_LOOSE_OR_FLIPPED","TIRE_ALERT_SENSOR_LOW_BATTERY","TIRE_ALERT_SENSOR_MISSING","TIRE_ALERT_UNDER_PRESSURE"],"example":"TIRE_ALERT_ACROSS_AXLE_FAULT","type":"string"},"type":"array"}},"required":["manufacturer"],"type":"object"},"TireFaultsResponseBody":{"description":"Details specific to Tire Faults.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"TotalBrakeEventCount":{"description":"Total number of brake events.","type":"number"},"TrailerAssignmentsCreateDriverTrailerAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentRequestBody":{"description":"Create a new driver-trailer assignment","properties":{"driverId":{"description":"ID of the driver. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.","example":"494123","type":"string"},"startTime":{"description":"The start time in RFC 3339 format. The time needs to be current or within the past 7 days. Defaults to now if not provided","example":"2019-06-13T19:08:25Z","type":"string"},"trailerId":{"description":"ID of the trailer. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the trailer.","example":"12345","type":"string"}},"required":["driverId","trailerId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostDriverTrailerAssignmentsResponseBodyResponseBody"}},"required":["data"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsCreateDriverTrailerAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody":{"properties":{"data":{"description":"List of driver trailer assignment objects and their respective driver and trailer info.","items":{"$ref":"#/components/schemas/GetDriverTrailerAssignmentsResponseBodyResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsGetDriverTrailerAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentRequestBody":{"description":"Update a new driver-trailer assignment","properties":{"endTime":{"description":"The end time in RFC 3339 format. The end time should not be in the future","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["endTime"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PatchDriverTrailerAssignmentsResponseBodyResponseBody"}},"required":["data"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerAssignmentsUpdateDriverTrailerAssignmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerDvirObjectResponseBody":{"description":"A trailer object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the trailer","example":"494123","type":"string"}},"type":"object"},"TrailerGoaGatewayTinyResponseResponseBody":{"description":"A minified gateway object. This field will be omitted if the trailer does not have a gateway installed.","properties":{"model":{"description":"The model of the gateway installed on the asset.  Valid values: `AG15`, `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG41`, `AG41EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `IG15`, `IG21`, `IG41`, `IG61`, `SG1`, `SG1B`, `SG1G`, `SG1G32`, `SG1x`, `VG32`, `VG33`, `VG34`, `VG34EU`, `VG34FN`, `VG34M`, `VG54ATT`, `VG54EU`, `VG54FN`, `VG54NA`, `VG54NAE`, `VG54NAH`, `VG55EU`, `VG55FN`, `VG55NA`","enum":["AG15","AG24","AG24EU","AG26","AG26EU","AG41","AG41EU","AG45","AG45EU","AG46","AG46EU","AG46P","AG46PEU","AG51","AG51EU","AG52","AG52EU","AG53","AG53EU","AT11","AT11X","AT12","AT12X","AT13","IG15","IG21","IG41","IG61","SG1","SG1B","SG1G","SG1G32","SG1x","VG32","VG33","VG34","VG34EU","VG34FN","VG34M","VG54ATT","VG54EU","VG54FN","VG54NA","VG54NAE","VG54NAH","VG55EU","VG55FN","VG55NA"],"example":"VG34","type":"string"},"serial":{"description":"The serial number of the gateway installed on the asset.","example":"GFRV-43N-VGX","type":"string"}},"required":["model","serial"],"type":"object"},"TrailerMovingWithoutPowerDataResponseBody":{"description":"Details specific to Trailer Moving Without Power.","properties":{"currentVoltage":{"description":"Voltage value from the trigger metadata when the alert fired.","example":1115956427,"format":"int32","type":"integer"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"}},"type":"object"},"TrailerObjectResponseBody":{"description":"A trailer asset object associate with the assigment.","properties":{"trailerId":{"description":"Samsara ID of the trailer.","example":"494123","type":"string"}},"required":["trailerId"],"type":"object"},"TrailerResponseObjectResponseBody":{"properties":{"enabledForMobile":{"description":"Indicates if the trailer is visible on the Samsara mobile apps.","example":true,"type":"boolean"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unique Samsara ID of the Trailer. This is automatically generated when the Trailer object is created. It cannot be changed.","example":"494123","type":"string"},"installedGateway":{"$ref":"#/components/schemas/TrailerGoaGatewayTinyResponseResponseBody"},"licensePlate":{"description":"The license plate of the Trailer. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"7TYP290","maxLength":12,"type":"string"},"name":{"description":"The human-readable name of the Trailer. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Trailer-123","type":"string"},"notes":{"description":"These are generic notes about the Trailer. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are my trailer notes","maxLength":255,"type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Trailer.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"trailerSerialNumber":{"description":"The serial number of the trailer.","example":"8V8WD530FLN016251","type":"string"}},"required":["id"],"type":"object"},"TrailerStatDecorationResponseBody":{"description":"Decorated values for the primary trailer stat datapoints.","properties":{"carrierReeferState":{"$ref":"#/components/schemas/TrailerStatReeferStateTypeResponseBody"},"gps":{"$ref":"#/components/schemas/TrailerStatGpsTypeResponseBody"},"gpsOdometerMeters":{"$ref":"#/components/schemas/TrailerStatGpsOdometerMetersTypeResponseBody"},"reeferAlarms":{"$ref":"#/components/schemas/TrailerStatReeferAlarmTypeResponseBody"},"reeferAmbientAirTemperatureMilliC":{"$ref":"#/components/schemas/TrailerStatReeferAmbientAirTemperatureMilliCTypeResponseBody"},"reeferDoorStateZone1":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone1TypeResponseBody"},"reeferDoorStateZone2":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone2TypeResponseBody"},"reeferDoorStateZone3":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone3TypeResponseBody"},"reeferFuelPercent":{"$ref":"#/components/schemas/TrailerStatReeferFuelPercentTypeResponseBody"},"reeferObdEngineSeconds":{"$ref":"#/components/schemas/TrailerStatReeferObdEngineSecondsTypeResponseBody"},"reeferReturnAirTemperatureMilliCZone1":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone1TypeResponseBody"},"reeferReturnAirTemperatureMilliCZone2":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone2TypeResponseBody"},"reeferReturnAirTemperatureMilliCZone3":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone3TypeResponseBody"},"reeferRunMode":{"$ref":"#/components/schemas/TrailerStatReeferRunModeTypeResponseBody"},"reeferSetPointTemperatureMilliCZone1":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone1TypeResponseBody"},"reeferSetPointTemperatureMilliCZone2":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone2TypeResponseBody"},"reeferSetPointTemperatureMilliCZone3":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone3TypeResponseBody"},"reeferStateZone1":{"$ref":"#/components/schemas/TrailerStatReeferStateZone1TypeResponseBody"},"reeferStateZone2":{"$ref":"#/components/schemas/TrailerStatReeferStateZone2TypeResponseBody"},"reeferStateZone3":{"$ref":"#/components/schemas/TrailerStatReeferStateZone3TypeResponseBody"},"reeferSupplyAirTemperatureMilliCZone1":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone1TypeResponseBody"},"reeferSupplyAirTemperatureMilliCZone2":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone2TypeResponseBody"},"reeferSupplyAirTemperatureMilliCZone3":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone3TypeResponseBody"}},"type":"object"},"TrailerStatGpsOdometerMetersTypeResponseBody":{"description":"Trailer GPS odometer event.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Number of meters the trailer has traveled according to the GPS calculations and the manually specified odometer reading.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatGpsOdometerMetersWithDecorationsTypeResponseBody":{"description":"Trailer GPS odometer event.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Number of meters the trailer has traveled according to the GPS calculations and the manually specified odometer reading.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatGpsTypeResponseBody":{"description":"GPS location data for the trailer.","properties":{"headingDegrees":{"description":"Heading of the trailer in degrees.","example":7982033236946874000,"format":"int64","type":"integer"},"latitude":{"description":"GPS latitude represented in degrees.","example":0.02659130816226228,"format":"double","type":"number"},"longitude":{"description":"GPS longitude represented in degrees.","example":0.468774774626828,"format":"double","type":"number"},"reverseGeo":{"$ref":"#/components/schemas/ReverseGeoObjectResponseBody"},"speedMilesPerHour":{"description":"GPS speed of the trailer in miles per hour.","example":842599652113183900,"format":"int64","type":"integer"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"}},"required":["latitude","longitude","time"],"type":"object"},"TrailerStatGpsWithDecorationsTypeResponseBody":{"description":"GPS location data for the trailer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"headingDegrees":{"description":"Heading of the trailer in degrees.","example":1495749085005925000,"format":"int64","type":"integer"},"latitude":{"description":"GPS latitude represented in degrees.","example":0.5449429145346,"format":"double","type":"number"},"longitude":{"description":"GPS longitude represented in degrees.","example":0.46982365750308985,"format":"double","type":"number"},"reverseGeo":{"$ref":"#/components/schemas/ReverseGeoObjectResponseBody"},"speedMilesPerHour":{"description":"GPS speed of the trailer in miles per hour.","example":152047843600549300,"format":"int64","type":"integer"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"}},"required":["latitude","longitude","time"],"type":"object"},"TrailerStatReeferAlarmResponseBody":{"properties":{"alarmCode":{"description":"The ID of the alarm.","example":"3","type":"string"},"description":{"description":"The description of the alarm.","example":"Test alarm","type":"string"},"operatorAction":{"description":"The recommended operator action.","example":"Manually disable alarm","type":"string"},"severity":{"description":"The severity of the alarm. `1`: Ok to run, `2`: Check as specified, `3`: Take immediate action.","example":6264683518707844000,"format":"int64","type":"integer"}},"required":["alarmCode","description","operatorAction","severity"],"type":"object"},"TrailerStatReeferAlarmTypeResponseBody":{"description":"Alarms that have been emitted by the reefer.","properties":{"alarms":{"description":"The alarms reported by the reefer.","items":{"$ref":"#/components/schemas/TrailerStatReeferAlarmResponseBody"},"type":"array"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"}},"required":["alarms","time"],"type":"object"},"TrailerStatReeferAlarmWithDecorationsTypeResponseBody":{"description":"Alarms that have been emitted by the reefer.","properties":{"alarms":{"description":"The alarms reported by the reefer.","items":{"$ref":"#/components/schemas/TrailerStatReeferAlarmResponseBody"},"type":"array"},"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"}},"required":["alarms","time"],"type":"object"},"TrailerStatReeferAmbientAirTemperatureMilliCTypeResponseBody":{"description":"Reefer ambient air temperature reading.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The ambient air temperature reading of the reefer in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferAmbientAirTemperatureWithDecorationsTypeResponseBody":{"description":"Reefer ambient air temperature reading.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The ambient air temperature reading of the reefer in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferDoorStateZone1TypeResponseBody":{"description":"The door state of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The door state of zone 2 of the reefer.  Valid values: `open`, `closed`","enum":["open","closed"],"example":"closed","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferDoorStateZone1WithDecorationsTypeResponseBody":{"description":"Door stats that have been emitted by the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The door state of zone 2 of the reefer.  Valid values: `open`, `closed`","enum":["open","closed"],"example":"closed","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferDoorStateZone2TypeResponseBody":{"description":"The door state of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The door state of zone 2 of the reefer.  Valid values: `open`, `closed`","enum":["open","closed"],"example":"closed","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferDoorStateZone2WithDecorationsTypeResponseBody":{"description":"Door stats that have been emitted by the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The door state of zone 2 of the reefer.  Valid values: `open`, `closed`","enum":["open","closed"],"example":"closed","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferDoorStateZone3TypeResponseBody":{"description":"The door state of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The door state of zone 2 of the reefer.  Valid values: `open`, `closed`","enum":["open","closed"],"example":"closed","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferDoorStateZone3WithDecorationsTypeResponseBody":{"description":"Door stats that have been emitted by the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The door state of zone 2 of the reefer.  Valid values: `open`, `closed`","enum":["open","closed"],"example":"closed","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferFuelPercentTypeResponseBody":{"description":"The fuel percentage of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The fuel level in percentage points (e.g. `99`, `50`, etc).","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferFuelPercentWithDecorationsTypeResponseBody":{"description":"The fuel percentage of the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The fuel level in percentage points (e.g. `99`, `50`, etc).","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferObdEngineSecondsTypeResponseBody":{"description":"Reefer onboard engine seconds reading.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The number of seconds the reefer has been on according to the onboard diagnostics.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferObdEngineSecondsWithDecorationsTypeResponseBody":{"description":"Reefer onboard engine seconds reading.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The number of seconds the reefer has been on according to the onboard diagnostics.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferReturnAirTemperatureMilliCZone1TypeResponseBody":{"description":"Return air temperature of zone 1 of the reefer. This is the temperature of the air as it enters the cooling unit.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The return air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferReturnAirTemperatureMilliCZone1WithDecorationsTypeResponseBody":{"description":"Return air temperature of zone 1 of the reefer. This is the temperature of the air as it enters the cooling unit.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The return air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferReturnAirTemperatureMilliCZone2TypeResponseBody":{"description":"Return air temperature of zone 2 of the reefer. This is the temperature of the air as it enters the cooling unit.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The return air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferReturnAirTemperatureMilliCZone2WithDecorationsTypeResponseBody":{"description":"Return air temperature of zone 2 of the reefer. This is the temperature of the air as it enters the cooling unit.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The return air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferReturnAirTemperatureMilliCZone3TypeResponseBody":{"description":"Return air temperature of zone 3 of the reefer. This is the temperature of the air as it enters the cooling unit.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The return air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferReturnAirTemperatureMilliCZone3WithDecorationsTypeResponseBody":{"description":"Return air temperature of zone 3 of the reefer. This is the temperature of the air as it enters the cooling unit.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The return air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferRunModeTypeResponseBody":{"description":"The run mode of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The operational mode of the reefer.","example":"`Start/Stop`,`Continuous`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferRunModeWithDecorationsTypeResponseBody":{"description":"The run mode of the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The operational mode of the reefer.","example":"`Start/Stop`,`Continuous`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSetPointTemperatureMilliCZone1TypeResponseBody":{"description":"Set point temperature of zone 1 of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The set point temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSetPointTemperatureMilliCZone1WithDecorationsTypeResponseBody":{"description":"Set point temperature of zone 1 of the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The set point temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSetPointTemperatureMilliCZone2TypeResponseBody":{"description":"Set point temperature of zone 2 of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The set point temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSetPointTemperatureMilliCZone2WithDecorationsTypeResponseBody":{"description":"Set point temperature of zone 2 of the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The set point temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSetPointTemperatureMilliCZone3TypeResponseBody":{"description":"Set point temperature of zone 3 of the reefer.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The set point temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSetPointTemperatureMilliCZone3WithDecorationsTypeResponseBody":{"description":"Set point temperature of zone 3 of the reefer.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The set point temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateTypeResponseBody":{"description":"Reefer state event.","properties":{"substateValue":{"description":"The substate of the multizone carrier reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The overall state of the multizone carrier reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateWithDecorationsTypeResponseBody":{"description":"Reefer state event.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"substateValue":{"description":"The substate of the multizone carrier reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The overall state of the multizone carrier reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateZone1TypeResponseBody":{"description":"Reefer state event.","properties":{"substateValue":{"description":"The substate zone 1 of the reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The state zone 1 of the reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateZone1WithDecorationsTypeResponseBody":{"description":"Reefer state event.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"substateValue":{"description":"The substate zone 1 of the reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The state zone 1 of the reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateZone2TypeResponseBody":{"description":"Reefer state event.","properties":{"substateValue":{"description":"The substate zone 2 of the reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The state zone 2 of the reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateZone2WithDecorationsTypeResponseBody":{"description":"Reefer state event.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"substateValue":{"description":"The substate zone 2 of the reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The state zone 2 of the reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateZone3TypeResponseBody":{"description":"Reefer state event.","properties":{"substateValue":{"description":"The substate zone 3 of the reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The state zone 3 of the reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferStateZone3WithDecorationsTypeResponseBody":{"description":"Reefer state event.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"substateValue":{"description":"The substate zone 3 of the reefer, if available.","example":"`Pretrip`, `Defrost`","type":"string"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The state zone 3 of the reefer.","example":"`Off`, `On`","type":"string"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSupplyAirTemperatureMilliCZone1TypeResponseBody":{"description":"Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The supply or discharge air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSupplyAirTemperatureMilliCZone1WithDecorationsTypeResponseBody":{"description":"Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The supply or discharge air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSupplyAirTemperatureMilliCZone2TypeResponseBody":{"description":"Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The supply or discharge air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSupplyAirTemperatureMilliCZone2WithDecorationsTypeResponseBody":{"description":"Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The supply or discharge air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSupplyAirTemperatureMilliCZone3TypeResponseBody":{"description":"Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The supply or discharge air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatReeferSupplyAirTemperatureMilliCZone3WithDecorationsTypeResponseBody":{"description":"Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.","properties":{"decorations":{"$ref":"#/components/schemas/TrailerStatDecorationResponseBody"},"time":{"description":"UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"The supply or discharge air temperature reading in millidegree Celsius.","example":50,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"TrailerStatsGetTrailerStatsFeedBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedResponseBody":{"properties":{"data":{"description":"List of trailers and their stats","items":{"$ref":"#/components/schemas/TrailerStatsObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrailerStatsGetTrailerStatsFeedServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsFeedUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryResponseBody":{"properties":{"data":{"description":"List of trailers and their stats","items":{"$ref":"#/components/schemas/TrailerStatsObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsHistoryUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotResponseBody":{"properties":{"data":{"description":"List of trailers and their stats","items":{"$ref":"#/components/schemas/TrailerStatsSnapshotObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsGetTrailerStatsSnapshotUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailerStatsObjectResponseBody":{"description":"A trailer and its stats","properties":{"carrierReeferState":{"description":"A list of engine state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferStateWithDecorationsTypeResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"gps":{"description":"A list of GPS points.","items":{"$ref":"#/components/schemas/TrailerStatGpsWithDecorationsTypeResponseBody"},"type":"array"},"gpsOdometerMeters":{"description":"A list of odometer points.","items":{"$ref":"#/components/schemas/TrailerStatGpsOdometerMetersWithDecorationsTypeResponseBody"},"type":"array"},"id":{"description":"ID of the trailer.","example":"1234","type":"string"},"name":{"description":"Name of the vehicle.","example":"Trailer-123","type":"string"},"reeferAlarms":{"description":"A list of reefer alarm points.","items":{"$ref":"#/components/schemas/TrailerStatReeferAlarmWithDecorationsTypeResponseBody"},"type":"array"},"reeferAmbientAirTemperatureMilliC":{"description":"A list of ambient air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferAmbientAirTemperatureWithDecorationsTypeResponseBody"},"type":"array"},"reeferDoorStateZone1":{"description":"A list of door state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone1WithDecorationsTypeResponseBody"},"type":"array"},"reeferDoorStateZone2":{"description":"A list of door state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone2WithDecorationsTypeResponseBody"},"type":"array"},"reeferDoorStateZone3":{"description":"A list of door state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone3WithDecorationsTypeResponseBody"},"type":"array"},"reeferFuelPercent":{"description":"A list of fuel percent points.","items":{"$ref":"#/components/schemas/TrailerStatReeferFuelPercentWithDecorationsTypeResponseBody"},"type":"array"},"reeferObdEngineSeconds":{"description":"A list of engine second points","items":{"$ref":"#/components/schemas/TrailerStatReeferObdEngineSecondsWithDecorationsTypeResponseBody"},"type":"array"},"reeferReturnAirTemperatureMilliCZone1":{"description":"A list of return air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone1WithDecorationsTypeResponseBody"},"type":"array"},"reeferReturnAirTemperatureMilliCZone2":{"description":"A list of return air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone2WithDecorationsTypeResponseBody"},"type":"array"},"reeferReturnAirTemperatureMilliCZone3":{"description":"A list of return air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone3WithDecorationsTypeResponseBody"},"type":"array"},"reeferRunMode":{"description":"A list of run mode points","items":{"$ref":"#/components/schemas/TrailerStatReeferRunModeWithDecorationsTypeResponseBody"},"type":"array"},"reeferSetPointTemperatureMilliCZone1":{"description":"A list of set point temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone1WithDecorationsTypeResponseBody"},"type":"array"},"reeferSetPointTemperatureMilliCZone2":{"description":"A list of set point temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone2WithDecorationsTypeResponseBody"},"type":"array"},"reeferSetPointTemperatureMilliCZone3":{"description":"A list of set point temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone3WithDecorationsTypeResponseBody"},"type":"array"},"reeferStateZone1":{"description":"A list of engine state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferStateZone1WithDecorationsTypeResponseBody"},"type":"array"},"reeferStateZone2":{"description":"A list of engine state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferStateZone2WithDecorationsTypeResponseBody"},"type":"array"},"reeferStateZone3":{"description":"A list of engine state points.","items":{"$ref":"#/components/schemas/TrailerStatReeferStateZone3WithDecorationsTypeResponseBody"},"type":"array"},"reeferSupplyAirTemperatureMilliCZone1":{"description":"A list of supply air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone1WithDecorationsTypeResponseBody"},"type":"array"},"reeferSupplyAirTemperatureMilliCZone2":{"description":"A list of supply air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone2WithDecorationsTypeResponseBody"},"type":"array"},"reeferSupplyAirTemperatureMilliCZone3":{"description":"A list of supply air temperature points.","items":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone3WithDecorationsTypeResponseBody"},"type":"array"}},"required":["id","name"],"type":"object"},"TrailerStatsSnapshotObjectResponseBody":{"description":"A trailer and its stats","properties":{"carrierReeferState":{"$ref":"#/components/schemas/TrailerStatReeferStateTypeResponseBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"gps":{"$ref":"#/components/schemas/TrailerStatGpsTypeResponseBody"},"gpsOdometerMeters":{"$ref":"#/components/schemas/TrailerStatGpsOdometerMetersTypeResponseBody"},"id":{"description":"ID of the trailer.","example":"1234","type":"string"},"name":{"description":"Name of the vehicle.","example":"Trailer-123","type":"string"},"reeferAlarms":{"$ref":"#/components/schemas/TrailerStatReeferAlarmTypeResponseBody"},"reeferAmbientAirTemperatureMilliC":{"$ref":"#/components/schemas/TrailerStatReeferAmbientAirTemperatureMilliCTypeResponseBody"},"reeferDoorStateZone1":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone1TypeResponseBody"},"reeferDoorStateZone2":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone2TypeResponseBody"},"reeferDoorStateZone3":{"$ref":"#/components/schemas/TrailerStatReeferDoorStateZone3TypeResponseBody"},"reeferFuelPercent":{"$ref":"#/components/schemas/TrailerStatReeferFuelPercentTypeResponseBody"},"reeferObdEngineSeconds":{"$ref":"#/components/schemas/TrailerStatReeferObdEngineSecondsTypeResponseBody"},"reeferReturnAirTemperatureMilliCZone1":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone1TypeResponseBody"},"reeferReturnAirTemperatureMilliCZone2":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone2TypeResponseBody"},"reeferReturnAirTemperatureMilliCZone3":{"$ref":"#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone3TypeResponseBody"},"reeferRunMode":{"$ref":"#/components/schemas/TrailerStatReeferRunModeTypeResponseBody"},"reeferSetPointTemperatureMilliCZone1":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone1TypeResponseBody"},"reeferSetPointTemperatureMilliCZone2":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone2TypeResponseBody"},"reeferSetPointTemperatureMilliCZone3":{"$ref":"#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone3TypeResponseBody"},"reeferStateZone1":{"$ref":"#/components/schemas/TrailerStatReeferStateZone1TypeResponseBody"},"reeferStateZone2":{"$ref":"#/components/schemas/TrailerStatReeferStateZone2TypeResponseBody"},"reeferStateZone3":{"$ref":"#/components/schemas/TrailerStatReeferStateZone3TypeResponseBody"},"reeferSupplyAirTemperatureMilliCZone1":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone1TypeResponseBody"},"reeferSupplyAirTemperatureMilliCZone2":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone2TypeResponseBody"},"reeferSupplyAirTemperatureMilliCZone3":{"$ref":"#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone3TypeResponseBody"}},"required":["id","name"],"type":"object"},"TrailerWithAttributesResponseObjectResponseBody":{"properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"enabledForMobile":{"description":"Indicates if the trailer is visible on the Samsara mobile apps.","example":true,"type":"boolean"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The unique Samsara ID of the Trailer. This is automatically generated when the Trailer object is created. It cannot be changed.","example":"494123","type":"string"},"installedGateway":{"$ref":"#/components/schemas/TrailerGoaGatewayTinyResponseResponseBody"},"licensePlate":{"description":"The license plate of the Trailer. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"7TYP290","maxLength":12,"type":"string"},"name":{"description":"The human-readable name of the Trailer. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Trailer-123","type":"string"},"notes":{"description":"These are generic notes about the Trailer. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are my trailer notes","maxLength":255,"type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Trailer.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"trailerSerialNumber":{"description":"The serial number of the trailer.","example":"8V8WD530FLN016251","type":"string"}},"required":["id"],"type":"object"},"TrailersCreateTrailerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerRequestBody":{"properties":{"attributes":{"description":"A list of attributes to assign to the trailer.","items":{"$ref":"#/components/schemas/GoaAttributeTinyRequestBody"},"type":"array"},"enabledForMobile":{"description":"Indicates if the trailer is visible on the Samsara mobile apps.","example":true,"type":"boolean"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"licensePlate":{"description":"The license plate of the Trailer. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"7TYP290","maxLength":12,"type":"string"},"name":{"description":"The human-readable name of the Trailer. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Trailer-123","type":"string"},"notes":{"description":"These are generic notes about the Trailer. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are my trailer notes","maxLength":255,"type":"string"},"tagIds":{"description":"An array of IDs of tags to associate with this trailer. If your access to the API is scoped by one or more tags, this field is required to pass in.","example":["Placeat est voluptatem id tenetur amet.","Omnis consectetur quis neque nihil molestiae harum."],"items":{"example":"Laborum aut.","type":"string"},"type":"array"},"trailerSerialNumber":{"description":"The serial number of the trailer.","example":"8V8WD530FLN016251","type":"string"}},"required":["name"],"type":"object"},"TrailersCreateTrailerResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TrailerWithAttributesResponseObjectResponseBody"}},"required":["data"],"type":"object"},"TrailersCreateTrailerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersCreateTrailerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersDeleteTrailerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsResponseBody":{"properties":{"pagination":{"$ref":"#/components/schemas/FleetTrailerAssignmentsPaginationResponseObjectResponseBody"},"trailers":{"items":{"$ref":"#/components/schemas/FleetTrailerAssignmentsTrailerResponseObjectResponseBody"},"type":"array"}},"required":["pagination","trailers"],"type":"object"},"TrailersGetAllTrailerAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetAllTrailerAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TrailerWithAttributesResponseObjectResponseBody"}},"required":["data"],"type":"object"},"TrailersGetTrailerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersGetTrailerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersResponseBody":{"properties":{"data":{"description":"List of trailer objects.","items":{"$ref":"#/components/schemas/TrailerResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrailersListTrailersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersListTrailersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerRequestBody":{"properties":{"attributes":{"description":"A list of attributes to assign to the trailer.","items":{"$ref":"#/components/schemas/GoaAttributeTinyRequestBody"},"type":"array"},"enabledForMobile":{"description":"Indicates if the trailer is visible on the Samsara mobile apps.","example":true,"type":"boolean"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"licensePlate":{"description":"The license plate of the Trailer. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"7TYP290","maxLength":12,"type":"string"},"name":{"description":"The human-readable name of the Trailer. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Trailer-123","type":"string"},"notes":{"description":"These are generic notes about the Trailer. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are my trailer notes","maxLength":255,"type":"string"},"odometerMeters":{"description":"When you provide a manual odometer override, Samsara will begin updating a trailer's odometer using GPS distance traveled since this override was set. Only applies to trailers installed with Samsara gateways.","example":1234,"format":"int64","type":"integer"},"tagIds":{"description":"An array of IDs of tags to associate with this trailer. If your access to the API is scoped by one or more tags, this field is required to pass in.","example":["Magnam omnis et et occaecati.","Temporibus voluptas.","Commodi pariatur."],"items":{"example":"Assumenda non similique quod tempore.","type":"string"},"type":"array"},"trailerSerialNumber":{"description":"The serial number of the trailer.","example":"8V8WD530FLN016251","type":"string"}},"type":"object"},"TrailersUpdateTrailerResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/TrailerWithAttributesResponseObjectResponseBody"}},"required":["data"],"type":"object"},"TrailersUpdateTrailerServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrailersUpdateTrailerUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentNearDueDateTriggerAssignmentGroupObjectRequestBody":{"description":"An assignment group of a specific course or a category can be selected for an alert.","properties":{"assignmentGroupType":{"description":"Assignment group type.  Valid values: `CATEGORY`, `COURSE`","enum":["CATEGORY","COURSE"],"example":"CATEGORY","type":"string"},"assignmentGroupUuid":{"description":"The unique ID of the assignment group.","format":"uuid","type":"string"}},"required":["assignmentGroupType","assignmentGroupUuid"],"type":"object"},"TrainingAssignmentNearDueDateTriggerAssignmentGroupObjectResponseBody":{"description":"An assignment group of a specific course or a category can be selected for an alert.","properties":{"assignmentGroupType":{"description":"Assignment group type.  Valid values: `CATEGORY`, `COURSE`","enum":["CATEGORY","COURSE"],"example":"CATEGORY","type":"string"},"assignmentGroupUuid":{"description":"The unique ID of the assignment group.","format":"uuid","type":"string"}},"required":["assignmentGroupType","assignmentGroupUuid"],"type":"object"},"TrainingAssignmentNearDueDateTriggerDetailsObjectRequestBody":{"description":"Details specific to Training Assignment Near Due Date","properties":{"assignmentGroups":{"description":"The assignment groups the trigger is configured for.","items":{"$ref":"#/components/schemas/TrainingAssignmentNearDueDateTriggerAssignmentGroupObjectRequestBody"},"type":"array"},"conditionUnits":{"description":"Whether the trigger is configured in days or weeks.  Valid values: `DAYS`, `WEEKS`","enum":["DAYS","WEEKS"],"example":"DAYS","type":"string"},"conditionValue":{"description":"The number of days or weeks near the due date to trigger on.","example":1,"format":"int64","type":"integer"},"timezone":{"description":"The timezone that the alert will be set up in.","example":"America/Los_Angeles","type":"string"}},"required":["conditionUnits","conditionValue","timezone"],"type":"object"},"TrainingAssignmentNearDueDateTriggerDetailsObjectResponseBody":{"description":"Details specific to Training Assignment Near Due Date","properties":{"assignmentGroups":{"description":"The assignment groups the trigger is configured for.","items":{"$ref":"#/components/schemas/TrainingAssignmentNearDueDateTriggerAssignmentGroupObjectResponseBody"},"type":"array"},"conditionUnits":{"description":"Whether the trigger is configured in days or weeks.  Valid values: `DAYS`, `WEEKS`","enum":["DAYS","WEEKS"],"example":"DAYS","type":"string"},"conditionValue":{"description":"The number of days or weeks near the due date to trigger on.","example":1,"format":"int64","type":"integer"},"timezone":{"description":"The timezone that the alert will be set up in.","example":"America/Los_Angeles","type":"string"}},"required":["conditionUnits","conditionValue","timezone"],"type":"object"},"TrainingAssignmentPostResponseObjectResponseBody":{"description":"Training Assignment response object.","properties":{"course":{"$ref":"#/components/schemas/TrainingCourseObjectResponseBody"},"createdAtTime":{"description":"Creation time of the training assignment. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdById":{"description":"ID of the user who created the training assignment.","example":"user-4392","type":"string"},"dueAtTime":{"description":"Time training assignment is due. UTC timestamp in RFC 3339 format. Returned when an assignment has a due date set by an admin.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"id":{"description":"ID of the training assignment.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"isExistingAssignment":{"description":"Indicates whether the training assignment was already created.","example":true,"type":"boolean"},"learner":{"$ref":"#/components/schemas/TrainingLearnerObjectResponseBody"}},"required":["course","createdAtTime","createdById","id","isExistingAssignment","learner"],"type":"object"},"TrainingAssignmentResponseObjectResponseBody":{"description":"Training Assignment response object.","properties":{"completedAtTime":{"description":"Time training assignment is completed. UTC timestamp in RFC 3339 format. Returned when a training assignment completion status is \"complete\".","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"course":{"$ref":"#/components/schemas/TrainingCourseObjectResponseBody"},"createdAtTime":{"description":"Creation time of the training assignment. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdById":{"description":"ID of the user who created the training assignment.","example":"user-4392","type":"string"},"deletedAtTime":{"description":"Time training assignment is deleted. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"dueAtTime":{"description":"Time training assignment is due. UTC timestamp in RFC 3339 format. Returned when an assignment has a due date set by an admin.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"durationMinutes":{"description":"Time spent on the training assignment.","example":8358178223431273000,"format":"int64","type":"integer"},"id":{"description":"ID of the training assignment.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"isCompletedLate":{"description":"Indicates whether the training assignment was completed on time or not. Returned when a training assignment completion status is \"complete\" and has a dueAtTime set by an admin.","example":true,"type":"boolean"},"isOverdue":{"description":"Indicates whether the training assignment is past the due date. Returned when a training assignment completion status is 'inProgress' or 'notStarted' and has a dueAtTime set by an admin.","example":true,"type":"boolean"},"learner":{"$ref":"#/components/schemas/TrainingLearnerObjectResponseBody"},"scorePercent":{"description":"Quiz score associated with training assignment. Returned when a training assignment completion status is \"complete\".","example":0.3795870703087618,"format":"double","type":"number"},"startedAtTime":{"description":"Time training assignment is started. UTC timestamp in RFC 3339 format. Returned when a training assignment completion status is \"complete\" or \"inProgress\".","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"status":{"description":"State for the Training Assignment. Always returned.  Valid values: `notStarted`, `inProgress`, `completed`","enum":["notStarted","inProgress","completed"],"example":"inProgress","type":"string"},"updatedAtTime":{"description":"Time training assignment was updated by either a learner or an admin. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"updatedById":{"description":"ID of the user who updated the training assignment, either an admin or a learner.","example":"user-3112","type":"string"}},"required":["course","createdAtTime","createdById","durationMinutes","id","learner","status","updatedAtTime","updatedById"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsDeleteTrainingAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody":{"properties":{"data":{"description":"List of training assignments.","items":{"$ref":"#/components/schemas/TrainingAssignmentResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsGetTrainingAssignmentsStreamUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsResponseBody":{"properties":{"data":{"description":"List of updated training assignments.","items":{"$ref":"#/components/schemas/TrainingAssignmentResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPatchTrainingAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsResponseBody":{"properties":{"data":{"description":"List of created training assignments.","items":{"$ref":"#/components/schemas/TrainingAssignmentPostResponseObjectResponseBody"},"type":"array"}},"required":["data"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingAssignmentsPostTrainingAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCategoryObjectResponseBody":{"description":"Category of the training course.","properties":{"id":{"description":"Category ID of the course.","example":"a4db8702-79d5-4396-a717-e301d52ecc11","type":"string"},"name":{"description":"Category name of the course.","example":"Samsara Driver App","type":"string"}},"required":["id","name"],"type":"object"},"TrainingCourseLabelObjectResponseBody":{"description":"Label of the training course.","properties":{"name":{"description":"Name of the course label. Valid values: “safety”.","example":"safety","type":"string"},"type":{"description":"Type of the course label. Valid values when course.label.name is ‘safety’: accel, braking, crashSharpTurn, rolloverProtection, yawControl, speeding, rolledStopSign, tileRollingRailroad, seatbeltPolicy, nearCollision, phonePolicy, drowsy, defensiveDriving, driverObstructionPolicy, didNotYield, distractedDriving, tailgating, laneDeparture, lateResponse, ranRedLight, forwardCollisionWarning, foodDrinkPolicy, smokingPolicy, maskPolicy, maxSpeed, severeSpeeding, drinkPolicy, foodPolicy, unknown.","example":"accel","type":"string"}},"required":["name","type"],"type":"object"},"TrainingCourseObjectResponseBody":{"description":"Course that is associated with the training assignments.","properties":{"id":{"description":"ID of the course.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"},"revisionId":{"description":"ID of the course's specific version.","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","format":"uuid","type":"string"}},"required":["id","revisionId"],"type":"object"},"TrainingCourseResponseObjectResponseBody":{"description":"Training Course response object.","properties":{"category":{"$ref":"#/components/schemas/TrainingCategoryObjectResponseBody"},"description":{"description":"Description of the course.","example":"Training for how to operate a wheel loader.","type":"string"},"estimatedTimeToCompleteMinutes":{"description":"Estimated time it takes to complete the course.","example":30,"format":"int64","type":"integer"},"id":{"description":"ID of the training course.","example":"a4db8702-79d5-4396-a717-e301d52ecc11","type":"string"},"labels":{"description":"List of course labels.","items":{"$ref":"#/components/schemas/TrainingCourseLabelObjectResponseBody"},"type":"array"},"revisionId":{"description":"ID of the course's specific version.","example":"1214a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"status":{"description":"Status of the training course. Always returned.\nNote: Only courses in a ‘published’ state are assignable to learners. Archiving a course deletes only ‘inProgress’ assignments associated with that course, and deleting a course deletes all assignments associated with that course.  Valid values: `published`, `deleted`, `archived`, `unknown`","enum":["published","deleted","archived","unknown"],"example":"published","type":"string"},"title":{"description":"Title of the course.","example":"Wheel Loader","type":"string"}},"required":["category","estimatedTimeToCompleteMinutes","id","revisionId","status","title"],"type":"object"},"TrainingCoursesGetTrainingCoursesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesResponseBody":{"properties":{"data":{"description":"List of training courses.","items":{"$ref":"#/components/schemas/TrainingCourseResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TrainingCoursesGetTrainingCoursesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingCoursesGetTrainingCoursesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TrainingLearnerObjectResponseBody":{"description":"Learner that is associated with the training assignment.","properties":{"id":{"description":"ID of the polymorphic user.","example":"938172","type":"string"},"type":{"description":"The learner type. Returns `unknown` when the learner type is not recognized. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.  Valid values: `unknown`, `driver`, `user`","enum":["unknown","driver","user"],"example":"driver","type":"string"}},"required":["id","type"],"type":"object"},"TriggerParamsObjectRequestBody":{"description":"The trigger type specific details. Only the field that corresponds to the trigger type is filled in.","properties":{"ambientTemperature":{"$ref":"#/components/schemas/AmbientTemperatureDetailsObjectRequestBody"},"cellSignalLoss":{"$ref":"#/components/schemas/CellSignalLossDetailsObjectRequestBody"},"defLevel":{"$ref":"#/components/schemas/DefLevelTriggerDetailsObjectRequestBody"},"deviceMovement":{"$ref":"#/components/schemas/DeviceMovementTriggerDetailsObjectRequestBody"},"documentSubmitted":{"$ref":"#/components/schemas/DriverDocumentSubmittedDetailsObjectRequestBody"},"dvirSubmittedDevice":{"$ref":"#/components/schemas/DVIRSubmittedDeviceTriggerDetailsObjectRequestBody"},"engineIdle":{"$ref":"#/components/schemas/EngineIdleTriggerDetailsObjectRequestBody"},"engineOff":{"$ref":"#/components/schemas/EngineOffDetailsObjectRequestBody"},"engineOn":{"$ref":"#/components/schemas/EngineOnDetailsObjectRequestBody"},"fuelLevel":{"$ref":"#/components/schemas/FuelLevelTriggerDetailsObjectRequestBody"},"gatewayDisconnected":{"$ref":"#/components/schemas/GatewayDisconnectedDetailsObjectRequestBody"},"gatewayUnplugged":{"$ref":"#/components/schemas/GatewayUnpluggedTriggerDetailsObjectRequestBody"},"geofenceEntry":{"$ref":"#/components/schemas/GeofenceEntryTriggerDetailsObjectRequestBody"},"geofenceExit":{"$ref":"#/components/schemas/GeofenceExitTriggerDetailsObjectRequestBody"},"gpsSignalLoss":{"$ref":"#/components/schemas/GpsSignalLossDetailsObjectRequestBody"},"harshEvent":{"$ref":"#/components/schemas/HarshEventTriggerDetailsObjectRequestBody"},"hosViolation":{"$ref":"#/components/schemas/HOSViolationTriggerDetailsObjectRequestBody"},"insideGeofence":{"$ref":"#/components/schemas/InsideGeofenceTriggerDetailsObjectRequestBody"},"outOfRoute":{"$ref":"#/components/schemas/OutOfRouteDetailsObjectRequestBody"},"outsideGeofence":{"$ref":"#/components/schemas/OutsideGeofenceTriggerDetailsObjectRequestBody"},"panicButton":{"$ref":"#/components/schemas/PanicButtonDetailsObjectRequestBody"},"reading":{"$ref":"#/components/schemas/ReadingTriggerDetailsObjectRequestBody"},"routeStopEstimatedArrival":{"$ref":"#/components/schemas/RouteStopEstimatedArrivalDetailsObjectRequestBody"},"safetyBehavior":{"$ref":"#/components/schemas/SafetyBehaviorTriggerDetailsObjectRequestBody"},"scheduledMaintenance":{"$ref":"#/components/schemas/ScheduledMaintenanceTriggerDetailsObjectRequestBody"},"scheduledMaintenanceByEngineHours":{"$ref":"#/components/schemas/ScheduledMaintenanceByEngineHoursDetailsObjectRequestBody"},"scheduledMaintenanceOdometer":{"$ref":"#/components/schemas/ScheduledMaintenanceOdometerTriggerDetailsObjectRequestBody"},"speed":{"$ref":"#/components/schemas/SpeedTriggerDetailsObjectRequestBody"},"suddenFuelLevelDrop":{"$ref":"#/components/schemas/SuddenFuelLevelDropTriggerDetailsObjectRequestBody"},"suddenFuelLevelRise":{"$ref":"#/components/schemas/SuddenFuelLevelRiseTriggerDetailsObjectRequestBody"},"tireFaultCode":{"$ref":"#/components/schemas/TireFaultCodeDetailsObjectRequestBody"},"trainingAssignmentNearDueDate":{"$ref":"#/components/schemas/TrainingAssignmentNearDueDateTriggerDetailsObjectRequestBody"},"unassignedDriving":{"$ref":"#/components/schemas/UnassignedDrivingTriggerDetailsObjectRequestBody"},"vehicleBatteryVoltage":{"$ref":"#/components/schemas/VehicleBatterVoltageDetailsObjectRequestBody"},"vehicleFaultCode":{"$ref":"#/components/schemas/VehicleFaultCodeDetailsObjectRequestBody"}},"type":"object"},"TriggerParamsObjectResponseBody":{"description":"The trigger type specific details. Only the field that corresponds to the trigger type is filled in.","properties":{"ambientTemperature":{"$ref":"#/components/schemas/AmbientTemperatureDetailsObjectResponseBody"},"cellSignalLoss":{"$ref":"#/components/schemas/CellSignalLossDetailsObjectResponseBody"},"defLevel":{"$ref":"#/components/schemas/DefLevelTriggerDetailsObjectResponseBody"},"deviceMovement":{"$ref":"#/components/schemas/DeviceMovementTriggerDetailsObjectResponseBody"},"documentSubmitted":{"$ref":"#/components/schemas/DriverDocumentSubmittedDetailsObjectResponseBody"},"dvirSubmittedDevice":{"$ref":"#/components/schemas/DVIRSubmittedDeviceTriggerDetailsObjectResponseBody"},"engineIdle":{"$ref":"#/components/schemas/EngineIdleTriggerDetailsObjectResponseBody"},"engineOff":{"$ref":"#/components/schemas/EngineOffDetailsObjectResponseBody"},"engineOn":{"$ref":"#/components/schemas/EngineOnDetailsObjectResponseBody"},"fuelLevel":{"$ref":"#/components/schemas/FuelLevelTriggerDetailsObjectResponseBody"},"gatewayDisconnected":{"$ref":"#/components/schemas/GatewayDisconnectedDetailsObjectResponseBody"},"gatewayUnplugged":{"$ref":"#/components/schemas/GatewayUnpluggedTriggerDetailsObjectResponseBody"},"geofenceEntry":{"$ref":"#/components/schemas/GeofenceEntryTriggerDetailsObjectResponseBody"},"geofenceExit":{"$ref":"#/components/schemas/GeofenceExitTriggerDetailsObjectResponseBody"},"gpsSignalLoss":{"$ref":"#/components/schemas/GpsSignalLossDetailsObjectResponseBody"},"harshEvent":{"$ref":"#/components/schemas/HarshEventTriggerDetailsObjectResponseBody"},"hosViolation":{"$ref":"#/components/schemas/HOSViolationTriggerDetailsObjectResponseBody"},"insideGeofence":{"$ref":"#/components/schemas/InsideGeofenceTriggerDetailsObjectResponseBody"},"outOfRoute":{"$ref":"#/components/schemas/OutOfRouteDetailsObjectResponseBody"},"outsideGeofence":{"$ref":"#/components/schemas/OutsideGeofenceTriggerDetailsObjectResponseBody"},"panicButton":{"$ref":"#/components/schemas/PanicButtonDetailsObjectResponseBody"},"reading":{"$ref":"#/components/schemas/ReadingTriggerDetailsObjectResponseBody"},"routeStopEstimatedArrival":{"$ref":"#/components/schemas/RouteStopEstimatedArrivalDetailsObjectResponseBody"},"safetyBehavior":{"$ref":"#/components/schemas/SafetyBehaviorTriggerDetailsObjectResponseBody"},"scheduledMaintenance":{"$ref":"#/components/schemas/ScheduledMaintenanceTriggerDetailsObjectResponseBody"},"scheduledMaintenanceByEngineHours":{"$ref":"#/components/schemas/ScheduledMaintenanceByEngineHoursDetailsObjectResponseBody"},"scheduledMaintenanceOdometer":{"$ref":"#/components/schemas/ScheduledMaintenanceOdometerTriggerDetailsObjectResponseBody"},"speed":{"$ref":"#/components/schemas/SpeedTriggerDetailsObjectResponseBody"},"suddenFuelLevelDrop":{"$ref":"#/components/schemas/SuddenFuelLevelDropTriggerDetailsObjectResponseBody"},"suddenFuelLevelRise":{"$ref":"#/components/schemas/SuddenFuelLevelRiseTriggerDetailsObjectResponseBody"},"tireFaultCode":{"$ref":"#/components/schemas/TireFaultCodeDetailsObjectResponseBody"},"trainingAssignmentNearDueDate":{"$ref":"#/components/schemas/TrainingAssignmentNearDueDateTriggerDetailsObjectResponseBody"},"unassignedDriving":{"$ref":"#/components/schemas/UnassignedDrivingTriggerDetailsObjectResponseBody"},"vehicleBatteryVoltage":{"$ref":"#/components/schemas/VehicleBatterVoltageDetailsObjectResponseBody"},"vehicleFaultCode":{"$ref":"#/components/schemas/VehicleFaultCodeDetailsObjectResponseBody"}},"type":"object"},"TripAssetResponseBody":{"description":"Asset that the location readings are tied to","properties":{"id":{"description":"Unique ID for the asset object that is reporting the location.","example":"12345","type":"string"},"name":{"description":"Name for the asset object that is reporting the location. Only returns when `includeAsset` is set to `true`.","example":"MyAsset-1234","type":"string"},"type":{"description":"Type for the asset object that is reporting the location. Only returns when `includeAsset` is set to `true`.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"},"vin":{"description":"VIN for the asset object that is reporting the location. Only returns when `includeAsset` is set to `true`.","example":"1GBJ6P1B2HV112765","type":"string"}},"required":["id"],"type":"object"},"TripResponseBody":{"description":"Trip","properties":{"asset":{"$ref":"#/components/schemas/TripAssetResponseBody"},"completionStatus":{"description":"Trip completion status  Valid values: `inProgress`, `completed`","enum":["inProgress","completed"],"example":"completed","type":"string"},"createdAtTime":{"description":"[RFC 3339] Time the trip was created in Samsara in UTC.","example":"2024-04-16T19:08:25Z","type":"string"},"endLocation":{"$ref":"#/components/schemas/LocationResponseResponseBody"},"finalDistanceMeters":{"description":"Final distance driven in meters, calculated from GPS data. Only populated once the trip has completed (`completionStatus: completed`); null while the trip is in progress. Later corrections (e.g. late-arriving GPS data) are not signaled by updatedAtTime.","example":2500,"format":"int64","type":"integer"},"startLocation":{"$ref":"#/components/schemas/LocationResponseResponseBody"},"tripEndTime":{"description":"[RFC 3339] Time the trip ended in UTC.","example":"2024-04-16T20:00:00Z","type":"string"},"tripPurpose":{"description":"The driver-assigned purpose of the trip. Only populated for completed trips when your organization is licensed for mileage reporting; null while the trip is in progress or when not licensed. `unassigned` means the driver has not classified the trip. Reflects the explicit Driver App classification, not automatic classification. When a driver changes the purpose after the trip completes, the trip is re-served through the `updatedAtTime` feed with the new value.  Valid values: `unknown`, `unassigned`, `personal`, `business`, `commute`","enum":["unknown","unassigned","personal","business","commute"],"example":"business","type":"string"},"tripStartTime":{"description":"[RFC 3339] Time the trip started in UTC.","example":"2024-04-16T19:08:25Z","type":"string"},"updatedAtTime":{"description":"[RFC 3339] Time the trip was updated in Samsara in UTC. Valid updates are when `endTime` populates, `completionStatus` changes values, or a driver changes the trip's `tripPurpose` after the trip has completed. To receive later purpose corrections, poll with `queryBy=updatedAtTime`; feed data trails real time by a few seconds.","example":"2024-04-16T19:08:25Z","type":"string"}},"required":["asset","completionStatus","createdAtTime","startLocation","tripStartTime","updatedAtTime"],"type":"object"},"TripSpeedingIntervalsResponseBody":{"description":"TripSpeedingIntervals","properties":{"asset":{"$ref":"#/components/schemas/TripAssetResponseBody"},"createdAtTime":{"description":"UTC time the trip was created in Samsara in RFC 3339 format.","example":"2023-01-27T07:06:25Z","type":"string"},"driverId":{"description":"The driver ID assigned to the trip. Only returned if includeDriverId is set to true. 'null' if no driver id.","example":"12345","type":"string"},"intervals":{"description":"List of speeding intervals that belong to the trip. The full list of intervals associated with the trip is always returned, empty if no intervals exist.","items":{"$ref":"#/components/schemas/SpeedingIntervalResponseBody"},"type":"array"},"tripStartTime":{"description":"UTC time the trip started in RFC 3339 format.","example":"2023-01-27T07:06:25Z","type":"string"},"updatedAtTime":{"description":"UTC time the trip was last updated in Samsara in RFC 3339 format. Valid updates are when trip's endTime populates or interval.isDismissed changes value.","example":"2023-01-27T10:04:20Z","type":"string"}},"required":["asset","createdAtTime","intervals","tripStartTime","updatedAtTime"],"type":"object"},"TripsGetTripsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsResponseBody":{"properties":{"data":{"description":"List of trips","items":{"$ref":"#/components/schemas/TripResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"TripsGetTripsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"TripsGetTripsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"UnassignedDrivingDataResponseBody":{"description":"Details specific to Unassigned Driving.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"UnassignedDrivingTriggerDetailsObjectRequestBody":{"description":"Details specific to Unassigned Driving","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"UnassignedDrivingTriggerDetailsObjectResponseBody":{"description":"Details specific to Unassigned Driving","properties":{"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"}},"required":["minDurationMilliseconds"],"type":"object"},"UpdateAddressRequest":{"description":"A request body to update an Address.","properties":{"addressTypes":{"description":"Reporting location type associated with the address (used for ELD reporting purposes). Valid values: `yard`, `shortHaul`, `workforceSite`, `riskZone`, `industrialSite`, `alertsOnly`, `agricultureSource`, `avoidanceZone`, `knownGPSJammingZone`, `authorizedZone`, `unauthorizedZone`, `vendor`, `inventory`.","items":{"enum":["yard","shortHaul","workforceSite","riskZone","industrialSite","alertsOnly","agricultureSource","avoidanceZone","knownGPSJammingZone","authorizedZone","unauthorizedZone","vendor","inventory","customerSite"],"example":"yard","type":"string"},"type":"array"},"contactIds":{"description":"An array of Contact IDs associated with this Address.","items":{"example":"22408","type":"string"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"formattedAddress":{"description":"The full street address for this address/geofence, as it might be recognized by Google Maps.","example":"350 Rhode Island St, San Francisco, CA","maxLength":1024,"type":"string"},"geofence":{"$ref":"#/components/schemas/UpdateAddressRequest_geofence"},"latitude":{"description":"Latitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":37.765363,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from `formattedAddress` if not provided.","example":-122.4029238,"format":"double","type":"number"},"name":{"description":"Name of the address.","example":"Samsara HQ","maxLength":255,"type":"string"},"notes":{"description":"Notes about the address.","example":"Hours of operation: 8am - 6pm; Truck entrance on the Rhode Island street side.","maxLength":280,"type":"string"},"tagIds":{"description":"An array of IDs of tags to associate with this address.","items":{"example":"3914","type":"string"},"type":"array"}},"type":"object"},"UpdateAddressRequest_geofence":{"description":"The geofence that defines this address and its bounds. This can either be a circle or a polygon, but not both.","properties":{"circle":{"$ref":"#/components/schemas/AddressGeofence_circle"},"polygon":{"$ref":"#/components/schemas/AddressGeofence_polygon"},"settings":{"$ref":"#/components/schemas/AddressGeofence_settings"}},"type":"object"},"UpdateAssetStatusEntityAssetStatusAssetStatusActorTypeResponseBody":{"description":"AssetStatusActor object","properties":{"actorId":{"description":"ID of the user or API token that made the change. For system changes, a fixed label for the process.","example":"12345","type":"string"},"actorType":{"description":"Whether a user, an API token, or Samsara itself made the change.  Valid values: `unknown`, `user`, `system`, `apiToken`","enum":["unknown","user","system","apiToken"],"example":"unknown","type":"string"}},"type":"object"},"UpdateAssetStatusEntityAssetStatusAssetStatusRefTypeResponseBody":{"description":"AssetStatusRef object","properties":{"category":{"description":"Whether the asset counts as operational, down, or disposed in availability reporting.  Valid values: `unknown`, `operational`, `down`, `disposed`","enum":["unknown","operational","down","disposed"],"example":"unknown","type":"string"},"name":{"description":"Name of the status as shown in Maintenance Settings.","example":"12345","type":"string"},"statusUuid":{"description":"Stable ID of the status. It does not change when the status is renamed.","example":"12345","type":"string"}},"type":"object"},"UpdateAttributeRequest":{"description":"A request body to update an Attribute.","properties":{"attributeType":{"default":"multi-select","description":"Denotes the data type of the attribute's values. Valid values: `single-select`, `multi-select`, `text`, `freeform-multi-select`, `number`, `date`.","enum":["single-select","multi-select","text","freeform-multi-select","number","date"],"example":"single-select","type":"string"},"entities":{"description":"Entities that will be applied to this attribute","items":{"$ref":"#/components/schemas/CreateAttributeRequest_entities"},"type":"array"},"entityType":{"description":"Denotes the type of entity, driver or asset.","enum":["driver","asset"],"example":"asset","type":"string"},"name":{"description":"Name","example":"License Certifications","type":"string"},"numberValues":{"description":"Number values that can be associated with this attribute","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that can be associated with this attribute","items":{"type":"string"},"type":"array"}},"required":["entityType"],"type":"object"},"UpdateContactRequest":{"description":"Information for adding a notification contact for alerts.","properties":{"email":{"description":"Email address of the contact.","example":"jane.jones@yahoo.com","maxLength":255,"type":"string"},"firstName":{"description":"First name of the contact.","example":"Jane","maxLength":255,"type":"string"},"lastName":{"description":"Last name of the contact.","example":"Jones","maxLength":255,"type":"string"},"phone":{"description":"Phone number of the contact.","example":"111-222-3344","maxLength":255,"type":"string"}},"type":"object"},"UpdateDriverRequest":{"description":"Driver that should be updated.","properties":{"attributes":{"items":{"$ref":"#/components/schemas/UpdateDriverRequest_attributes"},"type":"array"},"carrierSettings":{"$ref":"#/components/schemas/DriverCarrierSettings"},"currentIdCardCode":{"description":"The ID Card Code on the back of the physical card assigned to the driver.  Contact Samsara if you would like to enable this feature.","example":"941767043","type":"string"},"dateOfBirth":{"$ref":"#/components/schemas/DriverDateOfBirth"},"deactivatedAtTime":{"description":"The date and time this driver is considered to be deactivated in RFC 3339 format.","example":"2019-05-18T20:27:35Z","type":"string"},"driverActivationStatus":{"description":"A value indicating whether the driver is active or deactivated. Valid values: `active`, `deactivated`.","enum":["active","deactivated"],"type":"string"},"eldAdverseWeatherExemptionEnabled":{"description":"Flag indicating this driver may use Adverse Weather exemptions in ELD logs.","type":"boolean"},"eldBigDayExemptionEnabled":{"description":"Flag indicating this driver may use Big Day exemption in ELD logs.","type":"boolean"},"eldDayStartHour":{"description":"`0` indicating midnight-to-midnight ELD driving hours, `12` to indicate noon-to-noon driving hours.","type":"integer"},"eldExempt":{"description":"Flag indicating this driver is exempt from the Electronic Logging Mandate.","type":"boolean"},"eldExemptReason":{"description":"Reason that this driver is exempt from the Electronic Logging Mandate (see eldExempt).","example":"Bad driver","type":"string"},"eldPcEnabled":{"description":"Flag indicating this driver may select the Personal Conveyance duty status in ELD logs.","type":"boolean"},"eldYmEnabled":{"description":"Flag indicating this driver may select the Yard Move duty status in ELD logs.","type":"boolean"},"email":{"$ref":"#/components/schemas/DriverEmail"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"hasDrivingFeaturesHidden":{"$ref":"#/components/schemas/DriverHasDrivingFeaturesHidden"},"hasVehicleUnpinningEnabled":{"$ref":"#/components/schemas/DriverHasVehicleUnpinningEnabled"},"hosSetting":{"$ref":"#/components/schemas/UpdateDriverRequest_hosSetting"},"licenseNumber":{"description":"Driver's state issued license number. The combination of this number and `licenseState` must be unique.","example":"E1234567","type":"string"},"licenseState":{"description":"Abbreviation of US state, Canadian province, or US territory that issued driver's license.","example":"CA","type":"string"},"locale":{"description":"Locale override (uncommon). These are specified by ISO 3166-2 country codes for supported locales. Valid values: `us`, `at`, `be`, `ca`, `gb`, `fr`, `de`, `ie`, `it`, `lu`, `mx`, `nl`, `es`, `ch`, `pr`.","enum":["us","at","be","ca","gb","fr","de","ie","it","lu","mx","nl","es","ch","pr"],"type":"string"},"name":{"description":"Driver's name.","example":"Susan Jones","maxLength":255,"minLength":1,"type":"string"},"notes":{"description":"Notes about the driver.","example":"Also goes by the nickname Furious Fred.","maxLength":4096,"type":"string"},"password":{"description":"Password that the driver can use to login to the Samsara driver app.","example":"aSecurePassword1234","type":"string"},"peerGroupTagId":{"description":"The peer group tag id this driver belong to, leave blank to be in group with everyone, used for gamification.","type":"string"},"phone":{"description":"Phone number of the driver.","example":"5558234327","maxLength":255,"type":"string"},"profileImageBase64":{"$ref":"#/components/schemas/DriverProfileImageBase64"},"profileImageUrl":{"$ref":"#/components/schemas/DriverProfileImageUrl"},"staticAssignedVehicleId":{"description":"ID of vehicle that the driver is permanently assigned to. (uncommon).","example":"456","type":"string"},"tachographCardNumber":{"description":"Driver's assigned tachograph card number (Europe specific)","example":"1000000492436002","type":"string"},"tagIds":{"description":"IDs of tags the driver is associated with. If your access to the API is scoped by one or more tags, this field is required to pass in.","items":{"example":"147","type":"string"},"type":"array"},"timezone":{"description":"Home terminal timezone, in order to indicate what time zone should be used to calculate the ELD logs. Driver timezones use [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"},"trailerGroupTagId":{"description":"Tag ID which determines which trailers a driver will see when selecting trailers.","example":"342418","type":"string"},"usDriverRulesetOverride":{"$ref":"#/components/schemas/UsDriverRulesetOverride"},"username":{"description":"Driver's login username into the driver app. The username may not contain spaces or the '@' symbol. The username must be unique.","example":"SusanJones","maxLength":189,"minLength":1,"type":"string"},"vehicleGroupTagId":{"description":"Tag ID which determines which vehicles a driver will see when selecting vehicles.","example":"342417","type":"string"},"waitingTimeDutyStatusEnabled":{"description":"Flag indicating this driver may select waiting time duty status in ELD logs","type":"boolean"}},"type":"object"},"UpdateDriverRequest_attributes":{"description":"A minified attribute.","properties":{"dateValues":{"description":"Date values that are associated with this attribute (RFC 3339 date format: YYYY-MM-DD).","items":{"type":"string"},"type":"array"},"id":{"description":"The samsara id of the attribute object.","example":"123e4567-e89b-12d3-a456-426614174000","type":"string"},"name":{"description":"Name of attribute.","example":"License Certifications","type":"string"},"numberValues":{"description":"Number values that are associated with this attribute.","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that are associated with this attribute.","items":{"type":"string"},"type":"array"}},"type":"object"},"UpdateDriverRequest_hosSetting":{"description":"Hos settings for a driver.","properties":{"heavyHaulExemptionToggleEnabled":{"$ref":"#/components/schemas/DriverHeavyHaulExemptionToggleEnabled"}},"type":"object"},"UpdateDvirRequest":{"description":"Information about resolving a DVIR.","properties":{"authorId":{"description":"The user who is resolving the dvir.","example":"11","type":"string"},"isResolved":{"description":"Resolves the DVIR. Must be `true`.","type":"boolean"},"mechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"Replaced headlight on passenger side.","type":"string"},"signedAtTime":{"description":"Time when user signed this DVIR. Defaults to now. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"}},"required":["authorId","isResolved"],"type":"object"},"UpdateEngineImmobilizerRelayStateRequestBodyRequestBody":{"description":"A request object to update a relay state.","properties":{"id":{"description":"The ID of the relay  Valid values: `relay1`, `relay2`","enum":["relay1","relay2"],"example":"relay1","type":"string"},"isOpen":{"description":"The desired state of the relay. Provide `true` to open the relay, or `false` to close the relay.","example":false,"type":"boolean"}},"required":["id","isOpen"],"type":"object"},"UpdateFunctionStorageFileDetailResponseBody":{"description":"A presigned upload URL for overwriting an existing file in Functions storage.","properties":{"name":{"description":"The name of the file.","example":"my-script.js","type":"string"},"uploadPut":{"$ref":"#/components/schemas/FunctionsStorageSignedUrlOfTypeResponseBody"}},"required":["name","uploadPut"],"type":"object"},"UpdateHubLocationRequestBodyRequestBody":{"description":"Request body for updating a hub location","properties":{"address":{"description":"The physical address of the location","example":"123 Industrial Blvd, Los Angeles, CA 90210, US","type":"string"},"customerLocationId":{"description":"The customer-provided identifier for the location","example":"LOC-123","type":"string"},"driverInstructions":{"description":"Instructions for the driver","example":"sample instructions","type":"string"},"isDepot":{"description":"Indicates if the location is a depot","example":false,"type":"boolean"},"latitude":{"description":"Latitude coordinate of the location","example":34.0522,"format":"double","type":"number"},"longitude":{"description":"Longitude coordinate of the location","example":-118.2437,"format":"double","type":"number"},"name":{"description":"The name of the location","example":"Customer ABC Warehouse","type":"string"},"plannerNotes":{"description":"Notes for the planner","example":"sample note","type":"string"},"serviceTimeSeconds":{"description":"Estimated service time at this location in seconds","example":1800,"format":"int32","type":"integer"},"serviceWindows":{"description":"An array of time windows during which service can be performed at this location","items":{"$ref":"#/components/schemas/HubLocationServiceWindowInputRequestBody"},"type":"array"},"skillsRequired":{"description":"An array of skill IDs required for service at this location","example":["650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001","650e8400-e29b-41d4-a716-446655440001"],"items":{"description":"Skill ID required for service at this location","example":"650e8400-e29b-41d4-a716-446655440001","type":"string"},"type":"array"}},"type":"object"},"UpdateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteCustomAddressTypeResponseBody":{"description":"MaintenanceSiteCustomAddress object","properties":{"formattedAddress":{"description":"Single free-form address line for the site.","example":"12345","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","example":123.45,"format":"double","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","example":123.45,"format":"double","type":"number"}},"type":"object"},"UpdateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdInputTypeRequestBody":{"description":"MaintenanceSiteExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"UpdateMaintenanceSiteEntityMaintenanceSiteMaintenanceSiteExternalIdTypeResponseBody":{"description":"MaintenanceSiteExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"UpdatePartEntityPartDefinitionMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdatePartEntityPartDefinitionMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"UpdatePartInventoryLocationEntityPartInventoryLocationMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdatePartInventoryLocationEntityPartInventoryLocationMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyInputTypeRequestBody":{"description":"CoreRecoverabilityPolicy object","properties":{"fixedRecoverableUntilTime":{"description":"Absolute deadline for core return.","example":"2019-06-13T19:08:25Z","type":"string"},"policyType":{"description":"Recoverability policy type.  Valid values: `Unknown`, `RelativeToReceipt`, `FixedDate`, `NoDeadline`","enum":["Unknown","RelativeToReceipt","FixedDate","NoDeadline"],"example":"Unknown","type":"string"},"relativeWindowDuration":{"description":"Duration after receipt when the core must be returned. Measured in milliseconds.","example":12345,"format":"int64","type":"integer"}},"required":["policyType"],"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyTypeResponseBody":{"description":"CoreRecoverabilityPolicy object","properties":{"fixedRecoverableUntilTime":{"description":"Absolute deadline for core return.","example":"2019-06-13T19:08:25Z","type":"string"},"policyType":{"description":"Recoverability policy type.  Valid values: `Unknown`, `RelativeToReceipt`, `FixedDate`, `NoDeadline`","enum":["Unknown","RelativeToReceipt","FixedDate","NoDeadline"],"example":"Unknown","type":"string"},"relativeWindowDuration":{"description":"Duration after receipt when the core must be returned. Measured in milliseconds.","example":12345,"format":"int64","type":"integer"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366b66e6fcTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"24.50","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994a15f796TypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"24.50","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"usd","type":"string"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeInputTypeRequestBody":{"description":"PurchaseOrderCoreCharge object","properties":{"coreChargeStatus":{"description":"Whether the core charge is active or removed or disabled.  Valid values: `Unknown`, `Active`, `RemovedOrDisabled`","enum":["Unknown","Active","RemovedOrDisabled"],"example":"Unknown","type":"string"},"corePartSamsaraId":{"description":"ID of the returnable core part.","example":"281474976710656","type":"string"},"recoverabilityPolicy":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyInputTypeRequestBody"},"returnRecipientVendorId":{"description":"ID of the vendor that receives returned cores.","example":"281474976710656","type":"string"},"unitCoreAmount":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyInputTypeRequestBody"}},"required":["coreChargeStatus"],"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeTypeResponseBody":{"description":"PurchaseOrderCoreCharge object","properties":{"coreChargeStatus":{"description":"Whether the core charge is active or removed or disabled.  Valid values: `Unknown`, `Active`, `RemovedOrDisabled`","enum":["Unknown","Active","RemovedOrDisabled"],"example":"Unknown","type":"string"},"corePartSamsara":{"$ref":"#/components/schemas/EntityUpdatePurchaseOrderPartDefinitionRefTypeResponseBody"},"recoverabilityPolicy":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderCoreRecoverabilityPolicyTypeResponseBody"},"returnRecipientVendor":{"$ref":"#/components/schemas/EntityUpdatePurchaseOrderVendorRefTypeResponseBody"},"unitCoreAmount":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5e7c0da15f4cTypeRequestBody":{"description":"PurchaseOrderPart object","properties":{"batchNumber":{"description":"Batch or lot number for the ordered part.","example":"LOT-42","type":"string"},"coreCharge":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeInputTypeRequestBody"},"description":{"description":"Description of the ordered part.","example":"Oil filter","type":"string"},"lineItemId":{"description":"Stable identifier for the purchase order line.","example":"12345","type":"string"},"partSamsaraId":{"description":"ID of the part definition ordered on this line.","example":"281474976710656","type":"string"},"placeId":{"description":"Place linked to the maintenance site holding this line's inventory. The internal location identifier is never exposed.","example":"281474976710656","type":"string"},"quantityOrdered":{"description":"Quantity ordered on this line.","example":10,"format":"double","type":"number"},"quantityReceived":{"description":"Quantity received on this line.","example":123.45,"format":"double","type":"number"},"tax":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody"},"unitCost":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366b66e6fcTypeRequestBody"},"unitOfMeasureType":{"description":"Unit of measure for quantities on this line. Read-only: derived from the line's part definition, and ignored if supplied on create or update.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Each","type":"string"}},"required":["partSamsaraId","quantityOrdered","quantityReceived","unitOfMeasureType"],"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartPublicVarianteafe48db3764TypeResponseBody":{"description":"PurchaseOrderPart object","properties":{"batchNumber":{"description":"Batch or lot number for the ordered part.","example":"LOT-42","type":"string"},"coreCharge":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderCoreChargeTypeResponseBody"},"description":{"description":"Description of the ordered part.","example":"Oil filter","type":"string"},"lineItemId":{"description":"Stable identifier for the purchase order line.","example":"12345","type":"string"},"partSamsara":{"$ref":"#/components/schemas/EntityUpdatePurchaseOrderPartDefinitionRefTypeResponseBody"},"place":{"$ref":"#/components/schemas/EntityUpdatePurchaseOrderPlaceRefTypeResponseBody"},"quantityOrdered":{"description":"Quantity ordered on this line.","example":10,"format":"double","type":"number"},"quantityReceived":{"description":"Quantity received on this line.","example":123.45,"format":"double","type":"number"},"tax":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody"},"unitCost":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994a15f796TypeResponseBody"},"unitOfMeasureType":{"description":"Unit of measure for quantities on this line. Read-only: derived from the line's part definition, and ignored if supplied on create or update.  Valid values: `Unknown`, `Each`, `Set`, `Pack`, `Box`, `Pound`, `Kilogram`, `Ounce`, `Liter`, `Milliliter`, `Gallon`, `Quart`, `FluidOunce`, `Inch`, `Foot`, `Meter`, `Yard`, `SquareFoot`, `SquareMeter`, `Pint`, `Hundred`, `Roll`","enum":["Unknown","Each","Set","Pack","Box","Pound","Kilogram","Ounce","Liter","Milliliter","Gallon","Quart","FluidOunce","Inch","Foot","Meter","Yard","SquareFoot","SquareMeter","Pint","Hundred","Roll"],"example":"Each","type":"string"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody":{"description":"TaxAdjustment object","properties":{"basisPoints":{"description":"Tax rate in basis points. Set exactly one of money or basisPoints.","example":12345,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyInputTypeRequestBody"}},"type":"object"},"UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody":{"description":"TaxAdjustment object","properties":{"basisPoints":{"description":"Tax rate in basis points. Set exactly one of money or basisPoints.","example":12345,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/UpdatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody"}},"type":"object"},"UpdateRoutesStopRequestObjectRequestBody":{"properties":{"addressId":{"description":"ID of the address. An address [externalId](https://developers.samsara.com/docs/external-ids#using-external-ids) can also be used interchangeably here.","example":"45934","type":"string"},"appointmentWindows":{"description":"Appointment windows for the stop.","items":{"$ref":"#/components/schemas/RouteStopAppointmentWindowRequestBody"},"maxItems":3,"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"forms":{"description":"Form attachments for the stop.","items":{"$ref":"#/components/schemas/RouteStopFormRequestObjectRequestBody"},"maxItems":300,"type":"array"},"id":{"description":"ID of the stop. This can either be the Samsara-specified ID or an external ID in `key:value` format.","example":"4125","type":"string"},"name":{"description":"Name of the stop","example":"Stop #1","type":"string"},"notes":{"description":"Notes for the stop","example":"These are my notes","maxLength":2000,"type":"string"},"ontimeWindowAfterArrivalMs":{"description":"Specifies the time window (in milliseconds) after a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"maximum":259200000,"minimum":0,"type":"integer"},"ontimeWindowBeforeArrivalMs":{"description":"Specifies the time window (in milliseconds) before a stop's scheduled arrival time during which the stop is considered 'on-time'.","example":300000,"maximum":259200000,"minimum":0,"type":"integer"},"orders":{"description":"Orders to replace on this stop. Omit this field to preserve existing order attachments; provide an empty array to clear them.","items":{"$ref":"#/components/schemas/RouteStopOrderUpsertInputRequestBody"},"type":"array"},"scheduledArrivalTime":{"description":"This is a required field for all stops EXCEPT the start and end, based on route start and stop settings selected.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledDepartureTime":{"description":"This is a required field for all stops EXCEPT the start and end, based on route start and stop settings selected.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"sequenceNumber":{"description":"Manual sequence position for this stop. Only meaningful when route.settings.sequencingMethod=manual. Must be unique and positive when specified.","example":10,"format":"int64","type":"integer"},"singleUseLocation":{"$ref":"#/components/schemas/RoutesSingleUseAddressObjectRequestBody"}},"type":"object"},"UpdateSharedAssetRequestObjectRequestBody":{"description":"Request object for updating a shared asset.","properties":{"endTime":{"description":"New end time for the sharing period in RFC 3339 format. Use empty string for indefinite sharing.","example":"2025-01-13T10:00:00Z","type":"string"},"id":{"description":"The unique identifier of the shared asset.","example":"11111111-1111-1111-1111-111111111111","type":"string"}},"required":["endTime","id"],"type":"object"},"UpdateUserRequest":{"description":"The user update arguments","properties":{"authType":{"description":"The authentication type the user uses to authenticate. To use SAML this organization must have a configured SAML integration. Valid values: `default`, `saml`.","enum":["default","saml"],"type":"string"},"expireAt":{"description":"For users with temporary access, this is the expiration datetime in RFC3339 format","example":"2025-08-13T19:08:25Z","type":"string"},"name":{"description":"The first and last name of the user.","example":"Bob Smith","type":"string"},"roles":{"description":"The list of roles that applies to this user. A user may have \"organizational\" roles, which apply to the user at the organizational level, and \"tag-specific\" roles, which apply to the user for a given tag.","items":{"$ref":"#/components/schemas/CreateUserRequest_roles"},"type":"array"}},"type":"object"},"UpdateVehicleRequest":{"description":"All the editable portions of the vehicle object.","properties":{"attributes":{"items":{"$ref":"#/components/schemas/attributeTiny"},"type":"array"},"auxInputType1":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType10":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType11":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType12":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType13":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType2":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType3":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType4":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType5":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType6":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType7":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType8":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"auxInputType9":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. Valid values: `None`, `Emergency Lights`, `Emergency Alarm`, `Stop Paddle`, `Power Take-Off`, `Plow`, `Sweeper`, `Salter`, `Reefer`, `Door`, `Boom`, `Auxiliary Engine`, `Generator`, `Eight-Way Lights`, `Panic Button`, `Privacy Button`, `Front Axle Drive`, `Weight Sensor`, `Other`, `Secondary Fuel Source`, `(ECU) Power Take-Off`.","enum":["none","emergencyLights","emergencyAlarm","stopPaddle","powerTakeOff","plow","sweeper","salter","reefer","door","boom","auxiliaryEngine","generator","eightWayLights","panicButton","privacyButton","frontAxleDrive","weightSensor","other","secondaryFuelSource","ecuPowerTakeOff"],"example":"boom","type":"string"},"engineHours":{"description":"A manual override for the vehicle's engine hours. You may only override a vehicle's engine hours if it cannot be read from on-board diagnostics. When you provide a manual engine hours override, Samsara will begin updating a vehicle's engine hours based on when the Samsara Vehicle Gateway is recieving power or not. Setting the value to 0 will unset the manual engine hours.","example":10943,"format":"int64","type":"integer"},"externalIds":{"additionalProperties":{"type":"string"},"description":"The <a href=\"/docs/external-ids\" target=\"_blank\">external IDs</a> for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"gatewaySerial":{"$ref":"#/components/schemas/UserIdentifierSerial"},"grossVehicleWeight":{"$ref":"#/components/schemas/GrossVehicleWeight"},"harshAccelerationSettingType":{"description":"The harsh acceleration setting type. This setting influences the acceleration sensitivity from which a <a href=\"https://kb.samsara.com/hc/en-us/articles/360043051792-Safety-Event-Overview\" target=\"_blank\">harsh event</a> is triggered. **By default**, this setting is inferred by the Samsara Vehicle Gateway from the engine computer, but it may be set or updated through the Samsara Dashboard or the API at any time. If set to `off`, then no acceleration based harsh events are triggered for the vehicle. Valid values: `passengerCar`, `lightTruck`, `heavyDuty`, `off`, `automatic`.","enum":["passengerCar","lightTruck","heavyDuty","off","automatic"],"example":"off","type":"string"},"licensePlate":{"description":"The license plate of the Vehicle. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"XHK1234","maxLength":12,"type":"string"},"name":{"description":"The human-readable name of the Vehicle. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. **By default**, this name is the serial number of the Samsara Vehicle Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Truck A7","type":"string"},"notes":{"description":"These are generic notes about the Vehicle. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are notes about this given vehicle.","maxLength":255,"type":"string"},"odometerMeters":{"description":"A manual override for the vehicle's odometer. You may only override a vehicle's odometer if it cannot be read from on-board diagnostics. When you provide a manual odometer override, Samsara will begin updating a vehicle's odometer using GPS distance traveled since this override was set. See <a href=\"https://kb.samsara.com/hc/en-us/articles/115005273667\" target=\"_blank\">here</a> for more details.","example":9182,"format":"int64","type":"integer"},"staticAssignedDriverId":{"description":"ID for the static assigned driver of the vehicle. Setting the value to 0 will unassign the current driver.","example":"123","type":"string"},"tagIds":{"description":"An array of IDs of tags to associate with this vehicle. If your access to the API is scoped by one or more tags, this field is required to pass in.","items":{"example":"321","type":"string"},"type":"array"},"vehicleRegulationMode":{"$ref":"#/components/schemas/VehicleRegulationMode"},"vehicleType":{"$ref":"#/components/schemas/VehicleType"},"vin":{"description":"The VIN of the Vehicle. Most of the time, this will be automatically read from the engine computer by the Samsara Vehicle Gateway. It will be empty if it cannot be read. It can be set or updated through the Samsara Dashboard or the API at any time.","example":"1FUJA6BD31LJ09646","maxLength":17,"minLength":11,"type":"string"}},"type":"object"},"UpdateVendorEntityVendorVendorAssetAttributeSelectionInputTypeRequestBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorAssetAttributeValueInputTypeRequestBody"},"type":"array"}},"required":["attributeId","values"],"type":"object"},"UpdateVendorEntityVendorVendorAssetAttributeSelectionTypeResponseBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/UpdateVendorEntityVendorVendorAssetAttributeValueTypeResponseBody"},"type":"array"}},"type":"object"},"UpdateVendorEntityVendorVendorAssetAttributeValueInputTypeRequestBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"UpdateVendorEntityVendorVendorAssetAttributeValueTypeResponseBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorEntityVendorVendorContactInputTypeRequestBody":{"description":"VendorContact object","properties":{"email":{"description":"Email address of the contact person.","example":"12345","type":"string"},"name":{"description":"Name of the contact person at the vendor.","example":"12345","type":"string"},"phoneNumber":{"description":"Phone number of the contact person.","example":"12345","type":"string"}},"required":["email","name","phoneNumber"],"type":"object"},"UpdateVendorEntityVendorVendorContactTypeResponseBody":{"description":"VendorContact object","properties":{"email":{"description":"Email address of the contact person.","example":"12345","type":"string"},"name":{"description":"Name of the contact person at the vendor.","example":"12345","type":"string"},"phoneNumber":{"description":"Phone number of the contact person.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorEntityVendorVendorExternalIdInputTypeRequestBody":{"description":"VendorExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"UpdateVendorEntityVendorVendorExternalIdTypeResponseBody":{"description":"VendorExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorEntityVendorVendorHourlyMoneyInputTypeRequestBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdateVendorEntityVendorVendorHourlyMoneyTypeResponseBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionInputTypeRequestBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorAssetAttributeValueInputTypeRequestBody"},"type":"array"}},"required":["attributeId","values"],"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody":{"description":"VendorAssetAttributeSelection object","properties":{"attributeId":{"description":"ID of an asset-scoped preset attribute.","example":"12345","type":"string"},"values":{"description":"Selected values. At most 100 values per attribute.","items":{"$ref":"#/components/schemas/UpdateVendorGroupEntityVendorProfileVendorAssetAttributeValueTypeResponseBody"},"type":"array"}},"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorAssetAttributeValueInputTypeRequestBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"required":["id"],"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorAssetAttributeValueTypeResponseBody":{"description":"VendorAssetAttributeValue object","properties":{"id":{"description":"ID of a value belonging to the attribute.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorGroupExternalIdInputTypeRequestBody":{"description":"VendorGroupExternalId object","properties":{"key":{"description":"External identifier namespace.","example":"12345","type":"string"},"value":{"description":"Customer-managed identifier.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorGroupExternalIdTypeResponseBody":{"description":"VendorGroupExternalId object","properties":{"key":{"description":"External identifier namespace.","example":"12345","type":"string"},"value":{"description":"Customer-managed identifier.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactInputTypeRequestBody":{"description":"VendorGroupPrimaryCorporateContact object","properties":{"email":{"description":"Contact email. Opaque string; max 100 characters.","example":"12345","type":"string"},"name":{"description":"Display name. Max 50 characters.","example":"12345","type":"string"},"phoneNumber":{"description":"Contact phone. Opaque string; max 15 characters.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody":{"description":"VendorGroupPrimaryCorporateContact object","properties":{"email":{"description":"Contact email. Opaque string; max 100 characters.","example":"12345","type":"string"},"name":{"description":"Display name. Max 50 characters.","example":"12345","type":"string"},"phoneNumber":{"description":"Contact phone. Opaque string; max 15 characters.","example":"12345","type":"string"}},"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorHourlyMoneyInputTypeRequestBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdateVendorGroupEntityVendorProfileVendorHourlyMoneyTypeResponseBody":{"description":"VendorHourlyMoney object","properties":{"amount":{"description":"Nonnegative decimal hourly amount in the organization's currency.","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency matching the organization's current currency.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimClaimReimbursementInputTypeRequestBody":{"description":"ClaimReimbursement object","properties":{"reimbursement":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"workOrderId":{"description":"Work order the reimbursement is applied to.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimClaimReimbursementTypeResponseBody":{"description":"ClaimReimbursement object","properties":{"reimbursement":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"workOrderId":{"description":"Work order the reimbursement is applied to.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"required":["amount","currency"],"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody":{"description":"Money object","properties":{"amount":{"description":"Monetary amount as a decimal string in major currency units (e.g. \"24.50\").","example":"12345","type":"string"},"currency":{"description":"ISO 4217 currency code, lowercased (e.g. \"usd\").","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdInputTypeRequestBody":{"description":"WarrantyClaimExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody":{"description":"WarrantyClaimExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborInputTypeRequestBody":{"description":"WarrantyClaimLabor object","properties":{"cost":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"description":{"description":"Free-text labor description.","example":"12345","type":"string"},"serviceTaskId":{"description":"Service task the labor belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the labor cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody":{"description":"WarrantyClaimLabor object","properties":{"cost":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"description":{"description":"Free-text labor description.","example":"12345","type":"string"},"serviceTaskId":{"description":"Service task the labor belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the labor cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartInputTypeRequestBody":{"description":"WarrantyClaimPart object","properties":{"cost":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody"},"description":{"description":"Free-text part description.","example":"12345","type":"string"},"partDefinitionId":{"description":"ID of the part definition being claimed.","example":"12345","type":"string"},"partId":{"description":"Specific part-instance ID.","example":"12345","type":"string"},"quantity":{"description":"Quantity claimed.","example":12345,"format":"int64","type":"integer"},"serviceTaskId":{"description":"Service task the part belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the part cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this part line.","example":"12345","type":"string"}},"required":["partDefinitionId"],"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartTypeResponseBody":{"description":"WarrantyClaimPart object","properties":{"cost":{"$ref":"#/components/schemas/UpdateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody"},"description":{"description":"Free-text part description.","example":"12345","type":"string"},"partDefinitionId":{"description":"ID of the part definition being claimed.","example":"12345","type":"string"},"partId":{"description":"Specific part-instance ID.","example":"12345","type":"string"},"quantity":{"description":"Quantity claimed.","example":12345,"format":"int64","type":"integer"},"serviceTaskId":{"description":"Service task the part belongs to.","example":"12345","type":"string"},"sourceWorkOrderId":{"description":"Work order the part cost originated from.","example":"12345","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001) associated with this part line.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyClaimEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody":{"description":"WarrantyClaimStatusHistory object","properties":{"happenedAtTime":{"description":"When the transition occurred.","example":"2019-06-13T19:08:25Z","type":"string"},"status":{"description":"The status the claim moved into.  Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`","enum":["unknown","created","submitted","inReview","approved","rejected","resubmitted","reimbursed"],"example":"unknown","type":"string"},"userId":{"description":"ID of the user who made the change.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyEntityWarrantyWarrantyCoverageInputTypeRequestBody":{"description":"WarrantyCoverage object","properties":{"description":{"description":"Description of what this coverage group covers.","example":"12345","type":"string"},"durationDays":{"description":"Coverage length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Coverage length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Coverage length by engine hours since the coverage start.","example":12345,"format":"int64","type":"integer"},"exclusions":{"description":"Items explicitly excluded from this coverage group.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageItemInputTypeRequestBody"},"type":"array"},"inclusions":{"description":"Items explicitly covered by this coverage group.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageItemInputTypeRequestBody"},"type":"array"},"isOdometerDistanceUnlimited":{"description":"When true, the coverage never expires by mileage and the odometer distance is ignored.","example":true,"type":"boolean"},"name":{"description":"Name of the coverage group.","example":"12345","type":"string"},"notes":{"description":"Free-form notes about this coverage group.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Coverage length by distance travelled since the coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startEngineHours":{"description":"Engine hours at the start of this coverage.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Odometer reading at the start of this coverage. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"Start time of this coverage.","example":"2019-06-13T19:08:25Z","type":"string"}},"required":["name"],"type":"object"},"UpdateWarrantyEntityWarrantyWarrantyCoverageItemInputTypeRequestBody":{"description":"WarrantyCoverageItem object","properties":{"id":{"description":"Identifier of the covered item. For a service task item this is the service task definition key. For a VMRS code item supply vmrsCode instead, or this internal VMRS code ID.","example":"12345","type":"string"},"itemType":{"description":"Kind of covered item, indicating how the ID should be interpreted (VMRS code or service task).  Valid values: `unknown`, `vmrsCode`, `serviceTask`","enum":["unknown","vmrsCode","serviceTask"],"example":"unknown","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001). Use with itemType vmrsCode instead of id.","example":"12345","type":"string"}},"required":["itemType"],"type":"object"},"UpdateWarrantyEntityWarrantyWarrantyCoverageItemTypeResponseBody":{"description":"WarrantyCoverageItem object","properties":{"id":{"description":"Identifier of the covered item. For a service task item this is the service task definition key. For a VMRS code item supply vmrsCode instead, or this internal VMRS code ID.","example":"12345","type":"string"},"itemType":{"description":"Kind of covered item, indicating how the ID should be interpreted (VMRS code or service task).  Valid values: `unknown`, `vmrsCode`, `serviceTask`","enum":["unknown","vmrsCode","serviceTask"],"example":"unknown","type":"string"},"vmrsCode":{"description":"Dotted VMRS code path (e.g. 034-005-001). Use with itemType vmrsCode instead of id.","example":"12345","type":"string"}},"type":"object"},"UpdateWarrantyEntityWarrantyWarrantyCoverageTypeResponseBody":{"description":"WarrantyCoverage object","properties":{"description":{"description":"Description of what this coverage group covers.","example":"12345","type":"string"},"durationDays":{"description":"Coverage length in days. Mutually exclusive with duration in months.","example":12345,"format":"int64","type":"integer"},"durationMonths":{"description":"Coverage length in months. Mutually exclusive with duration in days.","example":12345,"format":"int64","type":"integer"},"engineDurationHours":{"description":"Coverage length by engine hours since the coverage start.","example":12345,"format":"int64","type":"integer"},"exclusions":{"description":"Items explicitly excluded from this coverage group.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageItemTypeResponseBody"},"type":"array"},"inclusions":{"description":"Items explicitly covered by this coverage group.","items":{"$ref":"#/components/schemas/UpdateWarrantyEntityWarrantyWarrantyCoverageItemTypeResponseBody"},"type":"array"},"isOdometerDistanceUnlimited":{"description":"When true, the coverage never expires by mileage and the odometer distance is ignored.","example":true,"type":"boolean"},"name":{"description":"Name of the coverage group.","example":"12345","type":"string"},"notes":{"description":"Free-form notes about this coverage group.","example":"12345","type":"string"},"odometerDistanceMeters":{"description":"Coverage length by distance travelled since the coverage start. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startEngineHours":{"description":"Engine hours at the start of this coverage.","example":12345,"format":"int64","type":"integer"},"startOdometerMeters":{"description":"Odometer reading at the start of this coverage. Measured in meters.","example":12345,"format":"int64","type":"integer"},"startTime":{"description":"Start time of this coverage.","example":"2019-06-13T19:08:25Z","type":"string"}},"type":"object"},"UpdateWarrantyEntityWarrantyWarrantyExternalIdInputTypeRequestBody":{"description":"WarrantyExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"required":["key","value"],"type":"object"},"UpdateWarrantyEntityWarrantyWarrantyExternalIdTypeResponseBody":{"description":"WarrantyExternalId object","properties":{"key":{"description":"Name of the external ID namespace, for example a source system identifier.","example":"12345","type":"string"},"value":{"description":"The external ID value within the given key's namespace.","example":"12345","type":"string"}},"type":"object"},"UploadedMediaObjectResponseBody":{"properties":{"auxCamSerial":{"description":"Serial number of the auxiliary camera that captured this media. Only present for analog inputs from auxiliary camera devices (e.g. Octo-1, Octo-4). Examples: ABDVJ123456789","example":"ABDVJ123456789","type":"string"},"availableAtTime":{"description":"Timestamp, in RFC 3339 format, at which the media item was made available. Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00","example":"2019-11-11T14:00:12-04:00","type":"string"},"cameraRole":{"description":"Camera role for this media.  Valid values: `leftMirrorMount`, `leftSide`, `rightMirrorMount`, `rightSide`, `rearHigh`, `rearBumper`, `inCab`, `front`, `hopper`, `other1`, `other2`, `other3`, `other4`, `leftBev`, `rightBev`, `rearBev`, `frontBev`, `otherBev`, `bevNotUsed`","enum":["leftMirrorMount","leftSide","rightMirrorMount","rightSide","rearHigh","rearBumper","inCab","front","hopper","other1","other2","other3","other4","leftBev","rightBev","rearBev","frontBev","otherBev","bevNotUsed"],"example":"leftMirrorMount","type":"string"},"endTime":{"description":" An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"input":{"description":"Input type for this media.  Valid values: `dashcamForwardFacing`, `dashcamInwardFacing`, `analog1`, `analog2`, `analog3`, `analog4`","enum":["dashcamForwardFacing","dashcamInwardFacing","analog1","analog2","analog3","analog4"],"example":"dashcamForwardFacing","type":"string"},"mediaType":{"description":"Type of media.  Valid values: `image`, `videoHighRes`, `videoLowRes`, `hyperlapse`","enum":["image","videoHighRes","videoLowRes","hyperlapse"],"example":"image","type":"string"},"startTime":{"description":" A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"triggerReason":{"description":"Trigger reason for this media capture.  Valid values: `api`, `panicButton`, `periodicStill`, `rfidEvent`, `safetyEvent`, `tripEndStill`, `tripStartStill`, `videoRetrieval`","enum":["api","panicButton","periodicStill","rfidEvent","safetyEvent","tripEndStill","tripStartStill","videoRetrieval"],"example":"api","type":"string"},"urlInfo":{"$ref":"#/components/schemas/UrlInfoObjectResponseBody"},"vehicleId":{"description":"Vehicle ID for which this media was captured. Examples: 1234","example":"1234","type":"string"}},"required":["availableAtTime","endTime","input","mediaType","startTime","triggerReason","vehicleId"],"type":"object"},"UrlInfoObjectResponseBody":{"description":"URL info for this piece of media. This field is only populated when the 'status' response field is 'available'","properties":{"url":{"description":"Signed URL for this piece of media. The URL expires in 8 hours (after which you must make another GET request). Examples: https://sample.s3.url.com/image.jpeg","example":"https://sample.s3.url.com/image.jpeg","type":"string"},"urlExpiryTime":{"description":"Timestamp, in RFC 3339 format, at which the URL expires. Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00","example":"2019-11-11T14:00:12-04:00","type":"string"}},"required":["url","urlExpiryTime"],"type":"object"},"UsDriverRulesetOverride":{"description":"US Driver Ruleset override for a given driver. If the driver is operating under a ruleset different from the organization default, the override is used. Updating this value only updates the override setting for this driver. Explicitly setting this field to `null` will delete driver's ruleset override. If the driver does not have an override ruleset set, the response will not include any usDriverRulesetOverride information.","properties":{"cycle":{"description":"The driver's working cycle. Valid values: `USA Property (8/70)`, `USA Property (7/60)`, `USA Passenger (8/70)`, `USA Passenger (7/60)`, `Alaska Property (8/80)`, `Alaska Property (7/70)`, `Alaska Passenger (8/80)`, `Alaska Passenger (7/70)`, `California School/FLV (8/80)`, `California Farm (8/112)`, `California Property (8/80)`, `California Flammable Liquid (8/80)`, `California Passenger (8/80)`, `California Motion Picture (8/80)`, `Florida (8/80)`, `Florida (7/70)`, `Nebraska (8/80)`, `Nebraska (7/70)`, `North Carolina (8/80)`, `North Carolina (7/70)`, `Oklahoma (8/70)`, `Oklahoma (7/60)`, `Oregon (8/80)`, `Oregon (7/70)`, `South Carolina (8/80)`, `South Carolina (7/70)`, `Texas (7/70)`, `Wisconsin (8/80)`, `Wisconsin (7/70)`","enum":["USA Property (8/70)","USA Property (7/60)","USA Passenger (8/70)","USA Passenger (7/60)","Alaska Property (8/80)","Alaska Property (7/70)","Alaska Passenger (8/80)","Alaska Passenger (7/70)","California School/FLV (8/80)","California Farm (8/112)","California Property (8/80)","California Flammable Liquid (8/80)","California Passenger (8/80)","California Motion Picture (8/80)","Florida (8/80)","Florida (7/70)","Nebraska (8/80)","Nebraska (7/70)","North Carolina (8/80)","North Carolina (7/70)","Oklahoma (8/70)","Oklahoma (7/60)","Oregon (8/80)","Oregon (7/70)","South Carolina (8/80)","South Carolina (7/70)","Texas (7/70)","Wisconsin (8/80)","Wisconsin (7/70)"],"example":"TX 70 hour / 7 day","type":"string"},"restart":{"description":"Amount of time necessary for the driver to be resting in order to restart their cycle. Valid values: `34-hour Restart`, `24-hour Restart`, `36-hour Restart`, `72-hour Restart`, `None`.","enum":["34-hour Restart","24-hour Restart","36-hour Restart","72-hour Restart","None"],"example":"34-hour Restart","type":"string"},"restbreak":{"description":"The restbreak required for this driver. Valid values: `Property (off-duty/sleeper)`, `California Mealbreak (off-duty/sleeper)`, `None`.","enum":["Property (off-duty/sleeper)","California Mealbreak (off-duty/sleeper)","None"],"example":"None","type":"string"},"usStateToOverride":{"description":"The jurisdiction of the ruleset applied to this driver. These are specified by either the ISO 3166-2 postal code for the supported US states, or empty string '' for US Federal Ruleset jurisdiction. Valid values: ``, `AK`, `CA`, `FL`, `NE`, `NC`, `OK`, `OR`, `SC`, `TX`, `WI`.","enum":["","AK","CA","FL","NE","NC","OK","OR","SC","TX","WI"],"example":"TX","type":"string"}},"required":["cycle","restart","restbreak","usStateToOverride"],"type":"object"},"User":{"description":"A user object.","properties":{"authType":{"$ref":"#/components/schemas/UserAuthType"},"email":{"$ref":"#/components/schemas/UserEmail"},"id":{"$ref":"#/components/schemas/UserId"},"name":{"$ref":"#/components/schemas/UserName"},"roles":{"$ref":"#/components/schemas/UserRoles"}},"required":["authType","email","id","name","roles"],"type":"object"},"UserAuthType":{"description":"The authentication type the user uses to authenticate. To use SAML this organization must have a configured SAML integration. Valid values: `default`, `saml`.","enum":["default","saml"],"type":"string"},"UserEmail":{"description":"The email address of this user.","example":"user@company.com","type":"string"},"UserExpireAt":{"description":"For user account expiration, the access expiration datetime in RFC3339 format","example":"2025-08-13T19:08:25Z","type":"string"},"UserId":{"description":"ID of the user.","example":"123","type":"string"},"UserIdentifierSerial":{"description":"The serial number of the gateway. **By default**: empty. This can be set to a different gateway's serial number to pair this vehicle with a different gateway.","example":"ABCD-123-XYZ","type":"string"},"UserName":{"description":"The first and last name of the user.","example":"Bob Smith","type":"string"},"UserResponse":{"description":"A single user.","properties":{"data":{"$ref":"#/components/schemas/User"}},"type":"object"},"UserRole":{"description":"A user role object.","properties":{"id":{"description":"The unique ID for the role.","example":"8a9371af-82d1-4158-bf91-4ecc8d3a114c","type":"string"},"name":{"description":"The name of the role.","example":"Full Admin","type":"string"}},"type":"object"},"UserRoleAssignment":{"description":"A role that applies to a user. If the role has a `tag`, then the role applies for that tag. If there is no `tag`, then the role applies at the organizational level. A user may have many tag-specific roles, but may only have one organizational level role. If the organizational level role has higher privileges than a tag-specific role, then the organizational role privileges will take precedence.","properties":{"expireAt":{"$ref":"#/components/schemas/UserExpireAt"},"role":{"$ref":"#/components/schemas/UserRole"},"tag":{"$ref":"#/components/schemas/tagTinyResponse"}},"type":"object"},"UserRoleAssignmentRequest":{"description":"A role that applies to a user. If the role has a `tagId`, then the role applies for that tag. If there is no `tagId`, then the role applies at the organizational level. A user may have many tag-specific roles, but may only have one organizational role. If the organizational level role has higher privileges than a tag-specific role, then the organizational role privileges will take precedence.","properties":{"roleId":{"description":"The unique ID for the role.","example":"8a9371af-82d1-4158-bf91-4ecc8d3a114c","type":"string"},"tagId":{"description":"ID of the tag this role applies to.","example":"3914","type":"string"}},"required":["roleId"],"type":"object"},"UserRoles":{"description":"The list of roles that applies to this user. A user may have \"organizational\" roles, which apply to the user at the organizational level, and \"tag-specific\" roles, which apply to the user for a given tag.","items":{"$ref":"#/components/schemas/UserRoleAssignment"},"type":"array"},"UserRolesRequest":{"description":"The list of roles that applies to this user. A user may have \"organizational\" roles, which apply to the user at the organizational level, and \"tag-specific\" roles, which apply to the user for a given tag.","items":{"$ref":"#/components/schemas/UserRoleAssignmentRequest"},"type":"array"},"V1Asset":{"description":"Basic information of an asset","properties":{"assetSerialNumber":{"description":"Serial number of the host asset","example":"SNTEST123","type":"string"},"cable":{"$ref":"#/components/schemas/V1Asset_cable"},"engineHours":{"description":"Engine hours","example":104,"type":"integer"},"id":{"description":"Asset ID","example":1,"format":"int64","type":"integer"},"name":{"description":"Asset name","example":"Trailer 123","type":"string"},"vehicleId":{"description":"The ID of the Vehicle associated to the Asset (if present)","example":2,"format":"int64","type":"integer"}},"required":["id"],"type":"object"},"V1AssetCableResponseBody":{"description":"The cable connected to the asset","properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"}},"type":"object"},"V1AssetCurrentLocation":{"description":"Current location of an asset","properties":{"latitude":{"description":"The latitude of the location in degrees.","example":37,"type":"number"},"location":{"description":"The best effort (street,city,state) for the latitude and longitude.","example":"525 York, San Francisco, CA","type":"string"},"longitude":{"description":"The longitude of the location in degrees.","example":-122.7,"type":"number"},"speedMilesPerHour":{"description":"The speed calculated from GPS that the asset was traveling at in miles per hour.","example":35,"type":"number"},"timeMs":{"description":"Time in Unix milliseconds since epoch when the asset was at the location.","example":12314151,"type":"number"}},"type":"object"},"V1AssetCurrentLocationsResponse":{"description":"Basic information of an asset","properties":{"assetSerialNumber":{"description":"Asset serial number","example":"8dka2810","type":"string"},"cable":{"$ref":"#/components/schemas/V1Asset_cable"},"engineHours":{"description":"Engine hours","example":104,"type":"integer"},"id":{"description":"Asset ID","example":1,"format":"int64","type":"integer"},"location":{"description":"Current location of an asset","items":{"$ref":"#/components/schemas/V1AssetCurrentLocation"},"type":"array"},"name":{"description":"Asset name","example":"Trailer 123","type":"string"}},"required":["id"],"type":"object"},"V1AssetLocationResponse":{"description":"A list of historical asset locations.","items":{"description":"Asset location details.","properties":{"latitude":{"description":"The latitude of the location in degrees.","example":37,"type":"number"},"location":{"description":"The best effort (street,city,state) for the latitude and longitude.","example":"525 York, San Francisco, CA","type":"string"},"longitude":{"description":"The longitude of the location in degrees.","example":-122.7,"type":"number"},"speedMilesPerHour":{"description":"The speed calculated from GPS that the asset was traveling at in miles per hour.","example":35,"type":"number"},"time":{"description":"Time in Unix milliseconds since epoch when the asset was at the location.","example":12314151,"type":"number"}},"type":"object"},"type":"array"},"V1AssetReeferResponse":{"description":"Reefer-specific asset details","properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"},"id":{"description":"Asset ID","example":1,"type":"integer"},"name":{"description":"Asset name","example":"Reefer 123","type":"string"},"reeferStats":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats"}},"type":"object"},"V1AssetReeferResponse_reeferStats":{"properties":{"alarms":{"description":"Reefer alarms","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_alarms_1"},"type":"array"},"engineHours":{"description":"Engine hours of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_engineHours"},"type":"array"},"fuelPercentage":{"description":"Fuel percentage of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_fuelPercentage"},"type":"array"},"powerStatus":{"description":"Power status of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_powerStatus"},"type":"array"},"returnAirTemp":{"description":"Return air temperature of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_returnAirTemp"},"type":"array"},"setPoint":{"description":"Set point temperature of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_setPoint"},"type":"array"}},"type":"object"},"V1AssetReeferResponse_reeferStats_alarms":{"properties":{"alarmCode":{"description":"ID of the alarm","example":102,"format":"int64","type":"integer"},"description":{"description":"Description of the alarm","example":"Check Return Air Sensor","type":"string"},"operatorAction":{"description":"Recommended operator action","example":"Check and repair at end of trip","type":"string"},"severity":{"description":"Severity of the alarm: 1: OK to run, 2: Check as specified, 3: Take immediate action","example":1,"format":"int64","type":"integer"}},"type":"object"},"V1AssetReeferResponse_reeferStats_alarms_1":{"properties":{"alarms":{"items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_alarms"},"type":"array"},"changedAtMs":{"description":"Timestamp when the alarms were reported, in Unix milliseconds since epoch","example":1453449599999,"format":"int64","type":"integer"}},"type":"object"},"V1AssetReeferResponse_reeferStats_engineHours":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"engineHours":{"description":"Engine hours of the reefer.","example":1200,"format":"int64","type":"integer"}},"type":"object"},"V1AssetReeferResponse_reeferStats_fuelPercentage":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"fuelPercentage":{"description":"Fuel percentage of the reefer.","example":99,"format":"int64","type":"integer"}},"type":"object"},"V1AssetReeferResponse_reeferStats_powerStatus":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"status":{"description":"Power status of the reefer. Valid values: `Off`, `Active`, `Active (Start/Stop)`, `Active (Continuous)`.","example":"Active (Continuous)","type":"string"}},"type":"object"},"V1AssetReeferResponse_reeferStats_returnAirTemp":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"tempInMilliC":{"description":"Return air temperature in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"type":"object"},"V1AssetReeferResponse_reeferStats_setPoint":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"tempInMilliC":{"description":"Set point temperature in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"type":"object"},"V1AssetResponseBody":{"description":"Basic information of an asset","properties":{"assetSerialNumber":{"description":"Serial number of the host asset","example":"SNTEST123","type":"string"},"cable":{"$ref":"#/components/schemas/V1AssetCableResponseBody"},"engineHours":{"description":"Engine hours","example":104,"format":"int64","type":"integer"},"id":{"description":"Asset ID","example":1,"format":"int64","type":"integer"},"name":{"description":"Asset name","example":"Trailer 123","type":"string"},"vehicleId":{"description":"The ID of the Vehicle associated to the Asset (if present)","example":2,"format":"int64","type":"integer"}},"required":["id"],"type":"object"},"V1Asset_cable":{"description":"The cable connected to the asset","properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"}},"type":"object"},"V1AssetsReefer":{"description":"Reefer-specific details","properties":{"assetType":{"description":"Asset type","example":"Thermo King","type":"string"},"id":{"description":"Asset ID","example":1,"type":"integer"},"name":{"description":"Asset name","example":"Reefer 123","type":"string"},"reeferStats":{"$ref":"#/components/schemas/V1AssetsReefer_reeferStats"}},"type":"object"},"V1AssetsReefer_reeferStats":{"description":"Contains all the state changes of the reefer for the included stat types. Each state change is recorded independently, so the number of records in each array may differ depending on when that stat changed state. Stat types with a continuous value (such as temperature) will be recorded at different rates depending on the reefer, but generally readings have a frequency on the order of seconds.","properties":{"ambientAirTemperature":{"description":"Ambient temperature of the reefer. This is the temperature of the air around the Samsara Asset Gateway.","items":{"$ref":"#/components/schemas/V1AssetsReefer_reeferStats_ambientAirTemperature"},"type":"array"},"dischargeAirTemperature":{"description":"Discharge air temperature of the reefer. This is the temperature of the air as it leaves the cooling unit.","items":{"$ref":"#/components/schemas/V1AssetsReefer_reeferStats_dischargeAirTemperature"},"type":"array"},"engineHours":{"description":"Engine hours of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_engineHours"},"type":"array"},"fuelPercentage":{"description":"Fuel percentage of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_fuelPercentage"},"type":"array"},"powerStatus":{"description":"Power status of the reefer","items":{"$ref":"#/components/schemas/V1AssetsReefer_reeferStats_powerStatus"},"type":"array"},"reeferAlarms":{"description":"Reefer alarms","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_alarms_1"},"type":"array"},"returnAirTemperature":{"description":"Return air temperature of the reefer. This is the temperature read by the reefer module (Carrier, Thermo King) that shows the temperature of the air as it enters the system.","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_returnAirTemp"},"type":"array"},"setPoint":{"description":"Set point temperature of the reefer","items":{"$ref":"#/components/schemas/V1AssetReeferResponse_reeferStats_setPoint"},"type":"array"}},"type":"object"},"V1AssetsReefer_reeferStats_ambientAirTemperature":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"tempInMilliC":{"description":"Ambient temperature in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"type":"object"},"V1AssetsReefer_reeferStats_dischargeAirTemperature":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"tempInMilliC":{"description":"Discharge temperature in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"type":"object"},"V1AssetsReefer_reeferStats_powerStatus":{"properties":{"changedAtMs":{"description":"Timestamp in Unix milliseconds since epoch.","example":1453449599999,"format":"int64","type":"integer"},"status":{"description":"Power status of the reefer. Valid values: `Off`, `Active`, `Active (Start/Stop)`, `Active (Continuous)`.","enum":["Off","Active","Active (Start/Stop)","Active (Continuous)"],"example":"Active (Continuous)","type":"string"}},"type":"object"},"V1CargoResponse":{"description":"Contains the current cargo status of a sensor.","properties":{"groupId":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"sensors":{"items":{"$ref":"#/components/schemas/V1CargoResponse_sensors"},"type":"array"}},"type":"object"},"V1CargoResponse_sensors":{"properties":{"cargoEmpty":{"description":"Flag indicating whether the current cargo is empty or loaded.","example":true,"type":"boolean"},"cargoStatusTime":{"description":"The timestamp of reported cargo status, specified in RFC 3339 time.","example":"2019-04-17T16:42:55Z","type":"string"},"id":{"description":"ID of the sensor.","example":122,"format":"int64","type":"integer"},"name":{"description":"Name of the sensor.","example":"Trailer Cargo V1Sensor","type":"string"},"redEyeDistance":{"description":"The distance between red eye detector and the closest object in cm.","example":175,"type":"integer"},"trailerId":{"description":"ID of the trailer associated with the sensor for the data point. If no trailer is connected, this parameter will not be reported.","example":123,"type":"integer"},"vehicleId":{"description":"ID of the vehicle associated with the sensor for the data point. If no vehicle is connected, this parameter will not be reported.","example":124,"type":"integer"}},"type":"object"},"V1DataInputHistoryResponse":{"properties":{"id":{"description":"The ID of this data input","example":12345,"format":"int64","type":"integer"},"name":{"description":"Name of this data input","example":"Pump Flow","type":"string"},"points":{"description":"Data points from this data input","items":{"$ref":"#/components/schemas/V1DataInputHistoryResponse_points"},"type":"array"}},"required":["name"],"type":"object"},"V1DataInputHistoryResponse_points":{"properties":{"timeMs":{"example":1453449599999,"format":"int64","type":"integer"},"value":{"example":12.332,"format":"double","type":"number"}},"type":"object"},"V1DispatchJob":{"allOf":[{"$ref":"#/components/schemas/V1DispatchJob_allOf"},{"$ref":"#/components/schemas/V1DispatchJobCreate"}]},"V1DispatchJobCreate":{"properties":{"destination_address":{"description":"The address of the job destination, as it would be recognized if provided to maps.google.com. Optional if a valid destination address ID is provided.","example":"123 Main St, Philadelphia, PA 19106","type":"string"},"destination_address_id":{"description":"ID of the job destination associated with an address book entry. Optional if valid values are provided for destination address and latitude/longitude. If a valid destination address ID is provided, address/latitude/longitude will be used from the address book entry. Name of the address book entry will only be used if the destination name is not provided.","example":67890,"format":"int64","type":"integer"},"destination_lat":{"description":"Latitude of the destination in decimal degrees. Optional if a valid destination address ID is provided.","example":123.456,"format":"double","type":"number"},"destination_lng":{"description":"Longitude of the destination in decimal degrees. Optional if a valid destination address ID is provided.","example":37.459,"format":"double","type":"number"},"destination_name":{"description":"The name of the job destination. If provided, it will take precedence over the name of the address book entry.","example":"ACME Inc. Philadelphia HQ","type":"string"},"external_ids":{"$ref":"#/components/schemas/V1DispatchRouteJobExternalIds"},"notes":{"description":"Notes regarding the details of this job, maximum of 2000 characters; newline characters ('\\n')can be used for formatting.","example":"Ensure crates are stacked no more than 3 high.","type":"string"},"scheduled_arrival_time_ms":{"description":"The time at which the assigned driver is scheduled to arrive at the job destination.","example":1462881998034,"format":"int64","type":"integer"},"scheduled_departure_time_ms":{"description":"The time at which the assigned driver is scheduled to depart from the job destination.","example":1462881998034,"format":"int64","type":"integer"}},"required":["scheduled_arrival_time_ms"],"type":"object"},"V1DispatchJobDocumentInfo":{"properties":{"driverId":{"description":"ID of driver that submitted the document.","example":1234,"type":"integer"},"id":{"description":"ID of document. This can be used to query for the document's info via the /v1/fleet/drivers/{driver_id}/documents/{document_id} endpoint","example":"2018_42424242","type":"string"}},"required":["driverId","id"],"type":"object"},"V1DispatchJobWithoutETA":{"allOf":[{"$ref":"#/components/schemas/V1DispatchJobWithoutETA_allOf"},{"$ref":"#/components/schemas/V1DispatchJobCreate"}]},"V1DispatchJobWithoutETA_allOf":{"properties":{"arrived_at_ms":{"description":"The time at which the driver arrived at the job destination.","example":1462881998034,"format":"int64","type":"integer"},"completed_at_ms":{"description":"The time at which the job was marked complete (e.g. started driving to the next destination).","example":1462881998034,"format":"int64","type":"integer"},"dispatch_route_id":{"description":"ID of the route that this job belongs to.","example":55,"format":"int64","type":"integer"},"documents":{"description":"Document submissions associated with this job.","items":{"$ref":"#/components/schemas/V1DispatchJobDocumentInfo"},"type":"array"},"driver_id":{"description":"ID of the driver assigned to the dispatch job.","example":444,"format":"int64","type":"integer"},"en_route_at_ms":{"description":"The time at which the assigned driver started fulfilling the job (e.g. started driving to the destination).","example":1462881998034,"format":"int64","type":"integer"},"fleet_viewer_url":{"description":"Fleet viewer url of the dispatch job.","example":"https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token","type":"string"},"group_id":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"id":{"description":"ID of the Samsara dispatch job.","example":773,"format":"int64","type":"integer"},"job_state":{"$ref":"#/components/schemas/V1JobStatus"},"skipped_at_ms":{"description":"The time at which the job was marked skipped.","example":1462881998034,"format":"int64","type":"integer"},"vehicle_id":{"description":"ID of the vehicle used for the dispatch job.","example":112,"format":"int64","type":"integer"}},"required":["dispatch_route_id","id","job_state"],"type":"object"},"V1DispatchJob_allOf":{"properties":{"arrived_at_ms":{"description":"The time at which the driver arrived at the job destination.","example":1462881998034,"format":"int64","type":"integer"},"completed_at_ms":{"description":"The time at which the job was marked complete (e.g. started driving to the next destination).","example":1462881998034,"format":"int64","type":"integer"},"dispatch_route_id":{"description":"ID of the route that this job belongs to.","example":55,"format":"int64","type":"integer"},"documents":{"description":"Document submissions associated with this job.","items":{"$ref":"#/components/schemas/V1DispatchJobDocumentInfo"},"type":"array"},"driver_id":{"description":"ID of the driver assigned to the dispatch job.","example":444,"format":"int64","type":"integer"},"en_route_at_ms":{"description":"The time at which the assigned driver started fulfilling the job (e.g. started driving to the destination).","example":1462881998034,"format":"int64","type":"integer"},"estimated_arrival_ms":{"description":"The time at which the assigned driver is estimated to arrive at the job destination. Only valid for en-route jobs.","example":1462881998034,"format":"int64","type":"integer"},"fleet_viewer_url":{"description":"Fleet viewer url of the dispatch job.","example":"https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token","type":"string"},"group_id":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"id":{"description":"ID of the Samsara dispatch job.","example":773,"format":"int64","type":"integer"},"job_state":{"$ref":"#/components/schemas/V1JobStatus"},"skipped_at_ms":{"description":"The time at which the job was marked skipped.","example":1462881998034,"format":"int64","type":"integer"},"vehicle_id":{"description":"ID of the vehicle used for the dispatch job.","example":112,"format":"int64","type":"integer"}},"required":["dispatch_route_id","id","job_state"],"type":"object"},"V1DispatchRoute":{"allOf":[{"$ref":"#/components/schemas/V1DispatchRoute_allOf"},{"$ref":"#/components/schemas/V1DispatchRouteBase"}]},"V1DispatchRouteBase":{"properties":{"actual_end_ms":{"description":"The time in Unix epoch milliseconds that the route actually ended.","example":1462882101000,"format":"int64","type":"integer"},"actual_start_ms":{"description":"The time in Unix epoch milliseconds that the route actually started.","example":1462882098000,"format":"int64","type":"integer"},"complete_last_stop_on_arrival":{"default":true,"description":"When set to true (default), this causes the Route to complete on arrival at the final stop. When set to false, the last stop will capture arrival and departure separately as with other stops.","type":"boolean"},"driver_id":{"description":"ID of the driver assigned to the dispatch route. Note that driver_id and vehicle_id are mutually exclusive. If neither is specified, then the route is unassigned.","example":555,"format":"int64","type":"integer"},"externalIds":{"$ref":"#/components/schemas/V1DispatchRouteExternalIds"},"group_id":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"name":{"description":"Descriptive name of this route.","example":"Bid #123","type":"string"},"notes":{"description":"Notes regarding the details of this route; maximum of 2000 characters; newline characters ('\\n')can be used for formatting.","example":"Please make sure to confirm crate count at each stop on this route.\nTotal number of crates for route: 23.","type":"string"},"odometer_end_meters":{"description":"Odometer reading at the end of the route. Will not be returned if Route is not completed or if Odometer information is not available for the relevant vehicle.","example":2000000,"format":"int64","type":"integer"},"odometer_start_meters":{"description":"Odometer reading at the start of the route. Will not be returned if Route has not started or if Odometer information is not available for the relevant vehicle.","example":1000000,"format":"int64","type":"integer"},"scheduled_end_ms":{"description":"The time in Unix epoch milliseconds that the last job in the route is scheduled to end.","example":1462881998034,"format":"int64","type":"integer"},"scheduled_meters":{"description":"The distance expected to be traveled for this route in meters.","example":10000,"format":"int64","type":"integer"},"scheduled_start_ms":{"description":"The time in Unix epoch milliseconds that the route is scheduled to start.","example":1462881998034,"format":"int64","type":"integer"},"start_location_address":{"description":"The address of the route's starting location, as it would be recognized if provided to maps.google.com. Optional if a valid start location address ID is provided.","example":"123 Main St, Philadelphia, PA 19106","type":"string"},"start_location_address_id":{"description":"ID of the start location associated with an address book entry. Optional if valid values are provided for start location address and latitude/longitude. If a valid start location address ID is provided, address/latitude/longitude will be used from the address book entry. Name of the address book entry will only be used if the start location name is not provided.","example":67890,"format":"int64","type":"integer"},"start_location_lat":{"description":"Latitude of the start location in decimal degrees. Optional if a valid start location address ID is provided.","example":123.456,"format":"double","type":"number"},"start_location_lng":{"description":"Longitude of the start location in decimal degrees. Optional if a valid start location address ID is provided.","example":37.459,"format":"double","type":"number"},"start_location_name":{"description":"The name of the route's starting location. If provided, it will take precedence over the name of the address book entry.","example":"ACME Inc. Philadelphia HQ","type":"string"},"trailer_id":{"description":"ID of the trailer assigned to the dispatch route. Note that trailers can only be assigned to routes that have a Vehicle or Driver assigned to them.","example":666,"format":"int64","type":"integer"},"vehicle_id":{"description":"ID of the vehicle assigned to the dispatch route. Note that vehicle_id and driver_id are mutually exclusive. If neither is specified, then the route is unassigned.","example":444,"format":"int64","type":"integer"}},"type":"object"},"V1DispatchRouteExternalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"V1DispatchRouteHistoricalEntry":{"properties":{"changed_at_ms":{"description":"Timestamp that the route was updated, represented as Unix milliseconds since epoch.","example":1499411220000,"format":"int64","type":"integer"},"route":{"$ref":"#/components/schemas/V1DispatchRoute"}},"type":"object"},"V1DispatchRouteHistory":{"properties":{"history":{"description":"History of the route's state changes.","items":{"$ref":"#/components/schemas/V1DispatchRouteHistoricalEntry"},"type":"array"}},"type":"object"},"V1DispatchRouteJobExternalIds":{"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"V1DispatchRouteWithoutETA":{"allOf":[{"$ref":"#/components/schemas/V1DispatchRouteWithoutETA_allOf"},{"$ref":"#/components/schemas/V1DispatchRouteBase"}]},"V1DispatchRouteWithoutETA_allOf":{"properties":{"dispatch_jobs":{"description":"The dispatch jobs associated with this route.","items":{"$ref":"#/components/schemas/V1DispatchJobWithoutETA"},"type":"array"},"id":{"description":"ID of the Samsara dispatch route.","example":556,"format":"int64","type":"integer"}},"type":"object"},"V1DispatchRoute_allOf":{"properties":{"dispatch_jobs":{"description":"The dispatch jobs associated with this route.","items":{"$ref":"#/components/schemas/V1DispatchJob"},"type":"array"},"id":{"description":"ID of the Samsara dispatch route.","example":556,"format":"int64","type":"integer"}},"type":"object"},"V1DispatchRoutes":{"items":{"$ref":"#/components/schemas/V1DispatchRouteWithoutETA"},"type":"array"},"V1Document":{"allOf":[{"$ref":"#/components/schemas/V1Document_allOf"},{"$ref":"#/components/schemas/V1DocumentBase"}]},"V1DocumentBase":{"properties":{"dispatchJobId":{"description":"ID of the Samsara dispatch job for which the document is submitted.","example":773,"format":"int64","type":"integer"},"name":{"description":"Custom name of the document. If no custom name is given to the document, the admin dashboard and driver app will display the template name as the default document name.","example":"Fuel Receipt Wichita","maxLength":255,"minLength":1,"type":"string"},"notes":{"description":"Notes submitted with this document.","example":"Fueled up before delivery.","type":"string"},"state":{"default":"Required","description":"The condition of the document created for the driver. Can be either `Required` or `Submitted`. If no value is specified, `state` defaults to `Required`. `Required` documents are pre-populated documents for the Driver to fill out in the Driver App and have not yet been submitted. `Submitted` documents have been submitted by the driver in the Driver App. `Archived` documents have been archived by the admin in the cloud dashboard.","enum":["Required","Submitted","Archived"],"example":"Submitted","type":"string"}},"required":["dispatchJobId","notes"],"type":"object"},"V1DocumentConditionalFields":{"description":"An array of objects that describe a set of fields conditionally shown by a multiple choice value.","example":[{"conditionalFieldFirstIndex":1,"conditionalFieldLastIndex":4,"triggeringFieldIndex":0,"triggeringFieldValue":"Yes"}],"items":{"properties":{"conditionalFieldIndexFirst":{"description":"Start index of the conditional fields set","type":"number"},"conditionalFieldIndexLast":{"description":"End index of the conditional fields set","type":"number"},"triggeringFieldIndex":{"description":"Index of the multiple choice field that triggers the conditional fields","type":"number"},"triggeringFieldValue":{"description":"Multiple choice value that triggers the conditional fields","type":"string"}},"type":"object"},"type":"array"},"V1DocumentCreate":{"allOf":[{"$ref":"#/components/schemas/V1DocumentCreate_allOf"},{"$ref":"#/components/schemas/V1DocumentCreateBase"}]},"V1DocumentCreateBase":{"properties":{"dispatchJobId":{"description":"ID of the Samsara dispatch job for which the document is submitted.","example":773,"format":"int64","type":"integer"},"name":{"description":"Custom name of the document. If no custom name is given to the document, the admin dashboard and driver app will display the template name as the default document name.","example":"Fuel Receipt Wichita","maxLength":255,"minLength":1,"type":"string"},"notes":{"description":"Notes submitted with this document.","example":"Fueled up before delivery.","type":"string"},"state":{"default":"Required","description":"The condition of the document created for the driver. Can be either `Required` or `Submitted`. If no value is specified, `state` defaults to `Required`. `Required` documents are pre-populated documents for the Driver to fill out in the Driver App and have not yet been submitted. `Submitted` documents will show up as submitted by the driver through the driver app.","enum":["Required","Submitted"],"example":"Required","type":"string"}},"type":"object"},"V1DocumentCreateFields":{"description":"List of fields for the document. The fields must be listed in the order that that they appear in the document type. Values of fields can be set to null or omitted if the document state is set to \"Required\".","example":[{"label":"Example number field label","numberValue":999,"valueType":"ValueType_Number"},{"label":"text","stringValue":"example string","valueType":"ValueType_String"},{"label":"Example multi choice label","multipleChoiceValue":[{"selected":false,"value":"option 1"},{"selected":true,"value":"option 2"}],"valueType":"ValueType_MultipleChoice"},{"dateTimeValue":{"dateTimeMs":10855639004823},"label":"Example date time label","valueType":"ValueType_DateTime"},{"label":"Example photo label","valueType":"ValueType_Photo"},{"label":"Example signature label","valueType":"ValueType_Signature"}],"items":{"description":"Field item parameters.","properties":{"dateTimeValue":{"description":"The date time value to populate the field. Use with ValueType_DateTime. Cannot be ommited or set to null","properties":{"dateTimeMs":{"type":"number"}},"type":"object"},"label":{"description":"label of the field","type":"string"},"multipleChoiceValue":{"description":"The multiple choice value to populate the field. Use with ValueType_MultipleChoice. Cannot be ommited or set to null","items":{"description":"An option item for a multiple choice field","properties":{"selected":{"type":"boolean"},"value":{"type":"string"}},"type":"object"},"type":"array"},"numberValue":{"description":"The number value to populate the field. Use with ValueType_Number. Can be ommited or set to null","type":"number"},"stringValue":{"description":"The string value to populate the field. Use with ValueType_String. Can be ommited or set to null","type":"string"},"value":{"description":"DEPRECATED. Please use one of the type-specific parameters.","type":"object"},"valueType":{"description":"The valueType of the field. Use with the corresponding {type of field}Value attribute. Signature and photo fields do not support values added via API. Their values must be omitted or set to null. For example:\n\n```\n\n\"fields\": [\n\n  {\n\n    \"label\": \"Signature\",\n\n    \"valueType\": \"ValueType_Signature\"\n\n  },\n\n  ... more fields\n\n]\n\n```","type":"string"}},"required":["label","valueType"],"type":"object"},"type":"array"},"V1DocumentCreate_allOf":{"description":"Arguments to create a document.","properties":{"documentTypeUuid":{"description":"Universally unique identifier for the document type that this document is being created for.","example":"4aff772c-a7bb-45e6-8e41-6a53e34feb83","type":"string"},"fields":{"$ref":"#/components/schemas/V1DocumentCreateFields"}},"required":["documentTypeUuid","fields"],"type":"object"},"V1DocumentFieldType":{"properties":{"label":{"description":"Name of this field type.","example":"Fuel Cost ($)","type":"string"},"multipleChoiceValueTypeMetadata":{"$ref":"#/components/schemas/V1DocumentFieldType_multipleChoiceValueTypeMetadata"},"numberValueTypeMetadata":{"$ref":"#/components/schemas/V1DocumentFieldType_numberValueTypeMetadata"},"signatureValueTypeMetadata":{"$ref":"#/components/schemas/V1DocumentFieldType_signatureValueTypeMetadata"},"valueType":{"description":"The type of value this field can have.\nValid values: `ValueType_Number`, `ValueType_String`, `ValueType_Photo`, `ValueType_MultipleChoice`, `ValueType_Signature`, `ValueType_DateTime`.","example":"ValueType_Number","type":"string"}},"required":["label","valueType"],"type":"object"},"V1DocumentFieldType_multipleChoiceValueTypeMetadata":{"description":"Metadata about the multiple choice field. Only present for value type `ValueType_MultipleChoice`","properties":{"multipleChoiceOptionLabels":{"description":"Array of the multiple choice option labels for the field","items":{"$ref":"#/components/schemas/V1DocumentFieldType_multipleChoiceValueTypeMetadata_multipleChoiceOptionLabels"},"type":"array"}},"type":"object"},"V1DocumentFieldType_multipleChoiceValueTypeMetadata_multipleChoiceOptionLabels":{"properties":{"label":{"example":"option 1","type":"string"}},"type":"object"},"V1DocumentFieldType_numberValueTypeMetadata":{"description":"Metadata about the number field. Only present for value type `ValueType_Number`","properties":{"numDecimalPlaces":{"description":"The number of decimal places allowed for this number field","example":2,"format":"int64","type":"number"}},"type":"object"},"V1DocumentFieldType_signatureValueTypeMetadata":{"description":"Metadata about the signature field. Only present for value type `ValueType_Signature`","properties":{"legalText":{"description":"Legal text displayed alongside signature","example":"I consent on behalf of myself and my employer to using electronic signatures in this transaction. I understand that I can request a copy of the signed documentation from the party requesting my signature.","type":"string"}},"type":"object"},"V1DocumentFields":{"description":"An array of field objects associated with a document.","example":[{"label":"Was there an accident?","multipleChoiceValue":[{"selected":false,"value":"Yes"},{"selected":true,"value":"No"}],"value":[{"selected":false,"value":"Yes"},{"selected":true,"value":"No"}],"valueType":"ValueType_MultipleChoice"},{"label":"Number of cars involved","numberValue":123,"value":123,"valueType":"ValueType_Number"},{"label":"Description of Accident","stringValue":"Example text value","value":"Example text value","valueType":"ValueType_String"},{"label":"Images of the damaged cars","photoValue":[{"url":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456"}],"value":[{"url":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","uuid":"f5271458-21f9-4a9f-a290-780c6d8840ff"}],"valueType":"ValueType_Photo"},{"barcodeValue":[{"barcodeType":"org.gs1.EAN-13","barcodeValue":"0853883003114"},{"barcodeType":"org.gs1.EAN-13","barcodeValue":"0036000318036"}],"label":"Accident Ticket Barcode","value":[{"barcodeType":"org.gs1.EAN-13","barcodeValue":"0853883003114"},{"barcodeType":"org.gs1.EAN-13","barcodeValue":"0036000318036"}],"valueType":"ValueType_Barcode"},{"dateTimeValue":{"dateTimeMs":1596681182972},"label":"Today's Date","value":{"dateTimeMs":1596681182972},"valueType":"ValueType_DateTime"},{"label":"Sign Signature","signatureValue":{"name":"John Smith","signedAtMs":1596681191327,"url":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456"},"value":{"name":"John Smith","signedAtMs":1596681191327,"url":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","uuid":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7"},"valueType":"ValueType_Signature"}],"items":{"properties":{"barcodeValue":{"description":"The value of a barcode scanning field. Only present for barcode scanning fields","items":{"properties":{"barcodeType":{"description":"The barcode type that was scanned","type":"string"},"barcodeValue":{"description":"The captured barcode value","type":"string"}},"type":"object"},"type":"array"},"dateTimeValue":{"description":"The value of a date time field. Only present for date time fields.","properties":{"dateTimeMs":{"description":"Date time value in milliseconds.","type":"number"}},"type":"object"},"label":{"description":"The name of a field.","type":"string"},"multipleChoiceValue":{"description":"The value of a multiple choice field. Only present for multiple choice fields.","items":{"properties":{"selected":{"description":"Boolean representing if the choice has been selected.","type":"boolean"},"value":{"description":"Description of the choice.","type":"string"}},"type":"object"},"type":"array"},"numberValue":{"description":"The value of a number field. Only present for number fields.","format":"float","type":"number"},"photoValue":{"description":"The value of a photo or document scanning field. Only present for photo or document scanning fields.","items":{"properties":{"url":{"description":"Url of the photo.","type":"string"},"uuid":{"description":"Uuid of the photo.","type":"string"}},"type":"object"},"type":"array"},"signatureValue":{"description":"The value of a signature field. Only present for signature fields.","properties":{"name":{"description":"Name of the signee for a signature field","type":"string"},"signedAtMs":{"description":"Date time value in milliseconds of the time a signature was captured.","type":"number"},"url":{"description":"Url of a signature field's PNG signature image.","type":"string"},"uuid":{"description":"Uuid of a signature field","type":"string"}},"type":"object"},"stringValue":{"description":"The value of a string field. Only present for string fields.","type":"string"},"value":{"description":"The value of a field. Type varies by field type.","type":"object"},"valueType":{"description":"The value type of a field.","type":"string"}},"type":"object"},"type":"array"},"V1DocumentType":{"properties":{"fieldTypes":{"description":"The fields associated with this document type.","items":{"$ref":"#/components/schemas/V1DocumentFieldType"},"type":"array"},"name":{"description":"Name of the document type.","example":"Fuel Receipt","type":"string"},"orgId":{"description":"ID for the organization this document belongs to.","example":773,"format":"int64","type":"integer"},"uuid":{"description":"Universally unique identifier for the document type. Can be passed in as the `documentTypeUuid` when creating a document for this document type.","example":"4aff772c-a7bb-45e6-8e41-6a53e34feb83","type":"string"}},"required":["fieldTypes","orgId","uuid"],"type":"object"},"V1DocumentTypes":{"items":{"$ref":"#/components/schemas/V1DocumentType"},"type":"array"},"V1Document_allOf":{"properties":{"conditionalFieldSections":{"$ref":"#/components/schemas/V1DocumentConditionalFields"},"documentType":{"description":"Name of the document type.","example":"Accident Report","type":"string"},"driverCreatedAtMs":{"description":"The time in Unix epoch milliseconds that the document was created in the driver app.","example":1462881998034,"format":"int64","type":"integer"},"driverId":{"description":"ID of the driver for whom the document is submitted.","example":555,"format":"int64","type":"integer"},"fields":{"$ref":"#/components/schemas/V1DocumentFields"},"id":{"description":"ID of the document.","example":"2018_42424242","type":"string"},"orgId":{"description":"Organization ID that the document belongs to.","example":555,"format":"int64","type":"integer"},"serverCreatedAtMs":{"description":"The time in Unix epoch milliseconds that the document was received by the server.","example":1462881998034,"format":"int64","type":"integer"},"serverUpdatedAtMs":{"description":"The time in Unix epoch milliseconds that the document was updated on the server.","example":1462881998034,"format":"int64","type":"integer"},"vehicleId":{"description":"ID of the vehicle the driver was signed into when the document was submitted. Will be `null` if the document `state` is `Required`.","example":222,"format":"int64","type":"integer"}},"required":["documentType","driverCreatedAtMs","driverId","fields","id","orgId","serverCreatedAtMs","serverUpdatedAtMs","vehicleId"],"type":"object"},"V1Documents":{"description":"List of documents.","properties":{"driverDocuments":{"description":"List of documents.","items":{"$ref":"#/components/schemas/V1Document"},"type":"array"}},"type":"object"},"V1DoorResponse":{"description":"Contains the current door status of a sensor.","properties":{"groupId":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"sensors":{"items":{"$ref":"#/components/schemas/V1DoorResponse_sensors"},"type":"array"}},"type":"object"},"V1DoorResponse_sensors":{"properties":{"doorClosed":{"description":"Flag indicating whether the current door is closed or open.","example":true,"type":"boolean"},"doorStatusTime":{"description":"The timestamp of reported door status, specified in RFC 3339 time.","example":"2019-04-17T16:42:55Z","type":"string"},"id":{"description":"ID of the sensor.","example":122,"format":"int64","type":"integer"},"name":{"description":"Name of the sensor.","example":"Trailer Door V1Sensor","type":"string"},"trailerId":{"description":"ID of the trailer associated with the sensor for the data point. If no trailer is connected, this parameter will not be reported.","example":123,"type":"integer"},"vehicleId":{"description":"ID of the vehicle associated with the sensor for the data point. If no vehicle is connected, this parameter will not be reported.","example":124,"type":"integer"}},"type":"object"},"V1DriverDailyLogResponse":{"properties":{"days":{"items":{"$ref":"#/components/schemas/V1DriverDailyLogResponse_days"},"type":"array"}},"type":"object"},"V1DriverDailyLogResponse_days":{"properties":{"activeHours":{"description":"Hours spent on duty or driving, rounded to two decimal places.","example":5.4,"format":"double","type":"number"},"activeMs":{"description":"Milliseconds spent on duty or driving.","example":691200,"format":"int64","type":"integer"},"certified":{"description":"Whether this HOS day chart was certified by the driver.","type":"boolean"},"certifiedAtMs":{"description":"Unix epoch time (in ms) of time when this chart was certified. If this chart is uncertified, 0.","format":"int64","type":"number"},"distanceMiles":{"description":"Distance driven in miles, rounded to two decimal places.","example":123.24,"format":"double","type":"number"},"endMs":{"description":"End of the HOS day, specified in milliseconds UNIX time.","example":1473836400000,"type":"integer"},"shippingDocIds":{"description":"List of customer shipping document IDs associated with the driver for the day.","example":["14334","Shipping Document ID 1"],"items":{"type":"string"},"type":"array"},"startMs":{"description":"Start of the HOS day, specified in milliseconds UNIX time.","example":1473750000000,"type":"integer"},"trailerIds":{"description":"List of trailer ID's associated with the driver for the day.","example":["10293","Trailer ID 1"],"items":{"type":"string"},"type":"array"},"vehicleIds":{"description":"List of vehicle ID's associated with the driver for the day.","example":[192319,12958],"properties":{},"type":"object"}},"type":"object"},"V1DriverSafetyScoreResponse":{"description":"Safety score details for a driver","properties":{"crashCount":{"description":"Crash event count","example":0,"type":"integer"},"driverId":{"description":"Driver ID","example":1234,"type":"integer"},"harshAccelCount":{"description":"Harsh acceleration event count","example":1,"type":"integer"},"harshBrakingCount":{"description":"Harsh braking event count","example":2,"type":"integer"},"harshEvents":{"items":{"$ref":"#/components/schemas/V1SafetyReportHarshEvent"},"type":"array"},"harshTurningCount":{"description":"Harsh turning event count","example":0,"type":"integer"},"safetyScore":{"description":"The driver’s Safety Score for the requested period. Note that if the driver has zero drive time in this period, the Safety Score will be returned as 100.","example":97,"type":"integer"},"safetyScoreRank":{"description":"Safety Score Rank","example":"26","type":"string"},"timeOverSpeedLimitMs":{"description":"Amount of time driven over the speed limit in milliseconds","example":3769,"type":"integer"},"totalDistanceDrivenMeters":{"description":"Total distance driven in meters","example":291836,"type":"integer"},"totalHarshEventCount":{"description":"Total harsh event count","example":3,"type":"integer"},"totalTimeDrivenMs":{"description":"Amount of time driven in milliseconds","example":19708293,"type":"integer"}},"type":"object"},"V1DvirBase":{"properties":{"authorSignature":{"$ref":"#/components/schemas/V1DvirBase_authorSignature"},"defectsCorrected":{"description":"Signifies if the defects on the vehicle corrected after the DVIR is done.","example":true,"type":"boolean"},"defectsNeedNotBeCorrected":{"description":"Signifies if the defects on this vehicle can be ignored.","example":false,"type":"boolean"},"id":{"description":"The id of this DVIR record.","example":19,"format":"int64","type":"integer"},"inspectionType":{"description":"Inspection type of the DVIR. Valid values: `preTrip`, `postTrip`, `mechanic`, `unspecified`.","example":"pre trip","type":"string"},"mechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"The vehicle is now safe.","type":"string"},"mechanicOrAgentSignature":{"$ref":"#/components/schemas/V1DvirBase_mechanicOrAgentSignature"},"nextDriverSignature":{"$ref":"#/components/schemas/V1DvirBase_nextDriverSignature"},"odometerMiles":{"description":"The odometer reading in miles for the vehicle when the DVIR was done.","example":49912,"format":"int64","type":"integer"},"startedAtMs":{"description":"Timestamp when driver began filling out this DVIR, in UNIX milliseconds.","example":1453449599999,"format":"int64","type":"integer"},"timeMs":{"description":"Timestamp of when this DVIR was signed & completed, in UNIX milliseconds.","example":1453449599999,"format":"int64","type":"integer"},"trailerDefects":{"description":"Defects registered for the trailer which was part of the DVIR.","items":{"$ref":"#/components/schemas/V1DvirDefectBase"},"type":"array"},"trailerId":{"description":"The id of the trailer which was part of the DVIR.","example":19,"type":"integer"},"trailerName":{"description":"The name of the trailer which was part of the DVIR.","example":"Storer's Trailer 19","type":"string"},"vehicle":{"$ref":"#/components/schemas/V1DvirBase_vehicle"},"vehicleCondition":{"description":"The condition of vechile on which DVIR was done.","example":"SATISFACTORY","type":"string"},"vehicleDefects":{"description":"Defects registered for the vehicle which was part of the DVIR.","items":{"$ref":"#/components/schemas/V1DvirDefectBase"},"type":"array"}},"type":"object"},"V1DvirBase_authorSignature":{"description":"The authors signature for the DVIR.","properties":{"driverId":{"description":"ID of the driver who signed the DVIR. Will not be returned if mechanicUserId is returned.","example":2581,"format":"int64","type":"integer"},"email":{"description":"Email of the  driver|mechanic who signed the DVIR.","example":"j.smith@yahoo.com","type":"string"},"mechanicUserId":{"description":"ID of the mechanic who signed the DVIR. Will not be returned if driverId is returned.","example":14849,"format":"int64","type":"integer"},"name":{"description":"The name of the driver or mechanic who signed the DVIR.","example":"John Smith","type":"string"},"signedAt":{"description":"The time in millis when the DVIR was signed","example":12535500000,"format":"int64","type":"integer"},"type":{"description":"Type corresponds to whether the signature corresponds to driver|mechanic.","example":"driver","type":"string"},"username":{"description":"Username of the  driver|mechanic who signed the DVIR.","example":"jsmith","type":"string"}},"type":"object"},"V1DvirBase_mechanicOrAgentSignature":{"description":"The mechanic's or agent's signature for the DVIR.","properties":{"driverId":{"description":"ID of the driver who signed the DVIR. Will not be returned if mechanicUserId is returned.","example":2581,"format":"int64","type":"integer"},"email":{"description":"Email of the  agent|mechanic who signed the DVIR.","example":"j.smith@yahoo.com","type":"string"},"mechanicUserId":{"description":"ID of the mechanic who signed the DVIR. Will not be returned if driverId is returned.","example":14849,"format":"int64","type":"integer"},"name":{"description":"The name of the agent or mechanic who signed the DVIR.","example":"John Smith","type":"string"},"signedAt":{"description":"The time in millis when the DVIR was signed","example":12535500000,"format":"int64","type":"integer"},"type":{"description":"Type corresponds to whether the signature corresponds to driver|mechanic.","example":"driver","type":"string"},"username":{"description":"Username of the  agent|mechanic who signed the DVIR.","example":"jsmith","type":"string"}},"type":"object"},"V1DvirBase_nextDriverSignature":{"description":"The next driver signature for the DVIR.","properties":{"driverId":{"description":"ID of the driver who signed the DVIR","example":2581,"format":"int64","type":"integer"},"email":{"description":"Email of the  driver who signed the next DVIR on this vehicle.","example":"j.smith@yahoo.com","type":"string"},"name":{"description":"The name of the driver who signed the next DVIR on this vehicle.","example":"John Smith","type":"string"},"signedAt":{"description":"The time in millis when the next driver signed the DVIR on this vehicle.","example":12535500000,"format":"int64","type":"integer"},"type":{"description":"Type corresponds to driver.","example":"driver","type":"string"},"username":{"description":"Username of the  driver who signed the next DVIR on this vehicle.","example":"jsmith","type":"string"}},"type":"object"},"V1DvirBase_vehicle":{"description":"The vehicle on which DVIR was done.","properties":{"id":{"description":"The vehicle id on which DVIR was done.","example":19,"format":"int64","type":"integer"},"name":{"description":"The vehicle on which DVIR was done.","example":"Storer's vehicle 19","type":"string"}},"type":"object"},"V1DvirDefectBase":{"properties":{"comment":{"description":"The comment describing the type of DVIR defect.","example":"Air Compressor not working","type":"string"},"defectType":{"description":"The type of DVIR defect. Possible values: [`AIR_COMPRESSOR`, `AIR_CONDITIONER`, `AIR_LINES`, `BATTERY`, `BELTS_HOSES`, `BRAKE_ACCESSORIES`, `BRAKE_CHECK`, `BRAKE_CONNECTIONS`, `BRAKES`, `CLUTCH`, `COUPLING_DEVICES`, `DEFROSTER_HEATER`, `DOORS`, `DRIVE_LINE`, `EMERGENCY_DOOR_AND_BUZZER`, `ENGINE`, `ENTRANCE_STEPS`, `EXHAUST`, `FIFTH_WHEEL`, `FIRST_AID_KIT`, `FLUID_LEVELS`, `FRAME_ASSEMBLY`, `FRONT_AXLE`, `FUEL_TANKS`, `HORN`, `INTERIOR_AND_FLOOR`, `LANDING_GEAR`, `LIGHTS`, `MIRRORS`, `MUFFLER`, `OIL_PRESSURE`, `OTHER`, `RADIATOR`, `REAR_END`, `REFLECTORS`, `ROOF`, `SAFETY_EQUIPMENT`, `STARTER`, `STEERING`, `STOP_ARM_CONTROL`, `STOP_ARM`, `SUSPENSION`, `TIRE_CHAINS`, `TIRES`, `TRANSMISSION`, `TRIP_RECORDER`, `WHEELS_RIMS`, `WINDOWS`, `WINDSHIELD_WIPERS`, `UNSET`]","example":"AIR_COMPRESSOR","type":"string"},"id":{"description":"The id of this defect.","example":18,"format":"int64","type":"integer"},"resolved":{"description":"Signifies if this defect is resolved.","example":true,"type":"boolean"},"resolvedAt":{"description":"Timestamp when this defect was resolved, in UNIX milliseconds.  Will not be returned if the defect is unresolved.","example":1453449599999,"format":"int64","type":"integer"},"resolvedByDriverId":{"description":"ID of the driver who resolved this defect. Will not be returned if the defect is unresolved or resolvedByMechanicId is returned.","example":2581,"format":"int64","type":"integer"},"resolvedByMechanicId":{"description":"ID of the mechanic who resolved this defect. Will not be returned if the defect is unresolved or resolvedByDriverId is returned.","example":14849,"format":"int64","type":"integer"}},"type":"object"},"V1DvirListResponse":{"properties":{"dvirs":{"items":{"$ref":"#/components/schemas/V1DvirBase"},"type":"array"}},"type":"object"},"V1ErrorResponse":{"description":"Error message describing why the request failed.","type":"string"},"V1FleetVehicleLocation":{"description":"Contains the location and speed of a vehicle at a particular time","properties":{"latitude":{"description":"The latitude of the location in degrees.","example":37.2,"format":"double","type":"number"},"location":{"description":"The best effort (street,city,state) for the latitude and longitude.","example":"525 York, San Francisco, CA","type":"string"},"longitude":{"description":"The longitude of the location in degrees.","example":-122.5,"format":"double","type":"number"},"speedMilesPerHour":{"description":"The speed calculated from GPS that the asset was traveling at in miles per hour.","example":35.2,"format":"double","type":"number"},"timeMs":{"description":"Time in Unix milliseconds since epoch when the asset was at the location.","example":1535586471332,"format":"int64","type":"number"}},"type":"object"},"V1FleetVehicleLocations":{"items":{"$ref":"#/components/schemas/V1FleetVehicleLocation"},"type":"array"},"V1FleetVehiclesLocations":{"items":{"properties":{"id":{"description":"ID of the vehicle.","example":112,"format":"int64","type":"integer"},"locations":{"$ref":"#/components/schemas/V1FleetVehicleLocations"},"name":{"description":"Name of the vehicle.","example":"Truck A7","type":"string"}},"type":"object"},"type":"array"},"V1HosAuthenticationLogsResponse":{"properties":{"authenticationLogs":{"items":{"$ref":"#/components/schemas/V1HosAuthenticationLogsResponse_authenticationLogs"},"type":"array"}},"type":"object"},"V1HosAuthenticationLogsResponse_authenticationLogs":{"properties":{"actionType":{"description":"The log type - one of 'signin' or 'signout'","example":"signin","type":"string"},"address":{"description":"DEPRECATED: THIS FIELD MAY NOT BE POPULATED","example":"THIS FIELD MAY NOT BE POPULATED","type":"string"},"addressName":{"description":"DEPRECATED: THIS FIELD MAY NOT BE POPULATED","example":"THIS FIELD MAY NOT BE POPULATED","type":"string"},"city":{"description":"DEPRECATED: THIS FIELD MAY NOT BE POPULATED","example":"THIS FIELD MAY NOT BE POPULATED","type":"string"},"happenedAtMs":{"description":"The time at which the event was recorded in UNIX milliseconds.","example":1462881998034,"format":"int64","type":"integer"},"state":{"description":"DEPRECATED: THIS FIELD MAY NOT BE POPULATED","example":"THIS FIELD MAY NOT BE POPULATED","type":"string"}},"type":"object"},"V1HosLogsResponse":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/V1HosLogsResponse_logs"},"type":"array"}},"type":"object"},"V1HosLogsResponse_logs":{"properties":{"codriverIds":{"items":{"description":"Ids of codrivers during any of the logged trips","example":445,"type":"number"},"type":"array"},"driverId":{"description":"ID of the driver.","example":444,"format":"int64","type":"integer"},"groupId":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"hosStatusType":{"description":"The Hours of Service status type. One of `OFF_DUTY`, `SLEEPER_BED`, `DRIVING`, `ON_DUTY`, `YARD_MOVE`, `PERSONAL_CONVEYANCE`.","example":"OFF_DUTY","type":"string"},"locCity":{"description":"City in which the log was recorded.","example":"Ahwatukee","type":"string"},"locLat":{"description":"Latitude at which the log was recorded.","example":23.413702,"format":"float","type":"number"},"locLng":{"description":"Longitude at which the log was recorded.","example":-98.50289,"format":"float","type":"number"},"locName":{"description":"Name of location at which the log was recorded.","example":"McLean Site A","type":"string"},"locState":{"description":"State in which the log was recorded.","example":"Arizona","type":"string"},"logStartMs":{"description":"The time at which the log/HOS status started in UNIX milliseconds.","example":1462881998034,"format":"int64","type":"integer"},"remark":{"description":"Remark associated with the log entry.","example":"Lunch Break","type":"string"},"vehicleId":{"description":"ID of the vehicle.","example":112,"format":"int64","type":"integer"}},"type":"object"},"V1HumidityResponse":{"description":"Contains the current humidity of a sensor.","properties":{"groupId":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"sensors":{"items":{"$ref":"#/components/schemas/V1HumidityResponse_sensors"},"type":"array"}},"type":"object"},"V1HumidityResponse_sensors":{"properties":{"humidity":{"description":"Currently reported relative humidity in percent, from 0-100.","example":53,"type":"integer"},"humidityTime":{"description":"The timestamp of reported relative humidity, specified in RFC 3339 time.","example":"2019-04-17T16:42:55Z","type":"string"},"id":{"description":"ID of the sensor.","example":122,"format":"int64","type":"integer"},"name":{"description":"Name of the sensor.","example":"Freezer Humidity V1Sensor","type":"string"},"trailerId":{"description":"ID of the trailer associated with the sensor for the data point. If no trailer is connected, this parameter will not be reported.","example":123,"type":"integer"},"vehicleId":{"description":"ID of the vehicle associated with the sensor for the data point. If no vehicle is connected, this parameter will not be reported.","example":124,"type":"integer"}},"type":"object"},"V1JobStatus":{"description":"The state of the dispatch job.","enum":["JobState_Unassigned","JobState_Scheduled","JobState_EnRoute","JobState_Arrived","JobState_Completed","JobState_Skipped"],"example":"JobState_Arrived","type":"string"},"V1Machine":{"description":"Contains information about a machine.","properties":{"id":{"description":"ID of the machine.","example":123,"format":"int64","type":"integer"},"name":{"description":"Name of the machine.","example":"Freezer ABC","type":"string"},"notes":{"description":"Notes about the machine","example":"This is in the left hallway behind the conveyor belt","type":"string"}},"required":["id"],"type":"object"},"V1MachineHistoryResponse":{"description":"Contains the results for a machine history request","properties":{"machines":{"items":{"$ref":"#/components/schemas/V1MachineHistoryResponse_machines"},"type":"array"}},"type":"object"},"V1MachineHistoryResponse_machines":{"properties":{"id":{"description":"Machine ID","example":1,"type":"integer"},"name":{"description":"Machine name","example":"1/3 HP Motor","type":"string"},"vibrations":{"description":"List of vibration datapoints, with timestamp and vibration measurement for x/y/z axis in mm/s","items":{"$ref":"#/components/schemas/V1MachineHistoryResponse_vibrations"},"type":"array"}},"type":"object"},"V1MachineHistoryResponse_vibrations":{"properties":{"X":{"example":0.01,"format":"double","type":"number"},"Y":{"example":1.23,"format":"double","type":"number"},"Z":{"example":2.55,"format":"double","type":"number"},"time":{"example":1453449599999,"format":"int64","type":"integer"}},"type":"object"},"V1Message":{"properties":{"driverId":{"description":"ID of the driver for whom the message is sent to or sent by.","example":555,"format":"int64","type":"integer"},"text":{"description":"The text sent in the message.","example":"This is a message.","type":"string"}},"required":["driverId","text"],"type":"object"},"V1MessageResponse":{"properties":{"driverId":{"description":"ID of the driver associated with this message row. For organizations using Messages v2, this field uses 0 as a sentinel when the message belongs to a non–single-driver channel (for example Announcements channel, multi-member groups, or Driver-to-Admin channels): the API returns one row for the message instead of one row per recipient driver. For 1:1 conversations, this is the driver’s ID. Integrations that only need 1:1 messages should filter responses where driverId != 0.","example":555,"format":"int64","type":"integer"},"isRead":{"description":"True if the message was read by the recipient.","example":true,"type":"boolean"},"sender":{"$ref":"#/components/schemas/V1MessageSender"},"sentAtMs":{"description":"The time in Unix epoch milliseconds that the message is sent to the recipient.","example":1462881998034,"format":"int64","type":"integer"},"text":{"description":"The text sent in the message.","example":"This is a message.","type":"string"}},"required":["driverId","isRead","sender","sentAtMs","text"],"type":"object"},"V1MessageSender":{"properties":{"name":{"description":"Name of user that is sending the message.","example":"John Doe","type":"string"},"type":{"description":"Type of user that is sending the message. It will be either dispatch or driver.","example":"dispatch","type":"string"}},"required":["name","type"],"type":"object"},"V1Messages":{"items":{"$ref":"#/components/schemas/V1Message"},"type":"array"},"V1MessagesResponse":{"items":{"$ref":"#/components/schemas/V1MessageResponse"},"type":"array"},"V1Pagination":{"properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'startingAfter' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"},"hasNextPage":{"description":"True if there are more pages of results after this response.","type":"boolean"},"hasPrevPage":{"description":"True if there are more pages of results before this response.","type":"boolean"},"startCursor":{"description":"Cursor identifier representing the first element in the response. This value should be used in conjunction with a subsequent request's 'ending_before' query parameter.","example":"MTU5MTEzNjA2OTU0MzQ3","type":"string"}},"required":["endCursor","hasNextPage","hasPrevPage","startCursor"],"type":"object"},"V1ProgramsForTheCameraResponse":{"description":"Contains the list of Programs configured on the given Camera.","items":{"properties":{"programId":{"example":1,"format":"int64","type":"integer"},"programName":{"example":"Barcode verification program","type":"string"}},"type":"object"},"type":"array"},"V1SafetyReportHarshEvent":{"description":"List of harsh events","properties":{"harshEventType":{"description":"Sensor generated harsh event type.","example":"Harsh Braking","type":"string"},"timestampMs":{"description":"Timestamp that the harsh event occurred in Unix milliseconds since epoch","example":1535590776000,"type":"integer"},"vehicleId":{"description":"Vehicle associated with the harsh event","example":212014918086169,"type":"integer"}},"type":"object"},"V1SafetyReportHarshEventResponseBody":{"description":"List of harsh events","properties":{"harshEventType":{"description":"Sensor generated harsh event type.","example":"Harsh Braking","type":"string"},"timestampMs":{"description":"Timestamp that the harsh event occurred in Unix milliseconds since epoch","example":1535590776000,"format":"int64","type":"integer"},"vehicleId":{"description":"Vehicle associated with the harsh event","example":212014918086169,"format":"int64","type":"integer"}},"required":["harshEventType","timestampMs","vehicleId"],"type":"object"},"V1Sensor":{"description":"Contains information about a sensor.","properties":{"activatedAtMs":{"description":"Sensor activation time in Unix milliseconds. Null if the sensor has no monitor.","example":1635881752799,"format":"int64","type":"integer"},"healthStatus":{"description":"Current sensor health status.","example":"RequiresInvestigation","type":"string"},"id":{"description":"ID of the sensor.","example":123,"format":"int64","type":"integer"},"lastTransmissionAtMs":{"description":"Last sensor transmission time in Unix milliseconds. Null when the sensor is connected or has never connected.","example":1613440186723,"format":"int64","type":"integer"},"macAddress":{"description":"MAC address of the sensor.","example":"11:11:11:11:11:11","type":"string"},"name":{"description":"Name of the sensor.","example":"Freezer ABC","type":"string"},"sensorType":{"description":"Product type of the sensor.","example":"EM21","type":"string"}},"required":["id"],"type":"object"},"V1SensorHistoryResponse":{"description":"Contains the results for a sensor history request. Each result contains a timestamp and datapoint for each requested (sensor, field) pair.","properties":{"results":{"items":{"$ref":"#/components/schemas/V1SensorHistoryResponse_results"},"type":"array"}},"type":"object"},"V1SensorHistoryResponse_results":{"properties":{"series":{"description":"List of datapoints, one for each requested (sensor, field) pair.","items":{"example":1,"format":"int64","type":"integer"},"type":"array"},"timeMs":{"description":"Timestamp in UNIX milliseconds.","example":1453449599999,"type":"integer"}},"type":"object"},"V1SensorResponseBody":{"description":"Contains information about a sensor.","properties":{"activatedAtMs":{"description":"Unix timestamp in milliseconds when the sensor was activated.","example":1546542978484,"format":"int64","type":"integer"},"healthStatus":{"description":"Health status of the sensor.","example":"NeverConnected","type":"string"},"id":{"description":"ID of the sensor.","example":123,"format":"int64","type":"integer"},"lastTransmissionAtMs":{"description":"Unix timestamp in milliseconds when the sensor last transmitted data.","example":1546542978484,"format":"int64","type":"integer"},"macAddress":{"description":"MAC address of the sensor.","example":"11:11:11:11:11:11","type":"string"},"name":{"description":"Name of the sensor.","example":"Freezer ABC","type":"string"},"sensorType":{"description":"Type of the sensor.","example":"EM21","type":"string"}},"required":["id"],"type":"object"},"V1TemperatureResponse":{"description":"Contains the current temperatures of a sensor.","properties":{"groupId":{"description":"Deprecated.","example":101,"format":"int64","type":"integer"},"sensors":{"items":{"$ref":"#/components/schemas/V1TemperatureResponse_sensors"},"type":"array"}},"type":"object"},"V1TemperatureResponse_sensors":{"properties":{"ambientTemperature":{"description":"Currently reported ambient temperature in millidegrees celsius.","example":11057,"type":"integer"},"ambientTemperatureTime":{"description":"The timestamp of reported ambient temperature, specified in RFC 3339 time.","example":"2019-04-17T16:42:55Z","type":"string"},"id":{"description":"ID of the sensor.","example":122,"format":"int64","type":"integer"},"name":{"description":"Name of the sensor.","example":"Freezer Temp V1Sensor","type":"string"},"probeTemperature":{"description":"Currently reported probe temperature in millidegrees celsius. If no probe is connected, this parameter will not be reported.","example":-20145,"type":"integer"},"probeTemperatureTime":{"description":"The timestamp of reported probe temperature, specified in RFC 3339 time.","example":"2019-04-17T16:42:55Z","type":"string"},"trailerId":{"description":"ID of the trailer associated with the sensor for the data point. If no trailer is connected, this parameter will not be reported.","example":123,"type":"integer"},"vehicleId":{"description":"ID of the vehicle associated with the sensor for the data point. If no vehicle is connected, this parameter will not be reported.","example":124,"type":"integer"}},"type":"object"},"V1TrailerAssignmentResponse":{"properties":{"driverId":{"description":"The ID of the driver associated with this trailer.","example":2047,"format":"int64","type":"integer"},"endMs":{"description":"The time at which the driver ended the assignment. If the assignment is current, this value will be omitted.","example":1462881998034,"format":"int64","type":"integer"},"startMs":{"description":"The time at which the driver started the assignment","example":1462878398034,"format":"int64","type":"integer"}},"type":"object"},"V1TrailerAssignmentsResponse":{"allOf":[{"$ref":"#/components/schemas/V1TrailerBase"},{"$ref":"#/components/schemas/V1TrailerAssignmentsResponse_allOf"}]},"V1TrailerAssignmentsResponse_allOf":{"properties":{"trailerAssignments":{"items":{"$ref":"#/components/schemas/V1TrailerAssignmentResponse"},"type":"array"}},"type":"object"},"V1TrailerBase":{"properties":{"id":{"description":"ID of the trailer","example":2041,"format":"int64","type":"integer"},"name":{"description":"Assignment trailer name (given when creating trailer via the trailer portal)","example":"myTrailer","format":"string","type":"string"}},"required":["id","name"],"type":"object"},"V1TripResponse":{"description":"Contains the trips for the vehicle in the requested timeframe. A trip is represented as an object that contains startMs, startLocation, startAddress, startCoordinates, endMs, endLocation, endAddress and endCoordinates. Ongoing trips will be returned with 9223372036854775807 as their endMs.","properties":{"trips":{"items":{"$ref":"#/components/schemas/V1TripResponse_trips"},"type":"array"}},"type":"object"},"V1TripResponse_endAddress":{"description":"Text representation of nearest identifiable location to the end (latitude, longitude) coordinates.","properties":{"address":{"description":"The formatted address","example":"123 Main St, Sunnyvale, CA 94089","type":"string"},"id":{"description":"The ID of the address","example":581,"format":"int64","type":"number"},"name":{"description":"The name of the address","example":"Ramen Tatsunoya","type":"string"}},"type":"object"},"V1TripResponse_endCoordinates":{"description":"End (latitude, longitude) in decimal degrees.","properties":{"latitude":{"example":23.413702345,"format":"double","type":"number"},"longitude":{"example":-91.502888123,"format":"double","type":"number"}},"type":"object"},"V1TripResponse_startAddress":{"description":"Text representation of nearest identifiable location to the start (latitude, longitude) coordinates.","properties":{"address":{"description":"The formatted address","example":"123 Main St, Sunnyvale, CA 94089","type":"string"},"id":{"description":"The ID of the address","example":581,"format":"int64","type":"number"},"name":{"description":"The name of the address","example":"Ramen Tatsunoya","type":"string"}},"type":"object"},"V1TripResponse_startCoordinates":{"description":"Start (latitude, longitude) in decimal degrees.","properties":{"latitude":{"example":29.443702345,"format":"double","type":"number"},"longitude":{"example":-98.502888123,"format":"double","type":"number"}},"type":"object"},"V1TripResponse_trips":{"properties":{"assetIds":{"description":"List of associated asset IDs","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"},"codriverIds":{"description":"List of codriver IDs","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"},"distanceMeters":{"description":"Length of the trip in meters. This value is calculated from the GPS data collected by the Samsara Vehicle Gateway.","example":2500,"type":"integer"},"driverId":{"description":"ID of the driver.","example":719,"type":"integer"},"endAddress":{"$ref":"#/components/schemas/V1TripResponse_endAddress"},"endCoordinates":{"$ref":"#/components/schemas/V1TripResponse_endCoordinates"},"endLocation":{"description":"Geocoded street address of start (latitude, longitude) coordinates.","example":"571 S Lake Ave, Pasadena, CA 91101","type":"string"},"endMs":{"description":"End of the trip in UNIX milliseconds. Ongoing trips are indicated by an endMs value of 9223372036854775807.","example":1462881998034,"type":"integer"},"endOdometer":{"description":"Odometer reading (in meters) at the end of the trip. This is read from the vehicle's on-board diagnostics. If Samsara cannot read the vehicle's odometer values from on-board diagnostics, this value will be 0.","example":210430500,"type":"integer"},"fuelConsumedMl":{"description":"Amount in milliliters of fuel consumed on this trip.","example":75700,"type":"integer"},"startAddress":{"$ref":"#/components/schemas/V1TripResponse_startAddress"},"startCoordinates":{"$ref":"#/components/schemas/V1TripResponse_startCoordinates"},"startLocation":{"description":"Geocoded street address of start (latitude, longitude) coordinates.","example":"16 N Fair Oaks Ave, Pasadena, CA 91103","type":"string"},"startMs":{"description":"Beginning of the trip in UNIX milliseconds.","example":1462878398034,"type":"integer"},"startOdometer":{"description":"Odometer reading (in meters) at the beginning of the trip. This is read from the vehicle's on-board diagnostics. If Samsara cannot read the vehicle's odometer values from on-board diagnostics, this value will be 0.","example":210430450,"type":"integer"},"tollMeters":{"description":"Length in meters trip spent on toll roads.","example":32000,"type":"integer"}},"type":"object"},"V1VehicleHarshEventResponse":{"description":"Harsh event details for a vehicle","properties":{"downloadForwardVideoUrl":{"description":"URL for downloading the forward facing video","example":"https://samsara-dashcam-videos.s3.us-west-2.amazonaws.com/123/212123456789012/1539201872984/abC123De4-camera-video-segment-123456789.mp4?...","type":"string"},"downloadInwardVideoUrl":{"description":"URL for downloading the inward facing video","example":"https://samsara-dashcam-videos.s3.us-west-2.amazonaws.com/123/212123456789012/1539201872984/abC123De4-camera-video-segment-driver-123456789.mp4?...","type":"string"},"downloadTrackedInwardVideoUrl":{"description":"URL for downloading the tracked inward facing video","example":"https://samsara-dashcam-videos.s3.us-west-2.amazonaws.com/123/212123456789012/1539201872984/abC123De4-camera-video-segment-driver-123456789.tracked.mp4?...","type":"string"},"harshEventType":{"description":"Type of the harsh event. One of: [Crash, Harsh Acceleration, Harsh Braking, Harsh Turn, ROP Engine, ROP Brake, YC Engine, YC Brake, Harsh Event]","example":"Harsh Braking","type":"string"},"incidentReportUrl":{"description":"URL of the associated incident report page","example":"https://cloud.samsara.com/o/1234/fleet/reports/safety/vehicle/212123456789012/incident/1539201882984","type":"string"},"isDistracted":{"description":"Whether the driver was deemed distracted during this harsh event","example":true,"type":"boolean"},"location":{"$ref":"#/components/schemas/V1VehicleHarshEventResponse_location"}},"required":["harshEventType","incidentReportUrl"],"type":"object"},"V1VehicleHarshEventResponse_location":{"properties":{"address":{"description":"Address of location where the harsh event occurred","example":"350 Rhode Island St, San Francisco, CA","type":"string"},"latitude":{"description":"Latitude of location where the harsh event occurred","example":33.07614328,"type":"number"},"longitude":{"description":"Longitude of location where the harsh event occurred","example":-96.14907287,"type":"number"}},"type":"object"},"V1VehicleLocation":{"description":"Contains the location, in latitude and longitude, of a vehicle.","properties":{"driverId":{"description":"The ID of the driver currently assigned to this vehicle.","example":1,"type":"integer"},"heading":{"description":"Heading in degrees.","example":246.42,"format":"double","type":"number"},"id":{"description":"ID of the vehicle.","example":112,"format":"int64","type":"integer"},"latitude":{"description":"Latitude in decimal degrees.","example":123.456,"format":"double","type":"number"},"location":{"description":"Text representation of nearest identifiable location to (latitude, longitude) coordinates.","example":"1 Main St, Dallas, TX","type":"string"},"longitude":{"description":"Longitude in decimal degrees.","example":32.897,"format":"double","type":"number"},"name":{"description":"Name of the vehicle.","example":"Truck A7","type":"string"},"odometerMeters":{"description":"The number of meters reported by the odometer.","example":71774705,"format":"int64","type":"integer"},"odometerType":{"description":"The source of data for odometerMeters. Will be either GPS or OBD","enum":["GPS","OBD"],"example":"GPS","type":"string"},"onTrip":{"description":"Whether or not a trip is currently in progress for this vehicle. More information available via /fleet/trips endpoint.","example":true,"type":"boolean"},"routeIds":{"description":"A list of currently active route IDs that the vehicle is in.","example":[2244514,2311654],"items":{"format":"int64","type":"integer"},"type":"array"},"speed":{"description":"Speed in miles per hour.","example":64.37,"format":"double","type":"number"},"time":{"description":"The time the reported location was logged, reported as a UNIX timestamp in milliseconds.","example":1462881998034,"type":"integer"},"vin":{"description":"Vehicle Identification Number (VIN) of the vehicle.","example":"JTNBB46KX73011966","type":"string"}},"required":["id"],"type":"object"},"V1VehicleMaintenance":{"description":"Contains any J1939/Passenger engine light warnings and engine faults.","properties":{"id":{"description":"ID of the vehicle.","example":112,"format":"int64","type":"integer"},"j1939":{"$ref":"#/components/schemas/V1VehicleMaintenance_j1939"},"passenger":{"$ref":"#/components/schemas/V1VehicleMaintenance_passenger"}},"required":["id"],"type":"object"},"V1VehicleMaintenance_j1939":{"description":"J1939 based data. Null if no data is available.","properties":{"checkEngineLight":{"$ref":"#/components/schemas/V1VehicleMaintenance_j1939_checkEngineLight"},"diagnosticTroubleCodes":{"description":"J1939 DTCs.","items":{"$ref":"#/components/schemas/V1VehicleMaintenance_j1939_diagnosticTroubleCodes"},"type":"array"}},"type":"object"},"V1VehicleMaintenance_j1939_checkEngineLight":{"description":"J1939 check engine lights.","properties":{"emissionsIsOn":{"type":"boolean"},"protectIsOn":{"type":"boolean"},"stopIsOn":{"type":"boolean"},"warningIsOn":{"type":"boolean"}},"type":"object"},"V1VehicleMaintenance_j1939_diagnosticTroubleCodes":{"properties":{"fmiId":{"type":"integer"},"fmiText":{"type":"string"},"occurrenceCount":{"type":"integer"},"spnDescription":{"type":"string"},"spnId":{"type":"integer"},"txId":{"type":"integer"}},"required":["fmiId","fmiText","occurrenceCount","spnDescription","spnId","txId"],"type":"object"},"V1VehicleMaintenance_passenger":{"description":"Passenger vehicle data. Null if no data is available.","properties":{"checkEngineLight":{"$ref":"#/components/schemas/V1VehicleMaintenance_passenger_checkEngineLight"},"diagnosticTroubleCodes":{"description":"Passenger vehicle DTCs.","items":{"$ref":"#/components/schemas/V1VehicleMaintenance_passenger_diagnosticTroubleCodes"},"type":"array"}},"type":"object"},"V1VehicleMaintenance_passenger_checkEngineLight":{"description":"Passenger vehicle check engine light.","properties":{"isOn":{"type":"boolean"}},"type":"object"},"V1VehicleMaintenance_passenger_diagnosticTroubleCodes":{"properties":{"dtcDescription":{"type":"string"},"dtcId":{"type":"integer"},"dtcShortCode":{"type":"string"}},"required":["dtcDescription","dtcId","dtcShortCode"],"type":"object"},"V1VehicleSafetyScoreResponse":{"description":"Safety score details for a vehicle","properties":{"crashCount":{"description":"Crash event count","example":0,"type":"integer"},"harshAccelCount":{"description":"Harsh acceleration event count","example":1,"type":"integer"},"harshBrakingCount":{"description":"Harsh braking event count","example":2,"type":"integer"},"harshEvents":{"items":{"$ref":"#/components/schemas/V1SafetyReportHarshEvent"},"type":"array"},"harshTurningCount":{"description":"Harsh turning event count","example":0,"type":"integer"},"safetyScore":{"description":"The vehicle’s Safety Score for the requested period. Note that if the vehicle has zero drive time in this period, the Safety Score will be returned as 100.","example":97,"type":"integer"},"safetyScoreRank":{"description":"Safety Score Rank","example":"26","type":"string"},"timeOverSpeedLimitMs":{"description":"Amount of time driven over the speed limit in milliseconds","example":3769,"type":"integer"},"totalDistanceDrivenMeters":{"description":"Total distance driven in meters","example":291836,"type":"integer"},"totalHarshEventCount":{"description":"Total harsh event count","example":3,"type":"integer"},"totalTimeDrivenMs":{"description":"Amount of time driven in milliseconds","example":19708293,"type":"integer"},"vehicleId":{"description":"Vehicle ID","example":4321,"type":"integer"}},"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreResponseBody":{"properties":{"crashCount":{"description":"Crash event count","example":0,"format":"int64","type":"integer"},"harshAccelCount":{"description":"Harsh acceleration event count","example":1,"format":"int64","type":"integer"},"harshBrakingCount":{"description":"Harsh braking event count","example":2,"format":"int64","type":"integer"},"harshEvents":{"items":{"$ref":"#/components/schemas/V1SafetyReportHarshEventResponseBody"},"type":"array"},"harshTurningCount":{"description":"Harsh turning event count","example":0,"format":"int64","type":"integer"},"safetyScore":{"description":"The vehicle's Safety Score for the requested period. Note that if the vehicle has zero drive time in this period, the Safety Score will be returned as 100.","example":97,"format":"int64","type":"integer"},"safetyScoreRank":{"description":"Safety Score Rank","example":"26","type":"string"},"timeOverSpeedLimitMs":{"description":"Amount of time driven over the speed limit in milliseconds","example":3769,"format":"int64","type":"integer"},"totalDistanceDrivenMeters":{"description":"Total distance driven in meters","example":291836,"format":"int64","type":"integer"},"totalHarshEventCount":{"description":"Total harsh event count","example":3,"format":"int64","type":"integer"},"totalTimeDrivenMs":{"description":"Amount of time driven in milliseconds","example":19708293,"format":"int64","type":"integer"},"vehicleId":{"description":"Vehicle ID","example":4321,"format":"int64","type":"integer"}},"required":["crashCount","harshAccelCount","harshBrakingCount","harshEvents","harshTurningCount","safetyScore","safetyScoreRank","timeOverSpeedLimitMs","totalDistanceDrivenMeters","totalHarshEventCount","totalTimeDrivenMs","vehicleId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VehicleSafetyScoreV1getVehicleSafetyScoreUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"V1VisionCamerasResponse":{"description":"Contains the list of Cameras installed in the org.","items":{"properties":{"cameraId":{"example":1234512345999,"format":"int64","type":"integer"},"cameraName":{"example":"Line 32","type":"string"},"ethernetIp":{"example":"10.1.2.34","type":"string"},"wifiIp":{"example":"10.1.2.35","type":"string"}},"type":"object"},"type":"array"},"V1VisionRunByCameraResponse":{"properties":{"cameraId":{"example":1234512345123,"format":"int64","type":"integer"},"endedAtMs":{"example":0,"format":"int64","type":"integer"},"inspectionResults":{"items":{"$ref":"#/components/schemas/V1VisionRunByCameraResponse_inspectionResults"},"type":"array"},"isOngoing":{"example":true,"type":"boolean"},"program":{"$ref":"#/components/schemas/V1VisionRunByCameraResponse_program"},"runSummary":{"$ref":"#/components/schemas/V1VisionRunByCameraResponse_runSummary"},"startedAtMs":{"example":1553808606097,"format":"int64","type":"integer"}},"type":"object"},"V1VisionRunByCameraResponse_inspectionResults":{"properties":{"captureAtMs":{"example":1553811994730,"format":"float64","type":"number"},"result":{"example":"PASS","type":"string"},"stepResults":{"$ref":"#/components/schemas/V1VisionStepResults"}},"type":"object"},"V1VisionRunByCameraResponse_program":{"properties":{"id":{"example":1,"format":"int64","type":"integer"},"name":{"example":"Barcode verification program","type":"string"}},"type":"object"},"V1VisionRunByCameraResponse_runSummary":{"properties":{"itemsPerMinute":{"example":0.1,"format":"float64","type":"number"},"noReadCount":{"example":0,"format":"int64","type":"integer"},"rejectCount":{"example":0,"format":"int64","type":"integer"},"successCount":{"example":181,"format":"int64","type":"integer"}},"type":"object"},"V1VisionRunsByCameraAndProgramResponse":{"properties":{"deviceId":{"example":1234512345123,"format":"int64","type":"integer"},"endedAtMs":{"example":0,"format":"int64","type":"integer"},"programId":{"example":1,"format":"int64","type":"integer"},"reportMetadata":{"$ref":"#/components/schemas/V1VisionRunByCameraResponse_runSummary"},"results":{"items":{"$ref":"#/components/schemas/V1VisionRunByCameraResponse_inspectionResults"},"type":"array"},"startedAtMs":{"example":1553808606097,"format":"int64","type":"integer"}},"type":"object"},"V1VisionRunsByCameraResponse":{"items":{"properties":{"deviceId":{"example":1234512345123,"format":"int64","type":"integer"},"endedAtMs":{"example":0,"format":"int64","type":"integer"},"program":{"properties":{"id":{"example":1,"format":"int64","type":"integer"},"name":{"example":"Barcode verification program","type":"string"}},"type":"object"},"reportMetadata":{"properties":{"itemsPerMinute":{"example":0.1,"format":"float64","type":"number"},"noReadCount":{"example":0,"format":"int64","type":"integer"},"rejectCount":{"example":0,"format":"int64","type":"integer"},"successCount":{"example":181,"format":"int64","type":"integer"}},"type":"object"},"startedAtMs":{"example":1553808606097,"format":"int64","type":"integer"}},"type":"object"},"type":"array"},"V1VisionRunsResponse":{"properties":{"visionRuns":{"items":{"$ref":"#/components/schemas/V1VisionRunsResponse_visionRuns"},"type":"array"}},"type":"object"},"V1VisionRunsResponse_reportMetadata":{"description":"The response includes 4 additional fields that are now deprecated","properties":{"itemsPerMinute":{"description":"Returns average scanned items per minute. Should be used instead of scanRate.","example":0.1,"format":"float64","type":"number"},"noReadCount":{"description":"Returns no read count for the run. Should be used instead of noReadScansCount","example":181,"format":"int64","type":"integer"},"rejectCount":{"description":"Returns reject count for the run. Should be used instead of failedScansCount","example":0,"format":"int64","type":"integer"},"successCount":{"description":"Returns success count for the run. Should be used instead of successfulScansCount","example":181,"format":"int64","type":"integer"}},"type":"object"},"V1VisionRunsResponse_visionRuns":{"properties":{"deviceId":{"example":1234512345123,"format":"int64","type":"integer"},"endedAtMs":{"example":0,"format":"int64","type":"integer"},"programId":{"example":1,"format":"int64","type":"integer"},"reportMetadata":{"$ref":"#/components/schemas/V1VisionRunsResponse_reportMetadata"},"startedAtMs":{"example":1553808606097,"format":"int64","type":"integer"}},"type":"object"},"V1VisionStepResults":{"items":{"properties":{"angleCheck":{"properties":{"angleConfigured":{"description":"The configured angle allowance range (in degrees)","properties":{"high":{"example":150,"format":"int64","type":"integer"},"low":{"example":90,"format":"int64","type":"integer"}},"type":"object"},"angleFound":{"description":"The counter-clockwise angle detected from the first edge to the second edge","example":60,"format":"int64","type":"integer"},"endStepName":{"description":"The name of the second reference step used to check the angle","example":"Edge 2","type":"string"},"startStepName":{"description":"The name of the first reference step used to check the angle","example":"Edge 1","type":"string"}},"type":"object"},"barcode":{"items":{"properties":{"contents":{"example":"10855639004823","type":"string"},"matchString":{"example":"10855639004823","type":"string"},"type":{"example":"EAN8","type":"string"}},"type":"object"},"type":"array"},"booleanLogic":{"properties":{"operator":{"example":"AND","type":"string"},"steps":{"items":{"properties":{"name":{"example":"Expiration Date","type":"string"},"result":{"example":"PASS","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"caliper":{"properties":{"angleRange":{"description":"The configured angle allowance range","properties":{"high":{"example":360,"format":"int32","type":"integer"},"low":{"example":0,"format":"int32","type":"integer"}},"type":"object"},"contrastRange":{"description":"The configured contrast allowance range","properties":{"high":{"example":100,"format":"int64","type":"integer"},"low":{"example":50,"format":"int64","type":"integer"}},"type":"object"},"distanceFound":{"description":"The distance found between the found edges","example":555.55,"format":"float","type":"number"},"filterPolarity":{"default":"LIGHT TO DARK","description":"The configured polarity for finding edges. Valid values: `LIGHT TO DARK`, `DARK TO LIGHT`.","enum":["LIGHT TO DARK","DARK TO LIGHT"],"example":"LIGHT TO DARK","type":"string"},"maxDistance":{"description":"The maximum allowed distance threshold","example":1000,"format":"float","type":"number"},"minDistance":{"description":"The minumum allowed distance threshold","example":500,"format":"float","type":"number"},"sharpnessRange":{"description":"The configured sharpness allowance range","properties":{"high":{"example":100,"format":"int64","type":"integer"},"low":{"example":80,"format":"int64","type":"integer"}},"type":"object"},"straightnessRange":{"description":"The configured straightness allowance range","properties":{"high":{"example":100,"format":"int32","type":"integer"},"low":{"example":80,"format":"int32","type":"integer"}},"type":"object"},"unit":{"description":"The measurement unit of the distance found and the min and max distance threshold","example":"Millimeters","type":"string"}},"type":"object"},"contour":{"properties":{"angleDegrees":{"description":"The rotation angle found","example":0,"format":"int64","type":"integer"},"angleTolerance":{"description":"The rotation angle allowance","example":50,"format":"int64","type":"integer"},"matchPercentage":{"description":"The contour match percentage with the configured contour","example":46,"format":"int64","type":"integer"},"matchThreshold":{"description":"The configured match threshold for contours","example":18,"format":"int64","type":"integer"}},"type":"object"},"distance":{"properties":{"distanceFound":{"description":"The distance found between the start and end references","format":"float64","type":"integer"},"endStepName":{"description":"The name of the second reference step that we're checking the distances between","example":"Bottom Right Square","type":"string"},"enforceOffsetAngleRange":{"description":"Whether an offset angle range is enforced","example":true,"type":"boolean"},"maxDistance":{"description":"The maximum allowed distance threshold","example":900,"format":"float64","type":"integer"},"maxOffsetAngle":{"description":"The maximum angle allowance (in degrees) if enforceOffsetAngleRange is true","example":90,"format":"int64","type":"integer"},"minDistance":{"description":"The minumum allowed distance threshold","example":1500,"format":"float64","type":"integer"},"minOffsetAngle":{"description":"The minimum angle allowance (in degrees) if enforceOffsetAngleRange is true","example":45,"format":"int64","type":"integer"},"offsetAngleFound":{"description":"The counter-clockwise angle (in degrees) found between the horizontal axis of the start reference step and the last","example":50,"format":"int64","type":"integer"},"startStepName":{"description":"The name of the first reference step that we're checking the distances between","example":"Top Left Square","type":"string"},"unit":{"description":"The measurement unit of the distance found and the min and max distance threshold","example":"Millimeters","type":"string"}},"type":"object"},"expirationDate":{"properties":{"dateOffset":{"example":1,"format":"int64","type":"integer"},"foundDate":{"example":"06/13/2019","type":"string"},"matchDate":{"example":"06/13/2019","type":"string"}},"type":"object"},"findCopies":{"properties":{"angleTolerance":{"description":"The orientation angle tolerance (+/- °)","example":10,"format":"int64","type":"integer"},"foundCount":{"description":"The number of copies found","example":1,"format":"int64","type":"integer"},"maxCount":{"description":"The maximum number of copies allowed","example":5,"format":"int64","type":"integer"},"minCount":{"description":"The minimum number of copies allowed","example":1,"format":"int64","type":"integer"},"threshold":{"description":"The minimum required similarity (in %) of a found copy compared to the configured match region","example":70,"format":"int64","type":"integer"}},"type":"object"},"findEdge":{"properties":{"angleFound":{"description":"The detected angle in degrees","example":90,"format":"float64","type":"integer"},"angleRange":{"description":"The configured angle allowance range","properties":{"high":{"example":360,"format":"int32","type":"integer"},"low":{"example":0,"format":"int32","type":"integer"}},"type":"object"},"contrastPercent":{"description":"The detected contrast percentage","format":"float64","type":"integer"},"contrastRange":{"description":"The configured contrast allowance range","properties":{"high":{"example":100,"format":"int64","type":"integer"},"low":{"example":50,"format":"int64","type":"integer"}},"type":"object"},"filterPolarity":{"description":"The configured polarity for finding edges. Valid values: `LIGHT TO DARK`, `DARK TO LIGHT`.","example":"ANY","type":"string"},"sharpnessPercent":{"description":"The detected sharpness percentage","example":95,"format":"float64","type":"integer"},"sharpnessRange":{"description":"The configured sharpness allowance range","properties":{"high":{"example":100,"format":"int64","type":"integer"},"low":{"example":80,"format":"int64","type":"integer"}},"type":"object"},"straightnessFound":{"description":"The detected straightness percentage","example":95,"format":"float64","type":"integer"},"straightnessRange":{"description":"The configured straightness allowance range","properties":{"high":{"example":100,"format":"int32","type":"integer"},"low":{"example":80,"format":"int32","type":"integer"}},"type":"object"}},"type":"object"},"findShapes":{"properties":{"foundCount":{"example":1,"format":"int32","type":"integer"},"maxCount":{"example":5,"format":"int32","type":"integer"},"minCount":{"example":1,"format":"int32","type":"integer"}},"type":"object"},"fixture":{"properties":{"coordinates":{"properties":{"x":{"example":10,"format":"int32","type":"integer"},"y":{"example":10,"format":"int32","type":"integer"}},"type":"object"},"found":{"example":true,"type":"boolean"},"rotationDegrees":{"example":90,"format":"int64","type":"integer"}},"type":"object"},"labelMatch":{"properties":{"score":{"example":10,"format":"int64","type":"integer"},"threshold":{"example":10,"format":"int64","type":"integer"}},"type":"object"},"name":{"example":"Chicken Caesar Label","type":"string"},"presenceAbsence":{"properties":{"blueRange":{"properties":{"high":{"example":150,"format":"int64","type":"integer"},"low":{"example":90,"format":"int64","type":"integer"}},"type":"object"},"checkForAbsence":{"example":true,"type":"boolean"},"grayscaleRange":{"properties":{"high":{"example":100,"format":"int64","type":"integer"},"low":{"example":20,"format":"int64","type":"integer"}},"type":"object"},"greenRange":{"properties":{"high":{"example":150,"format":"int64","type":"integer"},"low":{"example":90,"format":"int64","type":"integer"}},"type":"object"},"hueRange":{"properties":{"high":{"example":100,"format":"int64","type":"integer"},"low":{"example":20,"format":"int64","type":"integer"}},"type":"object"},"redRange":{"properties":{"high":{"example":150,"format":"int64","type":"integer"},"low":{"example":90,"format":"int64","type":"integer"}},"type":"object"},"saturationRange":{"properties":{"high":{"example":50,"format":"int64","type":"integer"},"low":{"example":10,"format":"int64","type":"integer"}},"type":"object"},"score":{"example":50,"format":"int64","type":"integer"},"threshold":{"example":50,"format":"int64","type":"integer"},"valueRange":{"properties":{"high":{"example":50,"format":"int64","type":"integer"},"low":{"example":10,"format":"int64","type":"integer"}},"type":"object"}},"type":"object"},"result":{"example":"PASS","type":"string"},"textMatch":{"properties":{"foundText":{"example":"ABCD","type":"string"},"matchString":{"example":"ABCD","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"Vehicle":{"description":"The vehicle object.","properties":{"attributes":{"description":"A minified attribute","items":{"$ref":"#/components/schemas/attributeTiny"},"type":"array"},"auxInputType1":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType10":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType11":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType12":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType13":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType2":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType3":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType4":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType5":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType6":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType7":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType8":{"$ref":"#/components/schemas/VehicleAuxInputType"},"auxInputType9":{"$ref":"#/components/schemas/VehicleAuxInputType"},"cameraSerial":{"$ref":"#/components/schemas/CameraSerial"},"esn":{"$ref":"#/components/schemas/VehicleEsn"},"externalIds":{"$ref":"#/components/schemas/VehicleExternalIds"},"gateway":{"$ref":"#/components/schemas/gatewayTiny"},"grossVehicleWeight":{"$ref":"#/components/schemas/GrossVehicleWeight"},"harshAccelerationSettingType":{"$ref":"#/components/schemas/VehicleHarshAccelerationSettingType"},"id":{"$ref":"#/components/schemas/VehicleId"},"licensePlate":{"$ref":"#/components/schemas/VehicleLicensePlate"},"make":{"$ref":"#/components/schemas/VehicleMake"},"model":{"$ref":"#/components/schemas/VehicleModel"},"name":{"$ref":"#/components/schemas/VehicleName"},"notes":{"$ref":"#/components/schemas/VehicleNotes"},"sensorConfiguration":{"$ref":"#/components/schemas/VehicleSensorConfiguration"},"serial":{"$ref":"#/components/schemas/Serial"},"staticAssignedDriver":{"$ref":"#/components/schemas/driverTinyResponse"},"tags":{"$ref":"#/components/schemas/VehicleTags"},"vehicleRegulationMode":{"$ref":"#/components/schemas/VehicleRegulationMode"},"vehicleType":{"$ref":"#/components/schemas/VehicleType"},"vin":{"$ref":"#/components/schemas/VehicleVin"},"year":{"$ref":"#/components/schemas/VehicleYear"}},"required":["id"],"type":"object"},"VehicleAssignmentObjectResponseBody":{"properties":{"assignmentType":{"description":"Assignment type of the driver-vehicle assignment, indicating the provenance of the assignment. The only type of assignment supported right now is `driverApp` assignments. This list could change, so it is recommended that clients gracefully handle any types not enumerated in this list.  Valid values: `driverApp`","enum":["driverApp"],"example":"driverApp","type":"string"},"endTime":{"description":" An end time in RFC 3339 format. Omitted if not applicable. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"isPassenger":{"description":"Boolean indicating whether the driver is a passenger.","example":false,"type":"boolean"},"startTime":{"description":" A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","example":"2019-06-13T19:08:25Z","type":"string"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["assignmentType","isPassenger","startTime","vehicle"],"type":"object"},"VehicleAuxInputName":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. The value returned will match what is configured in the dashboard per vehicle.","example":"Boom","type":"string"},"VehicleAuxInputType":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. The value returned will match what is configured in the dashboard per vehicle.","example":"boom","type":"string"},"VehicleAuxInputType1":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType10":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType11":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType12":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType13":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType2":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType3":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType4":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType5":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType6":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType7":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType8":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleAuxInputType9":{"$ref":"#/components/schemas/VehicleAuxInputType"},"VehicleBatterVoltageDetailsObjectRequestBody":{"description":"Details specific to Vehicle Battery Voltage","properties":{"batteryVolts":{"description":"The battery volt threshold value.","example":100,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `LESS`","enum":["GREATER","LESS"],"example":"GREATER","type":"string"}},"required":["batteryVolts","minDurationMilliseconds","operation"],"type":"object"},"VehicleBatterVoltageDetailsObjectResponseBody":{"description":"Details specific to Vehicle Battery Voltage","properties":{"batteryVolts":{"description":"The battery volt threshold value.","example":100,"format":"int64","type":"integer"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"operation":{"description":"How to evaluate the threshold.  Valid values: `GREATER`, `LESS`","enum":["GREATER","LESS"],"example":"GREATER","type":"string"}},"required":["batteryVolts","minDurationMilliseconds","operation"],"type":"object"},"VehicleBatteryVoltageResponseBody":{"description":"Details specific to Vehicle Battery Voltage.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"VehicleDefLevelPercentageResponseBody":{"description":"Details specific to Vehicle DEF Level Percentage.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"VehicleDetectedResponseBody":{"description":"Details specific to Vehicle Detected.","properties":{"cameraStream":{"$ref":"#/components/schemas/alertObjectOnvifCameraStreamResponseBody"}},"type":"object"},"VehicleDvirObjectResponseBody":{"description":"A vehicle object","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the vehicle","example":"494123","type":"string"}},"type":"object"},"VehicleEngineHours":{"description":"A manual override for the vehicle's engine hours. You may only override a vehicle's engine hours if it cannot be read from on-board diagnostics. When you provide a manual engine hours override, Samsara will begin updating a vehicle's engine hours based on when the Samsara Vehicle Gateway is recieving power or not.","example":10943,"format":"int64","type":"integer"},"VehicleEsn":{"description":"Engine serial number.","example":"11223344","type":"string"},"VehicleExternalIds":{"description":"The <a href=\"/docs/external-ids\" target=\"_blank\">external IDs</a> for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"VehicleFaultCodeDetailsObjectRequestBody":{"description":"Details specific to Vehicle Fault Code. At least one fault code or fault code group must be selected.","properties":{"hasAnyAmberWarningLampCodes":{"description":"If true then alert on codes for less serious errors that do not warrant stopping. Defaults to false.","example":true,"type":"boolean"},"hasAnyFaultCodes":{"description":"If true this means that any code is alertable. Defaults to false.","example":true,"type":"boolean"},"hasAnyMalfunctionIndicatorLampCodes":{"description":"If true then alert on emission-related codes. Defaults to false.","example":true,"type":"boolean"},"hasAnyProtectionLampCodes":{"description":"If true then alert on codes for non-electric vehicle parts. Defaults to false.","example":true,"type":"boolean"},"hasAnyRedStopLampCodes":{"description":"If true then alert when the vehicle warrants stopping. Defaults to false.","example":true,"type":"boolean"},"hasAnyTrailerAbsLampCodes":{"description":"If true then alert when the ABS light is on. Defaults to false.","example":true,"type":"boolean"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"specificFaultCodes":{"description":"The list of specific fault codes to be alerted on.","items":{"$ref":"#/components/schemas/SpecificVehicleFaultCodeObjectRequestBody"},"type":"array"}},"type":"object"},"VehicleFaultCodeDetailsObjectResponseBody":{"description":"Details specific to Vehicle Fault Code. At least one fault code or fault code group must be selected.","properties":{"hasAnyAmberWarningLampCodes":{"description":"If true then alert on codes for less serious errors that do not warrant stopping. Defaults to false.","example":true,"type":"boolean"},"hasAnyFaultCodes":{"description":"If true this means that any code is alertable. Defaults to false.","example":true,"type":"boolean"},"hasAnyMalfunctionIndicatorLampCodes":{"description":"If true then alert on emission-related codes. Defaults to false.","example":true,"type":"boolean"},"hasAnyProtectionLampCodes":{"description":"If true then alert on codes for non-electric vehicle parts. Defaults to false.","example":true,"type":"boolean"},"hasAnyRedStopLampCodes":{"description":"If true then alert when the vehicle warrants stopping. Defaults to false.","example":true,"type":"boolean"},"hasAnyTrailerAbsLampCodes":{"description":"If true then alert when the ABS light is on. Defaults to false.","example":true,"type":"boolean"},"minDurationMilliseconds":{"description":"The number of milliseconds the trigger needs to stay active before alerting.","example":600000,"format":"int64","type":"integer"},"specificFaultCodes":{"description":"The list of specific fault codes to be alerted on.","items":{"$ref":"#/components/schemas/SpecificVehicleFaultCodeObjectResponseBody"},"type":"array"}},"type":"object"},"VehicleFaultsResponseBody":{"description":"Details specific to Vehicle Faults.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"trailer":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"VehicleHarshAccelerationSettingType":{"description":"The harsh acceleration setting type. This setting influences the acceleration sensitivity from which a <a href=\"https://kb.samsara.com/hc/en-us/articles/360043051792-Safety-Event-Overview\" target=\"_blank\">harsh event</a> is triggered. **By default**, this setting is inferred by the Samsara Vehicle Gateway from the engine computer, but it may be set or updated through the Samsara Dashboard or the API at any time. If set to `off`, then no acceleration based harsh events are triggered for the vehicle. Valid values: `passengerCar`, `lightTruck`, `heavyDuty`, `off`, `automatic`.","enum":["passengerCar","lightTruck","heavyDuty","off","automatic"],"example":"off","type":"string"},"VehicleId":{"description":"The unique Samsara ID of the Vehicle. This is automatically generated when the Vehicle object is created. It cannot be changed.","example":"112","type":"string"},"VehicleLicensePlate":{"description":"The license plate of the Vehicle. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"XHK1234","maxLength":12,"type":"string"},"VehicleLocation":{"description":"Vehicle location event.","properties":{"heading":{"$ref":"#/components/schemas/VehicleLocationHeading"},"latitude":{"$ref":"#/components/schemas/VehicleLocationLatitude"},"longitude":{"$ref":"#/components/schemas/VehicleLocationLongitude"},"reverseGeo":{"$ref":"#/components/schemas/reverseGeo"},"speed":{"$ref":"#/components/schemas/VehicleLocationSpeed"},"time":{"$ref":"#/components/schemas/time"}},"required":["latitude","longitude","time"],"type":"object"},"VehicleLocationAddress":{"description":"Address that the location is in.","properties":{"id":{"description":"Id of the address.","example":"1234","type":"string"},"name":{"description":"Name of address.","example":"Address 1","type":"string"}},"type":"object"},"VehicleLocationHeading":{"description":"Heading of the vehicle in degrees.","example":120,"format":"double","type":"number"},"VehicleLocationIsEcuSpeed":{"description":"True if the speed value is reported from the ECU. Speed value is reported from GPS otherwise.","example":true,"type":"boolean"},"VehicleLocationLatitude":{"description":"GPS latitude represented in degrees","example":122.142,"format":"double","type":"number"},"VehicleLocationLongitude":{"description":"GPS longitude represented in degrees","example":-93.343,"format":"double","type":"number"},"VehicleLocationResponseBody":{"description":"Contains the location, in latitude and longitude, of a vehicle.","properties":{"driverId":{"description":"The ID of the driver currently assigned to this vehicle.","example":1,"format":"int64","type":"integer"},"heading":{"description":"Heading in degrees.","example":246.42,"format":"double","type":"number"},"id":{"description":"ID of the vehicle.","example":112,"format":"int64","type":"integer"},"latitude":{"description":"Latitude in decimal degrees.","example":123.456,"format":"double","type":"number"},"location":{"description":"Text representation of nearest identifiable location to (latitude, longitude) coordinates.","example":"1 Main St, Dallas, TX","type":"string"},"longitude":{"description":"Longitude in decimal degrees.","example":32.897,"format":"double","type":"number"},"name":{"description":"Name of the vehicle.","example":"Truck A7","type":"string"},"odometerMeters":{"description":"The number of meters reported by the odometer.","example":71774705,"format":"int64","type":"integer"},"odometerType":{"description":"The source of data for odometerMeters. Will be either GPS or OBD  Valid values: `GPS`, `OBD`","enum":["GPS","OBD"],"example":"GPS","type":"string"},"onTrip":{"description":"Whether or not a trip is currently in progress for this vehicle. More information available via /fleet/trips endpoint.","example":true,"type":"boolean"},"routeIds":{"description":"A list of currently active route IDs that the vehicle is in.","example":[2244514,2311654],"items":{"example":2490867399311779000,"format":"int64","type":"integer"},"type":"array"},"speed":{"description":"Speed in miles per hour.","example":64.37,"format":"double","type":"number"},"time":{"description":"The time the reported location was logged, reported as a UNIX timestamp in milliseconds.","example":1462881998034,"format":"int64","type":"integer"},"vin":{"description":"Vehicle Identification Number (VIN) of the vehicle.","example":"JTNBB46KX73011966","type":"string"}},"required":["id"],"type":"object"},"VehicleLocationReverseGeo":{"$ref":"#/components/schemas/reverseGeo"},"VehicleLocationSpeed":{"description":"GPS speed of the vehicle in miles per hour. See `isEcuSpeed` to determine speed data source.","example":48.3,"format":"double","type":"number"},"VehicleLocationTime":{"$ref":"#/components/schemas/time"},"VehicleLocationsListResponse":{"description":"List of vehicle location events and pagination info.","properties":{"data":{"description":"A list of vehicles and an array of location events for each vehicle.","items":{"$ref":"#/components/schemas/VehicleLocationsListResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"VehicleLocationsListResponse_data":{"description":"A vehicle and its list of location events.","properties":{"id":{"$ref":"#/components/schemas/VehicleId"},"locations":{"description":"A list of location events for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleLocation"},"type":"array"},"name":{"$ref":"#/components/schemas/VehicleName"}},"required":["id","locations","name"],"type":"object"},"VehicleLocationsResponse":{"description":"Most recent vehicle locations and pagination info.","properties":{"data":{"description":"List of the most recent locations for the specified vehicles.","items":{"$ref":"#/components/schemas/VehicleLocationsResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"VehicleLocationsResponse_data":{"description":"A vehicle and its most recent location.","properties":{"id":{"$ref":"#/components/schemas/VehicleId"},"location":{"$ref":"#/components/schemas/VehicleLocation"},"name":{"$ref":"#/components/schemas/VehicleName"}},"required":["id","location","name"],"type":"object"},"VehicleMake":{"description":"The Vehicle’s manufacturing make. Automatically read from the engine computer if available. Empty if not available. Cannot be manually set.","example":"Ford","maxLength":255,"type":"string"},"VehicleModel":{"description":"The Vehicle’s manufacturing model. Automatically read from the engine computer if available. Empty if not available. Cannot be manually set.","example":"F150","maxLength":255,"type":"string"},"VehicleName":{"description":"The human-readable name of the Vehicle. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. **By default**, this name is the serial number of the Samsara Vehicle Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Truck A7","type":"string"},"VehicleNotes":{"description":"These are generic notes about the Vehicle. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.","example":"These are notes about this given vehicle.","maxLength":255,"type":"string"},"VehicleOdometerMeters":{"description":"A manual override for the vehicle's odometer. You may only override a vehicle's odometer if it cannot be read from on-board diagnostics. When you provide a manual odometer override, Samsara will begin updating a vehicle's odometer using GPS distance traveled since this override was set. See <a href=\"https://kb.samsara.com/hc/en-us/articles/115005273667\" target=\"_blank\">here</a> for more details.","example":9182,"format":"int64","type":"integer"},"VehicleRegulationMode":{"description":"Whether or not the vehicle is regulated, unregulated (non-CMV), or a mixed use unregulated vehicle. Valid values: `regulated`, `unregulated`, `mixed`.","enum":["regulated","unregulated","mixed"],"example":"regulated","type":"string"},"VehicleResponse":{"description":"A single vehicle.","properties":{"data":{"$ref":"#/components/schemas/Vehicle"}},"required":["data"],"type":"object"},"VehicleResponseObjectResponseBody":{"description":"A single vehicle","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"auxInputType1":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType10":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType11":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType12":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType13":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType2":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType3":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType4":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType5":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType6":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType7":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType8":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"auxInputType9":{"description":"The type of auxiliary input configured for this Vehicle.","example":"boom","type":"string"},"cameraSerial":{"description":"The serial number of the camera installed in the vehicle","example":"CNCK-VT8-XA8","type":"string"},"createdAtTime":{"description":"Time the vehicle was created in RFC 3339 format.","example":"1985-01-04T16:06:40Z","format":"date-time","type":"string"},"esn":{"description":"Engine serial number.","example":"56349811","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"gateway":{"$ref":"#/components/schemas/GoaGatewayTinyResponseResponseBody"},"harshAccelerationSettingType":{"description":"The harsh acceleration setting type.","example":"off","type":"string"},"id":{"description":"ID of the vehicle","example":"494123","type":"string"},"isRemotePrivacyButtonEnabled":{"description":"Whether the remote privacy button is enabled for the vehicle. If omitted, the organization does not have the remote privacy button feature enabled.","example":true,"type":"boolean"},"licensePlate":{"description":"The license plate of the vehicle.","example":"6SAM123","type":"string"},"make":{"description":"The Vehicle’s manufacturing make.","example":"Ford","type":"string"},"model":{"description":"The Vehicle’s manufacturing model.","example":"F150","type":"string"},"name":{"description":"Name of the vehicle","example":"Fleet Truck #1","type":"string"},"notes":{"description":"These are generic notes about the Vehicle.","example":"These are notes about this given vehicle.","type":"string"},"sensorConfiguration":{"$ref":"#/components/schemas/vehicleSensorConfigurationResponseBody"},"serial":{"description":"The serial number of the gateway installed in the vehicle.","example":"VG12345","type":"string"},"staticAssignedDriver":{"$ref":"#/components/schemas/DriverObjectResponseBody"},"tags":{"description":"The list of tags associated with the Vehicle.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"updatedAtTime":{"description":"Time the vehicle was updated in RFC 3339 format.","example":"1996-05-08T14:10:51Z","format":"date-time","type":"string"},"vehicleRegulationMode":{"description":"Whether the vehicle is regulated or unregulated (non-CMV).  Valid values: `regulated`, `unregulated`","enum":["regulated","unregulated"],"example":"regulated","type":"string"},"vehicleType":{"description":"The type of the vehicle. Only returned for customers with commercial speed limits (CSL) enabled.  Valid values: `unset`, `passenger`, `truck`, `bus`","enum":["unset","passenger","truck","bus"],"example":"unset","type":"string"},"vehicleWeight":{"description":"The weight of the vehicle in either pounds (lb) or kilograms (kg). Unit of weight is unknown. Only returned for customers with commercial speed limits (CSL) enabled.","example":1000,"format":"int64","type":"integer"},"vehicleWeightInKilograms":{"description":"The weight of the vehicle in kilograms (kg). Only returned for customers with commercial speed limits (CSL) enabled.","example":1000,"format":"int64","type":"integer"},"vehicleWeightInPounds":{"description":"The weight of the vehicle in pounds (lb). Only returned for customers with commercial speed limits (CSL) enabled.","example":2200,"format":"int64","type":"integer"},"vin":{"description":"The VIN of the vehicle.","example":"1GBJ6P1B2HV112765","type":"string"},"year":{"example":"2008","type":"string"}},"required":["createdAtTime","id"],"type":"object"},"VehicleResponseResponseBody":{"description":"A vehicle object","properties":{"assetType":{"description":"The type of the asset.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"vehicle","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the vehicle","example":"494123","type":"string"},"licensePlate":{"description":"The license plate of the vehicle.","example":"6SAM123","type":"string"},"name":{"description":"Name of the vehicle","example":"Fleet Truck #1","type":"string"},"vehicleVin":{"description":"The VIN of the vehicle.","example":"1GBJ6P1B2HV112765","type":"string"}},"type":"object"},"VehicleSafetyScoreResponseBody":{"description":"Safety score details for vehicle.","properties":{"behaviors":{"description":"Aggregated list of behaviors for the vehicle, one row for each unique type of behavior.","items":{"$ref":"#/components/schemas/SafetyScoreBehaviorObjectResponseBody"},"type":"array"},"driveDistanceMeters":{"description":"Total sum of distance driven with the vehicle.","example":2207296,"format":"int64","type":"integer"},"driveTimeMilliseconds":{"description":"Total time spent driving with the vehicle.","example":136997730,"format":"int64","type":"integer"},"speeding":{"description":"Aggregated list of speeding events for the vehicle, one row for each unique type of speeding.","items":{"$ref":"#/components/schemas/SafetyScoreSpeedingObjectResponseBody"},"type":"array"},"vehicleId":{"description":"ID of the vehicle.","example":"5678","type":"string"},"vehicleScore":{"description":"Safety score for the vehicle. The score is a rounded number between 0-100.","example":92,"format":"int32","type":"integer"}},"required":["behaviors","driveDistanceMeters","driveTimeMilliseconds","speeding","vehicleId","vehicleScore"],"type":"object"},"VehicleSensorConfiguration":{"description":"The sensors configured on a vehicle","properties":{"areas":{"items":{"$ref":"#/components/schemas/VehicleSensorConfigurationArea"},"type":"array"},"doors":{"items":{"$ref":"#/components/schemas/VehicleSensorConfigurationDoor"},"type":"array"}},"type":"object"},"VehicleSensorConfigurationArea":{"description":"The sensor configuration for an area of the vehicle","properties":{"cargoSensors":{"description":"Cargo sensors configured in this position of the vehicle","items":{"$ref":"#/components/schemas/Sensor"},"type":"array"},"humiditySensors":{"description":"Humidity sensors configured in this position of the vehicle","items":{"$ref":"#/components/schemas/Sensor"},"type":"array"},"position":{"description":"Position of the area on vehicle","enum":["Position_Front","Position_Middle","Position_Back"],"example":"","type":"string"},"temperatureSensors":{"description":"Temperature sensors configured in this position of the vehicle","items":{"$ref":"#/components/schemas/Sensor"},"type":"array"}},"type":"object"},"VehicleSensorConfigurationDoor":{"description":"A door monitor configuration for a vehicle","properties":{"position":{"description":"Position of the door monitor on the vehicle","enum":["Position_Left","Position_Right"],"example":"","type":"string"},"sensor":{"$ref":"#/components/schemas/Sensor"}},"type":"object"},"VehicleStaticAssignedDriver":{"$ref":"#/components/schemas/driverTinyResponse"},"VehicleStaticAssignedDriverId":{"description":"ID for the static assigned driver of the vehicle.","example":"123","type":"string"},"VehicleStatsAmbientAirTempMilliC":{"description":"Vehicle ambient air temperature reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The ambient air temperature reading in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsAmbientAirTempMilliCValue":{"description":"The ambient air temperature reading in millidegree Celsius.","example":31110,"format":"int64","type":"integer"},"VehicleStatsAmbientAirTempMilliCWithDecoration":{"description":"Vehicle ambient air temperature reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The ambient air temperature reading in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsAuxInput":{"description":"Data for auxiliary digio equipment.","properties":{"name":{"$ref":"#/components/schemas/VehicleAuxInputName"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"},"value":{"description":"Boolean indicating the state of the auxiliary equipment.","example":true,"type":"boolean"}},"type":"object"},"VehicleStatsAuxInputDecoration":{"properties":{"name":{"description":"The type of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary input</a> configured for this Vehicle. Once configured, these inputs will generate dynamic, time-series data that will be available to view in the Samsara Dashboard. **By default**: empty. This can be set or updated through the Samsara Dashboard or the API at any time. Inputs 3-13 are only available on gateways with an attached aux expander. The value returned will match what is configured in the dashboard per vehicle.","example":"Boom","type":"string"},"value":{"$ref":"#/components/schemas/VehicleStatsAuxInputValue"}},"required":["name","value"],"type":"object"},"VehicleStatsAuxInputValue":{"description":"Boolean indicating the state of the auxiliary equipment.","example":true,"type":"boolean"},"VehicleStatsAuxInputWithDecoration":{"description":"Data for auxiliary digio equipment.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"name":{"$ref":"#/components/schemas/VehicleAuxInputName"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"},"value":{"description":"Boolean indicating the state of the auxiliary equipment.","example":true,"type":"boolean"}},"type":"object"},"VehicleStatsBarometricPressurePa":{"description":"Vehicle barometric pressure reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The barometric pressure reading in pascals.","example":99000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsBarometricPressurePaValue":{"description":"The barometric pressure reading in pascals.","example":99000,"format":"int64","type":"integer"},"VehicleStatsBarometricPressurePaWithDecoration":{"description":"Vehicle barometric pressure reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The barometric pressure reading in pascals.","example":100,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsBatteryMilliVoltsValue":{"description":"The battery voltage in millivolts.","example":7991,"format":"int64","type":"integer"},"VehicleStatsBatteryVoltage":{"description":"Vehicle battery voltage reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The battery voltage in millivolts.","example":7991,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsBatteryVoltageWithDecoration":{"description":"Vehicle battery voltage reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The battery voltage in millivolts.","example":7991,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsDecorations":{"description":"Optional decorations to the primary stat event. See [here](doc:decorations) for more details. The example shows the response if you were to submit `decorations=engineStates&obdEngineSeconds` to the query parameter:\n\n```json\n\"decorations\":{\n  \"engineStates\": {\n    \"value\": \"Off\"\n  },\n  \"obdEngineSeconds\": {\n    \"value\": 9723103\n  }\n}\n```","properties":{"ambientAirTemperatureMilliC":{"$ref":"#/components/schemas/VehicleStatsDecorations_ambientAirTemperatureMilliC"},"auxInput1":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput10":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput11":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput12":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput13":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput2":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput3":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput4":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput5":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput6":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput7":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput8":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"auxInput9":{"$ref":"#/components/schemas/VehicleStatsAuxInputDecoration"},"barometricPressurePa":{"$ref":"#/components/schemas/VehicleStatsDecorations_barometricPressurePa"},"batteryMilliVolts":{"$ref":"#/components/schemas/VehicleStatsDecorations_batteryMilliVolts"},"defLevelMilliPercent":{"$ref":"#/components/schemas/VehicleStatsDecorations_defLevelMilliPercent"},"ecuDoorStatus":{"$ref":"#/components/schemas/VehicleStatsEcuDoorStatus"},"ecuSpeedMph":{"$ref":"#/components/schemas/VehicleStatsDecorations_ecuSpeedMph"},"engineCoolantTemperatureMilliC":{"$ref":"#/components/schemas/VehicleStatsDecorations_engineCoolantTemperatureMilliC"},"engineImmobilizer":{"$ref":"#/components/schemas/VehicleStatsEngineImmobilizer"},"engineLoadPercent":{"$ref":"#/components/schemas/VehicleStatsDecorations_engineLoadPercent"},"engineOilPressureKPa":{"$ref":"#/components/schemas/VehicleStatsDecorations_engineOilPressureKPa"},"engineRpm":{"$ref":"#/components/schemas/VehicleStatsDecorations_engineRpm"},"engineStates":{"$ref":"#/components/schemas/VehicleStatsDecorations_engineStates"},"evAverageBatteryTemperatureMilliCelsius":{"$ref":"#/components/schemas/VehicleStatsEvAverageBatteryTemperatureMilliCelsius"},"evBatteryCurrentMilliAmp":{"$ref":"#/components/schemas/VehicleStatsEvBatteryCurrentMilliAmp"},"evBatteryStateOfHealthMilliPercent":{"$ref":"#/components/schemas/VehicleStatsEvBatteryStateOfHealthMilliPercent"},"evBatteryVoltageMilliVolt":{"$ref":"#/components/schemas/VehicleStatsEvBatteryVoltageMilliVolt"},"evChargingCurrentMilliAmp":{"$ref":"#/components/schemas/VehicleStatsEvChargingCurrentMilliAmp"},"evChargingEnergyMicroWh":{"$ref":"#/components/schemas/VehicleStatsEvChargingEnergyMicroWh"},"evChargingStatus":{"$ref":"#/components/schemas/VehicleStatsEvChargingStatus"},"evChargingVoltageMilliVolt":{"$ref":"#/components/schemas/VehicleStatsEvChargingVoltageMilliVolt"},"evConsumedEnergyMicroWh":{"$ref":"#/components/schemas/VehicleStatsEvConsumedEnergyMicroWh"},"evDistanceDrivenMeters":{"$ref":"#/components/schemas/VehicleStatsEvDistanceDrivenMeters"},"evRegeneratedEnergyMicroWh":{"$ref":"#/components/schemas/VehicleStatsEvRegeneratedEnergyMicroWh"},"evStateOfChargeMilliPercent":{"$ref":"#/components/schemas/VehicleStatsEvStateOfChargeMilliPercent"},"faultCodes":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue"},"fuelConsumedMilliliters":{"$ref":"#/components/schemas/VehicleStatsDecorations_fuelConsumedMilliliters"},"fuelPercents":{"$ref":"#/components/schemas/VehicleStatsDecorations_fuelPercents"},"gps":{"$ref":"#/components/schemas/VehicleStatsDecorations_gps"},"gpsDistanceMeters":{"$ref":"#/components/schemas/VehicleStatsDecorations_gpsDistanceMeters"},"gpsOdometerMeters":{"$ref":"#/components/schemas/VehicleStatsDecorations_gpsOdometerMeters"},"idlingDurationMilliseconds":{"$ref":"#/components/schemas/VehicleStatsDecorations_idlingDurationMilliseconds"},"intakeManifoldTemperatureMilliC":{"$ref":"#/components/schemas/VehicleStatsDecorations_intakeManifoldTemperatureMilliC"},"obdEngineSeconds":{"$ref":"#/components/schemas/VehicleStatsDecorations_obdEngineSeconds"},"obdOdometerMeters":{"$ref":"#/components/schemas/VehicleStatsDecorations_obdOdometerMeters"},"seatbeltDriver":{"$ref":"#/components/schemas/VehicleStatsSeatbeltDriver"},"spreaderActive":{"$ref":"#/components/schemas/VehicleStatsSpreaderActive"},"spreaderAirTemp":{"$ref":"#/components/schemas/VehicleStatsSpreaderAirTemp"},"spreaderBlastState":{"$ref":"#/components/schemas/VehicleStatsSpreaderBlastState"},"spreaderGranularName":{"$ref":"#/components/schemas/VehicleStatsSpreaderGranularName"},"spreaderGranularRate":{"$ref":"#/components/schemas/VehicleStatsSpreaderGranularRate"},"spreaderLiquidName":{"$ref":"#/components/schemas/VehicleStatsSpreaderLiquidName"},"spreaderLiquidRate":{"$ref":"#/components/schemas/VehicleStatsSpreaderLiquidRate"},"spreaderOnState":{"$ref":"#/components/schemas/VehicleStatsSpreaderOnState"},"spreaderPlowStatus":{"$ref":"#/components/schemas/VehicleStatsSpreaderPlowStatus"},"spreaderPrewetName":{"$ref":"#/components/schemas/VehicleStatsSpreaderPrewetName"},"spreaderPrewetRate":{"$ref":"#/components/schemas/VehicleStatsSpreaderPrewetRate"},"spreaderRoadTemp":{"$ref":"#/components/schemas/VehicleStatsSpreaderRoadTemp"},"tirePressure":{"$ref":"#/components/schemas/VehicleStatsTirePressures"}},"type":"object"},"VehicleStatsDecorations_ambientAirTemperatureMilliC":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsAmbientAirTempMilliCValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_barometricPressurePa":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsBarometricPressurePaValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_batteryMilliVolts":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsBatteryMilliVoltsValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_defLevelMilliPercent":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsDefLevelMilliPercentValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_ecuSpeedMph":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsEcuSpeedMphValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_engineCoolantTemperatureMilliC":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsEngineCoolantTempMilliCValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_engineLoadPercent":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsEngineLoadPercentValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_engineOilPressureKPa":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsEngineOilPressureKPaValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_engineRpm":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsEngineRpmValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_engineStates":{"properties":{"value":{"description":"The state of the engine.","enum":["Off","On","Idle"],"example":"On","type":"string"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_fuelConsumedMilliliters":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsFuelConsumedMillilitersValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_fuelPercents":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsFuelPercentValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_gps":{"properties":{"address":{"$ref":"#/components/schemas/VehicleLocationAddress"},"headingDegrees":{"$ref":"#/components/schemas/VehicleLocationHeading"},"isEcuSpeed":{"$ref":"#/components/schemas/VehicleLocationIsEcuSpeed"},"latitude":{"$ref":"#/components/schemas/VehicleLocationLatitude"},"longitude":{"$ref":"#/components/schemas/VehicleLocationLongitude"},"reverseGeo":{"$ref":"#/components/schemas/reverseGeo"},"speedMilesPerHour":{"$ref":"#/components/schemas/VehicleLocationSpeed"}},"required":["latitude","longitude"],"type":"object"},"VehicleStatsDecorations_gpsDistanceMeters":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsGpsDistanceMetersValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_gpsOdometerMeters":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsGpsOdometerMetersValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_idlingDurationMilliseconds":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsIdlingDurationMillisecondsValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_intakeManifoldTemperatureMilliC":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsIntakeManifoldTempMilliCValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_obdEngineSeconds":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsObdEngineSecondsValue"}},"required":["value"],"type":"object"},"VehicleStatsDecorations_obdOdometerMeters":{"properties":{"value":{"$ref":"#/components/schemas/VehicleStatsObdOdometerMetersValue"}},"required":["value"],"type":"object"},"VehicleStatsDefLevelMilliPercent":{"description":"The Diesel Exhaust Fluid (DEF) milli percentage reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).","example":54200,"format":"int64","maximum":99999,"minimum":0,"type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsDefLevelMilliPercentValue":{"description":"The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).","example":54200,"format":"int64","maximum":99999,"minimum":0,"type":"integer"},"VehicleStatsDefLevelMilliPercentWithDecoration":{"description":"The Diesel Exhaust Fluid (DEF) milli percentage reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).","example":54200,"format":"int64","maximum":99999,"minimum":0,"type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEcuDoorStatus":{"description":"Door status as read from the vehicle (either from ECU or AUX as a fallback).","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Status of doors. Either `Closed`, `Open` or `Unknown`.","enum":["Closed","Open","Unknown"],"example":"Closed","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsEcuSpeedMph":{"description":"The speed of the vehicle in miles per hour, as reported by the ECU.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The speed of the vehicle in miles per hour.","example":32.1,"format":"double","type":"number"}},"required":["time","value"],"type":"object"},"VehicleStatsEcuSpeedMphValue":{"description":"The speed of the vehicle in miles per hour, as reported by the ECU.","example":58.3,"format":"double","type":"number"},"VehicleStatsEcuSpeedMphWithDecoration":{"description":"The speed of the vehicle in miles per hour, as reported by the ECU.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The speed of the vehicle in miles per hour.","example":32.1,"format":"double","type":"number"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineCoolantTempMilliC":{"description":"Vehicle engine coolant temperature reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine coolant temperature reading in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineCoolantTempMilliCValue":{"description":"The engine coolant temperature reading in millidegree Celsius.","example":31110,"format":"int64","type":"integer"},"VehicleStatsEngineCoolantTempMilliCWithDecoration":{"description":"Vehicle engine coolant temperature reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine coolant temperature reading in millidegree Celsius.","example":31110,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineImmobilizer":{"description":"Data for the engine immobilizer","properties":{"connected":{"description":"Whether the engine immobilizer is connected or not","example":false,"type":"boolean"},"state":{"description":"The state of the engine immobilizer. Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).","enum":["ignition_disabled","ignition_enabled"],"example":"ignition_disabled","type":"string"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"}},"required":["connected","state","time"],"type":"object"},"VehicleStatsEngineImmobilizerWithDecoration":{"description":"Data for the engine immobilizer","properties":{"connected":{"description":"Whether the engine immobilizer is connected or not","example":false,"type":"boolean"},"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"state":{"description":"The state of the engine immobilizer. Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).","enum":["ignition_disabled","ignition_enabled"],"example":"ignition_disabled","type":"string"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"}},"required":["connected","state","time"],"type":"object"},"VehicleStatsEngineLoadPercent":{"description":"The engine load percentage reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine load in percentage points (e.g. `99`, `50`, etc).","example":54,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineLoadPercentValue":{"description":"The engine load in percentage points (e.g. `99`, `50`, etc).","example":54,"format":"int64","type":"integer"},"VehicleStatsEngineLoadPercentWithDecoration":{"description":"The engine load percentage reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine load in percentage points (e.g. `99`, `50`, etc).","example":54,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineOilPressureKPa":{"description":"Vehicle engine oil pressure reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine oil pressure reading in kilopascals.","example":100,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineOilPressureKPaValue":{"description":"The engine oil pressure reading in kilopascals.","example":100,"format":"int64","type":"integer"},"VehicleStatsEngineOilPressureKPaWithDecoration":{"description":"Vehicle engine oil pressure reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine oil pressure reading in kilopascals.","example":100,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineRpm":{"description":"Vehicle engine RPM reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The revolutions per minute of the engine.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineRpmValue":{"description":"The revolutions per minute of the engine.","example":1000,"format":"int64","type":"integer"},"VehicleStatsEngineRpmWithDecoration":{"description":"Vehicle engine RPM reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The revolutions per minute of the engine.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineState":{"description":"Vehicle engine state event.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"$ref":"#/components/schemas/VehicleStatsEngineStateSetting"}},"required":["time","value"],"type":"object"},"VehicleStatsEngineStateSetting":{"description":"The state of the engine.","enum":["Off","On","Idle"],"example":"On","type":"string"},"VehicleStatsEngineStateWithDecoration":{"description":"Vehicle engine state event.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"$ref":"#/components/schemas/VehicleStatsEngineStateSetting"}},"required":["time","value"],"type":"object"},"VehicleStatsEvAverageBatteryTemperatureMilliCelsius":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvAverageBatteryTemperatureMilliCelsiusWithDecoration":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvBatteryCurrentMilliAmp":{"description":"Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Battery current for electric and hybrid vehicles in milli amps.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvBatteryCurrentMilliAmpWithDecoration":{"description":"Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Battery current for electric and hybrid vehicles in milli amps.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvBatteryStateOfHealthMilliPercent":{"description":"Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Milli percent battery state of health for electric and hybrid vehicles.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvBatteryStateOfHealthMilliPercentWithDecoration":{"description":"Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Milli percent battery state of health for electric and hybrid vehicles.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvBatteryVoltageMilliVolt":{"description":"Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Battery voltage for electric and hybrid vehicles in milli volts.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvBatteryVoltageMilliVoltWithDecoration":{"description":"Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Battery voltage for electric and hybrid vehicles in milli volts.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingCurrentMilliAmp":{"description":"Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging current for electric and hybrid vehicles in milli amps.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingCurrentMilliAmpWithDecoration":{"description":"Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging current for electric and hybrid vehicles in milli amps.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingEnergyMicroWh":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingEnergyMicroWhWithDecoration":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingStatus":{"description":"Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging status for electric and hybrid vehicles. Statuses:\n unknown - 0,\n not charging - 1,\n charging - 2.","enum":[0,1,2,3,4],"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingStatusWithDecoration":{"description":"Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging status for electric and hybrid vehicles. Statuses:\n unknown - 0,\n not charging - 1,\n charging - 2.","enum":[0,1,2,3,4],"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingVoltageMilliVolt":{"description":"Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging voltage for electric and hybrid vehicles in milli volts.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvChargingVoltageMilliVoltWithDecoration":{"description":"Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Charging voltage for electric and hybrid vehicles in milli volts.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvConsumedEnergyMicroWh":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvConsumedEnergyMicroWhWithDecoration":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvDistanceDrivenMeters":{"description":"Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Electric distance driven for electric and hybrid vehicles in meters.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvDistanceDrivenMetersWithDecoration":{"description":"Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Electric distance driven for electric and hybrid vehicles in meters.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvRegeneratedEnergyMicroWh":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvRegeneratedEnergyMicroWhWithDecoration":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvStateOfChargeMilliPercent":{"description":"State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Milli percent State of Charge for electric and hybrid vehicles.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsEvStateOfChargeMilliPercentWithDecoration":{"description":"State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Milli percent State of Charge for electric and hybrid vehicles.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsFaultCodes":{"description":"Engine fault codes read from J1939, OBDII, and OEM vehicles.","properties":{"canBusType":{"$ref":"#/components/schemas/VehicleStatsFaultCodesCanBusType"},"j1939":{"$ref":"#/components/schemas/VehicleStatsFaultCodesJ1939"},"obdii":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOBDII"},"oem":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOem"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"}},"required":["time"],"type":"object"},"VehicleStatsFaultCodesCanBusType":{"description":"The CAN bus type of the vehicle.","example":"CANBUS_J1939_500","type":"string"},"VehicleStatsFaultCodesIgnitionType":{"description":"The ignition type of this passenger vehicle. Valid values: `spark`, `compression`.","enum":["spark","compression"],"type":"string"},"VehicleStatsFaultCodesJ1939":{"description":"Vehicle fault codes for J1939 vehicles.","properties":{"checkEngineLights":{"$ref":"#/components/schemas/VehicleStatsFaultCodesJ1939Lights"},"diagnosticTroubleCodes":{"$ref":"#/components/schemas/VehicleStatsFaultCodesJ1939TroubleCodes"}},"type":"object"},"VehicleStatsFaultCodesJ1939Lights":{"description":"Status of engine lights on J1939 vehicles.","properties":{"emissionsIsOn":{"description":"True if the MIL status is nonzero.","example":true,"type":"boolean"},"protectIsOn":{"description":"True if the engine protect lamp status is nonzero.","example":false,"type":"boolean"},"stopIsOn":{"description":"True if the red lamp status is nonzero.","example":false,"type":"boolean"},"warningIsOn":{"description":"True if the amber lamp status is nonzero.","example":false,"type":"boolean"}},"required":["emissionsIsOn","protectIsOn","stopIsOn","warningIsOn"],"type":"object"},"VehicleStatsFaultCodesJ1939TroubleCode":{"description":"Diagnostic trouble code for J1939 vehicles.","properties":{"fmiDescription":{"description":"A short description of the FMI identifier, if available.","example":"Voltage Below Normal","type":"string"},"fmiId":{"description":"The FMI identifier.","example":9,"format":"int32","type":"integer"},"milStatus":{"description":"The MIL status, indicating a check engine light.","example":1,"format":"int32","type":"integer"},"occurrenceCount":{"description":"The number of times this fault has triggered.","example":1,"format":"int32","type":"integer"},"sourceAddressName":{"description":"The source address name corresponding to the txId","example":"Engine #1","type":"string"},"spnDescription":{"description":"A short description of the SPN identifier, if available.","example":"System Diagnostic Code #1","type":"string"},"spnId":{"description":"The SPN identifier.","example":3031,"format":"int32","type":"integer"},"txId":{"$ref":"#/components/schemas/VehicleStatsFaultCodesTxId"},"vendorSpecificFields":{"$ref":"#/components/schemas/VehicleStatsFaultCodesVendorSpecificFields"}},"required":["fmiId","milStatus","occurrenceCount","spnId","txId"],"type":"object"},"VehicleStatsFaultCodesJ1939TroubleCodes":{"description":"Diagnostic trouble codes for J1939 vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesJ1939TroubleCode"},"type":"array"},"VehicleStatsFaultCodesOBDII":{"description":"Vehicle fault codes for passenger vehicles.","properties":{"checkEngineLightIsOn":{"description":"True if the check engine light is illuminated (MIL status field is nonzero for any faults).","example":true,"type":"boolean"},"diagnosticTroubleCodes":{"description":"Diagnostic trouble codes for passenger vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOBDIITroubleCode"},"type":"array"}},"type":"object"},"VehicleStatsFaultCodesOBDIITroubleCode":{"description":"Diagnostic trouble code for passenger vehicles.","properties":{"confirmedDtcs":{"description":"Confirmed DTC codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerDtc"},"type":"array"},"ignitionType":{"$ref":"#/components/schemas/VehicleStatsFaultCodesIgnitionType"},"milStatus":{"description":"The MIL status, indicating a check engine light.","example":true,"type":"boolean"},"monitorStatus":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatus"},"pendingDtcs":{"description":"Pending DTC codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerDtc"},"type":"array"},"permanentDtcs":{"description":"Permanent DTC codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerDtc"},"type":"array"},"txId":{"$ref":"#/components/schemas/VehicleStatsFaultCodesTxId"}},"required":["txId"],"type":"object"},"VehicleStatsFaultCodesOem":{"description":"Vehicle fault codes for OEM vehicles.","properties":{"diagnosticTroubleCodes":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOemTroubleCodes"}},"type":"object"},"VehicleStatsFaultCodesOemTroubleCode":{"description":"Proprietary diagnostic trouble code for some OEM vehicles.","properties":{"codeDescription":{"description":"The OEM code description.","example":"KVGT Servo Error","type":"string"},"codeIdentifier":{"description":"The OEM code identifier.","example":"CA2387","type":"string"},"codeSeverity":{"description":"The OEM code severity.","example":"L03","type":"string"},"codeSource":{"description":"The OEM code source.","example":"ENG/M","type":"string"}},"type":"object"},"VehicleStatsFaultCodesOemTroubleCodes":{"description":"Proprietary diagnostic trouble codes for OEM vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOemTroubleCode"},"type":"array"},"VehicleStatsFaultCodesPassengerDtc":{"description":"Passenger vehicle DTC information","properties":{"dtcDescription":{"description":"The DTC description, if available.","example":"Fuel Rail/System Pressure - Too Low Bank 1","type":"string"},"dtcId":{"description":"The DTC identifier.","example":135,"format":"int32","type":"integer"},"dtcShortCode":{"description":"The DTC short code, if available.","example":"P0087","type":"string"}},"required":["dtcId"],"type":"object"},"VehicleStatsFaultCodesPassengerMonitorStatus":{"description":"Readings from engine sensors","properties":{"catalyst":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"comprehensive":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"egr":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"evapSystem":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"fuel":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"heatedCatalyst":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"heatedO2Sensor":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"isoSaeReserved":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"misfire":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"notReadyCount":{"description":"Count of the number of sensors reporting N: Not Complete","type":"integer"},"o2Sensor":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"},"secondaryAir":{"$ref":"#/components/schemas/VehicleStatsFaultCodesPassengerMonitorStatusValue"}},"type":"object"},"VehicleStatsFaultCodesPassengerMonitorStatusValue":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"VehicleStatsFaultCodesTxId":{"description":"The TX identifier.","example":0,"format":"int32","type":"integer"},"VehicleStatsFaultCodesValue":{"description":"Fault codes for the vehicle","properties":{"canBusType":{"description":"The CAN bus type of the vehicle.","example":"CANBUS_J1939_500","type":"string"},"j1939":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_j1939"},"obdii":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_obdii"},"oem":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_oem"}},"type":"object"},"VehicleStatsFaultCodesValue_j1939":{"description":"Vehicle fault codes for J1939 vehicles.","properties":{"checkEngineLights":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_j1939_checkEngineLights"},"diagnosticTroubleCodes":{"description":"Diagnostic trouble codes for J1939 vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_j1939_diagnosticTroubleCodes"},"type":"array"}},"type":"object"},"VehicleStatsFaultCodesValue_j1939_checkEngineLights":{"description":"Status of engine lights on J1939 vehicles.","properties":{"emissionsIsOn":{"description":"True if the MIL status is nonzero.","example":true,"type":"boolean"},"protectIsOn":{"description":"True if the engine protect lamp status is nonzero.","example":false,"type":"boolean"},"stopIsOn":{"description":"True if the red lamp status is nonzero.","example":false,"type":"boolean"},"warningIsOn":{"description":"True if the amber lamp status is nonzero.","example":false,"type":"boolean"}},"required":["emissionsIsOn","protectIsOn","stopIsOn","warningIsOn"],"type":"object"},"VehicleStatsFaultCodesValue_j1939_diagnosticTroubleCodes":{"description":"Diagnostic trouble code for J1939 vehicles.","properties":{"fmiDescription":{"description":"A short description of the FMI identifier, if available.","example":"Voltage Below Normal","type":"string"},"fmiId":{"description":"The FMI identifier.","example":9,"format":"int32","type":"integer"},"milStatus":{"description":"The MIL status, indicating a check engine light.","example":1,"format":"int32","type":"integer"},"occurrenceCount":{"description":"The number of times this fault has triggered.","example":1,"format":"int32","type":"integer"},"sourceAddressName":{"description":"The source address name corresponding to the txId","example":"Engine #1","type":"string"},"spnDescription":{"description":"A short description of the SPN identifier, if available.","example":"System Diagnostic Code #1","type":"string"},"spnId":{"description":"The SPN identifier.","example":3031,"format":"int32","type":"integer"},"txId":{"description":"The TX identifier.","example":0,"format":"int32","type":"integer"},"vendorSpecificFields":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_j1939_vendorSpecificFields"}},"required":["fmiId","milStatus","occurrenceCount","spnId","txId"],"type":"object"},"VehicleStatsFaultCodesValue_j1939_vendorSpecificFields":{"description":"Vendor specific data for J1939 vehicles.","properties":{"dtcDescription":{"description":"The DTC description, if available.","example":"false","type":"string"},"repairInstructionsUrl":{"description":"A link to vendor repair instructions, if available.","example":"false","type":"string"}},"type":"object"},"VehicleStatsFaultCodesValue_obdii":{"description":"Vehicle fault codes for passenger vehicles.","properties":{"checkEngineLightIsOn":{"description":"True if the check engine light is illuminated (MIL status field is nonzero for any faults).","example":true,"type":"boolean"},"diagnosticTroubleCodes":{"description":"Diagnostic trouble codes for passenger vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_obdii_diagnosticTroubleCodes"},"type":"array"}},"type":"object"},"VehicleStatsFaultCodesValue_obdii_confirmedDtcs":{"description":"Passenger vehicle DTC information","properties":{"dtcDescription":{"description":"The DTC description, if available.","example":"Fuel Rail/System Pressure - Too Low Bank 1","type":"string"},"dtcId":{"description":"The DTC identifier.","example":135,"format":"int32","type":"integer"},"dtcShortCode":{"description":"The DTC short code, if available.","example":"P0087","type":"string"}},"required":["dtcId"],"type":"object"},"VehicleStatsFaultCodesValue_obdii_diagnosticTroubleCodes":{"description":"Diagnostic trouble code for passenger vehicles.","properties":{"confirmedDtcs":{"description":"Confirmed DTC codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_obdii_confirmedDtcs"},"type":"array"},"ignitionType":{"description":"The ignition type of this passenger vehicle. Valid values: `spark`, `compression`.","enum":["spark","compression"],"type":"string"},"milStatus":{"description":"The MIL status, indicating a check engine light.","example":true,"type":"boolean"},"monitorStatus":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_obdii_monitorStatus"},"pendingDtcs":{"description":"Pending DTC codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_obdii_confirmedDtcs"},"type":"array"},"permanentDtcs":{"description":"Permanent DTC codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_obdii_confirmedDtcs"},"type":"array"},"txId":{"description":"The TX identifier.","example":0,"format":"int32","type":"integer"}},"required":["txId"],"type":"object"},"VehicleStatsFaultCodesValue_obdii_monitorStatus":{"description":"Readings from engine sensors","properties":{"catalyst":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"comprehensive":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"egr":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"evapSystem":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"fuel":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"heatedCatalyst":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"heatedO2Sensor":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"isoSaeReserved":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"misfire":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"notReadyCount":{"description":"Count of the number of sensors reporting N: Not Complete","type":"integer"},"o2Sensor":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"},"secondaryAir":{"description":"Enum of monitor status:\n-U: Unsupported\n-N: Not Complete\n-R: Complete\n","enum":["N","R","U"],"type":"string"}},"type":"object"},"VehicleStatsFaultCodesValue_oem":{"description":"Vehicle fault codes for OEM vehicles.","properties":{"diagnosticTroubleCodes":{"description":"Proprietary diagnostic trouble codes for OEM vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesValue_oem_diagnosticTroubleCodes"},"type":"array"}},"type":"object"},"VehicleStatsFaultCodesValue_oem_diagnosticTroubleCodes":{"description":"Proprietary diagnostic trouble code for some OEM vehicles.","properties":{"codeDescription":{"description":"The OEM code description.","example":"KVGT Servo Error","type":"string"},"codeIdentifier":{"description":"The OEM code identifier.","example":"CA2387","type":"string"},"codeSeverity":{"description":"The OEM code severity.","example":"L03","type":"string"},"codeSource":{"description":"The OEM code source.","example":"ENG/M","type":"string"}},"type":"object"},"VehicleStatsFaultCodesVendorSpecificFields":{"description":"Vendor specific data for J1939 vehicles.","properties":{"dtcDescription":{"description":"The DTC description, if available.","example":"false","type":"string"},"repairInstructionsUrl":{"description":"A link to vendor repair instructions, if available.","example":"false","type":"string"}},"type":"object"},"VehicleStatsFaultCodesWithDecoration":{"description":"Engine fault codes read from J1939, OBDII, and OEM vehicles.","properties":{"canBusType":{"$ref":"#/components/schemas/VehicleStatsFaultCodesCanBusType"},"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"j1939":{"$ref":"#/components/schemas/VehicleStatsFaultCodesJ1939"},"obdii":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOBDII"},"oem":{"$ref":"#/components/schemas/VehicleStatsFaultCodesOem"},"time":{"$ref":"#/components/schemas/time"}},"required":["time"],"type":"object"},"VehicleStatsFuelConsumedMilliliters":{"description":"The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.","example":1500,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsFuelConsumedMillilitersValue":{"description":"The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.","example":1500,"format":"int64","type":"integer"},"VehicleStatsFuelConsumedMillilitersWithDecoration":{"description":"Vehicle cumulative fuel consumption reading in milliliters.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.","example":1500,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsFuelPercent":{"description":"Vehicle fuel percentage reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine fuel level in percentage points (e.g. `99`, `50`, etc).","example":54,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsFuelPercentValue":{"description":"The engine fuel level in percentage points (e.g. `99`, `50`, etc).","example":54,"format":"int64","type":"integer"},"VehicleStatsFuelPercentWithDecoration":{"description":"Vehicle fuel percentage reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The engine fuel level in percentage points (e.g. `99`, `50`, etc).","example":54,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsGps":{"description":"GPS location data for the vehicle.","properties":{"address":{"$ref":"#/components/schemas/VehicleLocationAddress"},"headingDegrees":{"$ref":"#/components/schemas/VehicleLocationHeading"},"isEcuSpeed":{"$ref":"#/components/schemas/VehicleLocationIsEcuSpeed"},"latitude":{"$ref":"#/components/schemas/VehicleLocationLatitude"},"longitude":{"$ref":"#/components/schemas/VehicleLocationLongitude"},"reverseGeo":{"$ref":"#/components/schemas/reverseGeo"},"speedMilesPerHour":{"$ref":"#/components/schemas/VehicleLocationSpeed"},"time":{"$ref":"#/components/schemas/time"}},"required":["latitude","longitude","time"],"type":"object"},"VehicleStatsGpsDistanceMeters":{"description":"Vehicle GPS distance event.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of meters the vehicle has traveled since the gateway was installed, based on GPS calculations.","example":81029.591434899,"format":"double","type":"number"}},"required":["time","value"],"type":"object"},"VehicleStatsGpsDistanceMetersValue":{"description":"Number of meters the vehicle has traveled since the gateway was installed, based on GPS calculations.","example":81029.591434899,"format":"double","type":"number"},"VehicleStatsGpsDistanceMetersWithDecoration":{"description":"Vehicle GPS distance event.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of meters the vehicle has traveled since the gateway was installed, based on GPS calculations.","example":81029.591434899,"format":"double","type":"number"}},"required":["time","value"],"type":"object"},"VehicleStatsGpsOdometerMeters":{"description":"Vehicle GPS odometer event.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of meters the vehicle has traveled according to the GPS calculations and the manually-specified odometer reading.","example":14010293,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsGpsOdometerMetersValue":{"description":"Number of meters the vehicle has traveled according to the GPS calculations and the manually-specified odometer reading.","example":14010293,"format":"int64","type":"integer"},"VehicleStatsGpsOdometerMetersWithDecoration":{"description":"Vehicle GPS odometer event.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of meters the vehicle has traveled according to the GPS calculations and the manually-specified odometer reading.","example":14010293,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsIdlingDurationMilliseconds":{"description":"The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.","example":3600000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsIdlingDurationMillisecondsValue":{"description":"The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.","example":3600000,"format":"int64","type":"integer"},"VehicleStatsIdlingDurationMillisecondsWithDecoration":{"description":"Vehicle cumulative idling duration reading in milliseconds.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.","example":3600000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsIntakeManifoldTempMilliC":{"description":"Vehicle intake manifold temperature reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The intake manifold temperature reading in millidegree Celsius.","example":88000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsIntakeManifoldTempMilliCValue":{"description":"The intake manifold temperature reading in millidegree Celsius.","example":88000,"format":"int64","type":"integer"},"VehicleStatsIntakeManifoldTempMilliCWithDecoration":{"description":"Vehicle intake manifold temperature reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"The intake manifold temperature reading in millidegree Celsius.","example":88000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsListGps":{"description":"GPS location data for the vehicle.","properties":{"address":{"$ref":"#/components/schemas/VehicleLocationAddress"},"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"headingDegrees":{"$ref":"#/components/schemas/VehicleLocationHeading"},"isEcuSpeed":{"$ref":"#/components/schemas/VehicleLocationIsEcuSpeed"},"latitude":{"$ref":"#/components/schemas/VehicleLocationLatitude"},"longitude":{"$ref":"#/components/schemas/VehicleLocationLongitude"},"reverseGeo":{"$ref":"#/components/schemas/reverseGeo"},"speedMilesPerHour":{"$ref":"#/components/schemas/VehicleLocationSpeed"},"time":{"$ref":"#/components/schemas/time"}},"required":["latitude","longitude","time"],"type":"object"},"VehicleStatsListResponse":{"description":"List of vehicle stat events and pagination info.","properties":{"data":{"description":"A list of vehicles and an array of stat events for each vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsListResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"VehicleStatsListResponse_data":{"description":"A vehicle and its list of stat events.","properties":{"ambientAirTemperatureMilliC":{"description":"A list of ambient air temperature readings in millidegree Celsius for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsAmbientAirTempMilliCWithDecoration"},"type":"array"},"auxInput1":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput10":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput11":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput12":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput13":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput2":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput3":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput4":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput5":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput6":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput7":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput8":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"auxInput9":{"description":"A list of auxiliary equipment states.","items":{"$ref":"#/components/schemas/VehicleStatsAuxInputWithDecoration"},"type":"array"},"barometricPressurePa":{"description":"A list of barometric pressure readings in pascals for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsBarometricPressurePaWithDecoration"},"type":"array"},"batteryMilliVolts":{"description":"A list of battery levels in milliVolts for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsBatteryVoltageWithDecoration"},"type":"array"},"defLevelMilliPercent":{"description":"A list of DEF level milli percentage readings for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsDefLevelMilliPercentWithDecoration"},"type":"array"},"ecuDoorStatus":{"description":"Door status as read from the vehicle (either from ECU or AUX as a fallback).","items":{"$ref":"#/components/schemas/VehicleStatsEcuDoorStatus"},"type":"array"},"ecuSpeedMph":{"description":"A list of the speeds of the vehicle in miles per hour, as reported by the ECU.","items":{"$ref":"#/components/schemas/VehicleStatsEcuSpeedMphWithDecoration"},"type":"array"},"engineCoolantTemperatureMilliC":{"description":"A list of engine coolant temperature readings in millidegree Celsius for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsEngineCoolantTempMilliCWithDecoration"},"type":"array"},"engineImmobilizer":{"description":"A list of engine immobilizer data for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsEngineImmobilizerWithDecoration"},"type":"array"},"engineLoadPercent":{"description":"A list of engine load percentage readings for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsEngineLoadPercentWithDecoration"},"type":"array"},"engineOilPressureKPa":{"description":"A list of engine oil pressure readings in kilopascals for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsEngineOilPressureKPaWithDecoration"},"type":"array"},"engineRpm":{"description":"A list engine RPM values for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsEngineRpmWithDecoration"},"type":"array"},"engineStates":{"description":"A list of engine state events for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsEngineStateWithDecoration"},"type":"array"},"evAverageBatteryTemperatureMilliCelsius":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvAverageBatteryTemperatureMilliCelsius"},"type":"array"},"evBatteryCurrentMilliAmp":{"description":"Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvBatteryCurrentMilliAmp"},"type":"array"},"evBatteryStateOfHealthMilliPercent":{"description":"Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvBatteryStateOfHealthMilliPercent"},"type":"array"},"evBatteryVoltageMilliVolt":{"description":"Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvBatteryVoltageMilliVolt"},"type":"array"},"evChargingCurrentMilliAmp":{"description":"Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvChargingCurrentMilliAmp"},"type":"array"},"evChargingEnergyMicroWh":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvChargingEnergyMicroWh"},"type":"array"},"evChargingStatus":{"description":"Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvChargingStatus"},"type":"array"},"evChargingVoltageMilliVolt":{"description":"Charging voltage for electric and hybrid vehicles in milli  volts. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvChargingVoltageMilliVolt"},"type":"array"},"evConsumedEnergyMicroWh":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvConsumedEnergyMicroWh"},"type":"array"},"evDistanceDrivenMeters":{"description":"Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvDistanceDrivenMeters"},"type":"array"},"evRegeneratedEnergyMicroWh":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvRegeneratedEnergyMicroWh"},"type":"array"},"evStateOfChargeMilliPercent":{"description":"State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.","items":{"$ref":"#/components/schemas/VehicleStatsEvStateOfChargeMilliPercent"},"type":"array"},"externalIds":{"$ref":"#/components/schemas/VehicleExternalIds"},"faultCodes":{"description":"A list of engine fault codes.","items":{"$ref":"#/components/schemas/VehicleStatsFaultCodesWithDecoration"},"type":"array"},"fuelConsumedMilliliters":{"description":"A list of cumulative fuel consumption readings in milliliters for the given vehicle. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.","items":{"$ref":"#/components/schemas/VehicleStatsFuelConsumedMillilitersWithDecoration"},"type":"array"},"fuelPercents":{"description":"A list of fuel percentage readings for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsFuelPercentWithDecoration"},"type":"array"},"gps":{"description":"A list of GPS location events for the given vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsListGps"},"type":"array"},"gpsDistanceMeters":{"description":"A list of GPS distance events for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsGpsDistanceMetersWithDecoration"},"type":"array"},"gpsOdometerMeters":{"description":"A list of GPS odometer events for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsGpsOdometerMetersWithDecoration"},"type":"array"},"id":{"$ref":"#/components/schemas/VehicleId"},"idlingDurationMilliseconds":{"description":"A list of cumulative idling duration readings in milliseconds for the given vehicle. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.","items":{"$ref":"#/components/schemas/VehicleStatsIdlingDurationMillisecondsWithDecoration"},"type":"array"},"intakeManifoldTemperatureMilliC":{"description":"A list of intake manifold temperature readings in millidegree Celsius for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsIntakeManifoldTempMilliCWithDecoration"},"type":"array"},"name":{"$ref":"#/components/schemas/VehicleName"},"nfcCardScans":{"description":"A list of NFC cards that were scanned for the given vehicles.","items":{"$ref":"#/components/schemas/VehicleStatsNfcCardScanWithDecoration"},"type":"array"},"obdEngineSeconds":{"description":"A list of OBD engine seconds readings for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsObdEngineSecondsWithDecoration"},"type":"array"},"obdOdometerMeters":{"description":"A list of OBD odometer readings for the given vehicle.","items":{"$ref":"#/components/schemas/VehicleStatsObdOdometerMetersWithDecoration"},"type":"array"},"seatbeltDriver":{"description":"Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`.","items":{"$ref":"#/components/schemas/VehicleStatsSeatbeltDriver"},"type":"array"},"spreaderActive":{"description":"Whether vehicle is actively spreading any material.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderActive"},"type":"array"},"spreaderAirTemp":{"description":"Air (ambient) temperature in milli celsius reading from material spreader.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderAirTemp"},"type":"array"},"spreaderBlastState":{"description":"Whether vehicle is actively spreading material in ‘blast mode’.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderBlastState"},"type":"array"},"spreaderGranularName":{"description":"Name of most recent type of granular material spread, read from the material spreader.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderGranularName"},"type":"array"},"spreaderGranularRate":{"description":"Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderGranularRate"},"type":"array"},"spreaderLiquidName":{"description":"Name of most recent type of liquid material spread, read from the material spreader.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderLiquidName"},"type":"array"},"spreaderLiquidRate":{"description":"Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderLiquidRate"},"type":"array"},"spreaderOnState":{"description":"Whether vehicle spreader is enabled.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderOnState"},"type":"array"},"spreaderPlowStatus":{"description":"Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderPlowStatus"},"type":"array"},"spreaderPrewetName":{"description":"Name of most recent type of prewet material spread, read from the material spreader.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderPrewetName"},"type":"array"},"spreaderPrewetRate":{"description":"Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderPrewetRate"},"type":"array"},"spreaderRoadTemp":{"description":"Road temperature reading in milli celsius from material spreader.","items":{"$ref":"#/components/schemas/VehicleStatsSpreaderRoadTemp"},"type":"array"},"syntheticEngineSeconds":{"description":"A list of synthetic engine seconds values.","items":{"$ref":"#/components/schemas/VehicleStatsListSyntheticEngineSeconds"},"type":"array"}},"type":"object"},"VehicleStatsListSyntheticEngineSeconds":{"description":"A list of synthetic engine seconds for the vehicle.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"},"value":{"$ref":"#/components/schemas/VehicleStatsSyntheticEngineSecondsValue"}},"required":["time","value"],"type":"object"},"VehicleStatsNfcCardScan":{"description":"Data for the nfc card and the time that it was scanned.","properties":{"card":{"$ref":"#/components/schemas/VehicleStatsNfcCardScan_card"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"}},"required":["card","time"],"type":"object"},"VehicleStatsNfcCardScanWithDecoration":{"description":"Data for the nfc card and the time that it was scanned.","properties":{"card":{"$ref":"#/components/schemas/VehicleStatsNfcCardScan_card"},"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"}},"required":["card","time"],"type":"object"},"VehicleStatsNfcCardScan_card":{"description":"The card that was scanned.","properties":{"id":{"description":"The id code of the card that was scanned.","example":"835063","type":"string"}},"type":"object"},"VehicleStatsObdEngineSeconds":{"description":"Vehicle OBD engine seconds reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of seconds the vehicle's engine has been on according to the on-board diagnostics.","example":9723103,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsObdEngineSecondsValue":{"description":"Number of seconds the vehicle's engine has been on according to the on-board diagnostics.","example":9723103,"format":"int64","type":"integer"},"VehicleStatsObdEngineSecondsWithDecoration":{"description":"Vehicle OBD engine seconds reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of seconds the vehicle's engine has been on according to the on-board diagnostics.","example":9723103,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsObdOdometerMeters":{"description":"Vehicle OBD odometer reading.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of meters the vehicle has traveled according to the on-board diagnostics.","example":14010293,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsObdOdometerMetersValue":{"description":"Number of meters the vehicle has traveled according to the on-board diagnostics.","example":14010293,"format":"int64","type":"integer"},"VehicleStatsObdOdometerMetersWithDecoration":{"description":"Vehicle OBD odometer reading.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Number of meters the vehicle has traveled according to the on-board diagnostics.","example":14010293,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse":{"description":"Vehicle stats snapshot and pagination info.","properties":{"data":{"description":"List of vehicles and a snapshot of the request stats.","items":{"$ref":"#/components/schemas/VehicleStatsResponse_data"},"type":"array"},"pagination":{"$ref":"#/components/schemas/paginationResponse"}},"required":["data","pagination"],"type":"object"},"VehicleStatsResponse_data":{"description":"A vehicle and its most recent stat.","properties":{"ambientAirTemperatureMilliC":{"$ref":"#/components/schemas/VehicleStatsAmbientAirTempMilliC"},"auxInput1":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput10":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput11":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput12":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput13":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput2":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput3":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput4":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput5":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput6":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput7":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput8":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"auxInput9":{"$ref":"#/components/schemas/VehicleStatsAuxInput"},"barometricPressurePa":{"$ref":"#/components/schemas/VehicleStatsBarometricPressurePa"},"batteryMilliVolts":{"$ref":"#/components/schemas/VehicleStatsBatteryVoltage"},"defLevelMilliPercent":{"$ref":"#/components/schemas/VehicleStatsDefLevelMilliPercent"},"ecuDoorStatus":{"$ref":"#/components/schemas/VehicleStatsResponse_ecuDoorStatus"},"ecuSpeedMph":{"$ref":"#/components/schemas/VehicleStatsEcuSpeedMph"},"engineCoolantTemperatureMilliC":{"$ref":"#/components/schemas/VehicleStatsEngineCoolantTempMilliC"},"engineImmobilizer":{"$ref":"#/components/schemas/VehicleStatsEngineImmobilizer"},"engineLoadPercent":{"$ref":"#/components/schemas/VehicleStatsEngineLoadPercent"},"engineOilPressureKPa":{"$ref":"#/components/schemas/VehicleStatsEngineOilPressureKPa"},"engineRpm":{"$ref":"#/components/schemas/VehicleStatsEngineRpm"},"engineState":{"$ref":"#/components/schemas/VehicleStatsEngineState"},"evAverageBatteryTemperatureMilliCelsius":{"$ref":"#/components/schemas/VehicleStatsResponse_evAverageBatteryTemperatureMilliCelsius"},"evBatteryCurrentMilliAmp":{"$ref":"#/components/schemas/VehicleStatsResponse_evBatteryCurrentMilliAmp"},"evBatteryStateOfHealthMilliPercent":{"$ref":"#/components/schemas/VehicleStatsResponse_evBatteryStateOfHealthMilliPercent"},"evBatteryVoltageMilliVolt":{"$ref":"#/components/schemas/VehicleStatsResponse_evBatteryVoltageMilliVolt"},"evChargingCurrentMilliAmp":{"$ref":"#/components/schemas/VehicleStatsResponse_evChargingCurrentMilliAmp"},"evChargingEnergyMicroWh":{"$ref":"#/components/schemas/VehicleStatsResponse_evChargingEnergyMicroWh"},"evChargingStatus":{"$ref":"#/components/schemas/VehicleStatsResponse_evChargingStatus"},"evChargingVoltageMilliVolt":{"$ref":"#/components/schemas/VehicleStatsResponse_evChargingVoltageMilliVolt"},"evConsumedEnergyMicroWh":{"$ref":"#/components/schemas/VehicleStatsResponse_evConsumedEnergyMicroWh"},"evDistanceDrivenMeters":{"$ref":"#/components/schemas/VehicleStatsResponse_evDistanceDrivenMeters"},"evRegeneratedEnergyMicroWh":{"$ref":"#/components/schemas/VehicleStatsResponse_evRegeneratedEnergyMicroWh"},"evStateOfChargeMilliPercent":{"$ref":"#/components/schemas/VehicleStatsResponse_evStateOfChargeMilliPercent"},"externalIds":{"$ref":"#/components/schemas/VehicleExternalIds"},"faultCodes":{"$ref":"#/components/schemas/VehicleStatsFaultCodes"},"fuelConsumedMilliliters":{"$ref":"#/components/schemas/VehicleStatsFuelConsumedMilliliters"},"fuelPercent":{"$ref":"#/components/schemas/VehicleStatsFuelPercent"},"gps":{"$ref":"#/components/schemas/VehicleStatsGps"},"gpsDistanceMeters":{"$ref":"#/components/schemas/VehicleStatsGpsDistanceMeters"},"gpsOdometerMeters":{"$ref":"#/components/schemas/VehicleStatsGpsOdometerMeters"},"id":{"$ref":"#/components/schemas/VehicleId"},"idlingDurationMilliseconds":{"$ref":"#/components/schemas/VehicleStatsIdlingDurationMilliseconds"},"intakeManifoldTemperatureMilliC":{"$ref":"#/components/schemas/VehicleStatsIntakeManifoldTempMilliC"},"name":{"$ref":"#/components/schemas/VehicleName"},"nfcCardScan":{"$ref":"#/components/schemas/VehicleStatsNfcCardScan"},"obdEngineSeconds":{"$ref":"#/components/schemas/VehicleStatsObdEngineSeconds"},"obdOdometerMeters":{"$ref":"#/components/schemas/VehicleStatsObdOdometerMeters"},"seatbeltDriver":{"$ref":"#/components/schemas/VehicleStatsResponse_seatbeltDriver"},"spreaderActive":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderActive"},"spreaderAirTemp":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderAirTemp"},"spreaderBlastState":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderBlastState"},"spreaderGranularName":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderGranularName"},"spreaderGranularRate":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderGranularRate"},"spreaderLiquidName":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderLiquidName"},"spreaderLiquidRate":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderLiquidRate"},"spreaderOnState":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderOnState"},"spreaderPlowStatus":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderPlowStatus"},"spreaderPrewetName":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderPrewetName"},"spreaderPrewetRate":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderPrewetRate"},"spreaderRoadTemp":{"$ref":"#/components/schemas/VehicleStatsResponse_spreaderRoadTemp"},"syntheticEngineSeconds":{"$ref":"#/components/schemas/VehicleStatsSyntheticEngineSeconds"}},"required":["id","name"],"type":"object"},"VehicleStatsResponse_ecuDoorStatus":{"description":"Door status as read from the vehicle (either from ECU or AUX as a fallback).","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Status of doors. Either `Closed`, `Open` or `Unknown`.","enum":["Closed","Open","Unknown"],"example":"Closed","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evAverageBatteryTemperatureMilliCelsius":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Battery temperature for electric and hybrid vehicles in milli celsius.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evBatteryCurrentMilliAmp":{"description":"Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Battery current for electric and hybrid vehicles in milli amps.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evBatteryStateOfHealthMilliPercent":{"description":"Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Milli percent battery state of health for electric and hybrid vehicles.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evBatteryVoltageMilliVolt":{"description":"Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Battery voltage for electric and hybrid vehicles in milli volts.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evChargingCurrentMilliAmp":{"description":"Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Charging current for electric and hybrid vehicles in milli amps.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evChargingEnergyMicroWh":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Charging energy for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evChargingStatus":{"description":"Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Charging status for electric and hybrid vehicles. Statuses:\n unknown - 0,\n not charging - 1,\n charging - 2.","enum":[0,1,2,3,4],"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evChargingVoltageMilliVolt":{"description":"Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Charging voltage for electric and hybrid vehicles in milli volts.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evConsumedEnergyMicroWh":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evDistanceDrivenMeters":{"description":"Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Electric distance driven for electric and hybrid vehicles in meters.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evRegeneratedEnergyMicroWh":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Regenerated energy for electric and hybrid vehicles in microwatt hours.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_evStateOfChargeMilliPercent":{"description":"State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Milli percent State of Charge for electric and hybrid vehicles.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_seatbeltDriver":{"description":"Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`.","enum":["Buckled","Unbuckled"],"example":"Buckled","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderActive":{"description":"Whether vehicle is actively spreading any material.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Whether vehicle is actively spreading any material.","enum":["Off","On"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderAirTemp":{"description":"Air (ambient) temperature in milli celsius reading from material spreader.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Air (ambient) temperature in milli celsius reading from material spreader.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderBlastState":{"description":"Whether vehicle is actively spreading material in ‘blast mode’.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Whether vehicle is actively spreading material in ‘blast mode’.","enum":["On","Off"],"example":"Off","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderGranularName":{"description":"Name of most recent type of granular material spread, read from the material spreader.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Name of most recent type of granular material spread, read from the material spreader.","example":"SALT","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderGranularRate":{"description":"Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderLiquidName":{"description":"Name of most recent type of liquid material spread, read from the material spreader.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Name of most recent type of liquid material spread, read from the material spreader.","example":"DIR1","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderLiquidRate":{"description":"Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderOnState":{"description":"Whether vehicle spreader is enabled.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Whether vehicle spreader is enabled.","enum":["On","Off"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderPlowStatus":{"description":"Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Snow plow status, as read from the material spreader","enum":["Up","Down"],"example":"Down","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderPrewetName":{"description":"Name of most recent type of prewet material spread, read from the material spreader.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Name of most recent type of prewet material spread, read from the material spreader.","example":"PWT1","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderPrewetRate":{"description":"Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsResponse_spreaderRoadTemp":{"description":"Road temperature reading in milli celsius from material spreader.","properties":{"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"value":{"description":"Road temperature reading in milli celsius from material spreader.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsSeatbeltDriver":{"description":"Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`.","enum":["Buckled","Unbuckled"],"example":"Buckled","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderActive":{"description":"Whether vehicle is actively spreading any material.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Whether vehicle is actively spreading any material.","enum":["Off","On"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderAirTemp":{"description":"Air (ambient) temperature in milli celsius reading from material spreader.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Air (ambient) temperature in milli celsius reading from material spreader.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderBlastState":{"description":"Whether vehicle is actively spreading material in ‘blast mode’.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Whether vehicle is actively spreading material in ‘blast mode’.","enum":["On","Off"],"example":"Off","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderGranularName":{"description":"Name of most recent type of granular material spread, read from the material spreader.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Name of most recent type of granular material spread, read from the material spreader.","example":"SALT","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderGranularRate":{"description":"Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderLiquidName":{"description":"Name of most recent type of liquid material spread, read from the material spreader.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Name of most recent type of liquid material spread, read from the material spreader.","example":"DIR1","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderLiquidRate":{"description":"Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderOnState":{"description":"Whether vehicle spreader is enabled.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Whether vehicle spreader is enabled.","enum":["On","Off"],"example":"On","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderPlowStatus":{"description":"Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Snow plow status, as read from the material spreader","enum":["Up","Down"],"example":"Down","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderPrewetName":{"description":"Name of most recent type of prewet material spread, read from the material spreader.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Name of most recent type of prewet material spread, read from the material spreader.","example":"PWT1","type":"string"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderPrewetRate":{"description":"Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsSpreaderRoadTemp":{"description":"Road temperature reading in milli celsius from material spreader.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"description":"Road temperature reading in milli celsius from material spreader.","example":1000,"format":"int64","type":"integer"}},"required":["time","value"],"type":"object"},"VehicleStatsSyntheticEngineSeconds":{"description":"The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/vehicleStatsAuxInputTime"},"value":{"$ref":"#/components/schemas/VehicleStatsSyntheticEngineSecondsValue"}},"required":["time","value"],"type":"object"},"VehicleStatsSyntheticEngineSecondsValue":{"description":"Stats for the number of seconds the vehicle's engine has been on, calculated based on a manually-specified engine seconds reading and the number of seconds the vehicle has been on according to the engine state changes reported to the vehicle gateway since that reading was set. This stat will not be present for any vehicle that does not have the engine seconds reading set. The engine seconds reading can be set from the UI on the vehicle details page.","example":14010293,"format":"int64","type":"integer"},"VehicleStatsTellTales":{"description":"Tell tales status as read from the vehicle.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"items":{"$ref":"#/components/schemas/VehicleStatsTellTalesItem"},"type":"array"}},"required":["time"],"type":"object"},"VehicleStatsTellTalesItem":{"properties":{"condition":{"description":"The condition of the tell tale.","type":"string"},"name":{"description":"The name of the tell tale.","type":"string"}},"required":["condition","name"],"type":"object"},"VehicleStatsTime":{"$ref":"#/components/schemas/time"},"VehicleStatsTirePressure":{"description":"Vehicle tire pressure readings.","properties":{"time":{"$ref":"#/components/schemas/time"},"value":{"$ref":"#/components/schemas/VehicleStatsTirePressures"}},"type":"object"},"VehicleStatsTirePressureWithDecoration":{"description":"Vehicle tire pressure readings.","properties":{"decorations":{"$ref":"#/components/schemas/VehicleStatsDecorations"},"time":{"$ref":"#/components/schemas/time"},"value":{"$ref":"#/components/schemas/VehicleStatsTirePressures"}},"type":"object"},"VehicleStatsTirePressures":{"description":"Tire pressure readings for each of four tires in kilopascals.","properties":{"backLeftTirePressureKPa":{"description":"The tire pressure of the rear left tire as seen when standing behind the vehicle in kilopascals.","example":200,"format":"int64","type":"integer"},"backRightTirePressureKPa":{"description":"The tire pressure of the rear right tire as seen when standing behind the vehicle in kilopascals.","example":200,"format":"int64","type":"integer"},"frontLeftTirePressureKPa":{"description":"The tire pressure of the front left tire as seen when standing behind the vehicle in kilopascals.","example":200,"format":"int64","type":"integer"},"frontRightTirePressureKPa":{"description":"The tire pressure of the front right tire as seen when standing behind the vehicle in kilopascals.","example":200,"format":"int64","type":"integer"}},"type":"object"},"VehicleSummary":{"properties":{"anticipationBrakeEventCount":{"$ref":"#/components/schemas/AnticipationBrakeEventCount"},"coastingDurationMs":{"$ref":"#/components/schemas/CoastingDurationMs"},"cruiseControlDurationMs":{"$ref":"#/components/schemas/CruiseControlDurationMs"},"distanceDrivenMeters":{"$ref":"#/components/schemas/DistanceDrivenMeters"},"driveTimeDurationMs":{"$ref":"#/components/schemas/DriveTimeDurationMs"},"fuelConsumedMl":{"$ref":"#/components/schemas/FuelConsumedMl"},"greenBandDrivingDurationMs":{"$ref":"#/components/schemas/GreenBandDrivingDurationMs"},"highTorqueMs":{"$ref":"#/components/schemas/HighTorqueMs"},"idleTimeDurationMs":{"$ref":"#/components/schemas/IdleTimeDurationMs"},"overSpeedMs":{"$ref":"#/components/schemas/OverSpeedMs"},"powerTakeOffDurationMs":{"$ref":"#/components/schemas/PowerTakeOffDurationMs"},"totalBrakeEventCount":{"$ref":"#/components/schemas/TotalBrakeEventCount"},"vehicle":{"$ref":"#/components/schemas/vehicleTinyResponse"}},"type":"object"},"VehicleTagIds":{"description":"An array of IDs of tags to associate with this vehicle.","items":{"example":"321","type":"string"},"type":"array"},"VehicleTags":{"description":"The list of <a href=\"https://kb.samsara.com/hc/en-us/articles/360043275091-Creating-and-Using-Tags\" target=\"_blank\">tags</a> associated with the Vehicle. **By default**: empty. Can be set or updated through the Samsara Dashboard or the API at any time.","items":{"$ref":"#/components/schemas/tagTinyResponse"},"type":"array"},"VehicleTrailerMismatchDataResponseBody":{"description":"Details specific to Trailer Assignment Mismatch.","properties":{"currentlyPullingTrailers":{"description":"Trailers the vehicle was associated with pulling in the incident metadata. An empty array means no trailer associations were recorded. Omitted when metadata or all referenced trailer details are unavailable.","items":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"type":"array"},"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"driverSelectedTrailers":{"description":"Trailers the driver selected in the incident metadata. An empty array means no trailers were selected. Omitted when metadata or all referenced trailer details are unavailable.","items":{"$ref":"#/components/schemas/alertObjectTrailerResponseBody"},"type":"array"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"}},"type":"object"},"VehicleType":{"description":"The type of the vehicle. Only returned for customers with commercial speed limits (CSL) enabled.","example":"truck","type":"string"},"VehicleVin":{"description":"The VIN of the Vehicle. Most of the time, this will be automatically read from the engine computer by the Samsara Vehicle Gateway. It will be empty if it cannot be read. It can be set or updated through the Samsara Dashboard or the API at any time.","example":"1FUJA6BD31LJ09646","maxLength":17,"minLength":11,"type":"string"},"VehicleWithGatewayTinyResponseResponseBody":{"description":" A minified vehicle object. This object is only returned if the route is assigned to the vehicle.","properties":{"assetType":{"description":"The type of the asset.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"vehicle","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"gateway":{"$ref":"#/components/schemas/GoaGatewayTinyResponseResponseBody"},"id":{"description":"ID of the vehicle","example":"494123","type":"string"},"licensePlate":{"description":"The license plate of the vehicle.","example":"6SAM123","type":"string"},"name":{"description":"Name of the vehicle","example":"Fleet Truck #1","type":"string"},"vin":{"description":"The VIN of the vehicle.","example":"1GBJ6P1B2HV112765","type":"string"}},"type":"object"},"VehicleYear":{"description":"Year of the Vehicle.","example":"2008","type":"string"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsResponseBody":{"properties":{"data":{"description":"List of vehicles and their driver assignments.","items":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesDriverAssignmentsObjectResponseBody":{"properties":{"driverAssignments":{"description":"List of driver assignment objects.","items":{"$ref":"#/components/schemas/DriverAssignmentObjectResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the vehicle.","example":"494123","type":"string"},"name":{"description":"Name of the vehicle.","example":"Bus-123","type":"string"}},"required":["driverAssignments","id"],"type":"object"},"VehiclesListVehiclesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesResponseBody":{"properties":{"data":{"description":"Multiple vehicles.","items":{"$ref":"#/components/schemas/VehicleResponseObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"VehiclesListVehiclesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesListVehiclesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockLockVehicleUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VehiclesLockUnlockVehicleUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"VendorCategoryObjectResponseBody":{"description":"A vendor category.","properties":{"id":{"description":"Unique UUID of the vendor category.","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","type":"string"},"name":{"description":"Human-readable category name.","example":"Tires","type":"string"}},"required":["id","name"],"type":"object"},"VendorLocationObjectResponseBody":{"description":"A maintenance vendor location linked to a Place.","properties":{"addressId":{"description":"The linked Place's Address ID, equal to data.id returned by the public Addresses API. The Place owns the location's name, address, and notes. Use this addressId as {id} in GET /addresses/{id} to retrieve data.name, data.formattedAddress, and data.notes, and PATCH /addresses/{id} to update name, formattedAddress, and notes. These calls require Read Addresses and Write Addresses permissions, respectively.","example":"281474993384538","type":"string"},"assetAttributeSelections":{"description":"Configured asset attributes. An empty array is explicit; omission inherits.","items":{"$ref":"#/components/schemas/VendorPublicAttributeSelectionResponseBody"},"type":"array"},"categoryIds":{"description":"Category UUIDs for this vendor. Use the Vendor Categories endpoint to resolve names.","example":["a1b2c3d4-e5f6-7890-abcd-ef1234567890","a1b2c3d4-e5f6-7890-abcd-ef1234567890"],"items":{"description":"Category UUID","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","type":"string"},"type":"array"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/VendorPublicMoneyResponseBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"Unique UUID of the vendor location.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"isMobile":{"description":"Explicit mobile-service override; omitted when inherited.","example":false,"type":"boolean"},"isPreferred":{"description":"Explicit preferred override; omitted when inherited.","example":false,"type":"boolean"},"parentVendorId":{"description":"Parent vendor UUID, when configured.","example":"11111111-1111-4111-8111-111111111111","type":"string"},"payeeId":{"description":"The vendor's accounts-payable/ERP payee ID.","example":"PAYEE-12345","type":"string"},"resolvedSettings":{"$ref":"#/components/schemas/VendorPublicResolvedSettingsResponseBody"},"servicesProvided":{"description":"Description of services provided by the vendor.","example":"Oil changes, tire rotations, brake services","type":"string"},"status":{"description":"Own lifecycle status: active, inactive, or unknown. Defaults to active.","example":"active","type":"string"},"vendorId":{"description":"The vendor's legacy vendor ID from the source system. Multiple vendor locations may share the same vendorId if they belong to the same parent company.","example":"0000000772","type":"string"}},"required":["categoryIds","id"],"type":"object"},"VendorPublicAttributeSelectionResponseBody":{"description":"Asset attribute values the vendor can service.","properties":{"attributeId":{"description":"Asset attribute ID.","example":"11111111-1111-4111-8111-111111111111","type":"string"},"values":{"description":"Selected values.","items":{"$ref":"#/components/schemas/VendorPublicAttributeValueResponseBody"},"type":"array"}},"required":["attributeId","values"],"type":"object"},"VendorPublicAttributeValueResponseBody":{"description":"Reference to an asset attribute value.","properties":{"id":{"description":"Attribute value ID.","example":"11111111-1111-4111-8111-111111111111","type":"string"}},"required":["id"],"type":"object"},"VendorPublicMoneyResponseBody":{"description":"Hourly labor rate in the organization's current currency.","properties":{"amount":{"description":"Nonnegative decimal amount.","example":"140.00","type":"string"},"currency":{"description":"Organization's ISO 4217 currency.","example":"USD","type":"string"}},"required":["amount","currency"],"type":"object"},"VendorPublicResolvedSettingsResponseBody":{"description":"Resolved settings; does not change the configured top-level fields.","properties":{"assetAttributeSelections":{"description":"Resolved attribute selections. System default empty.","items":{"$ref":"#/components/schemas/VendorPublicAttributeSelectionResponseBody"},"type":"array"},"assetAttributeSelectionsSource":{"description":"system, vendor, vendorLocation, or unknown.","example":"system","type":"string"},"defaultLaborRatePerHour":{"$ref":"#/components/schemas/VendorPublicMoneyResponseBody"},"defaultLaborRatePerHourSource":{"description":"system, vendor, vendorLocation, or unknown.","example":"system","type":"string"},"isActive":{"description":"Both location and parent, if present, are active.","example":false,"type":"boolean"},"isMobile":{"description":"Resolved mobile service. System default false.","example":false,"type":"boolean"},"isMobileSource":{"description":"system, vendor, vendorLocation, or unknown.","example":"system","type":"string"},"isPreferred":{"description":"Resolved preferred status. System default false.","example":false,"type":"boolean"},"isPreferredSource":{"description":"system, vendor, vendorLocation, or unknown.","example":"system","type":"string"}},"required":["assetAttributeSelections","assetAttributeSelectionsSource","defaultLaborRatePerHourSource","isActive","isMobile","isMobileSource","isPreferred","isPreferredSource"],"type":"object"},"VertexRequestBody":{"description":"The vertex of the polygon geofence. These geofence vertices describe the perimeter of the polygon, and must consist of at least 3 vertices and less than 40.","properties":{"latitude":{"description":"The latitude of a geofence vertex in decimal degrees.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"The longitude of a geofence vertex in decimal degrees.","example":137.7749,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"VertexResponseBody":{"description":"The vertex of the polygon geofence. These geofence vertices describe the perimeter of the polygon, and must consist of at least 3 vertices and less than 40.","properties":{"latitude":{"description":"The latitude of a geofence vertex in decimal degrees.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"The longitude of a geofence vertex in decimal degrees.","example":137.7749,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"VoiceCoachingSettingsObjectResponseBody":{"description":"Enabling voice coaching will play messages for harsh events, speeding, and unbuckled seat belts.","properties":{"eventsToCoach":{"description":"Selected driving events will be enabled for voice coaching. Harsh driving events include harsh acceleration and harsh brake.","example":["crash","inCabSpeeding","maximumSpeed"],"items":{"description":"Selected driving events will be enabled for voice coaching. Harsh driving events include harsh acceleration and harsh brake.  Valid values: `crash`, `inCabSpeeding`, `maximumSpeed`, `seatbeltUnbuckled`, `harshDriving`","enum":["crash","inCabSpeeding","maximumSpeed","seatbeltUnbuckled","harshDriving"],"example":"crash","type":"string"},"type":"array"},"isEnabled":{"description":"Indicates whether voice coaching is turned on.","example":true,"type":"boolean"},"language":{"description":"The coaching language. The default language is English.  Valid values: `english`, `spanish`, `dutch`, `englishUk`, `italian`, `french`, `german`","enum":["english","spanish","dutch","englishUk","italian","french","german"],"example":"english","type":"string"},"speedingThresholdMph":{"description":"Alert when speed is over this many miles per hour.","example":10,"format":"double","type":"number"}},"type":"object"},"WalkaroundPhotoObjectResponseBody":{"description":"Walkaround's photo object","properties":{"createdAtTime":{"description":"Time when walkaround's photo was created in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"name":{"description":"The name of the walkaround's photo","example":"Name 1","type":"string"},"url":{"description":"The URL to the walkaround's photo. Note: the link is available only for 24 hours after it's sent","example":"https://s3.samsara.com/samsara-driver-media-upload/walkaround-photo-path","type":"string"}},"required":["createdAtTime","name","url"],"type":"object"},"WatchpointBearingRangeTypeRequestBody":{"description":"Inclusive clockwise range for the vehicle's direction of travel, measured in degrees from true north. Endpoints must be finite, distinct, and in [0, 360). A start greater than the end wraps through north. When absent, observations are not filtered by direction of travel.","example":{"endDegrees":270,"startDegrees":90},"properties":{"endDegrees":{"description":"End bearing in degrees.","example":270,"maximum":359.99999999999994,"minimum":0,"type":"number"},"startDegrees":{"description":"Start bearing in degrees.","example":90,"maximum":359.99999999999994,"minimum":0,"type":"number"}},"required":["endDegrees","startDegrees"],"type":"object"},"WatchpointBearingRangeTypeResponseBody":{"description":"Inclusive clockwise range for the vehicle's direction of travel, measured in degrees from true north. Endpoints must be finite, distinct, and in [0, 360). A start greater than the end wraps through north. When absent, observations are not filtered by direction of travel.","example":{"endDegrees":270,"startDegrees":90},"properties":{"endDegrees":{"description":"End bearing in degrees.","example":270,"maximum":359.99999999999994,"minimum":0,"type":"number"},"startDegrees":{"description":"Start bearing in degrees.","example":90,"maximum":359.99999999999994,"minimum":0,"type":"number"}},"required":["endDegrees","startDegrees"],"type":"object"},"WatchpointCustomDetectionRequestTypeRequestBody":{"description":"Condition to detect in new Watchpoint observations.","properties":{"query":{"description":"Additional criteria narrowing the supported detection. Defaults to empty.","example":"Only flag work zones with visible workers wearing high-visibility clothing.","maxLength":280,"type":"string"},"type":{"description":"Supported detection type. Required; there is no default.  Valid values: `workZone`, `stoppedVehicle`, `vehicleCollision`, `roadObstruction`, `roadClosure`, `roadDefect`, `trafficSignalFault`","enum":["workZone","stoppedVehicle","vehicleCollision","roadObstruction","roadClosure","roadDefect","trafficSignalFault"],"example":"workZone","type":"string"}},"required":["type"],"type":"object"},"WatchpointCustomDetectionResponseTypeResponseBody":{"description":"Configured condition detected in new Watchpoint observations.","properties":{"query":{"description":"Normalized customer criteria. Defaults to empty.","example":"Only flag work zones with visible workers wearing high-visibility clothing.","maxLength":280,"type":"string"},"type":{"description":"Configured detection type. Returns unknown if the stored type is unsupported.  Valid values: `unknown`, `workZone`, `stoppedVehicle`, `vehicleCollision`, `roadObstruction`, `roadClosure`, `roadDefect`, `trafficSignalFault`","enum":["unknown","workZone","stoppedVehicle","vehicleCollision","roadObstruction","roadClosure","roadDefect","trafficSignalFault"],"example":"workZone","type":"string"}},"required":["type"],"type":"object"},"WatchpointLatLngTypeRequestBody":{"description":"Watchpoint latitude and longitude.","properties":{"latitude":{"example":37.7749,"maximum":90,"minimum":-90,"type":"number"},"longitude":{"example":-122.4194,"maximum":180,"minimum":-180,"type":"number"}},"required":["latitude","longitude"],"type":"object"},"WatchpointLatLngTypeResponseBody":{"description":"Watchpoint latitude and longitude.","properties":{"latitude":{"example":37.7749,"maximum":90,"minimum":-90,"type":"number"},"longitude":{"example":-122.4194,"maximum":180,"minimum":-180,"type":"number"}},"required":["latitude","longitude"],"type":"object"},"WebhookParamsObjectRequestBody":{"description":"The webhook configuration for an Action.","properties":{"payloadType":{"default":"enriched","description":"This determines the alert webhook payload type to use. Learn more: https://developers.samsara.com/docs/webhook-reference.  Valid values: `legacy`, `enriched`","enum":["legacy","enriched"],"example":"enriched","type":"string"},"webhookIds":{"description":"The webhook IDs.","example":["123","123","123","123"],"items":{"description":"The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is system generated.","example":"123","type":"string"},"type":"array"}},"required":["webhookIds"],"type":"object"},"WebhookParamsObjectResponseBody":{"description":"The webhook configuration for an Action.","properties":{"payloadType":{"default":"enriched","description":"This determines the alert webhook payload type to use. Learn more: https://developers.samsara.com/docs/webhook-reference.  Valid values: `legacy`, `enriched`","enum":["legacy","enriched"],"example":"enriched","type":"string"},"webhookIds":{"description":"The webhook IDs.","example":["123","123","123","123"],"items":{"description":"The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is system generated.","example":"123","type":"string"},"type":"array"}},"required":["webhookIds"],"type":"object"},"WebhookResponseResponseBody":{"description":"The response for POST/GET/PATCH a webhook","properties":{"customHeaders":{"description":"The list of custom headers that users can include with their request","items":{"$ref":"#/components/schemas/CustomHeadersObjectResponseBody"},"maxItems":5,"type":"array"},"eventTypes":{"description":"The list of event types associated with a particular webhook.","example":["AddressCreated","AddressCreated"],"items":{"description":"This is the name of the event type.  Valid values: `AddressCreated`, `AddressDeleted`, `AddressUpdated`, `AlertIncident`, `AlertObjectEvent`, `DocumentSubmitted`, `DriverCreated`, `DriverUpdated`, `DvirSubmitted`, `EngineFaultOff`, `EngineFaultOn`, `FormSubmitted`, `FormUpdated`, `GatewayUnplugged`, `GeofenceEntry`, `GeofenceExit`, `IssueCreated`, `MissingDvirPastDue`, `PredictiveMaintenanceAlert`, `RouteStopArrival`, `RouteStopDeparture`, `RouteStopEarlyLateArrival`, `RouteStopEtaUpdated`, `RouteStopResequence`, `SevereSpeedingEnded`, `SevereSpeedingStarted`, `ShipmentTrackingEvent`, `SpeedingEventEnded`, `SpeedingEventStarted`, `SuddenFuelLevelDrop`, `SuddenFuelLevelRise`, `VehicleCreated`, `VehicleUpdated`, `VisualSearchMatch`, `WorkOrderCreatedOrChanged`","enum":["AddressCreated","AddressDeleted","AddressUpdated","AlertIncident","AlertObjectEvent","DocumentSubmitted","DriverCreated","DriverUpdated","DvirSubmitted","EngineFaultOff","EngineFaultOn","FormSubmitted","FormUpdated","GatewayUnplugged","GeofenceEntry","GeofenceExit","IssueCreated","MissingDvirPastDue","PredictiveMaintenanceAlert","RouteStopArrival","RouteStopDeparture","RouteStopEarlyLateArrival","RouteStopEtaUpdated","RouteStopResequence","SevereSpeedingEnded","SevereSpeedingStarted","ShipmentTrackingEvent","SpeedingEventEnded","SpeedingEventStarted","SuddenFuelLevelDrop","SuddenFuelLevelRise","VehicleCreated","VehicleUpdated","VisualSearchMatch","WorkOrderCreatedOrChanged"],"example":"AddressCreated","type":"string"},"type":"array"},"id":{"description":"The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is the id of the webhook. This is system generated.","example":"23918","type":"string"},"name":{"description":"The name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Webhook-123","type":"string"},"secretKey":{"description":"The secret key of the webhook. This will appear in both Samsara’s cloud dashboard and the API.","example":"11121-31231-1231212","type":"string"},"url":{"description":"The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"https://www.webhook-123.com/webhook/listener","type":"string"},"version":{"description":"The version of the webhook.  Valid values: `2018-01-01`, `2021-06-09`","enum":["2018-01-01","2021-06-09"],"example":"2018-01-01","type":"string"}},"required":["id","name","secretKey","url","version"],"type":"object"},"WebhookRouteResponseObjectResponseBody":{"properties":{"actualRouteEndTime":{"description":"Actual end time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"actualRouteStartTime":{"description":"Actual start time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the route","example":"342341","type":"string"},"name":{"description":"Route name","example":"Bid 123","type":"string"},"notes":{"description":"Notes for the route","example":"These are my notes","type":"string"},"scheduledRouteEndTime":{"description":"Scheduled end time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledRouteStartTime":{"description":"Scheduled start time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"settings":{"$ref":"#/components/schemas/RouteSettingsResponseBody"},"stops":{"description":"List of stops along the route","items":{"$ref":"#/components/schemas/RoutesStopResponseObjectResponseBody"},"minItems":2,"type":"array"}},"required":["id"],"type":"object"},"WebhooksDeleteWebhookBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksDeleteWebhookUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookResponseBody":{"properties":{"customHeaders":{"description":"The list of custom headers that users can include with their request","items":{"$ref":"#/components/schemas/CustomHeadersObjectResponseBody"},"maxItems":5,"type":"array"},"eventTypes":{"description":"The list of event types associated with a particular webhook.","example":["AddressCreated","AddressCreated"],"items":{"description":"This is the name of the event type.  Valid values: `AddressCreated`, `AddressDeleted`, `AddressUpdated`, `AlertIncident`, `AlertObjectEvent`, `DocumentSubmitted`, `DriverCreated`, `DriverUpdated`, `DvirSubmitted`, `EngineFaultOff`, `EngineFaultOn`, `FormSubmitted`, `FormUpdated`, `GatewayUnplugged`, `GeofenceEntry`, `GeofenceExit`, `IssueCreated`, `MissingDvirPastDue`, `PredictiveMaintenanceAlert`, `RouteStopArrival`, `RouteStopDeparture`, `RouteStopEarlyLateArrival`, `RouteStopEtaUpdated`, `RouteStopResequence`, `SevereSpeedingEnded`, `SevereSpeedingStarted`, `ShipmentTrackingEvent`, `SpeedingEventEnded`, `SpeedingEventStarted`, `SuddenFuelLevelDrop`, `SuddenFuelLevelRise`, `VehicleCreated`, `VehicleUpdated`, `VisualSearchMatch`, `WorkOrderCreatedOrChanged`","enum":["AddressCreated","AddressDeleted","AddressUpdated","AlertIncident","AlertObjectEvent","DocumentSubmitted","DriverCreated","DriverUpdated","DvirSubmitted","EngineFaultOff","EngineFaultOn","FormSubmitted","FormUpdated","GatewayUnplugged","GeofenceEntry","GeofenceExit","IssueCreated","MissingDvirPastDue","PredictiveMaintenanceAlert","RouteStopArrival","RouteStopDeparture","RouteStopEarlyLateArrival","RouteStopEtaUpdated","RouteStopResequence","SevereSpeedingEnded","SevereSpeedingStarted","ShipmentTrackingEvent","SpeedingEventEnded","SpeedingEventStarted","SuddenFuelLevelDrop","SuddenFuelLevelRise","VehicleCreated","VehicleUpdated","VisualSearchMatch","WorkOrderCreatedOrChanged"],"example":"AddressCreated","type":"string"},"type":"array"},"id":{"description":"The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is the id of the webhook. This is system generated.","example":"23918","type":"string"},"name":{"description":"The name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Webhook-123","type":"string"},"secretKey":{"description":"The secret key of the webhook. This will appear in both Samsara’s cloud dashboard and the API.","example":"11121-31231-1231212","type":"string"},"url":{"description":"The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"https://www.webhook-123.com/webhook/listener","type":"string"},"version":{"description":"The version of the webhook.  Valid values: `2018-01-01`, `2021-06-09`","enum":["2018-01-01","2021-06-09"],"example":"2018-01-01","type":"string"}},"required":["id","name","secretKey","url","version"],"type":"object"},"WebhooksGetWebhookServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksGetWebhookUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksResponseBody":{"properties":{"data":{"description":"This is a list of Webhooks.","items":{"$ref":"#/components/schemas/WebhookResponseResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"WebhooksListWebhooksServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksListWebhooksUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookRequestBody":{"description":"This is the body of the webhook PATCH request.","properties":{"customHeaders":{"description":"The list of custom headers that users can include with their request","items":{"$ref":"#/components/schemas/CustomHeadersObjectRequestBody"},"maxItems":5,"type":"array"},"name":{"description":"The  name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Webhook-123","maxLength":255,"type":"string"},"url":{"description":"The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"https://www.webhook-123.com/webhook/listener","maxLength":2047,"type":"string"},"version":{"description":"The version of the webhook.  Valid values: `2018-01-01`, `2021-06-09`, `2022-09-13`, `2024-02-27`","enum":["2018-01-01","2021-06-09","2022-09-13","2024-02-27"],"example":"2018-01-01","type":"string"}},"type":"object"},"WebhooksPatchWebhookResponseBody":{"properties":{"customHeaders":{"description":"The list of custom headers that users can include with their request","items":{"$ref":"#/components/schemas/CustomHeadersObjectResponseBody"},"maxItems":5,"type":"array"},"eventTypes":{"description":"The list of event types associated with a particular webhook.","example":["AddressCreated","AddressCreated","AddressCreated","AddressCreated"],"items":{"description":"This is the name of the event type.  Valid values: `AddressCreated`, `AddressDeleted`, `AddressUpdated`, `AlertIncident`, `AlertObjectEvent`, `DocumentSubmitted`, `DriverCreated`, `DriverUpdated`, `DvirSubmitted`, `EngineFaultOff`, `EngineFaultOn`, `FormSubmitted`, `FormUpdated`, `GatewayUnplugged`, `GeofenceEntry`, `GeofenceExit`, `IssueCreated`, `MissingDvirPastDue`, `PredictiveMaintenanceAlert`, `RouteStopArrival`, `RouteStopDeparture`, `RouteStopEarlyLateArrival`, `RouteStopEtaUpdated`, `RouteStopResequence`, `SevereSpeedingEnded`, `SevereSpeedingStarted`, `ShipmentTrackingEvent`, `SpeedingEventEnded`, `SpeedingEventStarted`, `SuddenFuelLevelDrop`, `SuddenFuelLevelRise`, `VehicleCreated`, `VehicleUpdated`, `VisualSearchMatch`, `WorkOrderCreatedOrChanged`","enum":["AddressCreated","AddressDeleted","AddressUpdated","AlertIncident","AlertObjectEvent","DocumentSubmitted","DriverCreated","DriverUpdated","DvirSubmitted","EngineFaultOff","EngineFaultOn","FormSubmitted","FormUpdated","GatewayUnplugged","GeofenceEntry","GeofenceExit","IssueCreated","MissingDvirPastDue","PredictiveMaintenanceAlert","RouteStopArrival","RouteStopDeparture","RouteStopEarlyLateArrival","RouteStopEtaUpdated","RouteStopResequence","SevereSpeedingEnded","SevereSpeedingStarted","ShipmentTrackingEvent","SpeedingEventEnded","SpeedingEventStarted","SuddenFuelLevelDrop","SuddenFuelLevelRise","VehicleCreated","VehicleUpdated","VisualSearchMatch","WorkOrderCreatedOrChanged"],"example":"AddressCreated","type":"string"},"type":"array"},"id":{"description":"The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is the id of the webhook. This is system generated.","example":"23918","type":"string"},"name":{"description":"The name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Webhook-123","type":"string"},"secretKey":{"description":"The secret key of the webhook. This will appear in both Samsara’s cloud dashboard and the API.","example":"11121-31231-1231212","type":"string"},"url":{"description":"The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"https://www.webhook-123.com/webhook/listener","type":"string"},"version":{"description":"The version of the webhook.  Valid values: `2018-01-01`, `2021-06-09`","enum":["2018-01-01","2021-06-09"],"example":"2018-01-01","type":"string"}},"required":["id","name","secretKey","url","version"],"type":"object"},"WebhooksPatchWebhookServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPatchWebhookUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksRequestBody":{"description":"This is the body of the webhook POST request.","properties":{"customHeaders":{"description":"The list of custom headers that users can include with their request","items":{"$ref":"#/components/schemas/CustomHeadersObjectRequestBody"},"maxItems":5,"type":"array"},"eventTypes":{"description":"[beta] The list of event types associated with a particular event type","example":["DriverCreated","DriverCreated","DriverCreated","DriverCreated"],"items":{"description":"event type name  Valid values: `AddressCreated`, `AddressDeleted`, `AddressUpdated`, `AlertIncident`, `AlertObjectEvent`, `DocumentSubmitted`, `DriverCreated`, `DriverUpdated`, `DvirSubmitted`, `EngineFaultOff`, `EngineFaultOn`, `FormSubmitted`, `FormUpdated`, `GatewayUnplugged`, `GeofenceEntry`, `GeofenceExit`, `IssueCreated`, `MissingDvirPastDue`, `PredictiveMaintenanceAlert`, `RouteStopArrival`, `RouteStopDeparture`, `RouteStopEarlyLateArrival`, `RouteStopEtaUpdated`, `RouteStopResequence`, `SevereSpeedingEnded`, `SevereSpeedingStarted`, `ShipmentTrackingEvent`, `SpeedingEventEnded`, `SpeedingEventStarted`, `SuddenFuelLevelDrop`, `SuddenFuelLevelRise`, `VehicleCreated`, `VehicleUpdated`, `VisualSearchMatch`, `WorkOrderCreatedOrChanged`","enum":["AddressCreated","AddressDeleted","AddressUpdated","AlertIncident","AlertObjectEvent","DocumentSubmitted","DriverCreated","DriverUpdated","DvirSubmitted","EngineFaultOff","EngineFaultOn","FormSubmitted","FormUpdated","GatewayUnplugged","GeofenceEntry","GeofenceExit","IssueCreated","MissingDvirPastDue","PredictiveMaintenanceAlert","RouteStopArrival","RouteStopDeparture","RouteStopEarlyLateArrival","RouteStopEtaUpdated","RouteStopResequence","SevereSpeedingEnded","SevereSpeedingStarted","ShipmentTrackingEvent","SpeedingEventEnded","SpeedingEventStarted","SuddenFuelLevelDrop","SuddenFuelLevelRise","VehicleCreated","VehicleUpdated","VisualSearchMatch","WorkOrderCreatedOrChanged"],"example":"DriverCreated","type":"string"},"type":"array"},"name":{"description":"The  name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Webhook-123","maxLength":255,"type":"string"},"url":{"description":"The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"https://www.Webhook-123.com/webhook/listener","maxLength":2047,"type":"string"},"version":{"description":"The version of the webhook.  Valid values: `2018-01-01`, `2021-06-09`, `2022-09-13`, `2024-02-27`","enum":["2018-01-01","2021-06-09","2022-09-13","2024-02-27"],"example":"2018-01-01","type":"string"}},"required":["name","url"],"type":"object"},"WebhooksPostWebhooksResponseBody":{"properties":{"customHeaders":{"description":"The list of custom headers that users can include with their request","items":{"$ref":"#/components/schemas/CustomHeadersObjectResponseBody"},"maxItems":5,"type":"array"},"eventTypes":{"description":"The list of event types associated with a particular webhook.","example":["AddressCreated","AddressCreated"],"items":{"description":"This is the name of the event type.  Valid values: `AddressCreated`, `AddressDeleted`, `AddressUpdated`, `AlertIncident`, `AlertObjectEvent`, `DocumentSubmitted`, `DriverCreated`, `DriverUpdated`, `DvirSubmitted`, `EngineFaultOff`, `EngineFaultOn`, `FormSubmitted`, `FormUpdated`, `GatewayUnplugged`, `GeofenceEntry`, `GeofenceExit`, `IssueCreated`, `MissingDvirPastDue`, `PredictiveMaintenanceAlert`, `RouteStopArrival`, `RouteStopDeparture`, `RouteStopEarlyLateArrival`, `RouteStopEtaUpdated`, `RouteStopResequence`, `SevereSpeedingEnded`, `SevereSpeedingStarted`, `ShipmentTrackingEvent`, `SpeedingEventEnded`, `SpeedingEventStarted`, `SuddenFuelLevelDrop`, `SuddenFuelLevelRise`, `VehicleCreated`, `VehicleUpdated`, `VisualSearchMatch`, `WorkOrderCreatedOrChanged`","enum":["AddressCreated","AddressDeleted","AddressUpdated","AlertIncident","AlertObjectEvent","DocumentSubmitted","DriverCreated","DriverUpdated","DvirSubmitted","EngineFaultOff","EngineFaultOn","FormSubmitted","FormUpdated","GatewayUnplugged","GeofenceEntry","GeofenceExit","IssueCreated","MissingDvirPastDue","PredictiveMaintenanceAlert","RouteStopArrival","RouteStopDeparture","RouteStopEarlyLateArrival","RouteStopEtaUpdated","RouteStopResequence","SevereSpeedingEnded","SevereSpeedingStarted","ShipmentTrackingEvent","SpeedingEventEnded","SpeedingEventStarted","SuddenFuelLevelDrop","SuddenFuelLevelRise","VehicleCreated","VehicleUpdated","VisualSearchMatch","WorkOrderCreatedOrChanged"],"example":"AddressCreated","type":"string"},"type":"array"},"id":{"description":"The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is the id of the webhook. This is system generated.","example":"23918","type":"string"},"name":{"description":"The name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Webhook-123","type":"string"},"secretKey":{"description":"The secret key of the webhook. This will appear in both Samsara’s cloud dashboard and the API.","example":"11121-31231-1231212","type":"string"},"url":{"description":"The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"https://www.webhook-123.com/webhook/listener","type":"string"},"version":{"description":"The version of the webhook.  Valid values: `2018-01-01`, `2021-06-09`","enum":["2018-01-01","2021-06-09"],"example":"2018-01-01","type":"string"}},"required":["id","name","secretKey","url","version"],"type":"object"},"WebhooksPostWebhooksServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WebhooksPostWebhooksUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrderAssigneeObjectResponseBody":{"description":"A technician assigned to a work order.","properties":{"userId":{"description":"Samsara dashboard user ID of the assigned technician. Joinable against the public users API.","example":"67890","type":"string"}},"required":["userId"],"type":"object"},"WorkOrderAttachmentCreateResultResponseBody":{"description":"Created attachment and optional upload session.","properties":{"id":{"description":"ID of the attachment. Matches the id of the work order's attachments.","example":"0d5f0a5e-9b1a-4e3f-8a7b-2d5c6e9f0a1b","type":"string"},"uploadPut":{"$ref":"#/components/schemas/FunctionsStorageSignedUrlOfTypeResponseBody"}},"required":["id"],"type":"object"},"WorkOrderAttachmentFileRequestBody":{"description":"File to attach to a work order.","properties":{"base64Content":{"description":"Base64 encoded file content. Maximum decoded size: 7,864,320 bytes (7.5 MiB).","example":"JVBERi0xLjQKJeLjz9MKMyAwIG9iago8P...","type":"string"},"contentType":{"description":"MIME type of the file. Supported types: application/pdf, image/jpeg, image/png.","example":"application/pdf","type":"string"}},"required":["base64Content","contentType"],"type":"object"},"WorkOrderAttachmentObjectResponseBody":{"description":"Work Order Attachment object.","properties":{"id":{"description":"ID of the media record.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"processingStatus":{"description":"Status of the media record.  Valid values: `unknown`, `processing`, `finished`","enum":["unknown","processing","finished"],"example":"processing","type":"string"},"url":{"description":"URL containing a link to associated media content. Included if 'processingStatus' is 'finished'.","example":"https://samsara-forms-submission-media-uploads.s3.us-west-2.amazonaws.com/123456","format":"uri","type":"string"},"urlExpiresAt":{"description":"Expiration time of the media record 'url'. UTC timestamp in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["id","processingStatus"],"type":"object"},"WorkOrderDiscountObjectRequestBody":{"description":"How much a work order is discounted. Either money or basisPoints are specified.","properties":{"basisPoints":{"description":"The discount in basis points. 100 basis points = 1%.","example":500,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/WorkOrderMoneyObjectRequestBody"}},"type":"object"},"WorkOrderDiscountObjectResponseBody":{"description":"How much a work order is discounted. Either money or basisPoints are specified.","properties":{"basisPoints":{"description":"The discount in basis points. 100 basis points = 1%.","example":500,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"}},"type":"object"},"WorkOrderItemObjectRequestBody":{"description":"Work Order Related Item object.","properties":{"id":{"description":"ID of the item.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"type":{"description":"The type of item.  Valid values: `DVIR`, `FAULT`, `FORM`, `ISSUE`, `ITEM_TYPE_UNSPECIFIED`, `MAINTENANCE_PREDICTION_EVENT`, `SCHEDULED_MAINTENANCE`","enum":["DVIR","FAULT","FORM","ISSUE","ITEM_TYPE_UNSPECIFIED","MAINTENANCE_PREDICTION_EVENT","SCHEDULED_MAINTENANCE"],"example":"ISSUE","type":"string"}},"required":["id","type"],"type":"object"},"WorkOrderItemObjectResponseBody":{"description":"Work Order Related Item object.","properties":{"id":{"description":"ID of the item.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"type":{"description":"The type of item.  Valid values: `DVIR`, `FAULT`, `FORM`, `ISSUE`, `ITEM_TYPE_UNSPECIFIED`, `MAINTENANCE_PREDICTION_EVENT`, `SCHEDULED_MAINTENANCE`","enum":["DVIR","FAULT","FORM","ISSUE","ITEM_TYPE_UNSPECIFIED","MAINTENANCE_PREDICTION_EVENT","SCHEDULED_MAINTENANCE"],"example":"ISSUE","type":"string"}},"required":["id","type"],"type":"object"},"WorkOrderMaintenanceSiteObjectResponseBody":{"description":"The maintenance site (inventory location) where the work is performed.","properties":{"name":{"description":"Display name of the maintenance site.","example":"LAX Service Bay 3","type":"string"},"placeExternalIds":{"additionalProperties":{"type":"string"},"description":"External identifiers for the linked Place. Populated only when the request sets `includeExternalIds=true`.","example":{"Blanditiis laborum.":"Quis nesciunt excepturi voluptatem.","Occaecati repellendus.":"Adipisci velit nihil.","Placeat id.":"Totam ipsum quaerat."},"type":"object"},"placeId":{"description":"ID of the Place linked to this maintenance site. Joinable against the Places API. Omitted if the maintenance site is not linked to a place.","example":"123456","type":"string"}},"type":"object"},"WorkOrderMoneyObjectRequestBody":{"description":"A specified amount of money.","properties":{"amount":{"description":"Amount of the currency.","example":"94.01","type":"string"},"currency":{"description":"Type of the currency. We currently only support usd.  Valid values: `usd`","enum":["usd"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"WorkOrderMoneyObjectResponseBody":{"description":"A specified amount of money.","properties":{"amount":{"description":"Amount of the currency.","example":"94.01","type":"string"},"currency":{"description":"Type of the currency. We currently only support usd.  Valid values: `usd`","enum":["usd"],"example":"usd","type":"string"}},"required":["amount","currency"],"type":"object"},"WorkOrderObjectResponseBody":{"description":"A work order object.","properties":{"archivedAtTime":{"description":"The time the work order was archived in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"assetId":{"description":"The ID of the asset.","example":"12443","type":"string"},"assignedUserId":{"description":"The ID of the assigned mechanic.","example":"1234","type":"string"},"assignees":{"description":"Dashboard users assigned to the work order. Only returned for organizations with multiple work order assignees enabled. Technicians backed only by a driver are not represented.","items":{"$ref":"#/components/schemas/WorkOrderAssigneeObjectResponseBody"},"type":"array"},"attachments":{"description":"Files attached to the work order.","items":{"$ref":"#/components/schemas/WorkOrderAttachmentObjectResponseBody"},"type":"array"},"attributes":{"description":"Custom fields (attributes) set on the work order. Only returned when the request includes attributes.","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"category":{"description":"The category of the work order","example":"PREVENTIVE","type":"string"},"closingNotes":{"description":"Notes on the work order.","example":"Everything was fixed without issues.","type":"string"},"completedAtTime":{"description":"The time the work order was completed in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdAtTime":{"description":"The time the work order was created in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdByUserId":{"description":"The ID of the creator of the work order. On create, integrations may optionally set this to attribute Created-by UI and creator notifications to a dashboard user; the activity log still records the API token owner as the create actor when that override is used.","example":"1234","type":"string"},"description":{"description":"A description of what needs to be fixed.","example":"The vehicle is not starting.","type":"string"},"discount":{"$ref":"#/components/schemas/WorkOrderDiscountObjectResponseBody"},"dueAtTime":{"description":"The due date of the work order in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"engineHours":{"description":"The engine hours at the time of the work order.","example":91823,"format":"int64","type":"integer"},"id":{"description":"The unique id of the work order.","example":"5","type":"string"},"invoiceNumber":{"description":"The invoice number for the work order.","example":"123456","type":"string"},"items":{"description":"Items related to the work order.","items":{"$ref":"#/components/schemas/WorkOrderItemObjectResponseBody"},"type":"array"},"maintenanceSite":{"$ref":"#/components/schemas/WorkOrderMaintenanceSiteObjectResponseBody"},"odometerMeters":{"description":"The odometer reading at the time of the work order.","example":91823,"format":"int64","type":"integer"},"poNumber":{"description":"The purchase order number for the work order.","example":"123456","type":"string"},"priority":{"description":"The priority of the work order  Valid values: `High`, `Low`, `Medium`, `Urgent`","enum":["High","Low","Medium","Urgent"],"example":"HIGH","type":"string"},"serviceTaskInstances":{"description":"Service Tasks for the work order.","items":{"$ref":"#/components/schemas/ServiceTaskInstanceObjectResponseBody"},"type":"array"},"shopId":{"description":"ID of the shop associated with the work order. Omitted when the work order has no shop. This is independent of the maintenance site (`placeId`).","example":"shop-10482","type":"string"},"startedAtTime":{"description":"The time work started on the work order, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"status":{"description":"The status of the work order, including system-managed estimate workflow statuses.  Valid values: `Assigned`, `Awaiting estimate approval`, `Awaiting estimates`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `Estimate approval denied`, `Estimate approved`, `Estimates ready`, `In Progress`, `Needs Vendor Selection`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning`","enum":["Assigned","Awaiting estimate approval","Awaiting estimates","Cancelled","Closed","Completed","Estimate","Estimate approval denied","Estimate approved","Estimates ready","In Progress","Needs Vendor Selection","On Hold","Open","Pending Approval","Pending Parts","Planning"],"example":"OPEN","type":"string"},"tax":{"$ref":"#/components/schemas/WorkOrderTaxObjectResponseBody"},"unallocatedLabor":{"$ref":"#/components/schemas/WorkOrderUnallocatedLaborObjectResponseBody"},"updatedAtTime":{"description":"The time the work order was last updated in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"vendorUuid":{"description":"The vendor location UUID for the work order. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"},"workOrderTemplateIds":{"description":"IDs of the work order template(s) this work order was created from. May include templates that have since been deleted.","example":["5523a39f-42ef-4820-83d0-dfe73dbe7853","5523a39f-42ef-4820-83d0-dfe73dbe7853","5523a39f-42ef-4820-83d0-dfe73dbe7853"],"items":{"description":"The id of a work order template this work order was created from.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"},"type":"array"}},"required":["assetId","createdAtTime","id","status","updatedAtTime"],"type":"object"},"WorkOrderTaxCreateObjectRequestBody":{"description":"How much tax is applied to a work order. Either money or basisPoints are specified. If not provided, the default tax rate will be used.","properties":{"basisPoints":{"description":"The tax in basis points. 100 basis points = 1%.","example":700,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/WorkOrderMoneyObjectRequestBody"}},"type":"object"},"WorkOrderTaxObjectRequestBody":{"description":"How much tax is applied to a work order. Either money or basisPoints are specified.","properties":{"basisPoints":{"description":"The tax in basis points. 100 basis points = 1%.","example":700,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/WorkOrderMoneyObjectRequestBody"}},"type":"object"},"WorkOrderTaxObjectResponseBody":{"description":"How much tax is applied to a work order. Either money or basisPoints are specified.","properties":{"basisPoints":{"description":"The tax in basis points. 100 basis points = 1%.","example":700,"format":"int64","type":"integer"},"money":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"}},"type":"object"},"WorkOrderTemplateObjectResponseBody":{"description":"A work order template.","properties":{"id":{"description":"The unique id of the work order template.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"},"name":{"description":"The name of the work order template.","example":"PM Service - 5000mi","type":"string"}},"required":["id","name"],"type":"object"},"WorkOrderTimeEntryObjectResponseBody":{"description":"A technician time entry (work session) clocked in against a service task. Each entry records when a technician started and (if completed) finished working on the task. driverId and userId identify the Samsara driver and/or dashboard user linked to the technician who performed the work. Either, both, or neither may be present: a technician may be linked to a driver, a dashboard user, or both simultaneously, and both fields are omitted if the technician record could not be resolved (e.g. the technician was deleted).","properties":{"clockInAtTime":{"description":"Time the technician clocked in to this service task in RFC 3339 (UTC) format.","example":"2026-05-11T14:00:00Z","format":"date-time","type":"string"},"clockOutAtTime":{"description":"Time the technician clocked out of this service task in RFC 3339 (UTC) format. Null if the technician is still clocked in.","example":"2026-05-11T15:30:00Z","format":"date-time","type":"string"},"driverId":{"description":"Samsara driver ID linked to the technician who performed the work. Set when the technician has a linked driver. Joinable against the public drivers API.","example":"12345","type":"string"},"userId":{"description":"Samsara dashboard user ID linked to the technician who performed the work. Set when the technician has a linked dashboard user. Joinable against the public users API.","example":"67890","type":"string"}},"required":["clockInAtTime"],"type":"object"},"WorkOrderUnallocatedLaborObjectResponseBody":{"description":"Unallocated labor from time entries not associated with any service task.","properties":{"cost":{"$ref":"#/components/schemas/WorkOrderMoneyObjectResponseBody"},"timeMinutes":{"description":"The total unallocated labor time in minutes.","example":60,"format":"int64","type":"integer"}},"required":["cost","timeMinutes"],"type":"object"},"WorkOrderWithTimeEntriesObjectResponseBody":{"description":"A work order object.","properties":{"archivedAtTime":{"description":"The time the work order was archived in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"assetId":{"description":"The ID of the asset.","example":"12443","type":"string"},"assignedUserId":{"description":"The ID of the assigned mechanic.","example":"1234","type":"string"},"assignees":{"description":"Dashboard users assigned to the work order. Only returned for organizations with multiple work order assignees enabled. Technicians backed only by a driver are not represented.","items":{"$ref":"#/components/schemas/WorkOrderAssigneeObjectResponseBody"},"type":"array"},"attachments":{"description":"Files attached to the work order.","items":{"$ref":"#/components/schemas/WorkOrderAttachmentObjectResponseBody"},"type":"array"},"attributes":{"description":"Custom fields (attributes) set on the work order. Returned by the work order endpoints when includeAttributes is true, and in work order webhook and stream payloads when work order attributes are enabled for the organization.","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"category":{"description":"The category of the work order","example":"PREVENTIVE","type":"string"},"closingNotes":{"description":"Notes on the work order.","example":"Everything was fixed without issues.","type":"string"},"completedAtTime":{"description":"The time the work order was completed in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdAtTime":{"description":"The time the work order was created in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdByUserId":{"description":"The ID of the creator of the work order. On create, integrations may optionally set this to attribute Created-by UI and creator notifications to a dashboard user; the activity log still records the API token owner as the create actor when that override is used.","example":"1234","type":"string"},"description":{"description":"A description of what needs to be fixed.","example":"The vehicle is not starting.","type":"string"},"discount":{"$ref":"#/components/schemas/WorkOrderDiscountObjectResponseBody"},"dueAtTime":{"description":"The due date of the work order in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"engineHours":{"description":"The engine hours at the time of the work order.","example":91823,"format":"int64","type":"integer"},"externalId":{"description":"Identifier for this work order in a third-party system, as set when the work order was imported (for example a Fleetio or Eptura work order ID). Returned by the work order endpoints when the request sets `includeExternalIds=true`, and in work order webhook payloads, when the work order has an external ID. Use it to match imported work orders to their source records, for example before attaching files with POST /maintenance/work-orders/attachments. Only returned for organizations with this field enabled.","example":"WO-10482","type":"string"},"id":{"description":"The unique id of the work order.","example":"5","type":"string"},"invoiceNumber":{"description":"The invoice number for the work order.","example":"123456","type":"string"},"items":{"description":"Items related to the work order.","items":{"$ref":"#/components/schemas/WorkOrderItemObjectResponseBody"},"type":"array"},"maintenanceSite":{"$ref":"#/components/schemas/WorkOrderMaintenanceSiteObjectResponseBody"},"odometerMeters":{"description":"The odometer reading at the time of the work order.","example":91823,"format":"int64","type":"integer"},"poNumber":{"description":"The purchase order number for the work order.","example":"123456","type":"string"},"priority":{"description":"The priority of the work order  Valid values: `High`, `Low`, `Medium`, `Urgent`","enum":["High","Low","Medium","Urgent"],"example":"HIGH","type":"string"},"serviceTaskInstances":{"description":"Service Tasks for the work order.","items":{"$ref":"#/components/schemas/ServiceTaskInstanceWithTimeEntriesObjectResponseBody"},"type":"array"},"shopId":{"description":"ID of the shop associated with the work order. Omitted when the work order has no shop. This is independent of the maintenance site (`placeId`).","example":"shop-10482","type":"string"},"startedAtTime":{"description":"The time work started on the work order, in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"status":{"description":"The status of the work order, including system-managed estimate workflow statuses.  Valid values: `Assigned`, `Awaiting estimate approval`, `Awaiting estimates`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `Estimate approval denied`, `Estimate approved`, `Estimates ready`, `In Progress`, `Needs Vendor Selection`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning`","enum":["Assigned","Awaiting estimate approval","Awaiting estimates","Cancelled","Closed","Completed","Estimate","Estimate approval denied","Estimate approved","Estimates ready","In Progress","Needs Vendor Selection","On Hold","Open","Pending Approval","Pending Parts","Planning"],"example":"OPEN","type":"string"},"tax":{"$ref":"#/components/schemas/WorkOrderTaxObjectResponseBody"},"unallocatedLabor":{"$ref":"#/components/schemas/WorkOrderUnallocatedLaborObjectResponseBody"},"updatedAtTime":{"description":"The time the work order was last updated in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"vendorUuid":{"description":"The vendor location UUID for the work order. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"},"workOrderTemplateIds":{"description":"IDs of the work order template(s) this work order was created from. May include templates that have since been deleted.","example":["5523a39f-42ef-4820-83d0-dfe73dbe7853","5523a39f-42ef-4820-83d0-dfe73dbe7853"],"items":{"description":"The id of a work order template this work order was created from.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"},"type":"array"}},"required":["assetId","createdAtTime","id","status","updatedAtTime"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentConflictErrorResponseBody":{"description":"Write conflict","properties":{"message":{"description":"Message of error","example":"Shift version changed.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteMaintenanceWorkOrderAttachmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersDeleteWorkOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksResponseBody":{"properties":{"data":{"description":"Service Task Definitions","items":{"$ref":"#/components/schemas/ServiceTaskDefinitionObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"WorkOrdersGetServiceTasksServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetServiceTasksUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesResponseBody":{"properties":{"data":{"description":"Work order templates.","items":{"$ref":"#/components/schemas/WorkOrderTemplateObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrderTemplatesUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersResponseBody":{"properties":{"data":{"description":"Work Orders","items":{"$ref":"#/components/schemas/WorkOrderWithTimeEntriesObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"WorkOrdersGetWorkOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersGetWorkOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersRequestBody":{"description":"Work Order Request.","properties":{"archivedAtTime":{"description":"The historical time the work order was archived (closed or cancelled), in RFC 3339 format. Is automatically set when the status changes to Closed or Cancelled and this field is not provided.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"assignedUserId":{"description":"The ID of the assigned mechanic.","example":"1234","type":"string"},"attributes":{"description":"A list of custom fields (attributes) to assign to the work order. If provided, this replaces the work order's entire set of attribute associations with exactly this list; omit this field to leave existing attribute associations unchanged, or pass an empty array to clear them. Each entry requires the attribute `id`. Use `stringValues` for text, single-select, and multi-select attributes, `numberValues` for number attributes, and `dateValues` (YYYY-MM-DD) for date attributes. For single-select and multi-select attributes, send the text of a defined option. The request is rejected if any attribute or value is invalid. Only available for organizations with work order custom fields enabled.","items":{"$ref":"#/components/schemas/GoaAttributeTinyRequestBody"},"type":"array"},"category":{"description":"The category of the work order","example":"PREVENTIVE","type":"string"},"closingNotes":{"description":"Notes on the work order.","example":"Everything was fixed without issues.","type":"string"},"completedAtTime":{"description":"The time the work order was completed in RFC 3339 format. Is automatically set when the status changes and this field is not provided.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"description":{"description":"A description of what needs to be fixed.","example":"The vehicle is not starting.","type":"string"},"discount":{"$ref":"#/components/schemas/WorkOrderDiscountObjectRequestBody"},"dueAtTime":{"description":"The due date of the work order in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"engineHours":{"description":"The engine hours at the time of the work order. Will default to current asset reading if unset.","example":91823,"format":"int64","type":"integer"},"id":{"description":"The unique id of the work order.","example":"5","type":"string"},"invoiceNumber":{"description":"The invoice number for the work order.","example":"123456","type":"string"},"items":{"description":"Items related to the work order.","items":{"$ref":"#/components/schemas/WorkOrderItemObjectRequestBody"},"type":"array"},"odometerMeters":{"description":"The odometer reading at the time of the work order. Will default to current asset reading if unset.","example":91823,"format":"int64","type":"integer"},"placeExternalId":{"description":"External ID (`key:value`) of the Place where the work is performed. Resolved against the organization's external IDs for places. Send an empty string to clear the maintenance site on the work order. Mutually exclusive with `placeId`.","example":"erpId:STORE-442","type":"string"},"placeId":{"description":"ID of the Place where the work is performed. Must reference a Place returned by the Places API that is linked to a maintenance site in the organization. Send an empty string to clear the maintenance site on the work order. Mutually exclusive with `placeExternalId`.","example":"123456","type":"string"},"poNumber":{"description":"The purchase order number for the work order.","example":"123456","type":"string"},"priority":{"description":"The priority of the work order  Valid values: `High`, `Low`, `Medium`, `Urgent`","enum":["High","Low","Medium","Urgent"],"example":"HIGH","type":"string"},"serviceTaskInstances":{"description":"Service Tasks for the work order.","items":{"$ref":"#/components/schemas/ServiceTaskInstanceInputObjectRequestBody"},"type":"array"},"shopId":{"description":"ID of the shop associated with the work order. Omit this field to keep the shop already stored on the work order. Send an empty string to clear it. This is independent of the maintenance site (`placeId`).","example":"shop-10482","type":"string"},"startedAtTime":{"description":"The historical time work started on the work order, in RFC 3339 format. Is automatically set when the status changes to an in-progress status and this field is not provided.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"status":{"description":"The user-selectable status of the work order. Estimate workflow statuses are system-managed; use the estimate API for approval and award actions.  Valid values: `Assigned`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `In Progress`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning`","enum":["Assigned","Cancelled","Closed","Completed","Estimate","In Progress","On Hold","Open","Pending Approval","Pending Parts","Planning"],"example":"OPEN","type":"string"},"tax":{"$ref":"#/components/schemas/WorkOrderTaxObjectRequestBody"},"vendorUuid":{"description":"The vendor location UUID for the work order. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"}},"required":["id"],"type":"object"},"WorkOrdersPatchWorkOrdersResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/WorkOrderObjectResponseBody"}},"required":["data"],"type":"object"},"WorkOrdersPatchWorkOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPatchWorkOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanRequestBody":{"description":"Invoice scan request","properties":{"assetId":{"description":"Asset ID to create a new work order for the invoice. Provide either workOrderId OR assetId, but not both. If assetId is provided, a new work order will be created for that asset. If workOrderId is provided instead, the invoice will be attached to the existing work order.","example":"281474993384538","type":"string"},"file":{"$ref":"#/components/schemas/InvoiceScanFileRequestBody"},"workOrderId":{"description":"Work order ID to attach the invoice to an existing work order. Provide either workOrderId OR assetId, but not both. If workOrderId is provided, the invoice will be attached to the existing work order. If assetId is provided instead, a new work order will be created for that asset.","example":"123456","type":"string"}},"required":["file"],"type":"object"},"WorkOrdersPostInvoiceScanResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/PostInvoiceScanResponseDataResponseBody"}},"required":["data"],"type":"object"},"WorkOrdersPostInvoiceScanServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostInvoiceScanUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentRequestBody":{"description":"Work order attachment request","properties":{"file":{"$ref":"#/components/schemas/WorkOrderAttachmentFileRequestBody"},"upload":{"$ref":"#/components/schemas/MaintenanceAttachmentUploadRequestBody"},"workOrderId":{"description":"ID of the work order to attach the file to.","example":"123456","type":"string"}},"required":["workOrderId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/WorkOrderAttachmentCreateResultResponseBody"}},"required":["data"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrderAttachmentUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersRequestBody":{"description":"Work Order Request","properties":{"archivedAtTime":{"description":"The historical time the work order was archived (closed or cancelled), in RFC 3339 format. Is automatically set when the status is Closed or Cancelled and this field is not provided.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"assetId":{"description":"The ID of the asset. Either a Samsara ID or an external ID in `key:value` form, for example `vin:1HGCM82633A004352`.","example":"12443","type":"string"},"assignedUserId":{"description":"The ID of the assigned mechanic.","example":"1234","type":"string"},"attributes":{"description":"A list of custom fields (attributes) to assign to the work order. Each entry requires the attribute `id`. Use `stringValues` for text, single-select, and multi-select attributes, `numberValues` for number attributes, and `dateValues` (YYYY-MM-DD) for date attributes. For single-select and multi-select attributes, send the text of a defined option. The request is rejected if any attribute or value is invalid. Only available for organizations with work order custom fields enabled.","items":{"$ref":"#/components/schemas/GoaAttributeTinyRequestBody"},"type":"array"},"category":{"description":"The category of the work order","example":"PREVENTIVE","type":"string"},"completedAtTime":{"description":"The historical time the work order was completed, in RFC 3339 format. Is automatically set when the status is Closed or Completed and this field is not provided.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"createdByUserId":{"description":"ID of the dashboard user to attribute as the work order creator for display and creator notifications. Does not change who is recorded as the API actor in the activity log. Must be a user in the organization. When omitted, defaults to the API token owner. Accepted only when the organization has the create-created-by feature enabled.","example":"1234","type":"string"},"description":{"description":"A description of what needs to be fixed.","example":"The vehicle is not starting.","type":"string"},"discount":{"$ref":"#/components/schemas/WorkOrderDiscountObjectRequestBody"},"dueAtTime":{"description":"The due date of the work order in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"engineHours":{"description":"The engine hours at the time of the work order. Will default to current asset reading if unset.","example":91823,"format":"int64","type":"integer"},"invoiceNumber":{"description":"The invoice number for the work order.","example":"123456","type":"string"},"items":{"description":"Items related to the work order.","items":{"$ref":"#/components/schemas/WorkOrderItemObjectRequestBody"},"type":"array"},"odometerMeters":{"description":"The odometer reading at the time of the work order. Will default to current asset reading if unset.","example":91823,"format":"int64","type":"integer"},"placeExternalId":{"description":"External ID (`key:value`) of the Place where the work is performed. Resolved against the organization's external IDs for places; the resolved Place must be linked to a maintenance site. Mutually exclusive with `placeId`.","example":"erpId:STORE-442","type":"string"},"placeId":{"description":"ID of the Place where the work is performed. Must reference a Place returned by the Places API that is linked to a maintenance site in the organization. Mutually exclusive with `placeExternalId`.","example":"123456","type":"string"},"poNumber":{"description":"The purchase order number for the work order.","example":"123456","type":"string"},"priority":{"description":"The priority of the work order  Valid values: `High`, `Low`, `Medium`, `Urgent`","enum":["High","Low","Medium","Urgent"],"example":"HIGH","type":"string"},"serviceTaskInstances":{"description":"Service Tasks for the work order.","items":{"$ref":"#/components/schemas/ServiceTaskInstanceInputObjectRequestBody"},"type":"array"},"shopId":{"description":"ID of the shop associated with the work order. Omit to create the work order without a shop. This is independent of the maintenance site (`placeId`).","example":"shop-10482","type":"string"},"startedAtTime":{"description":"The historical time work started on the work order, in RFC 3339 format. Is automatically set when the status is an in-progress status and this field is not provided.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"status":{"description":"The initial user-selectable status of the work order. Defaults to Open when not provided. Estimate workflow statuses are system-managed and cannot be set directly.  Valid values: `Assigned`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `In Progress`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning`","enum":["Assigned","Cancelled","Closed","Completed","Estimate","In Progress","On Hold","Open","Pending Approval","Pending Parts","Planning"],"example":"OPEN","type":"string"},"tax":{"$ref":"#/components/schemas/WorkOrderTaxCreateObjectRequestBody"},"vendorUuid":{"description":"The vendor location UUID for the work order. Resolve the location via GET /fleet/maintenance/vendor-locations.","example":"5523a39f-42ef-4820-83d0-dfe73dbe7853","type":"string"}},"required":["assetId"],"type":"object"},"WorkOrdersPostWorkOrdersResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/WorkOrderObjectResponseBody"}},"required":["data"],"type":"object"},"WorkOrdersPostWorkOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersPostWorkOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersBadGatewayErrorResponseBody":{"description":"Bad Gateway","properties":{"message":{"description":"Message of error","example":"rpc error: code = Unknown desc = connection refused","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersBadRequestErrorResponseBody":{"description":"Bad Request parameters","properties":{"message":{"description":"Message of error","example":"Invalid value for parameter.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersContentTooLargeErrorResponseBody":{"description":"Content Too Large","properties":{"message":{"description":"Message of error","example":"Request content too large.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersGatewayTimeoutErrorResponseBody":{"description":"Gateway timeout","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersInternalServerErrorResponseBody":{"description":"An internal server error occurred","properties":{"message":{"description":"Message of error","example":"Failed to execute GraphQL query.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersMethodNotAllowedErrorResponseBody":{"description":"Method not allowed","properties":{"message":{"description":"Message of error","example":"DELETE not allowed on /endpoint.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersNotFoundErrorResponseBody":{"description":"Resource not found","properties":{"message":{"description":"Message of error","example":"Object not found.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersNotImplementedErrorResponseBody":{"description":"Requested endpoint is not yet implemented","properties":{"message":{"description":"Message of error","example":"Not implemented.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersResponseBody":{"properties":{"data":{"description":"Work Orders","items":{"$ref":"#/components/schemas/WorkOrderWithTimeEntriesObjectResponseBody"},"type":"array"},"pagination":{"$ref":"#/components/schemas/GoaPaginationResponseResponseBody"}},"required":["data","pagination"],"type":"object"},"WorkOrdersStreamWorkOrdersServiceUnavailableErrorResponseBody":{"description":"Service unavailable","properties":{"message":{"description":"Message of error","example":"context deadline exceeded","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersTooManyRequestsErrorResponseBody":{"description":"Too many requests","properties":{"message":{"description":"Message of error","example":"Exceeded rate limit.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkOrdersStreamWorkOrdersUnauthorizedErrorResponseBody":{"description":"Unauthorized","properties":{"message":{"description":"Message of error","example":"Invalid token.","type":"string"},"requestId":{"description":"The request ID; used when reaching out to support for issues with requests.","example":"8916e1c1","type":"string"}},"required":["message","requestId"],"type":"object"},"WorkerSafetySosDataResponseBody":{"description":"Details specific to Worker Safety SOS.","properties":{"driver":{"$ref":"#/components/schemas/alertObjectDriverResponseBody"},"location":{"$ref":"#/components/schemas/EventLocationResponseBody"},"sourceType":{"description":"The source of the SOS signal.  Valid values: `appSos`, `noResponseCheckIn`, `wearableSos`, `fallDetected`","enum":["appSos","noResponseCheckIn","wearableSos","fallDetected"],"example":"appSos","type":"string"},"vehicle":{"$ref":"#/components/schemas/alertObjectVehicleResponseBody"},"workerSafetyIncidentUrl":{"description":"URL of the Worker Safety incident in the cloud dashboard.","example":"https://cloud.samsara.com/o/1/fleet/worker/incidents/9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"}},"required":["sourceType","workerSafetyIncidentUrl"],"type":"object"},"WorkflowAddressEventWithGeofenceObjectResponseBody":{"description":"A minimal Address object representation used in AddressEventObject objects","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"formattedAddress":{"description":"The full street address for this address/geofence, as it might be recognized by Google Maps.","example":"350 Rhode Island St, San Francisco, CA","type":"string"},"geofence":{"$ref":"#/components/schemas/WorkflowGeofenceResponseBody"},"id":{"description":"Id of the address","example":"494123","type":"string"},"name":{"description":"Name of the address","example":"Company Office #1","type":"string"}},"required":["formattedAddress","id","name"],"type":"object"},"WorkflowAuthorSignatureObjectResponseBody":{"description":"An author signature for DVIRs with a signed time.","properties":{"signatoryUser":{"$ref":"#/components/schemas/WorkflowSignatoryUserObjectResponseBody"},"signedAtTime":{"description":"The time when the DVIR was signed. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"type":{"description":"Whether the DVIR was submitted by a driver or mechanic.  Valid values: `driver`, `mechanic`","enum":["driver","mechanic"],"example":"driver","type":"string"}},"required":["signatoryUser","signedAtTime","type"],"type":"object"},"WorkflowCircleResponseBody":{"description":"Information about a circular geofence. This field is only needed if the geofence is a circle.","properties":{"latitude":{"description":"Latitude of the address. Will be geocoded from formattedAddress if not provided.","example":37.7749,"format":"double","type":"number"},"longitude":{"description":"Longitude of the address. Will be geocoded from formattedAddress if not provided.","example":137.7749,"format":"double","type":"number"},"radiusMeters":{"description":"The radius of the circular geofence in meters.","example":23,"format":"int64","type":"integer"}},"required":["radiusMeters"],"type":"object"},"WorkflowDvirObjectResponseBody":{"description":"A DVIR description","properties":{"authorSignature":{"$ref":"#/components/schemas/WorkflowAuthorSignatureObjectResponseBody"},"defects":{"description":"Defects registered for the DVIR.","items":{"$ref":"#/components/schemas/DvirDefectsObject_v2022_09_13ResponseBody"},"type":"array"},"endTime":{"description":"Time when the driver signed and completed this DVIR. UTC timestamp in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"formattedLocation":{"description":"Optional string if your jurisdiction requires a location of the DVIR.","example":"350 Rhode Island St Ste. 400S, San Francisco, CA 94103","type":"string"},"id":{"description":"The unique id of the DVIR","example":"12345","type":"string"},"mechanicNotes":{"description":"The mechanics notes on the DVIR.","example":"Replaced headlight on passenger side.","type":"string"},"needsCorrection":{"description":"Indicates if a defect needs correction.","example":false,"type":"boolean"},"odometerMeters":{"description":"The odometer reading in meters.","example":91823,"format":"int64","type":"integer"},"safetyStatus":{"description":"The condition of vehicle on which DVIR was done.  Valid values: `safe`, `unsafe`, `resolved`","enum":["safe","unsafe","resolved"],"example":"unsafe","type":"string"},"secondSignature":{"$ref":"#/components/schemas/WorkflowAuthorSignatureObjectResponseBody"},"startTime":{"description":"Time when driver began filling out this DVIR in RFC 3339 format.","example":"2020-01-27T07:06:25Z","type":"string"},"thirdSignature":{"$ref":"#/components/schemas/WorkflowAuthorSignatureObjectResponseBody"},"trailer":{"$ref":"#/components/schemas/GoaTrailerTinyResponseResponseBody"},"type":{"description":"Inspection type of the DVIR.  Valid values: `preTrip`, `postTrip`, `mechanic`, `unspecified`","enum":["preTrip","postTrip","mechanic","unspecified"],"example":"mechanic","type":"string"}},"required":["authorSignature","endTime","id","needsCorrection","safetyStatus","startTime","type"],"type":"object"},"WorkflowDvirSubmittedResponseObjectResponseBody":{"description":"Details specific to DVIR Submitted.","properties":{"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"dvir":{"$ref":"#/components/schemas/WorkflowDvirObjectResponseBody"},"vehicle":{"$ref":"#/components/schemas/VehicleWithGatewayTinyResponseResponseBody"}},"type":"object"},"WorkflowGeofenceEventResponseObjectResponseBody":{"properties":{"address":{"$ref":"#/components/schemas/WorkflowAddressEventWithGeofenceObjectResponseBody"},"fuelVolume":{"$ref":"#/components/schemas/fuelVolumeResponseBody"},"vehicle":{"$ref":"#/components/schemas/VehicleWithGatewayTinyResponseResponseBody"}},"type":"object"},"WorkflowGeofenceResponseBody":{"description":"The geofence that defines this address and its bounds. This can either be a circle or a polygon, but not both.","properties":{"circle":{"$ref":"#/components/schemas/WorkflowCircleResponseBody"},"polygon":{"$ref":"#/components/schemas/WorkflowPolygonResponseBody"},"settings":{"$ref":"#/components/schemas/SettingsResponseBody"}},"type":"object"},"WorkflowIncidentConditionObjectResponseBody":{"description":"Object representing the granular details of the condition. These details will vary depending on the condition.","properties":{"description":{"description":"Descriptive name of the condition.","example":"Alert Type Description","type":"string"},"details":{"$ref":"#/components/schemas/WorkflowIncidentDetailsObjectResponseBody"},"triggerId":{"description":"Unique identifier describing the type of condition being represented.","example":1000,"format":"int64","type":"integer"}},"required":["description","details","triggerId"],"type":"object"},"WorkflowIncidentDetailsObjectResponseBody":{"description":"Object representing the granular details of the condition. These details will vary depending on the condition.","properties":{"ambientTemperature":{"$ref":"#/components/schemas/AmbientTemperatureResponseBody"},"cameraConnectorDisconected":{"$ref":"#/components/schemas/CameraConnectorDisconectedResponseBody"},"cameraStreamIssue":{"$ref":"#/components/schemas/CameraStreamIssueResponseBody"},"cellSignalLoss":{"$ref":"#/components/schemas/CellSignalLossResponseBody"},"cloudBackupUploadIssue":{"$ref":"#/components/schemas/CloudBackupUploadIssueResponseBody"},"dashcamDisconnected":{"$ref":"#/components/schemas/DashcamDisconnectedResponseBody"},"dataInputValue":{"$ref":"#/components/schemas/DataInputValueResponseBody"},"deviceMovement":{"$ref":"#/components/schemas/DeviceMovementDataResponseBody"},"deviceMovementStopped":{"$ref":"#/components/schemas/DeviceMovementStoppedDataResponseBody"},"doorOpen":{"$ref":"#/components/schemas/DoorOpenResponseBody"},"driverAppSignIn":{"$ref":"#/components/schemas/DriverAppSignInResponseBody"},"driverAppSignOut":{"$ref":"#/components/schemas/DriverAppSignOutResponseBody"},"driverDocumentSubmitted":{"$ref":"#/components/schemas/DriverDocumentSubmittedResponseBody"},"driverMessageReceived":{"$ref":"#/components/schemas/DriverMessageReceivedResponseBody"},"driverMessageSent":{"$ref":"#/components/schemas/DriverMessageSentResponseBody"},"driverRecorded":{"$ref":"#/components/schemas/DriverRecordedResponseBody"},"dvirSubmittedDevice":{"$ref":"#/components/schemas/WorkflowDvirSubmittedResponseObjectResponseBody"},"engineIdle":{"$ref":"#/components/schemas/EngineIdleDataResponseBody"},"engineOff":{"$ref":"#/components/schemas/EngineOffResponseBody"},"engineOn":{"$ref":"#/components/schemas/EngineOnResponseBody"},"formSubmitted":{"$ref":"#/components/schemas/FormSubmittedResponseBody"},"formUpdated":{"$ref":"#/components/schemas/FormUpdatedResponseBody"},"fuelLevelPercentage":{"$ref":"#/components/schemas/FuelLevelPercentageResponseBody"},"gatewayDisconnected":{"$ref":"#/components/schemas/GatewayDisconnectedResponseBody"},"gatewayUnplugged":{"$ref":"#/components/schemas/GatewayWithVehicleTinyResponseResponseBody"},"geofenceEntry":{"$ref":"#/components/schemas/WorkflowGeofenceEventResponseObjectResponseBody"},"geofenceExit":{"$ref":"#/components/schemas/WorkflowGeofenceEventResponseObjectResponseBody"},"gpsSignalLoss":{"$ref":"#/components/schemas/GpsSignalLossResponseBody"},"harshEvent":{"$ref":"#/components/schemas/HarshEventDataResponseBody"},"hosDutyStatus":{"$ref":"#/components/schemas/HosDutyStatusDataResponseBody"},"hosViolation":{"$ref":"#/components/schemas/HosViolationDataResponseBody"},"inactivity":{"$ref":"#/components/schemas/InactivityResponseBody"},"insideGeofence":{"$ref":"#/components/schemas/InsideGeofenceDataResponseBody"},"issueCreated":{"$ref":"#/components/schemas/IssueCreatedResponseBody"},"jammingDetected":{"$ref":"#/components/schemas/JammingDetectedResponseBody"},"missingDvirPastDue":{"$ref":"#/components/schemas/MissingDvirPastDueResponseBody"},"motionDetected":{"$ref":"#/components/schemas/MotionDetectedResponseBody"},"outOfRoute":{"$ref":"#/components/schemas/OutOfRouteResponseBody"},"outOfSequenceStopArrival":{"$ref":"#/components/schemas/OutOfSequenceStopArrivalDataResponseBody"},"outsideGeofence":{"$ref":"#/components/schemas/OutsideGeofenceDataResponseBody"},"panicButton":{"$ref":"#/components/schemas/PanicButtonResponseBody"},"personDetected":{"$ref":"#/components/schemas/PersonDetectedResponseBody"},"preventiveMaintenanceScheduleDue":{"$ref":"#/components/schemas/PreventiveMaintenanceScheduleDueDataResponseBody"},"reading":{"$ref":"#/components/schemas/ReadingTriggerDetailsResponseBody"},"reeferTemperature":{"$ref":"#/components/schemas/ReeferTemperatureResponseBody"},"routeStartDelayed":{"$ref":"#/components/schemas/RouteStartDelayedDataResponseBody"},"routeStopArrival":{"$ref":"#/components/schemas/RouteStopDetailsObjectResponseBody"},"routeStopDeparture":{"$ref":"#/components/schemas/RouteStopDetailsObjectResponseBody"},"routeStopETA":{"$ref":"#/components/schemas/RouteStopETAResponseBody"},"routeStopEarlyLateArrival":{"$ref":"#/components/schemas/RouteStopEarlyLateArrivalDataResponseBody"},"scheduledMaintenance":{"$ref":"#/components/schemas/ScheduledMaintenanceDataResponseBody"},"scheduledMaintenanceByEngineHours":{"$ref":"#/components/schemas/ScheduledMaintenanceByEngineHoursResponseBody"},"scheduledMaintenanceOdometer":{"$ref":"#/components/schemas/ScheduledMaintenanceOdometerDataResponseBody"},"severeSpeeding":{"$ref":"#/components/schemas/SevereSpeedingStartedResponseObjectResponseBody"},"siteGatewayDisconnected":{"$ref":"#/components/schemas/SiteGatewayDisconnectedResponseBody"},"speed":{"$ref":"#/components/schemas/SpeedDataResponseBody"},"suddenFuelLevelDrop":{"$ref":"#/components/schemas/SuddenFuelLevelDropResponseBody"},"suddenFuelLevelRise":{"$ref":"#/components/schemas/SuddenFuelLevelRiseResponseBody"},"tamperingDetected":{"$ref":"#/components/schemas/TamperingDetectedResponseBody"},"thermographTemperature":{"$ref":"#/components/schemas/ThermographTemperatureResponseBody"},"tireFaults":{"$ref":"#/components/schemas/TireFaultsResponseBody"},"trailerMovingWithoutPower":{"$ref":"#/components/schemas/TrailerMovingWithoutPowerDataResponseBody"},"unassignedDriving":{"$ref":"#/components/schemas/UnassignedDrivingDataResponseBody"},"vehicleBatteryVoltage":{"$ref":"#/components/schemas/VehicleBatteryVoltageResponseBody"},"vehicleDefLevelPercentage":{"$ref":"#/components/schemas/VehicleDefLevelPercentageResponseBody"},"vehicleDetected":{"$ref":"#/components/schemas/VehicleDetectedResponseBody"},"vehicleFaults":{"$ref":"#/components/schemas/VehicleFaultsResponseBody"},"vehicleTrailerMismatch":{"$ref":"#/components/schemas/VehicleTrailerMismatchDataResponseBody"},"workerSafetySos":{"$ref":"#/components/schemas/WorkerSafetySosDataResponseBody"}},"type":"object"},"WorkflowPolygonResponseBody":{"description":"Information about a polygon geofence. This field is only needed if the geofence is a polygon.","properties":{"vertices":{"description":"The vertices of the polygon geofence. These geofence vertices describe the perimeter of the polygon, and must consist of at least 3 vertices and less than 40.","items":{"$ref":"#/components/schemas/VertexResponseBody"},"type":"array"}},"type":"object"},"WorkflowSignatoryUserObjectResponseBody":{"description":"The user who signed the DVIR.","properties":{"id":{"description":"ID of the user.","example":"938172","type":"string"},"name":{"description":"Name of the user.","example":"Joe Driver","type":"string"}},"required":["id","name"],"type":"object"},"WorkflowTriggerObjectRequestBody":{"description":"The trigger of an alert.","properties":{"triggerParams":{"$ref":"#/components/schemas/TriggerParamsObjectRequestBody"},"triggerTypeId":{"description":"The id of the trigger type. Reference the following list for the ids:\n\nAmbient Temperature = 1003\nAsset Reading = 1062\nDVIR Submitted for Asset = 5005\nDriver Recorded = 5027\nSudden Fuel Level Rise = 5034\nSudden Fuel Level Drop = 5035\nTraining Assignment Due Soon = 8003\nTraining Assignment Past Due = 8004\nAsset assignment past due = 8014\nVehicle Speed = 1000\nFuel Level (Percentage) = 1005\nVehicle DEF Level (Percentage) = 1006\nVehicle Battery = 1007\nGateway Unplugged = 1009\nDashcam Disconnected = 1012\nCamera Connector Disconnected = 1046\nAsset starts moving = 1013\nInside Geofence = 1014\nOutside Geofence = 1020\nUnassigned Driving = 1016\nDriver HOS Violation = 1018\nVehicle Engine Idle = 1019\nAsset Engine On = 1021\nAsset Engine Off = 1022\nScheduled Maintenance = 1024\nScheduled Maintenance by Odometer = 1025\nScheduled Maintenance by Engine Hours = 1026\nOut of Route = 1027\nGPS Signal Loss = 1032\nCell Signal Loss = 1033\nFault Code = 1029\nTire Faults = 1043\nGateway Disconnected = 1030\nPanic Button = 1034\nTampering Detected = 1045\nIf vehicle is severely speeding (as defined by your organization) = 5022\nDriver Document Submitted = 5009\nDriver App Sign In = 5012\nDriver App Sign Out = 5013\nGeofence Entry = 5016\nGeofence Exit = 5017\nRoute Stop ETA Alert = 5018\nA safety event occurred with a driver assigned = 5033\nA safety event occurred = 5039\nScheduled Date And Time = 8001\n\nThe following trigger types are Deprecated:\nHarsh Event = 1023\n","example":1000,"format":"int32","type":"integer"}},"required":["triggerTypeId"],"type":"object"},"WorkflowTriggerObjectResponseBody":{"description":"The trigger of an alert.","properties":{"triggerParams":{"$ref":"#/components/schemas/TriggerParamsObjectResponseBody"},"triggerTypeId":{"description":"The id of the trigger type. Reference the following list for the ids:\n\nAmbient Temperature = 1003\nAsset Reading = 1062\nDVIR Submitted for Asset = 5005\nDriver Recorded = 5027\nSudden Fuel Level Rise = 5034\nSudden Fuel Level Drop = 5035\nTraining Assignment Due Soon = 8003\nTraining Assignment Past Due = 8004\nAsset assignment past due = 8014\nVehicle Speed = 1000\nFuel Level (Percentage) = 1005\nVehicle DEF Level (Percentage) = 1006\nVehicle Battery = 1007\nGateway Unplugged = 1009\nDashcam Disconnected = 1012\nCamera Connector Disconnected = 1046\nAsset starts moving = 1013\nInside Geofence = 1014\nOutside Geofence = 1020\nUnassigned Driving = 1016\nDriver HOS Violation = 1018\nVehicle Engine Idle = 1019\nAsset Engine On = 1021\nAsset Engine Off = 1022\nScheduled Maintenance = 1024\nScheduled Maintenance by Odometer = 1025\nScheduled Maintenance by Engine Hours = 1026\nOut of Route = 1027\nGPS Signal Loss = 1032\nCell Signal Loss = 1033\nFault Code = 1029\nTire Faults = 1043\nGateway Disconnected = 1030\nPanic Button = 1034\nTampering Detected = 1045\nIf vehicle is severely speeding (as defined by your organization) = 5022\nDriver Document Submitted = 5009\nDriver App Sign In = 5012\nDriver App Sign Out = 5013\nGeofence Entry = 5016\nGeofence Exit = 5017\nRoute Stop ETA Alert = 5018\nA safety event occurred with a driver assigned = 5033\nA safety event occurred = 5039\nScheduled Date And Time = 8001\n\nThe following trigger types are Deprecated:\nHarsh Event = 1023\n","example":1000,"format":"int32","type":"integer"}},"required":["triggerTypeId"],"type":"object"},"_v1_sensors_history_series":{"description":"V1Sensor ID and field to query.","properties":{"field":{"description":"Field to query.","enum":["ambientTemperature","cargoPercent","currentLoop1Raw","currentLoop1Mapped","currentLoop2Raw","currentLoop2Mapped","doorClosed","humidity","pmPowerTotal","pmPhase1Power","pmPhase2Power","pmPhase3Power","pmPhase1PowerFactor","pmPhase2PowerFactor","pmPhase3PowerFactor","probeTemperature"],"example":"ambientTemperature","type":"string"},"widgetId":{"description":"V1Sensor ID to query.","example":1,"format":"int64","type":"integer"}},"required":["field","widgetId"],"type":"object"},"addressTinyResponse":{"description":"Address book entry, if one exists","properties":{"id":{"description":"Address book identifier","example":"123","type":"string"},"name":{"description":"Name of this address book entry","example":"Main Distribution Warehouse","type":"string"}},"type":"object"},"alertObjectAssetResponseBody":{"description":"The Asset associated with the alert.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The ID of the asset.","example":"494123","type":"string"},"name":{"description":"The name of the asset.","example":"Fleet Truck #1","type":"string"},"serial":{"description":"The serial number of the gateway installed on the asset.","example":"GFRV-43N-VGX","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the asset.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"type":{"default":"uncategorized","description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"example":"trailer","type":"string"}},"required":["id","serial","type"],"type":"object"},"alertObjectDriverResponseBody":{"description":"A driver associated with the alert","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The ID of the driver","example":"45646","type":"string"},"name":{"description":"The name of the driver.","example":"Driver Bob","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the driver.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"alertObjectMachineInputResponseBody":{"description":"A machine input associated with the alert","properties":{"id":{"description":"The ID of the machine input associated with the alert.","example":"20170306","type":"string"},"name":{"description":"The name of the machine input.","example":"DataInput-123","type":"string"}},"required":["id"],"type":"object"},"alertObjectOnvifCameraStreamResponseBody":{"description":"A camera stream associated with the alert.","properties":{"cameraDevice":{"$ref":"#/components/schemas/alertObjectWorkforceCameraDeviceResponseBody"},"id":{"description":"The ID of the camera stream associated with the alert.","example":"54321","type":"string"},"name":{"description":"The name of the camera stream.","example":"Stream-123","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the camera stream.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"alertObjectProductResponseBody":{"description":"The product associated with the alert","properties":{"shortName":{"description":"The short name associated with the product.","example":"EM1","type":"string"}},"type":"object"},"alertObjectRouteResponseBody":{"description":"A route associated with the alert.","properties":{"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The ID of the route.","example":"494123","type":"string"},"name":{"description":"The name of the route.","example":"Route 1","type":"string"}},"required":["id"],"type":"object"},"alertObjectSensorResponseBody":{"description":"A sensor associated with the alert.","properties":{"id":{"description":"Thye ID of the sensor associated with the alert","example":"22222","type":"string"},"name":{"description":"The name of the sensor.","example":"Sensor-123","type":"string"},"pinnedDeviceId":{"description":"The Pinned Device ID associated with the alert","example":"22222","type":"string"},"product":{"$ref":"#/components/schemas/alertObjectProductResponseBody"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the sensor.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"alertObjectSitesResponseBody":{"description":"A site associated with the alert.","properties":{"id":{"description":"The ID of the site associated with the alert","example":"1111aaaa-11aa-11aa-11aa-111111aaaaaa","type":"string"},"name":{"description":"The name of the site","example":"Site-123","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Site.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"alertObjectTrailerResponseBody":{"description":"A trailer associated with the alert","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The ID of the trailer. This is automatically generated when the trailer is created. It cannot be changed.","example":"494123","type":"string"},"name":{"description":"The name of the trailer. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.","example":"Trailer-123","type":"string"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the Trailer.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"},"trailerSerialNumber":{"description":"The serial number of the trailer.","example":"8V8WD530FLN016251","type":"string"}},"required":["id"],"type":"object"},"alertObjectVehicleResponseBody":{"description":"The vehicle associated with the alert.","properties":{"attributes":{"description":"List of attributes associated with the entity","items":{"$ref":"#/components/schemas/GoaAttributeTinyResponseBody"},"type":"array"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"The ID of the vehicle.","example":"494123","type":"string"},"name":{"description":"The name of the vehicle.","example":"Fleet Truck #1","type":"string"},"serial":{"description":"The serial number of the gateway installed on the asset.","example":"GFRV-43N-VGX","type":"string"},"staticAssignedDriver":{"$ref":"#/components/schemas/DriverObjectResponseBody"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the vehicle.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id","serial"],"type":"object"},"alertObjectWorkforceCameraDeviceResponseBody":{"description":"A camera device associated with the alert","properties":{"id":{"description":"The ID of the camera device associated with the alert","example":"22222","type":"string"},"name":{"description":"The name of the camera device","example":"Camera-123","type":"string"},"sites":{"description":"The list of sites associated with the camera device.","items":{"$ref":"#/components/schemas/alertObjectSitesResponseBody"},"type":"array"},"tags":{"description":"The list of [tags](https://kb.samsara.com/hc/en-us/articles/360026674631-Using-Tags-and-Tag-Nesting) associated with the camera device.","items":{"$ref":"#/components/schemas/GoaTagTinyResponseResponseBody"},"type":"array"}},"required":["id"],"type":"object"},"assetsInputsAuxInputResponseBody":{"description":"Auxiliary input metadata","properties":{"name":{"description":"Name of the auxiliary input","example":"PTO","type":"string"}},"required":["name"],"type":"object"},"assetsInputsResponseResponseBody":{"description":"Full assets inputs objects.","properties":{"asset":{"$ref":"#/components/schemas/AssetsInputsAssetResponseResponseBody"},"auxInput":{"$ref":"#/components/schemas/assetsInputsAuxInputResponseBody"},"happenedAtTime":{"description":"UTC timestamp in RFC 3339 format of the event.","example":"2020-01-27T07:06:25Z","type":"string"},"units":{"description":"Units of the values in the returned data.  Valid values: `boolean`, `millivolts`, `microamps`","enum":["boolean","millivolts","microamps"],"example":"boolean","type":"string"},"value":{"description":"Value of the data point.","example":"1","type":"string"}},"required":["asset","happenedAtTime","units","value"],"type":"object"},"attributeTiny":{"description":"A minified attribute.","properties":{"dateValues":{"description":"Date values that are associated with this attribute (RFC 3339 date format: YYYY-MM-DD).","items":{"type":"string"},"type":"array"},"id":{"description":"The samsara id of the attribute object.","example":"123e4567-e89b-12d3-a456-426614174000","type":"string"},"name":{"description":"Name of attribute.","example":"License Certifications","type":"string"},"numberValues":{"description":"Number values that are associated with this attribute.","items":{"format":"double","type":"number"},"type":"array"},"stringValues":{"description":"String values that are associated with this attribute.","items":{"type":"string"},"type":"array"}},"type":"object"},"attributeValueTiny":{"description":"A minified attribute value","properties":{"id":{"description":"The samsara id of this value object.","example":"123e4567-e89b-12d3-a456-426614174000","type":"string"},"stringValue":{"description":"The human-readable string for this value.","example":"CDL","type":"string"}},"type":"object"},"barcodeValueObjectRequestBody":{"properties":{"barcodeType":{"description":"The barcode type that was scanned.","example":"org.gs1.EAN-13","type":"string"},"barcodeValue":{"description":"The captured barcode value.","example":"0853883003114","type":"string"}},"type":"object"},"barcodeValueObjectResponseBody":{"properties":{"barcodeType":{"description":"The barcode type that was scanned.","example":"org.gs1.EAN-13","type":"string"},"barcodeValue":{"description":"The captured barcode value.","example":"0853883003114","type":"string"}},"type":"object"},"baseRouteResponseObjectResponseBody":{"properties":{"actualRouteEndTime":{"description":"Actual end time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"actualRouteStartTime":{"description":"Actual start time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"equipmentProfile":{"$ref":"#/components/schemas/RouteEquipmentProfileObjectResponseBody"},"externalIds":{"additionalProperties":{"type":"string"},"description":"A map of external ids","type":"object"},"id":{"description":"ID of the route","example":"342341","type":"string"},"name":{"description":"Route name","example":"Bid 123","type":"string"},"notes":{"description":"Notes for the route","example":"These are my notes","type":"string"},"orgLocalTimezone":{"description":"The local timezone, as defined in Settings for your organization. Timezones use [IANA timezone database](https://www.iana.org/time-zones) keys (e.g. `America/Los_Angeles`, `America/New_York`, `Europe/London`, etc.). You can find a mapping of common timezone formats to IANA timezone keys [here](https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html).","example":"America/Los_Angeles","type":"string"},"recurringRouteLiveSharingLinks":{"description":"List of shareable, non-expired 'By recurring Route' Live Sharing Links.","items":{"$ref":"#/components/schemas/LiveSharingLinkResponseObjectResponseBody"},"type":"array"},"scheduledRouteEndTime":{"description":"Scheduled end time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"scheduledRouteStartTime":{"description":"Scheduled start time, if it exists, for the route in RFC 3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"settings":{"$ref":"#/components/schemas/RouteSettingsResponseBody"},"stops":{"description":"List of stops along the route","items":{"$ref":"#/components/schemas/RoutesStopResponseObjectResponseBody"},"minItems":2,"type":"array"},"tagIds":{"description":"An array of IDs of tags to associate with this route.","example":["123","321"],"items":{"example":"Quia pariatur doloribus deleniti.","type":"string"},"type":"array"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["id"],"type":"object"},"behaviorResponseBody":{"description":"Object reference for the behavior within the session.","properties":{"coachableBehaviorType":{"description":"Coachable behavior type for the behavior in the coaching session.  Valid values: `acceleration`, `braking`, `cameraObstruction`, `crash`, `defensiveDriving`, `didNotYield`, `drinkPolicy`, `drowsy`, `eatingDrinking`, `event`, `falsePositive`, `foodPolicy`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `hosViolation`, `idling`, `laneDeparture`, `lateResponse`, `maskPolicy`, `maxSpeed`, `mobileUsage`, `nearCollison`, `noSeatbelt`, `obstructedCamera`, `outwardObstruction`, `passengerPolicy`, `ranRedLight`, `rollingRailroadCrossing`, `rollingStop`, `rollingStop`, `rollover`, `rolloverProtection`, `rolloverProtectionBrakeControlActivated`, `rolloverProtectionEngineControlActivated`, `severeSpeeding`, `smoking`, `speeding`, `tailgating`, `unknown`, `yawControl`, `yawControlBrakeControlActivated`, `yawControlEngineControlActivated`","enum":["acceleration","braking","cameraObstruction","crash","defensiveDriving","didNotYield","drinkPolicy","drowsy","eatingDrinking","event","falsePositive","foodPolicy","forwardCollisionWarning","genericDistraction","harshTurn","hosViolation","idling","laneDeparture","lateResponse","maskPolicy","maxSpeed","mobileUsage","nearCollison","noSeatbelt","obstructedCamera","outwardObstruction","passengerPolicy","ranRedLight","rollingRailroadCrossing","rollingStop","rollingStop","rollover","rolloverProtection","rolloverProtectionBrakeControlActivated","rolloverProtectionEngineControlActivated","severeSpeeding","smoking","speeding","tailgating","unknown","yawControl","yawControlBrakeControlActivated","yawControlEngineControlActivated"],"example":"forwardCollisionWarning","type":"string"},"coachableEvents":{"description":"Object references for the coachableEvents within the behavior. Returned when includeCoachableEvents is 'true'. Capped at 100 coachable events per Coaching session. For sessions where coachable events exceed 100, please visit the Samsara dashboard to address this coaching session. Corresponds to the following unique identifiers: Non-Speeding Safety events - unique Samsara ID of the safety event as 'vehicleId - eventMS'. Speeding events - unique UUID of the event. Day of HOS Violations - unique Samsara ID of the day of violations as '{driverId},{date}'. Idling events - unique UUID of the event.","items":{"$ref":"#/components/schemas/coachableEventResponseBody"},"type":"array"},"id":{"description":"Unique ID for the coaching behavior.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"lastCoachedTime":{"description":"Time of last coached date for the same behavior label.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"},"note":{"description":"Associated note for the coaching behavior. Returned when present.","example":"Need to wear seatbelt even for short trips.","type":"string"},"updatedAtTime":{"description":"Time of coaching behavior update in UTC.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["coachableBehaviorType","id","lastCoachedTime","updatedAtTime"],"type":"object"},"carrierProposedAssignmentDriverAllOf2ExternalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object","x-go-gen-location":"models"},"coachableEventLinkageResponseBody":{"description":"Join key with upstream data source.","properties":{"sourceId":{"description":"Unique identifier to the upstream data source. For safety events, this is the event uuid.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"sourceType":{"description":"Upstream data source backing this coachable event.  Valid values: `safetyEvent`, `hosViolation`, `idling`","enum":["safetyEvent","hosViolation","idling"],"example":"safetyEvent","type":"string"}},"required":["sourceId","sourceType"],"type":"object"},"coachableEventResponseBody":{"description":"Object reference for the coachable event within the behavior.","properties":{"id":{"description":"Unique ID for an event within the item in a coaching session.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"linkage":{"$ref":"#/components/schemas/coachableEventLinkageResponseBody"}},"required":["id"],"type":"object"},"columnResponseBody":{"properties":{"dataType":{"description":"Data type of the column.  Valid values: `string`, `integer`, `float`, `timestamp`, `unknown`","enum":["string","integer","float","timestamp","unknown"],"example":"string","type":"string"},"name":{"description":"Name of the column","example":"Asset: Id","type":"string"},"unit":{"description":"Unit of the field.  Valid values: `amperes`, `bars`, `cad`, `chf`, `days`, `decimalDegrees`, `degreesCelsius`, `degreesFahrenheit`, `eur`, `feet`, `gForces`, `gallons`, `gallonsPerHour`, `gallonsPerKilogram`, `gallonsPerMile`, `gbp`, `gramsPerLiter`, `gramsPerMeter`, `hertz`, `hours`, `imperialGallons`, `imperialGallonsPerHour`, `imperialGallonsPerKilogram`, `imperialGallonsPerMile`, `inches`, `kelvins`, `kilograms`, `kilogramsGaseousFuel`, `kilogramsPer100KilometerGaseousFuel`, `kilogramsPerGallon`, `kilogramsPerKilometer`, `kilogramsPerLiter`, `kilogramsPerMile`, `kilometers`, `kilometersPerHour`, `kilometersPerLiter`, `kilometersPerLiterGaseousFuel`, `kilopascals`, `kilowattHours`, `liters`, `litersGaseousFuel`, `litersPer100Kilometers`, `litersPer100KilometersGaseousFuel`, `litersPerHour`, `litersPerKilogram`, `litersPerKilometer`, `litersPerMeter`, `litersPerTonne`, `meters`, `metersPerSecond`, `miles`, `milesPerGallon`, `milesPerHour`, `milesPerImperialGallon`, `milesPerKilogramGaseousFuel`, `milesPerUSGallonGaseousFuel`, `milliknots`, `milliseconds`, `millivolts`, `minutes`, `months`, `mxn`, `percents`, `pounds`, `poundsPerGallon`, `poundsPerLiter`, `poundsPerMile`, `poundsPerSquareInch`, `revolutionsPerMinute`, `seconds`, `unknown`, `usGallonsGaseousFuel`, `usd`, `voltAmperes`, `voltAmperesReactive`, `volts`, `wattHours`, `watts`, `weeks`","enum":["amperes","bars","cad","chf","days","decimalDegrees","degreesCelsius","degreesFahrenheit","eur","feet","gForces","gallons","gallonsPerHour","gallonsPerKilogram","gallonsPerMile","gbp","gramsPerLiter","gramsPerMeter","hertz","hours","imperialGallons","imperialGallonsPerHour","imperialGallonsPerKilogram","imperialGallonsPerMile","inches","kelvins","kilograms","kilogramsGaseousFuel","kilogramsPer100KilometerGaseousFuel","kilogramsPerGallon","kilogramsPerKilometer","kilogramsPerLiter","kilogramsPerMile","kilometers","kilometersPerHour","kilometersPerLiter","kilometersPerLiterGaseousFuel","kilopascals","kilowattHours","liters","litersGaseousFuel","litersPer100Kilometers","litersPer100KilometersGaseousFuel","litersPerHour","litersPerKilogram","litersPerKilometer","litersPerMeter","litersPerTonne","meters","metersPerSecond","miles","milesPerGallon","milesPerHour","milesPerImperialGallon","milesPerKilogramGaseousFuel","milesPerUSGallonGaseousFuel","milliknots","milliseconds","millivolts","minutes","months","mxn","percents","pounds","poundsPerGallon","poundsPerLiter","poundsPerMile","poundsPerSquareInch","revolutionsPerMinute","seconds","unknown","usGallonsGaseousFuel","usd","voltAmperes","voltAmperesReactive","volts","wattHours","watts","weeks"],"example":"kilometersPerHour","type":"string"}},"required":["dataType","name"],"type":"object"},"conditionalFieldSectionObjectResponseBody":{"properties":{"conditionalFieldFirstIndex":{"description":"The index of the first conditional field associated with the triggeringFieldValue in the fieldTypes list.","example":8217465358527716000,"format":"int64","type":"integer"},"conditionalFieldLastIndex":{"description":"The index of the last conditional field associated with the triggeringFieldValue in the fieldTypes list.","example":1543582388420605000,"format":"int64","type":"integer"},"triggeringFieldIndex":{"description":"The index of the multiple choice field in the fieldTypes list that triggers one or more conditional fields.","example":7540159348423735000,"format":"int64","type":"integer"},"triggeringFieldValue":{"description":"The multiple choice option value that triggers the conditional fields.","example":"Optiona 1","type":"string"}},"type":"object"},"contactTinyResponse":{"description":"A minified contact object","properties":{"firstName":{"description":"First name of the contact.","example":"Jane","type":"string"},"id":{"description":"ID of the contact.","example":"22408","type":"string"},"lastName":{"description":"Last name of the contact.","example":"Jones","type":"string"}},"type":"object"},"createReportConfigColumnRequestBody":{"properties":{"fieldName":{"description":"Name of the field from the dataset.","example":"Id","type":"string"}},"required":["fieldName"],"type":"object"},"createReportConfigObjectRequestBody":{"description":"Contains report config for a given report run.","properties":{"columns":{"description":"Columns to include in the report. Only one of ID or datasetId and columns must be provided.","items":{"$ref":"#/components/schemas/createReportConfigColumnRequestBody"},"type":"array"},"datasetId":{"description":"ID of the dataset that is going to be used for the report. Only one of ID or datasetId and columns must be provided.","example":"AssetReadings","type":"string"},"filters":{"$ref":"#/components/schemas/filtersRequestBody"},"id":{"description":"ID of the custom report config. Only one of ID or datasetId and columns must be provided.","example":"4f71fd67-54f0-41de-991c-ee1e031134d1","type":"string"}},"type":"object"},"dateTimeValueObjectRequestBody":{"description":"The value of a date time field. Only present for date time fields.","properties":{"dateTime":{"description":"Date time value inin RFC 3339 format.","example":"1992-09-06T22:50:20Z","format":"date-time","type":"string"}},"type":"object"},"dateTimeValueObjectResponseBody":{"description":"The value of a date time field. Only present for date time fields.","properties":{"dateTime":{"description":"Date time value inin RFC 3339 format.","example":"1973-12-20T17:06:49Z","format":"date-time","type":"string"}},"type":"object"},"documentResponseObjectResponseBody":{"description":"A single document.","properties":{"conditionalFieldSections":{"description":"List of the document conditional field sections.","items":{"$ref":"#/components/schemas/conditionalFieldSectionObjectResponseBody"},"type":"array"},"createdAtTime":{"description":"Time the document was created in RFC 3339 format.","example":"2015-09-08T06:33:15Z","format":"date-time","type":"string"},"documentType":{"$ref":"#/components/schemas/GoaDocumentTypeTinyResponseResponseBody"},"driver":{"$ref":"#/components/schemas/GoaDriverTinyResponseResponseBody"},"fields":{"description":"The fields associated with this document.","items":{"$ref":"#/components/schemas/fieldObjectResponseBody"},"type":"array"},"id":{"description":"Universally unique identifier for the document.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"name":{"description":"Name of the document.","example":"Dropoff Slip 123","type":"string"},"notes":{"description":"Notes on the document.","example":"Missing a crate","type":"string"},"route":{"$ref":"#/components/schemas/GoaRouteTinyResponseResponseBody"},"routeStop":{"$ref":"#/components/schemas/GoaRouteStopTinyResponseResponseBody"},"state":{"description":"The condition of the document created for the driver. Can be either Required or Submitted. Required documents are pre-populated documents for the Driver to fill out in the Driver App and have not yet been submitted. Submitted documents have been submitted by the driver in the Driver App. Archived documents have been archived by the admin in the cloud dashboard.  Valid values: `submitted`, `required`, `archived`","enum":["submitted","required","archived"],"example":"submitted","type":"string"},"updatedAtTime":{"description":"Time the document was updated in RFC 3339 format.","example":"1975-05-20T03:23:39Z","format":"date-time","type":"string"},"vehicle":{"$ref":"#/components/schemas/GoaVehicleTinyResponseResponseBody"}},"required":["createdAtTime","documentType","driver","fields","id","state"],"type":"object"},"driverTinyResponse":{"description":"A minified driver object.","properties":{"id":{"description":"ID of the driver.","example":"88668","type":"string"},"name":{"description":"Name of the driver.","example":"Susan Bob","type":"string"}},"type":"object"},"dvirTrailerDefectsItems":{"properties":{"comment":{"description":"Comment on the defect.","example":"Air Compressor not working","type":"string"},"createdAtTime":{"description":"Time when the defect was created. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"defectType":{"description":"The type of DVIR defect.","example":"Air Compressor","type":"string"},"id":{"description":"ID of the defect.","example":"18","type":"string"},"isResolved":{"description":"Signifies if this defect is resolved.","example":true,"type":"boolean"},"mechanicNotes":{"description":"The mechanics notes on the defect.","example":"Extremely large oddly shaped hole in passenger side window.","type":"string"},"mechanicNotesUpdatedAtTime":{"description":"Time when mechanic notes were last updated. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedAtTime":{"description":"Time when this defect was resolved. Will not be returned if the defect is unresolved. UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"resolvedBy":{"$ref":"#/components/schemas/Defect_resolvedBy"},"trailer":{"allOf":[{"description":"The trailer this defect was submitted for.","type":"object"},{"description":"A minified trailer object.","properties":{"id":{"description":"ID of the trailer.","example":"123456789","type":"string"},"name":{"description":"Name of the trailer.","example":"Midwest Trailer #5","type":"string"}},"type":"object"}],"type":"object"},"vehicle":{"allOf":[{"description":"The vehicle this defect was submitted for.","type":"object"},{"description":"A minified vehicle object.","properties":{"ExternalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"id":{"description":"ID of the vehicle.","example":"123456789","type":"string"},"name":{"description":"Name of the vehicle.","example":"Midwest Truck #4","type":"string"}},"type":"object"}],"type":"object"}},"required":["id","isResolved"],"type":"object","x-go-gen-location":"models"},"fieldObjectPostRequestBody":{"properties":{"label":{"description":"The name of the field.","example":"Load weight","type":"string"},"type":{"description":"The type of field.  Valid values: `photo`, `string`, `number`, `multipleChoice`, `signature`, `dateTime`, `scannedDocument`, `barcode`","enum":["photo","string","number","multipleChoice","signature","dateTime","scannedDocument","barcode"],"example":"photo","type":"string"},"value":{"$ref":"#/components/schemas/fieldObjectValueRequestBody"}},"required":["label","type"],"type":"object"},"fieldObjectResponseBody":{"properties":{"label":{"description":"The name of the field.","example":"Load weight","type":"string"},"type":{"description":"The type of field.  Valid values: `photo`, `string`, `number`, `multipleChoice`, `signature`, `dateTime`, `scannedDocument`, `barcode`","enum":["photo","string","number","multipleChoice","signature","dateTime","scannedDocument","barcode"],"example":"photo","type":"string"},"value":{"$ref":"#/components/schemas/fieldObjectValueResponseBody"}},"required":["label","type","value"],"type":"object"},"fieldObjectValueRequestBody":{"description":"The value of the document field. The shape of value depends on the type.","properties":{"barcodeValue":{"description":"The value of a barcode scanning field. Only present for barcode scanning fields.","items":{"$ref":"#/components/schemas/barcodeValueObjectRequestBody"},"type":"array"},"dateTimeValue":{"$ref":"#/components/schemas/dateTimeValueObjectRequestBody"},"multipleChoiceValue":{"description":"The value of a multiple choice field. Only present for multiple choice fields.","items":{"$ref":"#/components/schemas/multipleChoiceValueObjectRequestBody"},"type":"array"},"numberValue":{"description":"The value of a number field. Only present for number fields.","example":123.456,"format":"double","type":"number"},"photoValue":{"description":"The value of a photo field. Only present for photo fields.","items":{"$ref":"#/components/schemas/photoValueObjectRequestBody"},"type":"array"},"scannedDocumentValue":{"description":"The value of a scanned document field. Only present for scanned document fields.","items":{"$ref":"#/components/schemas/scannedDocumentValueObjectRequestBody"},"type":"array"},"signatureValue":{"$ref":"#/components/schemas/signatureValueObjectRequestBody"},"stringValue":{"description":"The value of a string field. Only present for string fields.","example":"Red Truck","type":"string"}},"type":"object"},"fieldObjectValueResponseBody":{"description":"The value of the document field. The shape of value depends on the type.","properties":{"barcodeValue":{"description":"The value of a barcode scanning field. Only present for barcode scanning fields.","items":{"$ref":"#/components/schemas/barcodeValueObjectResponseBody"},"type":"array"},"dateTimeValue":{"$ref":"#/components/schemas/dateTimeValueObjectResponseBody"},"multipleChoiceValue":{"description":"The value of a multiple choice field. Only present for multiple choice fields.","items":{"$ref":"#/components/schemas/multipleChoiceValueObjectResponseBody"},"type":"array"},"numberValue":{"description":"The value of a number field. Only present for number fields.","example":123.456,"format":"double","type":"number"},"photoValue":{"description":"The value of a photo field. Only present for photo fields.","items":{"$ref":"#/components/schemas/photoValueObjectResponseBody"},"type":"array"},"scannedDocumentValue":{"description":"The value of a scanned document field. Only present for scanned document fields.","items":{"$ref":"#/components/schemas/scannedDocumentValueObjectResponseBody"},"type":"array"},"signatureValue":{"$ref":"#/components/schemas/signatureValueObjectResponseBody"},"stringValue":{"description":"The value of a string field. Only present for string fields.","example":"Red Truck","type":"string"}},"type":"object"},"fieldTypesObjectResponseBody":{"properties":{"fieldType":{"description":"The type of value this field can have.  Valid values: `photo`, `string`, `number`, `multipleChoice`, `signature`, `dateTime`, `scannedDocument`, `barcode`","enum":["photo","string","number","multipleChoice","signature","dateTime","scannedDocument","barcode"],"example":"photo","type":"string"},"label":{"description":"The name of the field type.","example":"Receipts","type":"string"},"multipleChoiceFieldTypeMetaData":{"description":"A list of the multiple choice field option labels.","items":{"$ref":"#/components/schemas/multipleChoiceFieldTypeMetaDataObjectResponseBody"},"type":"array"},"numberFieldTypeMetaData":{"$ref":"#/components/schemas/numberFieldTypeMetaDataObjectResponseBody"},"requiredField":{"description":"The indicator that states if the field is required.","example":false,"type":"boolean"},"signatureFieldTypeMetaData":{"$ref":"#/components/schemas/signatureFieldTypeMetaDataObjectResponseBody"}},"required":["fieldType","label","requiredField"],"type":"object"},"filtersRequestBody":{"description":"Contains filters that are going to be applied to this report run.","properties":{"primaryTimeRange":{"$ref":"#/components/schemas/primaryTimeRangeRequestBody"}},"type":"object"},"filtersResponseBody":{"description":"Contains filters that are going to be applied to this report run.","properties":{"primaryTimeRange":{"$ref":"#/components/schemas/primaryTimeRangeResponseBody"}},"type":"object"},"fleetDeviceObjectResponseBody":{"description":"fleetDeviceObject","properties":{"id":{"description":"Id of the device","example":123456,"format":"int64","type":"integer"},"name":{"description":"Name of the device","example":"My Device","type":"string"}},"required":["id","name"],"type":"object"},"fuelVolumeResponseBody":{"properties":{"unit":{"description":"Units in which volume is being presented.  Valid values: `GALLONS`, `LITERS`","enum":["GALLONS","LITERS"],"example":"GALLONS","type":"string"},"value":{"description":"The volume of the measured fuel.","example":0.20629708148393924,"format":"double","type":"number"}},"required":["unit","value"],"type":"object"},"gatewayTiny":{"description":"A minified gateway including serial number and model.","properties":{"model":{"description":"The gateway model","example":"VG34","type":"string"},"serial":{"description":"The serial number of the gateway.","example":"ABCD-123-XYZ","type":"string"}},"type":"object"},"getDocumentTypeResponseObjectResponseBody":{"properties":{"conditionalFieldSections":{"description":"List of the document type conditional field sections.","items":{"$ref":"#/components/schemas/conditionalFieldSectionObjectResponseBody"},"type":"array"},"fieldTypes":{"description":"The fields associated with this document type.","items":{"$ref":"#/components/schemas/fieldTypesObjectResponseBody"},"type":"array"},"id":{"description":"Universally unique identifier for the document type. This value can be passed in as the documentTypeId when creating a document.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"name":{"description":"Name of the document type.","example":"Bill's Fuel Receipts","type":"string"},"orgId":{"description":"ID for the organization this document type belongs to.","example":3718247606495601000,"format":"int64","type":"integer"}},"type":"object"},"industrialAssetObjectResponseBody":{"description":"industrialAssetObject","properties":{"id":{"description":"Id of the device","example":"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596","type":"string"},"name":{"description":"Name of the industrial asset","example":"My asset","type":"string"}},"required":["id","name"],"type":"object"},"inline_object":{"properties":{"apply_to_future_routes":{"description":"This is only for a recurring route.  If set to true, delete all following runs of the route.  If set to false, only delete the current route.","example":true,"type":"boolean"}},"type":"object"},"inline_object_1":{"properties":{"duty_status":{"description":"Duty status to set the driver to. The only supported values are 'ON_DUTY' and 'OFF_DUTY'.","example":"ON_DUTY","type":"string"},"location":{"description":"Location to associate the duty status change with.","example":"Loading dock","type":"string"},"remark":{"description":"Remark to associate the duty status change with.","example":"Beginning On Duty Shift","type":"string"},"status_change_at_ms":{"description":"Timestamp that the duty status will begin at specified in milliseconds UNIX time. Defaults to the current time if left blank. This can only be set to up to 8 hours in the past.","example":1580834793568,"format":"int64","type":"number"},"vehicle_id":{"description":"Vehicle ID to associate the duty status change with.","example":1234,"format":"int64","type":"number"}},"required":["duty_status"],"type":"object"},"inline_object_2":{"properties":{"driverIds":{"description":"IDs of the drivers for whom the messages are sent to.","example":[111,222,333],"items":{"example":555,"format":"int64","type":"number"},"type":"array"},"text":{"description":"The text sent in the message. Max 2500 characters allowed.","example":"This is a message.","type":"string"}},"required":["driverIds","text"],"type":"object"},"inline_object_3":{"properties":{"endMs":{"description":"End of the time range, specified in milliseconds UNIX time.","example":1462881998034,"type":"integer"},"startMs":{"description":"Beginning of the time range, specified in milliseconds UNIX time.","example":1462878398034,"type":"integer"}},"required":["endMs","startMs"],"type":"object"},"inline_object_4":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"},"inline_object_5":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"},"inline_object_6":{"properties":{"endMs":{"description":"End of the time range, specified in milliseconds UNIX time.","example":1462881998034,"type":"integer"},"fillMissing":{"default":"withNull","enum":["withNull","withPrevious"],"type":"string"},"series":{"items":{"$ref":"#/components/schemas/_v1_sensors_history_series"},"maxItems":40,"type":"array"},"startMs":{"description":"Beginning of the time range, specified in milliseconds UNIX time.","example":1462878398034,"type":"integer"},"stepMs":{"description":"Time resolution for which data should be returned, in milliseconds. Specifying 3600000 will return data at hour intervals.","example":3600000,"type":"integer"}},"required":["endMs","series","startMs","stepMs"],"type":"object"},"inline_object_7":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"},"inline_object_8":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"},"inline_response_200":{"properties":{"data":{"$ref":"#/components/schemas/AssetResponse"}},"type":"object"},"inline_response_200_1":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/V1Asset"},"type":"array"}},"type":"object"},"inline_response_200_2":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/V1AssetCurrentLocationsResponse"},"type":"array"},"pagination":{"$ref":"#/components/schemas/V1Pagination"}},"type":"object"},"inline_response_200_3":{"properties":{"data":{"items":{"$ref":"#/components/schemas/V1AssetsReefer"},"type":"array"},"pagination":{"$ref":"#/components/schemas/V1Pagination"}},"type":"object"},"inline_response_200_4":{"properties":{"vehicles":{"items":{"$ref":"#/components/schemas/V1VehicleMaintenance"},"type":"array"}},"type":"object"},"inline_response_200_5":{"description":"A list of messages.","properties":{"data":{"$ref":"#/components/schemas/V1MessagesResponse"}},"type":"object"},"inline_response_200_6":{"description":"A list of created messages.","properties":{"data":{"$ref":"#/components/schemas/V1Messages"}},"type":"object"},"inline_response_200_7":{"properties":{"pagination":{"$ref":"#/components/schemas/V1Pagination"},"trailers":{"items":{"$ref":"#/components/schemas/V1TrailerAssignmentsResponse"},"type":"array"}},"type":"object"},"inline_response_200_8":{"properties":{"machines":{"items":{"$ref":"#/components/schemas/V1Machine"},"type":"array"}},"type":"object"},"inline_response_200_9":{"properties":{"sensors":{"items":{"$ref":"#/components/schemas/V1Sensor"},"type":"array"}},"type":"object"},"jobLocationResponseObjectResponseBody":{"description":"jobLocation object","properties":{"address":{"description":"Address of a location","example":"1990 Alameda st, San Francisco, Ca 94103","type":"string"},"latitude":{"description":"Latitude of a location","example":37.456345,"format":"double","type":"number"},"longitude":{"description":"Longitude of a location","example":34.5633749,"format":"double","type":"number"},"name":{"description":"Name of a location","example":"Worksite #1","type":"string"}},"required":["address","latitude","longitude","name"],"type":"object"},"latitude":{"description":"The latitude of the asset in decimal degrees.","example":37.765363,"format":"double","type":"number"},"location":{"description":"Location object","properties":{"latitude":{"description":"GPS latitude represented in degrees","example":122.142,"format":"double","type":"number"},"longitude":{"description":"GPS longitude represented in degrees","example":-93.343,"format":"double","type":"number"}},"required":["latitude","longitude"],"type":"object"},"longitude":{"description":"The longitude of the asset in decimal degrees.","example":-122.403098,"format":"double","type":"number"},"multipleChoiceFieldTypeMetaDataObjectResponseBody":{"properties":{"label":{"description":"The option choice label.","example":"Fuel Receipt","type":"string"}},"type":"object"},"multipleChoiceValueObjectRequestBody":{"properties":{"selected":{"description":"Boolean representing if the choice has been selected.","example":false,"type":"boolean"},"value":{"description":"Description of the choice.","example":"Yes","type":"string"}},"type":"object"},"multipleChoiceValueObjectResponseBody":{"properties":{"selected":{"description":"Boolean representing if the choice has been selected.","example":false,"type":"boolean"},"value":{"description":"Description of the choice.","example":"Yes","type":"string"}},"type":"object"},"numberFieldTypeMetaDataObjectResponseBody":{"description":"The number field metadata.","properties":{"numberOfDecimalPlaces":{"description":"The number of decimal places allowed for the field.","example":4983279330600016000,"format":"int64","type":"integer"}},"type":"object"},"paginationResponse":{"description":"Pagination parameters.","properties":{"endCursor":{"description":"Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.","example":"MjkY","format":"string","type":"string"},"hasNextPage":{"description":"True if there are more pages of results immediately available after this endCursor.","example":true,"type":"boolean"}},"required":["endCursor","hasNextPage"],"type":"object"},"photoValueObjectRequestBody":{"properties":{"id":{"description":"Id of the photo.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"url":{"description":"Url of the photo.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"type":"object"},"photoValueObjectResponseBody":{"properties":{"id":{"description":"Id of the photo.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"url":{"description":"Url of the photo.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"type":"object"},"primaryTimeRangeRequestBody":{"description":"Primary time range of the report that not all datasets and report configs support.","properties":{"endTime":{"description":"End time of the time range filter in RFC3339 format.","example":"2019-06-13T21:08:25Z","format":"date-time","type":"string"},"startTime":{"description":"Start time of the time range filter in RFC3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["endTime","startTime"],"type":"object"},"primaryTimeRangeResponseBody":{"description":"Primary time range of the report that not all datasets and report configs support.","properties":{"endTime":{"description":"End time of the time range filter in RFC3339 format.","example":"2019-06-13T21:08:25Z","format":"date-time","type":"string"},"startTime":{"description":"Start time of the time range filter in RFC3339 format.","example":"2019-06-13T19:08:25Z","format":"date-time","type":"string"}},"required":["endTime","startTime"],"type":"object"},"reportColumnsObjectResponseBody":{"properties":{"dataType":{"description":"Data type of the column.  Valid values: `string`, `float`, `integer`, `timestamp`, `unknown`","enum":["string","float","integer","timestamp","unknown"],"example":"string","type":"string"},"name":{"description":"Name of the column.","example":"Device Name","type":"string"},"unit":{"description":"Unit of the column.  Valid values: `amperes`, `bars`, `cad`, `chf`, `days`, `decimalDegrees`, `degreesCelsius`, `degreesFahrenheit`, `eur`, `feet`, `gForces`, `gallons`, `gallonsPerHour`, `gallonsPerKilogram`, `gallonsPerMile`, `gbp`, `gramsPerLiter`, `gramsPerMeter`, `hertz`, `hours`, `imperialGallons`, `imperialGallonsPerHour`, `imperialGallonsPerKilogram`, `imperialGallonsPerMile`, `inches`, `kelvins`, `kilograms`, `kilogramsGaseousFuel`, `kilogramsPer100KilometerGaseousFuel`, `kilogramsPerGallon`, `kilogramsPerKilometer`, `kilogramsPerLiter`, `kilogramsPerMile`, `kilometers`, `kilometersPerHour`, `kilometersPerLiter`, `kilometersPerLiterGaseousFuel`, `kilopascals`, `kilowattHours`, `liters`, `litersGaseousFuel`, `litersPer100Kilometers`, `litersPer100KilometersGaseousFuel`, `litersPerHour`, `litersPerKilogram`, `litersPerKilometer`, `litersPerMeter`, `litersPerTonne`, `meters`, `metersPerSecond`, `miles`, `milesPerGallon`, `milesPerHour`, `milesPerImperialGallon`, `milesPerKilogramGaseousFuel`, `milesPerUSGallonGaseousFuel`, `milliknots`, `milliseconds`, `millivolts`, `minutes`, `months`, `mxn`, `percents`, `pounds`, `poundsPerGallon`, `poundsPerLiter`, `poundsPerMile`, `poundsPerSquareInch`, `revolutionsPerMinute`, `seconds`, `unknown`, `usGallonsGaseousFuel`, `usd`, `voltAmperes`, `voltAmperesReactive`, `volts`, `wattHours`, `watts`, `weeks`","enum":["amperes","bars","cad","chf","days","decimalDegrees","degreesCelsius","degreesFahrenheit","eur","feet","gForces","gallons","gallonsPerHour","gallonsPerKilogram","gallonsPerMile","gbp","gramsPerLiter","gramsPerMeter","hertz","hours","imperialGallons","imperialGallonsPerHour","imperialGallonsPerKilogram","imperialGallonsPerMile","inches","kelvins","kilograms","kilogramsGaseousFuel","kilogramsPer100KilometerGaseousFuel","kilogramsPerGallon","kilogramsPerKilometer","kilogramsPerLiter","kilogramsPerMile","kilometers","kilometersPerHour","kilometersPerLiter","kilometersPerLiterGaseousFuel","kilopascals","kilowattHours","liters","litersGaseousFuel","litersPer100Kilometers","litersPer100KilometersGaseousFuel","litersPerHour","litersPerKilogram","litersPerKilometer","litersPerMeter","litersPerTonne","meters","metersPerSecond","miles","milesPerGallon","milesPerHour","milesPerImperialGallon","milesPerKilogramGaseousFuel","milesPerUSGallonGaseousFuel","milliknots","milliseconds","millivolts","minutes","months","mxn","percents","pounds","poundsPerGallon","poundsPerLiter","poundsPerMile","poundsPerSquareInch","revolutionsPerMinute","seconds","unknown","usGallonsGaseousFuel","usd","voltAmperes","voltAmperesReactive","volts","wattHours","watts","weeks"],"example":"kilometersPerHour","type":"string"}},"required":["dataType","name"],"type":"object"},"reverseGeo":{"description":"Reverse geocoded information.","properties":{"formattedLocation":{"description":"Formatted address of the reverse geocoding data.","example":"16 N Fair Oaks Ave, Pasadena, CA 91103","type":"string"}},"type":"object"},"scannedDocumentValueObjectRequestBody":{"properties":{"id":{"description":"Id of the scanned document.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"url":{"description":"Url of the scanned document.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"type":"object"},"scannedDocumentValueObjectResponseBody":{"properties":{"id":{"description":"Id of the scanned document.","example":"f5271458-21f9-4a9f-a290-780c6d8840ff","type":"string"},"url":{"description":"Url of the scanned document.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"type":"object"},"sensorResponseBody":{"description":"A sensor","properties":{"id":{"description":"ID of the sensor","example":"12345","type":"string"},"mac":{"description":"The MAC address of the sensor","example":"00:00:5e:00:53:af","type":"string"},"name":{"description":"The name of the sensor","example":"Rear temperature sensor","type":"string"}},"required":["id","mac","name"],"type":"object"},"signatureFieldTypeMetaDataObjectResponseBody":{"description":"The signature field metadata.","properties":{"legalText":{"description":"The signature field legal text.","example":"Verified by signee.","type":"string"}},"type":"object"},"signatureValueObjectRequestBody":{"description":"The value of a signature field. Only present for signature fields.","properties":{"id":{"description":"Id of the signature field.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"name":{"description":"Name of the signee for a signature field.","example":"John Smith","type":"string"},"signedAtTime":{"description":"Time the signature was captured in RFC 3339 format.","example":"1985-08-03T18:38:16Z","format":"date-time","type":"string"},"url":{"description":"Url of a signature field's PNG signature image.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"type":"object"},"signatureValueObjectResponseBody":{"description":"The value of a signature field. Only present for signature fields.","properties":{"id":{"description":"Id of the signature field.","example":"9814a1fa-f0c6-408b-bf85-51dc3bc71ac7","type":"string"},"name":{"description":"Name of the signee for a signature field.","example":"John Smith","type":"string"},"signedAtTime":{"description":"Time the signature was captured in RFC 3339 format.","example":"1989-09-25T02:38:09Z","format":"date-time","type":"string"},"url":{"description":"Url of a signature field's PNG signature image.","example":"https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456","type":"string"}},"type":"object"},"singleDriverEfficiencyByDriverDataObjectResponseBody":{"description":"singleDriverEfficiencyByDriverDataObject","properties":{"difficultyScore":{"$ref":"#/components/schemas/DriverEfficiencyDifficultyScoreDataObjectResponseBody"},"driverId":{"description":"ID of the driver.","example":"driver_001","type":"string"},"percentageData":{"$ref":"#/components/schemas/DriverEfficiencyPercentageDataObjectResponseBody"},"rawData":{"$ref":"#/components/schemas/DriverEfficiencyRawDataObjectResponseBody"},"scoreData":{"$ref":"#/components/schemas/DriverEfficiencyDataObjectResponseBody"}},"required":["driverId"],"type":"object"},"singleDriverEfficiencyByVehicleDataObjectResponseBody":{"description":"singleDriverEfficiencyByVehicleDataObject","properties":{"difficultyScore":{"$ref":"#/components/schemas/DriverEfficiencyDifficultyScoreDataObjectResponseBody"},"percentageData":{"$ref":"#/components/schemas/DriverEfficiencyPercentageDataObjectResponseBody"},"rawData":{"$ref":"#/components/schemas/DriverEfficiencyRawDataObjectResponseBody"},"scoreData":{"$ref":"#/components/schemas/DriverEfficiencyDataObjectResponseBody"},"vehicleId":{"description":"ID of the vehicle.","example":"vehicle_001","type":"string"}},"required":["vehicleId"],"type":"object"},"speedingSeverityLevelResponseBody":{"description":"The settings for a specific speeding severity level.","properties":{"durationMs":{"description":"The amount of time the vehicle is speeding in this category before being attributed to this level","example":60,"format":"int32","type":"integer"},"isEnabled":{"default":true,"description":"Indicates the severity level is enabled","example":true,"type":"boolean"},"severityLevel":{"description":"The severity level name.  Valid values: `light`, `moderate`, `heavy`, `severe`","enum":["light","moderate","heavy","severe"],"example":"light","type":"string"},"speedOverLimitThreshold":{"description":"The minimum speed above the speed limit that will get attributed to this severity level.","example":10,"format":"float","type":"number"}},"required":["durationMs","isEnabled","severityLevel","speedOverLimitThreshold"],"type":"object"},"standardDeleteResponse":{"description":"A successful DELETE response is a 204 with no content.","example":"<empty content>","type":"string"},"standardErrorResponse":{"description":"Error response","properties":{"message":{"description":"The message of the error.","example":"An error has occurred.","type":"string"},"requestId":{"description":"The ID of the request.","example":"8916e1c1","type":"string"}},"type":"object"},"tagTinyResponse":{"description":"A minified tag object","properties":{"id":{"description":"ID of the tag.","example":"3914","type":"string"},"name":{"description":"Name of the tag.","example":"East Coast","type":"string"},"parentTagId":{"description":"If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.","example":"4815","type":"string"}},"type":"object"},"time":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string"},"trailerTinyResponse":{"description":"A minified trailer object.","properties":{"id":{"description":"ID of the trailer.","example":"123456789","type":"string"},"name":{"description":"Name of the trailer.","example":"Midwest Trailer #5","type":"string"}},"type":"object"},"userTinyResponse":{"description":"A minified user object.","properties":{"id":{"description":"ID of the user.","example":"88668","type":"string"},"name":{"description":"Name of the user.","example":"Susan Bob","type":"string"}},"type":"object"},"vehicleSensorConfigurationAreaResponseBody":{"description":"A configured sensor area on the vehicle with its associated sensors","properties":{"cargoSensors":{"items":{"$ref":"#/components/schemas/sensorResponseBody"},"type":"array"},"humiditySensors":{"items":{"$ref":"#/components/schemas/sensorResponseBody"},"type":"array"},"position":{"description":"Position of the area on vehicle  Valid values: `back`, `front`, `middle`","enum":["back","front","middle"],"example":"back","type":"string"},"temperatureSensors":{"items":{"$ref":"#/components/schemas/sensorResponseBody"},"type":"array"}},"required":["position"],"type":"object"},"vehicleSensorConfigurationDoorResponseBody":{"description":"A door monitor configuration on a vehicle","properties":{"position":{"description":"Position of the door monitor on the vehicle  Valid values: `back`, `left`, `right`","enum":["back","left","right"],"example":"back","type":"string"},"sensor":{"$ref":"#/components/schemas/sensorResponseBody"}},"required":["position","sensor"],"type":"object"},"vehicleSensorConfigurationResponseBody":{"description":"The sensors configured on a vehicle","properties":{"areas":{"description":"Configured sensor areas on the vehicle with its associated sensors","items":{"$ref":"#/components/schemas/vehicleSensorConfigurationAreaResponseBody"},"type":"array"},"doors":{"description":"Configured door monitors on the vehicle","items":{"$ref":"#/components/schemas/vehicleSensorConfigurationDoorResponseBody"},"type":"array"}},"type":"object"},"vehicleStatsAuxInputTime":{"description":"UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.","example":"2020-01-27T07:06:25Z","type":"string","x-go-gen-location":"models"},"vehicleTinyResponse":{"description":"A minified vehicle object.","properties":{"ExternalIds":{"additionalProperties":{"type":"string"},"description":"The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.","example":{"maintenanceId":"250020","payrollId":"ABFS18600"},"type":"object"},"id":{"description":"ID of the vehicle.","example":"123456789","type":"string"},"name":{"description":"Name of the vehicle.","example":"Midwest Truck #4","type":"string"}},"type":"object"}},"securitySchemes":{"AccessTokenHeader":{"type":"http","scheme":"bearer"}}},"info":{"description":"# Overview\n\n> 📘 Something new!\n>\n> Welcome Samsara's new and improved API. Check out our FAQ [here](https://developers.samsara.com/docs/introducing-our-next-generation-api) to see what's changed and learn how to get started.\n>\n> Want to access the legacy API docs? You can find them [here](https://www.samsara.com/api-legacy).\n>\n> _Note: Because this is a new set of APIs, we have not transitioned all endpoints over to this standard. Endpoints that still use the legacy standards are indicated in the reference documentation. If you can't find an API that you're looking for, we encourage you to look for it in our [legacy API docs](https://www.samsara.com/api-legacy) as we continue to transition all endpoints over. Check back here for updates!_\n>\n> Submit your feedback [here](https://forms.gle/r4bs6HQshQAvBuwv6)!\n\nSamsara provides API endpoints so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets.\n\nThe Samsara API is a [RESTful API](https://en.wikipedia.org/wiki/Representational_state_transfer). It uses standard [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) authentication, verbs, and response codes, and it returns [JSON](http://www.json.org/) response bodies. If you're familiar with what you can build with a REST API, then this will be your go-to API reference.\n\nVisit [developers.samsara.com](https://developers.samsara.com) to find getting started guides and an API overview.\n\nIf you have any questions, please visit https://samsara.com/help.\n\n## Endpoints\n\nAll our APIs can be accessed through HTTP requests to URLs like:\n\n```\nhttps://api.samsara.com/<endpoint>\n```\n\nFor EU customers, this URL will be:\n\n```\nhttps://api.eu.samsara.com/<endpoint>\n```\n\n> 🚧 Note\n>\n> Legacy endpoints will have the URL: `https://api.samsara.com/v1/<endpoint>` or `https://api.eu.samsara.com/v1/<endpoint>`\n\n## Authentication\n\nTo authenticate your API request you will need to include your secret token. You can manage your API tokens in the [Dashboard](https://cloud.samsara.com). They are visible under `Settings->Organization->API Tokens`.\n\nYour API tokens carry many privileges, so be sure to keep them secure. Do not share your secret API tokens in publicly accessible areas such as GitHub, client-side code, and so on.\n\nAuthentication to the API is performed via Bearer Token in the HTTP Authorization header. Provide your API token as the `access_token` value in an `Authorization: Bearer` header. You do not need to provide a password:\n\n```curl\nAuthorization: Bearer {access_token}\n```\n\nAll API requests must be made over [HTTPS](https://en.wikipedia.org/wiki/HTTPS). Calls made over plain HTTP or without authentication will fail.\n\n### OAuth2\n\nIf building an application for our marketplace, our API is accessible via. OAuth2 as well.\n\n| Type              |                  Value                   |\n| ----------------- | :--------------------------------------: |\n| Security scheme   |                  OAuth2                  |\n| OAuth2 Flow       |                accessCode                |\n| Authorization URL | https://api.samsara.com/oauth2/authorize |\n| Token URL         |   https://api.samsara.com/oauth2/token   |\n\n## Common Patterns\n\nYou can find more info about request methods, response codes, error codes, versioning, pagination, timestamps, and mini-objects [here](https://developers.samsara.com/docs/common-structures).\n","title":"Samsara API","version":"2025-10-23"},"openapi":"3.0.1","paths":{"/addresses":{"get":{"description":"Returns a list of all addresses in an organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Addresses** under the Addresses category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listAddresses","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on data to have a created at time after or equal to this specified time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"createdAfterTime","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":[{"addressTypes":["yard"],"contacts":[{"firstName":"Jane","id":"22408","lastName":"Jones"}],"createdAtTime":"2019-05-18T20:27:35Z","externalIds":{"maintenanceId":"250020","payrollId":"ABFS18600"},"formattedAddress":"350 Rhode Island St, San Francisco, CA","geofence":{"circle":{"latitude":37.765363,"longitude":-122.4029238,"radiusMeters":25},"polygon":{"vertices":[{"latitude":37.765363,"longitude":-122.403098},{"latitude":38.765363,"longitude":-122.403098},{"latitude":37.765363,"longitude":-123.403098}]}},"id":"22408","latitude":37.765363,"longitude":-122.4029238,"name":"Samsara HQ","notes":"Hours of operation: 8am - 6pm; Truck entrance on the Rhode Island street side.","tags":[{"id":"3914","name":"East Coast","parentTagId":"4815"}]}],"pagination":{"endCursor":"MjkY","hasNextPage":true}},"schema":{"$ref":"#/components/schemas/ListAddressesResponse"}}},"description":"List of all addresses in the organization"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all addresses","tags":["Addresses"]},"post":{"description":"Creates a new address in the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Addresses** under the Addresses category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createAddress","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAddressRequest"}}},"description":"The address to create.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}},"description":"Newly created address object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create an address","tags":["Addresses"],"x-codegen-request-body-name":"address"}},"/addresses/{id}":{"delete":{"description":"Delete a specific address. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Addresses** under the Addresses category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteAddress","parameters":[{"description":"ID of the Address. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Unexpected error."}},"summary":"Delete an address","tags":["Addresses"]},"get":{"description":"Returns a specific address. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Addresses** under the Addresses category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getAddress","parameters":[{"description":"ID of the Address. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}},"description":"An Address."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve an address","tags":["Addresses"]},"patch":{"description":"Update a specific address. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Addresses** under the Addresses category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateAddress","parameters":[{"description":"ID of the Address. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAddressRequest"}}},"description":"The address fields to update.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}},"description":"Updated address object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update an address","tags":["Addresses"],"x-codegen-request-body-name":"address"}},"/agent-studio/voice-sessions":{"get":{"description":"Returns full details — including the transcript, tool calls, lifecycle events, and a recording URL — for a batch of voice agent sessions identified by `ids`. Discover session IDs with GET /agent-studio/voice-sessions/stream. Up to 100 IDs may be requested per call; IDs that are not found are omitted from the response.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Agent Studio Voice Sessions** under the Closed Beta category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getVoiceSessions","parameters":[{"description":"Required, comma-separated list of voice session IDs to fetch full details for. Up to 100 session IDs per call. IDs that are not found are omitted from the response.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get voice agent session details","tags":["Beta APIs"]}},"/agent-studio/voice-sessions/stream":{"get":{"description":"Returns a paginated stream of voice agent session summaries, filterable by start time, agent, vehicle, driver, and status. Sessions are returned ordered by `happenedAtTime` descending (most recent first). Use this endpoint to discover sessions; pass the returned IDs to GET /agent-studio/voice-sessions to fetch full session details.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Agent Studio Voice Sessions** under the Closed Beta category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getVoiceSessionsStream","parameters":[{"description":"Lower bound on session start time, in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2026-05-19T14:23:11Z, 2026-05-19T14:23:11.455Z, OR 2026-05-19T10:23:11-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Upper bound on session start time, in RFC 3339 format. Defaults to the current time when omitted. Millisecond precision and timezones are supported.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Required, comma-separated list of Agent Studio agent IDs to filter sessions on. Up to 100 agent IDs per call.","explode":false,"in":"query","name":"agentIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional, comma-separated list of vehicle IDs. When set, only sessions whose target device was associated with one of these vehicles are returned. Up to 100 vehicle IDs per call.","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional, comma-separated list of driver IDs. When set, only sessions whose target device was associated with one of these drivers are returned. Up to 100 driver IDs per call.","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional, comma-separated list of session statuses to filter on. Valid values: `completed`, `running`, `failed`, `unknown`. Defaults to `completed` when omitted.","explode":false,"in":"query","name":"sessionStatus","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of sessions to return. Default 50, max 100.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStudioVoiceSessionsGetVoiceSessionsStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Stream voice agent session summaries","tags":["Beta APIs"]}},"/alerts/configurations":{"delete":{"description":"Delete an alert configuration.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Alerts** under the Alerts category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteConfigurations","parameters":[{"description":"The unqiue Samsara id of the alert configuration.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsDeleteConfigurationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete alert configurations.","tags":["Alerts"]},"get":{"description":"Get specified Alert Configurations.\n\nThe following trigger types are API enabled and will show up in the results:\nVehicle Speed\nAmbient Temperature\nFuel Level (Percentage)\nVehicle DEF Level (Percentage)\nVehicle Battery\nGateway Unplugged\nDashcam Disconnected\nCamera Connector Disconnected\nAsset starts moving\nInside Geofence\nOutside Geofence\nUnassigned Driving\nDriver HOS Violation\nVehicle Engine Idle\nAsset Engine On\nAsset Engine Off\nHarsh Event\nScheduled Maintenance\nScheduled Maintenance by Odometer\nScheduled Maintenance by Engine Hours\nOut of Route\nGPS Signal Loss\nCell Signal Loss\nFault Code\nTire Faults\nGateway Disconnected\nPanic Button\nTampering Detected\nAsset Reading\nIf vehicle is severely speeding (as defined by your organization)\nDVIR Submitted for Asset\nDriver Document Submitted\nDriver App Sign In\nDriver App Sign Out\nGeofence Entry\nGeofence Exit\nRoute Stop ETA Alert\nDriver Recorded\nA safety event occurred with a driver assigned\nA safety event occurred\nSudden Fuel Level Rise\nSudden Fuel Level Drop\nScheduled Date And Time\nTraining Assignment Due Soon\nTraining Assignment Past Due\nAsset assignment past due\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Alerts** under the Alerts category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getConfigurations","parameters":[{"description":"Filter by the IDs. Returns all if no ids are provided.","explode":true,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The status of the alert configuration.  Valid values: `all`, `enabled`, `disabled`","in":"query","name":"status","schema":{"default":"all","enum":["all","enabled","disabled"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetConfigurationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Alert Configurations.","tags":["Alerts"]},"patch":{"description":"Updates an alert configuration.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Alerts** under the Alerts category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchConfigurations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPatchConfigurationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update alert configurations.","tags":["Alerts"],"x-codegen-request-body-name":"PatchConfigurationsRequestBody"},"post":{"description":"Creates an alert configuration.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Alerts** under the Alerts category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postConfigurations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsPostConfigurationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create alert configurations.","tags":["Alerts"],"x-codegen-request-body-name":"PostConfigurationsRequestBody"}},"/alerts/incidents/stream":{"get":{"description":"Get Alert Incidents for specific Alert Configurations over a specified period of time.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Alerts** under the Alerts category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIncidents","parameters":[{"description":"Required RFC 3339 timestamp that indicates when to begin receiving data. This will be based on updatedAtTime.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Required array of alert configuration ids to return incident data for.","explode":true,"in":"query","name":"configurationIds","required":true,"schema":{"items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"style":"form"},{"description":"Optional RFC 3339 timestamp to stop receiving data. Defaults to now if not provided. This will be based on updatedAtTime.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertsGetIncidentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Alert Incidents.","tags":["Alerts"]}},"/assets":{"delete":{"description":"Delete an existing asset.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteAsset","parameters":[{"description":"A filter selecting a single asset by id.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsDeleteAssetBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete an existing asset.","tags":["Assets"]},"get":{"description":"List all assets. Up to 300 assets will be returned per page.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listAssets","parameters":[{"description":"The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized.  Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`","in":"query","name":"type","schema":{"enum":["uncategorized","trailer","equipment","unpowered","vehicle"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A filter on data to have an updated at time after or equal to this specified time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"updatedAfterTime","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether to return tags on supported entities","in":"query","name":"includeTags","schema":{"type":"boolean"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of asset IDs and External IDs.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of external IDs. Example: `externalIds=maintenanceId:250020,vin:1HGBH41JXMN109186`","explode":false,"in":"query","name":"externalIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of attribute value IDs. Only entities associated with ALL of the referenced values will be returned (i.e. the intersection of the sets of entities with each value). Example: `attributeValueIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","in":"query","name":"attributeValueIds","schema":{"type":"string"}},{"description":"A filter on the data to return entities within given range query (only for numeric and date attributes) separated by a comma. Only entities meeting all the conditions will be returned. At least one bound must be provided. Example: `attributes=Length:range(8,)&attributes=Length:range(10,20)&attributes=Date:range(2025-01-01,2025-01-31)`","explode":true,"in":"query","name":"attributes","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean indicating whether to return attributes on supported entities","in":"query","name":"includeAttributes","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsListAssetsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List all assets.","tags":["Assets"]},"patch":{"description":"Update an existing asset.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateAsset","parameters":[{"description":"ID of the asset to update. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the asset.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsUpdateAssetBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update an existing asset.","tags":["Assets"],"x-codegen-request-body-name":"UpdateAssetRequestBody"},"post":{"description":"Create a new asset.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createAsset","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsCreateAssetBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a new asset.","tags":["Assets"],"x-codegen-request-body-name":"CreateAssetRequestBody"}},"/assets/depreciation":{"get":{"description":"Returns depreciation and adjustment transactions for assets. Transactions are returned in ascending order by the selected time field. Use queryByTimeField=updatedAtTime for incremental sync.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDepreciationTransactions","parameters":[{"description":"RFC 3339 timestamp. Inclusive start of the range, compared against queryByTimeField. Required when querying by eventTime; optional when querying by updatedAtTime. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"RFC 3339 timestamp. Exclusive end of the range, compared against queryByTimeField. If omitted, the range is open-ended. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"Time field compared with startTime and endTime. Defaults to eventTime for organizations enabled for event-time queries; otherwise updatedAtTime.  Valid values: `eventTime`, `updatedAtTime`","in":"query","name":"queryByTimeField","schema":{"enum":["eventTime","updatedAtTime"],"type":"string"}},{"description":"Filter by asset IDs. Up to 50 ids.","explode":true,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepreciationGetDepreciationTransactionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get depreciation transactions.","tags":["Beta APIs"]}},"/assets/inputs/stream":{"get":{"description":"This endpoint will return data collected from the inputs of your organization's assets based on the time parameters passed in. Results are paginated. If you include an endTime, the endpoint will return data up until that point. If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. The endpoint will only return data up until the endTime that has been processed by the server at the time of the original request. You will need to request the same [startTime, endTime) range again to receive data for assets processed after the original request time. This endpoint sorts data by time ascending.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getAssetsInputs","parameters":[{"description":"Comma-separated list of asset IDs. Limited to 100 ID's for each request.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Input stat type to query for.  Valid values: `auxInput1`, `auxInput2`, `auxInput3`, `auxInput4`, `auxInput5`, `auxInput6`, `auxInput7`, `auxInput8`, `auxInput9`, `auxInput10`, `auxInput11`, `auxInput12`, `auxInput13`, `analogInput1Voltage`, `analogInput2Voltage`, `analogInput1Current`, `analogInput2Current`, `batteryVoltage`","in":"query","name":"type","required":true,"schema":{"enum":["auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","analogInput1Voltage","analogInput2Voltage","analogInput1Current","analogInput2Current","batteryVoltage"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to never if not provided; if not provided then pagination will not cease, and a valid pagination cursor will always be returned. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether to return tags on supported entities","in":"query","name":"includeTags","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether to return attributes on supported entities","in":"query","name":"includeAttributes","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInputsGetAssetsInputsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List asset inputs data in an organization.","tags":["Beta APIs"]}},"/assets/location-and-speed/stream":{"get":{"description":"This endpoint will return asset locations and speed data that has been collected for your organization based on the time parameters passed in. Results are paginated. If you include an endTime, the endpoint will return data up until that point. If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. The endpoint will only return data up until the endTime that has been processed by the server at the time of the original request. You will need to request the same [startTime, endTime) range again to receive data for assets processed after the original request time. This endpoint sorts the time-series data by device.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Vehicles** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getLocationAndSpeed","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to never if not provided; if not provided then pagination will not cease, and a valid pagination cursor will always be returned. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Comma-separated list of asset IDs.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean indicating whether or not to return the 'speed' object","in":"query","name":"includeSpeed","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether or not to return the 'address' object. Address information won't be returned for high-frequency locations.","in":"query","name":"includeReverseGeo","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether or not to return the 'geofence' object","in":"query","name":"includeGeofenceLookup","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether or not to return high-frequency location data (up to 1Hz). Cannot be used with includeGeofenceLookup.","in":"query","name":"includeHighFrequencyLocations","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAndSpeedGetLocationAndSpeedBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List asset location and speed data in an organization.","tags":["Location and Speed"]}},"/attributes":{"get":{"description":"Fetch all attributes in an organization associated with drivers, assets, or work orders. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Attributes** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getAttributesByEntityType","parameters":[{"description":"Denotes the type of entity, driver, asset, or workOrder. `workOrder` requires work order attributes to be enabled for the organization.","in":"query","name":"entityType","required":true,"schema":{"enum":["driver","asset","workOrder"],"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAttributesByEntityTypeResponse"}}},"description":"All attributes in an organization for an entity type"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all attributes by entity type","tags":["Attributes"]},"post":{"description":"Creates a new attribute in the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Attributes** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createAttribute","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAttributeRequest"}}},"description":"The attribute to create.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeExpandedResponse"}}},"description":"Newly created attribute object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create an attribute","tags":["Attributes"],"x-codegen-request-body-name":"attribute"}},"/attributes/{id}":{"delete":{"description":"Delete an attribute by id, including all of its applications. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Attributes** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteAttribute","parameters":[{"description":"Samsara-provided UUID of the attribute.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Denotes the type of entity, driver, asset, or workOrder. `workOrder` requires work order attributes to be enabled for the organization.","in":"query","name":"entityType","required":true,"schema":{"enum":["driver","asset","workOrder"],"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Deleting an attribute","tags":["Attributes"]},"get":{"description":"Fetch an attribute by id, including all of its applications. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Attributes** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getAttribute","parameters":[{"description":"Samsara-provided UUID of the attribute.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Denotes the type of entity, driver, asset, or workOrder. `workOrder` requires work order attributes to be enabled for the organization.","in":"query","name":"entityType","required":true,"schema":{"enum":["driver","asset","workOrder"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeExpandedResponse"}}},"description":"The attribute corresponding to request id."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve an attribute","tags":["Attributes"]},"patch":{"description":"Updates an attribute in the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Attributes** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateAttribute","parameters":[{"description":"Samsara-provided UUID of the attribute.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAttributeRequest"}}},"description":"The attribute to update.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeExpandedResponse"}}},"description":"Newly created attribute object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update an attribute","tags":["Attributes"],"x-codegen-request-body-name":"attribute"}},"/beta/aemp/Fleet/{pageNumber}":{"get":{"description":"Get a list of equipment following the AEMP ISO 15143-3 standard.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read AEMP** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getAempEquipmentList","parameters":[{"description":"The number corresponding to a specific page of paginated results, defaulting to the first page if not provided. The default page size is 100 records.","in":"path","name":"pageNumber","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AempEquipmentGetAempEquipmentListBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a list of AEMP equipment","tags":["Beta APIs"]}},"/beta/fleet/drivers/efficiency":{"get":{"description":"Get all driver and associated vehicle efficiency data. \n\n This is a legacy endpoint, consider using this endpoint [/driver-efficiency/drivers](https://developers.samsara.com/reference/getdriverefficiencybydrivers) instead. The endpoint will continue to function as documented. \n\n <b>Rate limit:</b> 50 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDriverEfficiency","parameters":[{"description":"If value is `deactivated`, only drivers that are deactivated will appear in the response. This parameter will default to `active` if not provided (fetching only active drivers).","in":"query","name":"driverActivationStatus","schema":{"enum":["active","deactivated"],"type":"string"}},{"description":"A filter on the data based on this comma-separated list of driver IDs. Cannot be used with tag filtering or driver status. Example: `driverIds=1234,5678`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Filters summary to drivers based on this comma-separated list of tag IDs. Data from all the drivers' respective vehicles will be included in the summary, regardless of which tag the vehicle is associated with. Should not be provided in addition to `driverIds`. Example: driverTagIds=1234,5678","explode":false,"in":"query","name":"driverTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filters like `driverTagIds` but includes descendants of all the given parent tags. Should not be provided in addition to `driverIds`. Example: `driverParentTagIds=1234,5678`","explode":false,"in":"query","name":"driverParentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A start time in RFC 3339 format. The results will be truncated to the hour mark for the provided time. For example, if `startTime` is 2020-03-17T12:06:19Z then the results will include data starting from 2020-03-17T12:00:00Z. The provided start time cannot be in the future. Start time can be at most 31 days before the end time. If the start time is within the last hour, the results will be empty. Default: 24 hours prior to endTime.\n\nNote that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours.","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"An end time in RFC 3339 format. The results will be truncated to the hour mark for the provided time. For example, if `endTime` is 2020-03-17T12:06:19Z then the results will include data up until 2020-03-17T12:00:00Z. The provided end time cannot be in the future. End time can be at most 31 days after the start time. Default: The current time truncated to the hour mark.\n\nNote that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficienciesResponse"}}},"description":"List of all driver and associated vehicle efficiency data"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Unexpected error."}},"summary":"[beta] List driver efficiency","tags":["Beta APIs"]}},"/beta/fleet/equipment/{id}":{"patch":{"description":"Update an equipment.  **Note** this implementation of patch uses [the JSON merge patch](https://tools.ietf.org/html/rfc7396) proposed standard.\n This means that any fields included in the patch request will _overwrite_ fields which exist on the target resource.\n For arrays, this means any array included in the request will _replace_ the array that exists at the specified path, it will not _add_ to the existing array\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchEquipment","parameters":[{"description":"The unique Samsara ID of the Equipment. This is automatically generated when the Equipment object is created. It cannot be changed.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentPatchEquipmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update an equipment","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchEquipmentRequestBody"}},"/beta/fleet/hos/drivers/eld-events":{"get":{"description":"Get all HOS ELD events in a time range, grouped by driver. Attributes will be populated depending on which ELD Event Type is being returned.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getHosEldEvents","parameters":[{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"If value is `deactivated`, only drivers that are deactivated will appear in the response. This parameter will default to `active` if not provided (fetching only active drivers).  Valid values: `active`, `deactivated`","in":"query","name":"driverActivationStatus","schema":{"default":"active","enum":["active","deactivated"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 25 objects.","in":"query","name":"limit","schema":{"default":25,"maximum":25,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosEldEventsGetHosEldEventsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get driver HOS ELD events","tags":["Beta APIs"]}},"/beta/fleet/vehicles/{id}/immobilizer":{"patch":{"description":"Update the engine immobilizer state of a vehicle. This requires an engine immobilizer to be installed on the vehicle gateway.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Vehicle Immobilization** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateEngineImmobilizerState","parameters":[{"description":"Vehicle ID","in":"path","name":"id","required":true,"schema":{"format":"int64","type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody"}}},"required":true},"responses":{"202":{"content":{},"description":"Accepted response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerUpdateEngineImmobilizerStateBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update engine immobilizer state of a vehicle.","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateEngineImmobilizerStateRequestBody"}},"/beta/industrial/jobs":{"delete":{"description":"Deletes an existing job.\n\nTo use this endpoint, select **Write Jobs** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteJob","parameters":[{"description":"A jobId or uuid in STRING format. JobId must be prefixed with `jobId:`(Examples: `\"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596\"`, `\"jobId:98765\"`).","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsDeleteJobBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Deletes an existing job","tags":["Beta APIs"]},"get":{"description":"Fetches jobs based on id/uuid or provided filters.\n\nTo use this endpoint, select **Read Jobs** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getJobs","parameters":[{"description":"A jobId or uuid in STRING format. JobId must be prefixed with `jobId:`(Examples: `\"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596\"`, `\"jobId:98765\"`).","in":"query","name":"id","schema":{"type":"string"}},{"description":" A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startDate","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endDate","schema":{"type":"string"}},{"description":"IndustrialAssetId in STRING format. (Example: `\"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596\"`).","explode":true,"in":"query","name":"industrialAssetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"FleetDeviceId in INTEGER format. (Example: `123456`).","explode":true,"in":"query","name":"fleetDeviceIds","schema":{"items":{"type":"integer"},"type":"array"},"style":"form"},{"description":"A job status in STRING format. Job statuses can be one of three (ignores case): `\"active\", \"scheduled\", \"completed\"`  Valid values: `active`, `scheduled`, `completed`","in":"query","name":"status","schema":{"enum":["active","scheduled","completed"],"type":"string"}},{"description":"Customer name to filter by","in":"query","name":"customerName","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsGetJobsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Fetches all jobs","tags":["Beta APIs"]},"patch":{"description":"Patches an existing job and returns it.\n\nTo use this endpoint, select **Write Jobs** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchJob","parameters":[{"description":"A jobId or uuid in STRING format. JobId must be prefixed with `jobId:`(Examples: `\"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596\"`, `\"jobId:98765\"`).","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsPatchJobBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Patches a job","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchJobRequestBody"},"post":{"description":"Creates a new job and returns it.\n\nTo use this endpoint, select **Write Jobs** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createJob","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsCreateJobBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a job","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateJobRequestBody"}},"/cameras/media":{"get":{"description":"This endpoint returns a list of all uploaded media (video and still images) matching query parameters, with a maximum query range of one day. Additional media can be retrieved with the [Create a media retrieval request](https://developers.samsara.com/reference/postmediaretrieval) endpoint, and they will be included in the list after they are uploaded. Urls provided by this endpoint expire in 8 hours.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Media Retrieval** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listUploadedMedia","parameters":[{"description":"A filter on the data based on this comma-separated list of vehicle IDs and externalIds. You can specify up to 20 vehicles. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","required":true,"schema":{"type":"string"}},{"description":"An optional list of desired camera inputs for which to return captured media. If empty, media for all available inputs will be returned.","explode":true,"in":"query","name":"inputs","schema":{"items":{"enum":["dashcamRoadFacing","dashcamDriverFacing","analog1","analog2","analog3","analog4"],"type":"string"},"type":"array"},"style":"form"},{"description":"An optional list of desired media types for which to return captured media. If empty, media for all available media types will be returned. Possible options include: image, videoHighRes.","explode":true,"in":"query","name":"mediaTypes","schema":{"items":{"enum":["image","videoHighRes"],"type":"string"},"type":"array"},"style":"form"},{"description":"An optional list of desired trigger reasons for which to return captured media. If empty, media for all available trigger reasons will be returned. Possible options include: api, panicButton, periodicStill, rfidEvent, safetyEvent, tripEndStill, tripStartStill, videoRetrieval. videoRetrieval represents media captured for a dashboard video retrieval request.","explode":true,"in":"query","name":"triggerReasons","schema":{"items":{"enum":["api","panicButton","periodicStill","rfidEvent","safetyEvent","tripEndStill","tripStartStill","videoRetrieval"],"type":"string"},"type":"array"},"style":"form"},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. End time cannot be more than 24 hours after startTime. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"An optional timestamp in RFC 3339 format that can act as a cursor to track which media has previously been retrieved; only media whose availableAtTime comes after this parameter will be returned. Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00","in":"query","name":"availableAfterTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalListUploadedMediaBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List uploaded media by time range.","tags":["Media"]}},"/cameras/media/retrieval":{"get":{"description":"This endpoint returns media information corresponding to a retrieval ID. Retrieval IDs are associated to prior [media retrieval requests](https://developers.samsara.com/reference/postmediaretrieval). Urls provided by this endpoint expire in 8 hours.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Media Retrieval** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getMediaRetrieval","parameters":[{"description":"Retrieval ID associated with this media capture request. Examples: 2308cec4-82e0-46f1-8b3c-a3592e5cc21e","in":"query","name":"retrievalId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalGetMediaRetrievalBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get details for a media retrieval request","tags":["Media"]},"post":{"description":"This endpoint creates an asynchronous request to upload certain media from a device. The closest available media to the requested timestamp is returned. Images, videos(both high resolution and low resolution) and hyperlapses are supported.Currently, only unblurred media is supported. If a device is offline, the requested media will be uploaded once it comes back online. Quota limits are enforced for media retrievals made through the API. The Create a media retrieval request response includes information about the media retrieval quota remaining for the organization. The media retrieval quota for the organization is reset at the beginning of each month.The quota is expressed using seconds of High Resolution video. 10 still images are equivalent to a 1 second of High Resolution footage.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Media Retrieval** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postMediaRetrieval","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRetrievalPostMediaRetrievalBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a media retrieval request","tags":["Media"],"x-codegen-request-body-name":"PostMediaRetrievalRequestBody"}},"/coaching/driver-coach-assignments":{"get":{"description":"This endpoint will return coach assignments for your organization based on the parameters passed in. Results are paginated.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Coaching** under the Coaching category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverCoachAssignment","parameters":[{"description":"Optional string of comma separated IDs of the drivers. This can be either a unique Samsara driver ID or an external ID for the driver.","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated IDs of the coaches.","explode":false,"in":"query","name":"coachIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsGetDriverCoachAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get driver coach assignments.","tags":["Coaching"]},"put":{"description":"This endpoint will update an existing or create a new coach-to-driver assignment for your organization based on the parameters passed in. This endpoint should only be used for existing Coach to Driver assignments. In order to remove a driver-coach-assignment for a given driver, set coachId to null\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Coaching** under the Coaching category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"putDriverCoachAssignment","parameters":[{"description":"Required string ID of the driver. This is a unique Samsara ID of a driver.","in":"query","name":"driverId","required":true,"schema":{"type":"string"}},{"description":"Optional string ID of the coach. This is a unique Samsara user ID. If not provided, existing coach assignment will be removed.","in":"query","name":"coachId","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverCoachAssignmentsPutDriverCoachAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Put driver coach assignments.","tags":["Coaching"]}},"/coaching/sessions/stream":{"get":{"description":"This endpoint will return coaching sessions for your organization based on the time parameters passed in. Results are paginated by sessions. If you include an endTime, the endpoint will return data up until that point. If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Coaching** under the Coaching category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getCoachingSessions","parameters":[{"description":"Optional string of comma separated driver IDs. If driver ID is present, sessions for the specified driver(s) will be returned.","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated user IDs. If coach ID is present, sessions for the specified coach(s) will be returned for either assignedCoach or completedCoach. If both driverId(s) and coachId(s) are present, sessions with specified driver(s) and coach(es) will be returned.","explode":false,"in":"query","name":"coachIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated statuses. Valid values:  “upcoming”, “completed”, “deleted”.","explode":false,"in":"query","name":"sessionStatuses","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean to control whether behaviors will include coachableEvents in the response. Defaults to false.","in":"query","name":"includeCoachableEvents","schema":{"type":"boolean"}},{"description":"Required RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime`","in":"query","name":"startTime","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Optional RFC 3339 timestamp. If not provided then the endpoint behaves as an unending feed of changes. If endTime is set the same as startTime, the most recent data point before that time will be returned per asset. Value is compared against `updatedAtTime`","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionsGetCoachingSessionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get coaching sessions.","tags":["Coaching"]}},"/contacts":{"get":{"description":"Returns a list of all contacts in an organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Alert Contacts** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listContacts","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactsResponse"}}},"description":"List of all contacts"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all contacts","tags":["Contacts"]},"post":{"description":"Add a contact to the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Alert Contacts** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createContact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequest"}}},"description":"The contact create parameters.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Contact was successfully added."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create a contact","tags":["Contacts"],"x-codegen-request-body-name":"contact"}},"/contacts/{id}":{"delete":{"description":"Delete the given contact. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Alert Contacts** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteContact","parameters":[{"description":"Unique identifier for the contact.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Delete a contact","tags":["Contacts"]},"get":{"description":"Get a specific contact's information. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Alert Contacts** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getContact","parameters":[{"description":"Unique identifier for the contact.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Returns the specified contact."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve a contact","tags":["Contacts"]},"patch":{"description":"Update a specific contact's information. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Alert Contacts** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateContact","parameters":[{"description":"Unique identifier for the contact.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactRequest"}}},"description":"Updates to the contact.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Updated contact object with given ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a contact","tags":["Contacts"],"x-codegen-request-body-name":"contact"}},"/defect-types":{"get":{"description":"Get DVIR defect types.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Defect Types** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDefectTypes","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":"A filter on the data based on this comma-separated list of defect type IDs.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectTypeGetDefectTypesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get DVIR defect types.","tags":["Maintenance"]}},"/defects/stream":{"get":{"description":"Stream DVIR defects.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Defects** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"streamDefects","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Required RFC 3339 timestamp to begin the feed or history by `updatedAtTime` at `startTime`.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Optional RFC 3339 timestamp. If not provided then the endpoint behaves as an unending feed of changes.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Boolean value for whether filter defects by resolved status.","in":"query","name":"isResolved","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectStreamDefectsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Stream DVIR defects.","tags":["Maintenance"]}},"/defects/{id}":{"get":{"description":"Get a single DVIR defect by ID.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Defects** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDefect","parameters":[{"description":"The unique ID of the DVIR defect.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirDefectGetDefectBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a single DVIR defect by ID.","tags":["Maintenance"]}},"/detections/stream":{"get":{"description":"This endpoint will return all detections detected by in-vehicle assets and associated metadata. To get core endpoint data, select View Safety Detection Log under the Safety & Cameras category when creating or editing an API token.\n\nIf you include an endTime, the endpoint will return data up until that point. If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. Results are paginated.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Detection Log** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDetections","parameters":[{"description":"Optional string of comma separated driver IDs. If driver ID is present, events for the specified driver(s) will be returned. Max for this value is 2000 objects. (Example: 281474982859091,281471982957527)","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Max for this value is 2000 objects. (Example: 281474982859091,281471982957527)","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshImpact`, `harshTurn`, `heavySpeeding`, `laneDeparture`, `lightSpeeding`, `maxSpeed`, `mobileUsage`, `moderateSpeeding`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `proximityWarning`, `ranRedLight`, `rearCollisionWarning`, `reversing`, `rollingStop`, `rolloverProtection`, `severeSpeeding`, `smoking`, `speeding`, `unsafeParking`, `vehicleInBlindSpotWarning`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt)","explode":false,"in":"query","name":"detectionBehaviorLabels","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated reasons to filter detections. Uses OR semantics for filtering. An empty list allows all values. Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `inCabAlertOnly`, `unknown`. (Example: overDailyLimit,overHourlyLimit,belowConfidenceThreshold)","explode":false,"in":"query","name":"inboxFilterReason","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Indicates whether or not to return detections with an associated Safety Inbox event. An empty entry allows all values. (Example: true)","in":"query","name":"inboxEvent","schema":{"type":"boolean"}},{"description":"Indicates whether or not to return detections where in-cab alert played. An empty entry allows all values. (Example: true)","in":"query","name":"inCabAlertPlayed","schema":{"type":"boolean"}},{"description":"An optional filter on the data based on this comma-separated list of tag IDs. The filtering is OR inclusive for asset and driver tags. (Example: 1234,5678)","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Indicates whether or not to return expanded data for asset objects. (Example: true)","in":"query","name":"includeAsset","schema":{"default":false,"type":"boolean"}},{"description":"Indicates whether or not to return expanded data for driver objects. (Example: true)","in":"query","name":"includeDriver","schema":{"default":false,"type":"boolean"}},{"description":"Required RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime`. (Example: 2024-04-16T19:08:25Z)","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Optional RFC 3339 timestamp. If not provided then the endpoint behaves as an unending feed of changes. If endTime is set the same as startTime, the most recent data point before that time will be returned per asset. Value is compared against `updatedAtTime`. (Example: 2024-04-23T19:08:25Z)","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionLogGetDetectionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Returns a list of all detections in an organization.","tags":["Beta APIs"]}},"/devices":{"get":{"description":"Returns all installed cameras (CM3x, AIM4, AHD1), vehicle gateways (VGs), asset gateways (AGs), and asset tags (AT11–AT13) and their health information within an organization. \n\n**Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Devices API enabled for your organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Devices** under the Devices category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDevices","parameters":[{"description":"Optional string of comma separated device models. Valid values: `CM31`, `CM32`, `CM33`, `CM34`, `VG34`, `VG34M`, `VG34EU`, `VG34FN`, `VG54NA`, `VG54EU`, `VG55NA`, `VG55EU`, `AG24`, `AG24EU`, `AG26`, `AG26EU`, `AG45`, `AG45EU`, `AG46`, `AG46EU`, `AG46P`, `AG46PEU`, `AG51`, `AG51EU`, `AG52`, `AG52EU`, `AG53`, `AG53EU`, `AT11`, `AT11X`, `AT12`, `AT12X`, `AT13`, `LM11`, `AIM4`, `AHD1`","explode":false,"in":"query","name":"models","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated device health statuses. Valid values: `healthy`, `needsAttention`, `needsReplacement`, `dataPending`.","explode":false,"in":"query","name":"healthStatuses","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean to control whether device health information is returned in the response. Defaults to false.","in":"query","name":"includeHealth","schema":{"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 100 objects.","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Optional boolean to control whether tags are returned in the response. Defaults to false.","in":"query","name":"includeTags","schema":{"type":"boolean"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesGetDevicesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List devices.","tags":["Beta APIs"]}},"/driver-efficiency/drivers":{"get":{"description":"**⚠️ LEGACY/DEPRECATED API: This API returns data from the legacy Driver Efficiency (Eco-Driving) product and is unavailable to new customers. Use the Driver Efficiency (Eco-Driving) dataset in the beta [Custom Reports API](https://developers.samsara.com/reference/createreportrun) for equivalent data.**\n\nThis endpoint will return driver efficiency data that has been collected for your organization and grouped by drivers based on the time parameters passed in. Results are paginated. \n\n**Note:** The data from this endpoint comes from the Driver Efficiency (Eco-Driving) Report. The existing [/fleet/drivers/efficiency](https://developers.samsara.com/reference/getdriverefficiency) endpoint has now been moved to Legacy.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Driver Efficiency** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverEfficiencyByDrivers","parameters":[{"description":"A start time in RFC 3339 format. Must be in multiple of hours and at least 1 day before endTime. Timezones are supported. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. (Examples: 2019-06-11T19:00:00Z, 2015-09-12T14:00:00-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Must be in multiple of hours and no later than 3 hours before the current time. Timezones are supported. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. (Examples: 2019-06-13T19:00:00Z, 2015-09-15T14:00:00-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of data formats you want to fetch. Valid values: `score`, `raw` and `percentage`. The default data format is `score`. Example: `dataFormats=raw,score`","explode":false,"in":"query","name":"dataFormats","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByDriversBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[legacy] Get Driver efficiency data grouped by drivers.","tags":["Legacy APIs"]}},"/driver-efficiency/vehicles":{"get":{"description":"**⚠️ LEGACY/DEPRECATED API: This API returns data from the legacy Driver Efficiency (Eco-Driving) product and is unavailable to new customers. Use the Driver Efficiency (Eco-Driving) dataset in the beta [Custom Reports API](https://developers.samsara.com/reference/createreportrun) for equivalent data.**\n\nThis endpoint will return driver efficiency data that has been collected for your organization and grouped by vehicle drivers used based on the time parameters passed in. Results are paginated. \n\n**Note:** The data from this endpoint comes from the Driver Efficiency (Eco-Driving) Report. The existing [/fleet/drivers/efficiency](https://developers.samsara.com/reference/getdriverefficiency) endpoint has now been moved to Legacy.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Driver Efficiency** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverEfficiencyByVehicles","parameters":[{"description":"A start time in RFC 3339 format. Must be in multiple of hours and at least 1 day before endTime. Timezones are supported. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. (Examples: 2019-06-11T19:00:00Z, 2015-09-12T14:00:00-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Must be in multiple of hours and no later than 3 hours before the current time. Timezones are supported. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. (Examples: 2019-06-13T19:00:00Z, 2015-09-15T14:00:00-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":"A comma-separated list of data formats you want to fetch. Valid values: `score`, `raw` and `percentage`. The default data format is `score`. Example: `dataFormats=raw,score`","explode":false,"in":"query","name":"dataFormats","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverEfficiencyGetDriverEfficiencyByVehiclesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[legacy] Get Driver efficiency data grouped by vehicles.","tags":["Legacy APIs"]}},"/driver-trailer-assignments":{"get":{"description":"Get currently active driver-trailer assignments for driver.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverTrailerAssignments","parameters":[{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsGetDriverTrailerAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get currently active driver-trailer assignments for driver.","tags":["Driver-Trailer Assignments"]},"patch":{"description":"Update an existing driver-trailer assignment.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateDriverTrailerAssignment","parameters":[{"description":"Samsara ID for the assignment.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsUpdateDriverTrailerAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update an existing driver-trailer assignment.","tags":["Driver-Trailer Assignments"],"x-codegen-request-body-name":"UpdateDriverTrailerAssignmentRequestBody"},"post":{"description":"Create a new driver-trailer assignment\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createDriverTrailerAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerAssignmentsCreateDriverTrailerAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a new driver-trailer assignment","tags":["Driver-Trailer Assignments"],"x-codegen-request-body-name":"CreateDriverTrailerAssignmentRequestBody"}},"/drivers/qr-codes":{"delete":{"description":"Revoke requested driver's currently active QR code.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteDriverQrCode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeRequestBody"}}},"required":true},"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesDeleteDriverQrCodeBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Revoke driver's QR code","tags":["Driver QR Codes"],"x-codegen-request-body-name":"DeleteDriverQrCodeRequestBody"},"get":{"description":"Get details for requested driver(s) QR code, used for driver trip assignment.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriversQrCodes","parameters":[{"description":"String of comma separated driver IDs. List of driver - QR codes for specified driver(s) will be returned.","explode":false,"in":"query","name":"driverIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesGetDriversQrCodesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get driver QR codes","tags":["Driver QR Codes"]},"post":{"description":"Assign a new QR code for the requested driver. Return error if an active QR code already exists.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createDriverQrCode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverQrCodesCreateDriverQrCodeBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create new QR code for driver","tags":["Driver QR Codes"],"x-codegen-request-body-name":"CreateDriverQrCodeRequestBody"}},"/dvirs/stream":{"get":{"description":"Returns a history/feed of changed DVIRs by updatedAtTime between startTime and endTime parameters. In case of missing `endTime` parameter it will return a never ending stream of data.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read DVIRs** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDvirs","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Required RFC 3339 timestamp to begin the feed or history by `updatedAtTime` at `startTime`.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Optional RFC 3339 timestamp. If not provided then the endpoint behaves as an unending feed of changes.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Optional list of safety statuses. Valid values: [safe, unsafe, resolved]","explode":true,"in":"query","name":"safetyStatus","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Stream DVIRs","tags":["Maintenance"]}},"/dvirs/{id}":{"get":{"description":"Get a single DVIR by ID.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read DVIRs** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDvir","parameters":[{"description":"Id of the DVIR.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirGetDvirBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a single DVIR by ID.","tags":["Maintenance"]}},"/electric-purchase":{"post":{"description":"Create an electric charging purchase transaction, measured in kilowatt hours.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postElectricPurchase","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostElectricPurchaseBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create an electric purchase transaction.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostElectricPurchaseRequestBody"}},"/fleet/asset-sharing/agreements":{"delete":{"description":"Soft-deletes a Data Sharing Agreement so it no longer appears in list results. Only the organization that created the agreement can delete (the provider for older agreements), and only while the agreement is in pending, rejected, or canceled status; an accepted agreement must be canceled first. Identify the agreement with the id query parameter. Returns 204 No Content.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteAssetSharingAgreement","parameters":[{"description":"The unique identifier of the agreement.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsDeleteAssetSharingAgreementBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a Data Sharing Agreement","tags":["Beta APIs"]},"get":{"description":"Returns every Data Sharing Agreement (DSA) your organization participates in, as either the provider or the recipient. Soft-deleted agreements are omitted. Narrow the results with the ids, statusIn, and roleIn filters, and page through large result sets with cursor pagination.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listAssetSharingAgreements","parameters":[{"description":"Comma-separated list of agreement IDs to filter by.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Comma-separated list of statuses to filter by. Valid values: pending, accepted, rejected, canceled.","explode":false,"in":"query","name":"statusIn","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Comma-separated list of roles to filter by. Valid values: provider, recipient.","explode":false,"in":"query","name":"roleIn","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListAssetSharingAgreementsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List all Data Sharing Agreements","tags":["Beta APIs"]},"post":{"description":"Creates a new Data Sharing Agreement (DSA) in pending status. When the flexible operating model is enabled, either the provider or recipient can create an agreement, and the authenticated caller determines createdByParty. The provider owns the assets, and the two organizations must differ. providerOrganizationId defaults to the caller; recipient callers supply the provider ID and providerOrganizationName. Provider callers supply recipientOrganizationName. payer selects the party whose Asset Sharing license supports the agreement and defaults to the creator. Without the flexible operating model, only the provider can create and pay. Use providerDataPackages and recipientDataPackages to declare which categories of data flow to each side, and operator to indicate which organization operates the assets (where the gateways live).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createAssetSharingAgreement","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateAssetSharingAgreementBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a Data Sharing Agreement","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateAssetSharingAgreementRequestBody"}},"/fleet/asset-sharing/agreements/accept":{"post":{"description":"Accepts a pending Data Sharing Agreement, transitioning it to accepted. Only the organization that did not create the agreement can accept its terms as proposed. To change the terms, reject the agreement and create a new one. For older agreements, the creator is the provider and only the recipient can accept. Identify the agreement with the id query parameter.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"acceptAssetSharingAgreement","parameters":[{"description":"The unique identifier of the agreement.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsAcceptAssetSharingAgreementBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Accept a Data Sharing Agreement","tags":["Beta APIs"]}},"/fleet/asset-sharing/agreements/assets":{"get":{"description":"Returns shared asset records under a Data Sharing Agreement, identified by the dsaId query parameter. Results may include ended or historical sharing records; use each record's startTime and endTime to determine whether sharing is currently active. Supports cursor pagination.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listSharedAssets","parameters":[{"description":"The unique identifier of the Data Sharing Agreement.","in":"query","name":"dsaId","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsListSharedAssetsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List shared assets for an agreement","tags":["Beta APIs"]}},"/fleet/asset-sharing/agreements/assets/batch":{"patch":{"description":"Updates the sharing period of one or more shared assets, each identified by its shared-asset id. Only the endTime can be changed (an empty value means indefinite sharing). To stop sharing an asset, set its endTime to the current time rather than deleting it, which preserves the rental history. Up to 100 assets may be updated per request.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateSharedAssetsBatch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsUpdateSharedAssetsBatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update asset sharings","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateSharedAssetsBatchRequestBody"},"post":{"description":"Shares one or more assets under an accepted Data Sharing Agreement, identified by the dsaId query parameter. Available only to the provider organization. Serials are matched in canonical form. Up to 100 assets may be shared per request; each may carry an optional startTime (defaults to now) and endTime (defaults to indefinite).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createSharedAssetsBatch","parameters":[{"description":"The unique identifier of the Data Sharing Agreement.","in":"query","name":"dsaId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCreateSharedAssetsBatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Share assets","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateSharedAssetsBatchRequestBody"}},"/fleet/asset-sharing/agreements/assets/cancel/batch":{"post":{"description":"Cancels one or more asset sharings, each identified by its shared-asset id. Active sharings end immediately, future sharings are converted to zero-length sharings, and already-ended sharings are returned unchanged, so the request is safe to retry. Up to 100 asset sharings may be canceled per request, and the rate limit applies to this endpoint rather than to the individual asset sharings within a request. The batch may partially succeed: each asset sharing is processed independently, and callers must inspect each item's status in the response. A failure for one asset sharing does not prevent other valid asset sharings in the batch from being canceled.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"cancelSharedAssetsBatch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelSharedAssetsBatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Cancel asset sharings","tags":["Beta APIs"],"x-codegen-request-body-name":"CancelSharedAssetsBatchRequestBody"}},"/fleet/asset-sharing/agreements/cancel":{"post":{"description":"Cancels an accepted Data Sharing Agreement, transitioning it to the terminal canceled state and ending all asset sharing under it. Either the provider or the recipient can cancel. Identify the agreement with the id query parameter.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"cancelAssetSharingAgreement","parameters":[{"description":"The unique identifier of the agreement.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsCancelAssetSharingAgreementBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Cancel a Data Sharing Agreement","tags":["Beta APIs"]}},"/fleet/asset-sharing/agreements/reject":{"post":{"description":"Rejects a pending Data Sharing Agreement, transitioning it to the terminal rejected state. Only the organization that did not create the agreement can reject. For older agreements, the creator is the provider and only the recipient can reject. Identify the agreement with the id query parameter.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Asset Sharing** under the Asset Sharing category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"rejectAssetSharingAgreement","parameters":[{"description":"The unique identifier of the agreement.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSharingAgreementsRejectAssetSharingAgreementBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Reject a Data Sharing Agreement","tags":["Beta APIs"]}},"/fleet/assets/assignments":{"get":{"description":"List active asset assignments for the authorized organization. This endpoint only returns currently active assignments. During Beta, response ordering is implementation-defined and will stabilize before GA when database-backed pagination lands.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listAssetAssignments","parameters":[{"description":"Optional boolean indicating whether to return external IDs for the referenced asset and assignee objects. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"default":false,"type":"boolean"}},{"description":"Optional comma-separated list of asset IDs to filter on. IDs may be Samsara asset IDs or external IDs in the format key:value. The response contains the union of matching assets.","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional comma-separated list of assignee IDs to filter on. IDs may be Samsara assignee IDs or external IDs in the format key:value. The response contains the union of matching assignees.","explode":false,"in":"query","name":"assigneeIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsListAssetAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List active asset assignments.","tags":["Beta APIs"]},"post":{"description":"Create an asset assignment.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createAssetAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsCreateAssetAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create an asset assignment.","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateAssetAssignmentRequestBody"}},"/fleet/assets/assignments/unassign":{"post":{"description":"Unassign an active asset assignment.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"unassignAssetAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentRequestBody"}}},"required":true},"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAssignmentsUnassignAssetAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Unassign an asset assignment.","tags":["Beta APIs"],"x-codegen-request-body-name":"UnassignAssetAssignmentRequestBody"}},"/fleet/assets/associations":{"get":{"description":"List associations between vehicles and peripheral devices within a given time range. Associations represent the relationship between a central device (vehicle) and a peripheral device (e.g. asset tag). An association with a null endTime is still active. If no endTime query parameter is provided, all associations from startTime onward are returned, including currently active (open) associations.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listAssociations","parameters":[{"description":"A comma-separated list of peripheral asset IDs to filter associations by. (Example: 1234,5678)","explode":false,"in":"query","name":"peripheralIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). If not provided, all associations from startTime onward are returned, including currently active (open) associations.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssociationsListAssociationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List asset associations.","tags":["Beta APIs"]}},"/fleet/assets/device-recovery-missing":{"get":{"description":"List all assets that are currently marked as missing for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listDeviceRecoveryMissingAssets","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryListDeviceRecoveryMissingAssetsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List missing device recovery assets.","tags":["Beta APIs"]}},"/fleet/assets/device-recovery/{id}/missing":{"post":{"description":"Mark an asset as missing. Optionally specify a note and notification recipients who will receive email updates.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"markAssetMissing","parameters":[{"description":"The ID of the asset. This can be a Samsara internal ID or an external ID in the format `key:value`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryMarkAssetMissingBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Mark an asset as missing.","tags":["Beta APIs"],"x-codegen-request-body-name":"MarkAssetMissingRequestBody"}},"/fleet/assets/device-recovery/{id}/recovered":{"post":{"description":"Mark a missing asset as recovered. Provide the recovery status, reason for being missing, and optional additional details.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"recoverAsset","parameters":[{"description":"The ID of the asset. This can be a Samsara internal ID or an external ID in the format `key:value`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecoveryRecoverAssetBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Mark an asset as recovered.","tags":["Beta APIs"],"x-codegen-request-body-name":"RecoverAssetRequestBody"}},"/fleet/carb-ctc/vehicles":{"get":{"description":"Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. \n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read CARB CTC Integration** under the CARB CTC Integration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listCarbCtcVehicles","parameters":[{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"Optional filter based on the test status. This parameter can be passed multiple times to filter by multiple statuses.","explode":true,"in":"query","name":"testStatus","schema":{"items":{"enum":["notScheduled","scheduled","inProgress","awaitingResult","pass","fail","error","unknown"],"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehiclesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List CARB CTC enrolled vehicles","tags":["CARB CTC"]}},"/fleet/carb-ctc/vehicles/history":{"get":{"description":"Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read CARB CTC Integration** under the CARB CTC Integration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listCarbCtcVehicleHistory","parameters":[{"description":"A comma-separated list of vehicle IDs to fetch history for. Up to 100 IDs can be provided. Example: `vehicleIds=1234,5678`","in":"query","name":"vehicleIds","required":true,"schema":{"type":"string"}},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarbCtcListCarbCtcVehicleHistoryBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List CARB CTC vehicle collection history","tags":["CARB CTC"]}},"/fleet/carrier-proposed-assignments":{"get":{"description":"Show the assignments created by the POST fleet/carrier-proposed-assignments. This endpoint will only show the assignments that are active for drivers and currently visible to them in the driver app. Once a proposed assignment has been accepted, the endpoint will not return any data. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Carrier-Proposed Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listCarrierProposedAssignments","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"If specified, shows assignments that will be active at this time. Defaults to now, which would show current active assignments. In RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"activeTime","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCarrierProposedAssignmentResponse"}}},"description":"Returns the assignments that drivers would see in the future, if any."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve assignments","tags":["Carrier Proposed Assignments"]},"post":{"description":"Creates a new assignment that a driver can later use. Each driver can only have one future assignment. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Carrier-Proposed Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createCarrierProposedAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCarrierProposedAssignmentRequest"}}},"description":"The assignment to create.","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarrierProposedAssignmentResponse"}}},"description":"Return the created assignment"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create an assignment","tags":["Carrier Proposed Assignments"],"x-codegen-request-body-name":"carrierProposedAssignment"}},"/fleet/carrier-proposed-assignments/{id}":{"delete":{"description":"Permanently delete an assignment. You can only delete assignments that are not yet active. To override a currently active assignment, create a new empty one, instead. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Carrier-Proposed Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteCarrierProposedAssignment","parameters":[{"description":"ID of the assignment.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Delete an assignment","tags":["Carrier Proposed Assignments"]}},"/fleet/defects/history":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/streamdefects) instead. The endpoint will continue to function as documented.** \n\nReturns a list of DVIR defects in an organization, filtered by creation time. The maximum time period you can query for is 30 days. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Defects** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDvirDefects","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). *The maximum time period you can query for is 30 days.*","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). *The maximum time period you can query for is 30 days.*","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on resolution status. Example: `isResolved=true`","in":"query","name":"isResolved","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefectsResponse"}}},"description":"List of all DVIR defects in the organization"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"[legacy] Get all defects","tags":["Legacy APIs"]}},"/fleet/defects/{id}":{"patch":{"description":"Updates a given defect. Can be used to resolve a defect by marking its `isResolved` field to `true`. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Defects** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateDvirDefect","parameters":[{"description":"ID of the defect.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefectPatch"}}},"description":"The DVIR defect fields to update.","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefectResponse"}}},"description":"Return the modified defect entity"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a defect","tags":["Maintenance"],"x-codegen-request-body-name":"defect"}},"/fleet/document-types":{"get":{"description":"Returns a list of the organization document types. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/getDriverDocumentTypesByOrgId).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDocumentTypes","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTypesGetDocumentTypesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Fetch document types","tags":["Documents"]}},"/fleet/documents":{"get":{"description":"Get all documents for the given time range. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/getDriverDocumentsByOrgId).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDocuments","parameters":[{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"ID of the document template type.","in":"query","name":"documentTypeId","schema":{"type":"string"}},{"description":"Query by document creation time (`created`) or updated time (`updated`). Defaults to `created`.","in":"query","name":"queryBy","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Fetch all documents","tags":["Documents"]},"post":{"description":"Creates a single document. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/createDriverDocument).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postDocument","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsPostDocumentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create document","tags":["Documents"],"x-codegen-request-body-name":"PostDocumentRequestBody"}},"/fleet/documents/pdfs":{"post":{"description":"Request creation of a document PDF. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"generateDocumentPdf","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPdfGenerationRequest"}}},"description":"Specifies the document for which to generate a PDF.","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPdfGenerationResponse"}}},"description":"Newly created PDF generation job."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response."}},"summary":"Create a document PDF","tags":["Documents"],"x-codegen-request-body-name":"document"}},"/fleet/documents/pdfs/{id}":{"get":{"description":"Returns generation job status and download URL for a PDF. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDocumentPdf","parameters":[{"description":"ID of the pdf.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPdfQueryResponse"}}},"description":"Document PDF job status and download URL."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Query a document PDF","tags":["Documents"]}},"/fleet/documents/{id}":{"delete":{"description":"Deletes a single document. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/deleteDriverDocumentByIdAndDriverId).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteDocument","parameters":[{"description":"ID of the document to delete","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsDeleteDocumentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete document","tags":["Documents"]},"get":{"description":"Returns a single document. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/getDriverDocumentByIdAndDriverId).\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Documents** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDocument","parameters":[{"description":"ID of the document","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsGetDocumentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Fetch document","tags":["Documents"]}},"/fleet/driver-vehicle-assignments":{"delete":{"description":"Delete driver assignments that were created using the `POST fleet/driver-vehicle-assignments` endpoint. Identify the assignments either with vehicleId and an optional time range, or with metadata.sourceName alone.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteDriverVehicleAssignments","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsRequestBody"}}},"required":true},"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2DeleteDriverVehicleAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete API generated driver-vehicle assignments","tags":["Driver-Vehicle Assignments"],"x-codegen-request-body-name":"DeleteDriverVehicleAssignmentsRequestBody"},"get":{"description":"Get all driver-vehicle assignments for the requested drivers or vehicles in the requested time range. To fetch driver-vehicle assignments out of the vehicle trips' time ranges, assignmentType needs to be specified. Note: this endpoint replaces past endpoints to fetch assignments by driver or by vehicle. Visit [this migration guide](https://developers.samsara.com/docs/migrating-from-driver-vehicle-assignment-or-vehicle-driver-assignment-endpoints) for more information.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverVehicleAssignments","parameters":[{"description":"Option to filter by drivers or vehicles.  Valid values: `drivers`, `vehicles`","in":"query","name":"filterBy","required":true,"schema":{"enum":["drivers","vehicles"],"type":"string"}},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"ID of the vehicle. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: \"key:value\". For example, \"maintenanceId:250020\".","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filters assignments by the exact metadata source name supplied when the assignment was created. Requires filterBy=drivers. When set, driver and vehicle ID, tag, and assignment type filters are not supported. `startTime` and `endTime` are optional here: if omitted, matching assignments are returned regardless of when they occurred, rather than being limited to the recent window used by the other filters.","in":"query","name":"sourceName","schema":{"maxLength":100,"minLength":1,"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"driverTagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"vehicleTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Specifies which assignment type to filter by.  Valid values: `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign`","in":"query","name":"assignmentType","schema":{"enum":["HOS","idCard","static","faceId","tachograph","safetyManual","RFID","trailer","external","qrCode","driverApp","voiceSignIn","smartAssign"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2GetDriverVehicleAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get all driver-vehicle assignments","tags":["Driver-Vehicle Assignments"]},"patch":{"description":"Update driver assignments that were created using the `POST fleet/driver-vehicle-assignments`. Identify the assignment either with vehicleId, driverId, and startTime, or with metadata.sourceName alone.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateDriverVehicleAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentRequestBody"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentResponseBody"}}},"description":"Accepted response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2UpdateDriverVehicleAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update API generated driver-vehicle assignments","tags":["Driver-Vehicle Assignments"],"x-codegen-request-body-name":"UpdateDriverVehicleAssignmentRequestBody"},"post":{"description":"Assign vehicle drive-time to a driver via API. For a step-by-step instruction on how to leverage this endpoint, see [this guide](https://developers.samsara.com/docs/creating-driver-vehicle-assignments)\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createDriverVehicleAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVehicleAssignmentsV2CreateDriverVehicleAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a new driver-vehicle assignment","tags":["Driver-Vehicle Assignments"],"x-codegen-request-body-name":"CreateDriverVehicleAssignmentRequestBody"}},"/fleet/drivers":{"get":{"description":"Get all drivers in organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listDrivers","parameters":[{"description":"If value is `deactivated`, only drivers that are deactivated will appear in the response. This parameter will default to `active` if not provided (fetching only active drivers).","in":"query","name":"driverActivationStatus","schema":{"enum":["active","deactivated"],"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of attribute value IDs. Only entities associated with ALL of the referenced values will be returned (i.e. the intersection of the sets of entities with each value). Example: `attributeValueIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","explode":false,"in":"query","name":"attributeValueIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data to return entities having given attributes using name-value pair or range query (only for numeric attributes), separated by semicolon. Only entities associated with ALL of the referenced values will be returned (i.e. the intersection of the sets of entities with each value). Example: `attributes=ExampleAttributeName:some_value&attributes=SomeOtherAttr:123&attributes=someNumericAttribute:range(10,20)`","explode":false,"in":"query","name":"attributes","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on data to have an updated at time after or equal to this specified time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"updatedAfterTime","schema":{"type":"string"}},{"description":"A filter on data to have a created at time after or equal to this specified time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"createdAfterTime","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDriversResponse"}}},"description":"List of all driver objects."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all drivers","tags":["Drivers"]},"post":{"description":"Add a driver to the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createDriver","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDriverRequest"}}},"description":"The driver to create.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverResponse"}}},"description":"Newly created driver object, with Samsara-generated ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create a driver","tags":["Drivers"],"x-codegen-request-body-name":"driver"}},"/fleet/drivers/auth-token":{"post":{"description":"Creates a short-lived auth token a driver can use to login.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Driver Auth Token** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"authToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenAuthTokenBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create auth token for a driver","tags":["Auth Token for Driver"],"x-codegen-request-body-name":"AuthTokenRequestBody"}},"/fleet/drivers/remote-sign-out":{"post":{"description":"Sign out a driver from the Samsara Driver App\n\nTo access this endpoint, your organization must have the Samsara Platform Premier license.\n\nNote: Sign out requests made while a logged-in driver does not have internet connection will not log the driver out. A success response will still be provided and the driver will be logged out once they have internet connection.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Driver Remote Signout** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postDriverRemoteSignout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRemoteSignoutPostDriverRemoteSignoutBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Sign out a driver","tags":["Drivers"],"x-codegen-request-body-name":"PostDriverRemoteSignoutRequestBody"}},"/fleet/drivers/tachograph-activity/history":{"get":{"description":"Returns all known tachograph activity for all specified drivers in the time range. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Tachograph (EU)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDriverTachographActivity","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. It can't be more than 30 days past startTime. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of driver IDs. Example: `driverIds=1234,5678`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverTachographActivityResponse"}}},"description":"List of all driver tachograph activities in a specified time range."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get driver tachograph activity","tags":["Tachograph (EU Only)"]}},"/fleet/drivers/tachograph-files/history":{"get":{"description":"Returns all known tachograph files for all specified drivers in the time range. \n\n <b>Rate limit:</b> 50 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Tachograph (EU)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDriverTachographFiles","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of driver IDs. Example: `driverIds=1234,5678`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographDriverFilesResponse"}}},"description":"List of all driver tachograph files in a specified time range."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get tachograph driver files","tags":["Tachograph (EU Only)"]}},"/fleet/drivers/vehicle-assignments":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getdrivervehicleassignments) instead. The endpoint will continue to function as documented.** Get all vehicle assignments for the requested drivers in the requested time range. The only type of assignment supported right now are assignments created through the driver app.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriversVehicleAssignments","parameters":[{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). The maximum allowed startTime-endTime range is 7 days.","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). The maximum allowed startTime-endTime range is 7 days.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"If value is `deactivated`, only drivers that are deactivated will appear in the response. This parameter will default to `active` if not provided (fetching only active drivers).  Valid values: `active`, `deactivated`","in":"query","name":"driverActivationStatus","schema":{"default":"active","enum":["active","deactivated"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversVehicleAssignmentsGetDriversVehicleAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[legacy] Get all vehicles assigned to a set of drivers","tags":["Legacy APIs"]}},"/fleet/drivers/voice-sign-in/resolve-assignment":{"post":{"description":"Resolves a driver by name within an organization via voice sign-in, then creates a driver-vehicle assignment via the Driver Assignment Service.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"resolveAssignmentByDetails","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAssignmentByDetailsResolveAssignmentByDetailsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Voice sign-in: resolve driver and create assignment","tags":["Beta APIs"],"x-codegen-request-body-name":"ResolveAssignmentByDetailsRequestBody"}},"/fleet/drivers/workflow-assignments":{"post":{"description":"Publish or unpublish a driver app workflow to one or more drivers by their IDs. If a workflow is published to a driver who already has it, or unpublished from a driver who does not have it, the operation is a no-op for that driver.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Driver App Settings** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postDriverWorkflowAssignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Publish a driver app workflow to drivers","tags":["Beta APIs"],"x-codegen-request-body-name":"PostDriverWorkflowAssignmentRequestBody"}},"/fleet/drivers/workflows":{"get":{"description":"List the driver app workflows configured for the organization. Use the returned workflow IDs to reference workflows from the driver create/update APIs or from the driver workflow assignment API. Workflows are organization-scoped and unique per organization.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listDriverWorkflows","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":"Filter the result to workflows of a specific type. When omitted, workflows of all types are returned.  Valid values: `startOfDay`, `endOfDay`, `assetSelection`, `leaveAsset`, `ridershipSafetyCheck`, `stopArrival`","in":"query","name":"workflowType","schema":{"enum":["startOfDay","endOfDay","assetSelection","leaveAsset","ridershipSafetyCheck","stopArrival"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWorkflowsListDriverWorkflowsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List driver app workflows","tags":["Beta APIs"]}},"/fleet/drivers/{id}":{"get":{"description":"Get information about a driver. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDriver","parameters":[{"description":"ID of the driver. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverResponse"}}},"description":"Returns the specified driver."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve a driver","tags":["Drivers"]},"patch":{"description":"Update a specific driver's information. This can also be used to activate or de-activate a given driver by setting the driverActivationStatus field. If the driverActivationStatus field is 'deactivated' then the user can also specify the deactivatedAtTime. The deactivatedAtTime cannot be more than 6 months in the past and must not come before the dirver's latest active HOS log. It will be considered an error if deactivatedAtTime is provided with a driverActivationStatus of active. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateDriver","parameters":[{"description":"ID of the driver. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDriverRequest"}}},"description":"Updates to the driver properties.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverResponse"}}},"description":"Updated driver object, with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a driver","tags":["Drivers"],"x-codegen-request-body-name":"driver"}},"/fleet/dvirs":{"post":{"description":"Creates a new mechanic DVIR in the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write DVIRs** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createDvir","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDvirRequest"}}},"description":"The DVIR to create.","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirResponse"}}},"description":"Newly created DVIR."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create a mechanic DVIR","tags":["Maintenance"],"x-codegen-request-body-name":"dvir"}},"/fleet/dvirs/history":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getdvirs) instead. The endpoint will continue to function as documented.** \n\n Returns a list of all DVIRs in an organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read DVIRs** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDvirHistory","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirsListResponse"}}},"description":"List of all DVIRs in the organization"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"[legacy] Get all DVIRs","tags":["Legacy APIs"]}},"/fleet/dvirs/{id}":{"patch":{"description":"Resolves a given DVIR by marking its `isResolved` field to `true`. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write DVIRs** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateDvir","parameters":[{"description":"ID of the DVIR.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDvirRequest"}}},"description":"The dvir fields to update.","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DvirResponse"}}},"description":"Updated dvir object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Resolve a DVIR","tags":["Maintenance"],"x-codegen-request-body-name":"dvir"}},"/fleet/equipment":{"get":{"description":"Returns a list of all equipment in an organization.","operationId":"listEquipment","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentListResponse"}}},"description":"List of all equipment objects, and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all equipment","tags":["Equipment"]}},"/fleet/equipment/locations":{"get":{"description":"Returns last known locations for all equipment. This can be optionally filtered by tags or specific equipment IDs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipmentLocations","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of equipment IDs. Example: `equipmentIds=1234,5678`","explode":false,"in":"query","name":"equipmentIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLocationsResponse"}}},"description":"The most recent equipment locations and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get most recent locations for all equipment","tags":["Equipment"]}},"/fleet/equipment/locations/feed":{"get":{"description":"Follow a continuous feed of all equipment locations.\n\nYour first call to this endpoint will provide you with the most recent location for each unit of equipment and a `pagination` object that contains an `endCursor`.\n\nYou can provide the `endCursor` to subsequent calls via the `after` parameter. The response will contain any equipment location updates since that `endCursor`.\n\nIf `hasNextPage` is `false`, no updates are readily available yet. We'd suggest waiting a minimum of 5 seconds before requesting updates. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipmentLocationsFeed","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of equipment IDs. Example: `equipmentIds=1234,5678`","explode":false,"in":"query","name":"equipmentIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLocationsListResponse"}}},"description":"The feed of equipment locations and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Follow feed of equipment locations","tags":["Equipment"]}},"/fleet/equipment/locations/history":{"get":{"description":"Returns historical equipment locations during the given time range. This can be optionally filtered by tags or specific equipment IDs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipmentLocationsHistory","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of equipment IDs. Example: `equipmentIds=1234,5678`","explode":false,"in":"query","name":"equipmentIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLocationsListResponse"}}},"description":"Historical equipment locations and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get historical equipment locations","tags":["Equipment"]}},"/fleet/equipment/stats":{"get":{"description":"Returns the last known stats for all equipment. This can be optionally filtered by tags or specific equipment IDs. \n\n <b>Rate limit:</b> 150 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipmentStats","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of equipment IDs. Example: `equipmentIds=1234,5678`","explode":false,"in":"query","name":"equipmentIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The types of equipment stats you want to query. Currently, you may submit up to 4 types.\r\n\r\n- `engineRpm`: The revolutions per minute of the engine.\r\n- `fuelPercents`: The percent of fuel in the unit of equipment.\r\n- `obdEngineSeconds`: The number of seconds the engine has been running as reported directly from on-board diagnostics. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14.\r\n- `gatewayEngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the asset gateway has been receiving power with an offset provided manually through the Samsara cloud dashboard. This is supported with the following hardware configurations: \r\n  - AG24/AG26/AG46P + APWR cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required) \r\n  - AG52 + BPWR/BEQP cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required). \r\n- `gatewayJ1939EngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the AG26 device is receiving power via J1939/CAT cable and an offset provided manually through the Samsara cloud dashboard.\r\n- `obdEngineStates`: The state of the engine read from on-board diagnostics. Can be `Off`, `On`, or `Idle`.\r\n- `gatewayEngineStates`: An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Can be `Off` or `On`.\r\n- `gpsOdometerMeters`: An approximation of odometer reading based on GPS calculations since the AG26 was activated, and a manual odometer offset provided in the Samsara cloud dashboard. Valid values: `Off`, `On`.\r\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address. \r\n- `engineTotalIdleTimeMinutes`: Total time in minutes that the engine has been idling.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["gatewayEngineStates","obdEngineStates","fuelPercents","engineRpm","gatewayEngineSeconds","obdEngineSeconds","gatewayJ1939EngineSeconds","gpsOdometerMeters","gps","engineTotalIdleTimeMinutes"],"format":"string","type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentStatsResponse"}}},"description":"The most recent equipment stats and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get most recent stats for all equipment","tags":["Equipment"]}},"/fleet/equipment/stats/feed":{"get":{"description":"Follow a continuous feed of all equipment stats.\n\nYour first call to this endpoint will provide you with the most recent stats for each unit of equipment and a `pagination` object that contains an `endCursor`.\n\nYou can provide the `endCursor` to subsequent calls via the `after` parameter. The response will contain any equipment stats updates since that `endCursor`.\n\nIf `hasNextPage` is `false`, no updates are readily available yet. Each stat type has a different refresh rate, but in general we'd suggest waiting a minimum of 5 seconds before requesting updates. \n\n <b>Rate limit:</b> 150 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipmentStatsFeed","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of equipment IDs. Example: `equipmentIds=1234,5678`","explode":false,"in":"query","name":"equipmentIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The types of equipment stats you want to query. Currently, you may submit up to 4 types.\r\n\r\n- `engineRpm`: The revolutions per minute of the engine.\r\n- `fuelPercents`: The percent of fuel in the unit of equipment.\r\n- `obdEngineSeconds`: The number of seconds the engine has been running as reported directly from on-board diagnostics. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14.\r\n- `gatewayEngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the asset gateway has been receiving power with an offset provided manually through the Samsara cloud dashboard. This is supported with the following hardware configurations: \r\n  - AG24/AG26/AG46P + APWR cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required) \r\n  - AG52 + BPWR/BEQP cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required). \r\n- `gatewayJ1939EngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the AG26 device is receiving power via J1939/CAT cable and an offset provided manually through the Samsara cloud dashboard.\r\n- `obdEngineStates`: The state of the engine read from on-board diagnostics. Can be `Off`, `On`, or `Idle`.\r\n- `gatewayEngineStates`: An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Can be `Off` or `On`.\r\n- `gpsOdometerMeters`: An approximation of odometer reading based on GPS calculations since the AG26 was activated, and a manual odometer offset provided in the Samsara cloud dashboard. Valid values: `Off`, `On`.\r\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address. \r\n- `engineTotalIdleTimeMinutes`: Total time in minutes that the engine has been idling.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["gatewayEngineStates","obdEngineStates","fuelPercents","engineRpm","gatewayEngineSeconds","obdEngineSeconds","gatewayJ1939EngineSeconds","gpsOdometerMeters","gps","engineTotalIdleTimeMinutes"],"format":"string","type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentStatsListResponse"}}},"description":"The feed of equipment stats and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Follow a feed of equipment stats","tags":["Equipment"]}},"/fleet/equipment/stats/history":{"get":{"description":"Returns historical equipment status during the given time range. This can be optionally filtered by tags or specific equipment IDs. \n\n <b>Rate limit:</b> 150 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipmentStatsHistory","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of equipment IDs. Example: `equipmentIds=1234,5678`","explode":false,"in":"query","name":"equipmentIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The types of equipment stats you want to query. Currently, you may submit up to 4 types.\r\n\r\n- `engineRpm`: The revolutions per minute of the engine.\r\n- `fuelPercents`: The percent of fuel in the unit of equipment.\r\n- `obdEngineSeconds`: The number of seconds the engine has been running as reported directly from on-board diagnostics. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14.\r\n- `gatewayEngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the asset gateway has been receiving power with an offset provided manually through the Samsara cloud dashboard. This is supported with the following hardware configurations: \r\n  - AG24/AG26/AG46P + APWR cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required) \r\n  - AG52 + BPWR/BEQP cable ([Auxiliary engine configuration](https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs#UUID-d514abff-d10a-efaf-35d9-e10fa6c4888d) required). \r\n- `gatewayJ1939EngineSeconds`: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the AG26 device is receiving power via J1939/CAT cable and an offset provided manually through the Samsara cloud dashboard.\r\n- `obdEngineStates`: The state of the engine read from on-board diagnostics. Can be `Off`, `On`, or `Idle`.\r\n- `gatewayEngineStates`: An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Can be `Off` or `On`.\r\n- `gpsOdometerMeters`: An approximation of odometer reading based on GPS calculations since the AG26 was activated, and a manual odometer offset provided in the Samsara cloud dashboard. Valid values: `Off`, `On`.\r\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address. \r\n- `engineTotalIdleTimeMinutes`: Total time in minutes that the engine has been idling.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["gatewayEngineStates","obdEngineStates","fuelPercents","engineRpm","gatewayEngineSeconds","obdEngineSeconds","gatewayJ1939EngineSeconds","gpsOdometerMeters","gps","engineTotalIdleTimeMinutes"],"format":"string","type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentStatsListResponse"}}},"description":"Historical equipment stats and pagination information"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get historical equipment stats","tags":["Equipment"]}},"/fleet/equipment/{id}":{"get":{"description":"Retrieves the unit of equipment with the given Samsara ID. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getEquipment","parameters":[{"description":"Samsara ID of the Equipment.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentResponse"}}},"description":"The specified equipment object"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve a unit of equipment","tags":["Equipment"]}},"/fleet/equipment/{id}/digital-output":{"patch":{"description":"Set the state of a digital output on the gateway connected to a piece of powered equipment. The command is delivered to the device synchronously; a success response indicates the device acknowledged and applied the requested state. This requires an AG53 gateway connected to powered equipment via the CBL-AG-BEQP cable.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Equipment Output Control** under the Closed Beta category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"setEquipmentDigitalOutput","parameters":[{"description":"The Samsara ID of the gateway whose digital output is being controlled. This must be an AG53 connected to powered equipment via the CBL-AG-BEQP cable.","in":"path","name":"id","required":true,"schema":{"format":"int64","type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentOutputControlSetEquipmentDigitalOutputBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Set an equipment digital output state","tags":["Beta APIs"],"x-codegen-request-body-name":"SetEquipmentDigitalOutputRequestBody"}},"/fleet/hos/clocks":{"get":{"description":"Get the current HOS status for all drivers. Note that this includes inactive as well as active drivers. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/getFleetHosLogsSummary). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getHosClocks","parameters":[{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of driver IDs. Example: `driverIds=1234,5678`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosClocksResponse"}}},"description":"List of current HOS clock information for the specified drivers."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get HOS clocks","tags":["Hours of Service"]}},"/fleet/hos/daily-logs":{"get":{"description":"Get summarized daily Hours of Service charts for the specified drivers.\n\nThe time range for a log is defined by the `driver`'s `eldDayStartHour`. This value is configurable per driver.\n\nThe `startDate` and `endDate` parameters indicate the date range you'd like to retrieve daily logs for. A daily log will be returned if its `startTime` is on any of the days within in this date range (inclusive of `startDate` and `endDate`).\n\n**Note:** If data is still being uploaded from the Samsara Driver App, it may not be completely reflected in the response from this endpoint. The best practice is to wait a couple of days before querying this endpoint to make sure that all data from the Samsara Driver App has been uploaded.\n\nIf you are using the legacy version of this endpoint and looking for its documentation, you can find it [here](https://www.samsara.com/api-legacy#operation/getFleetDriversHosDailyLogs).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getHosDailyLogs","parameters":[{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A start date in YYYY-MM-DD. This is a date only without an associated time. Example: `2019-06-13`. This is a required field","in":"query","name":"startDate","schema":{"type":"string"}},{"description":" An end date in YYYY-MM-DD. This is a date only without an associated time. Must be greater than or equal to the start date. Example: `2019-07-21`. This is a required field","in":"query","name":"endDate","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"If value is `deactivated`, only drivers that are deactivated will appear in the response. This parameter will default to `active` if not provided (fetching only active drivers).  Valid values: `active`, `deactivated`","in":"query","name":"driverActivationStatus","schema":{"default":"active","enum":["active","deactivated"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Expands the specified value(s) in the response object. Expansion populates additional fields in an object, if supported. Unsupported fields are ignored. To expand multiple fields, input a comma-separated list.\n\nValid value: `vehicle`  Valid values: `vehicle`","in":"query","name":"expand","schema":{"enum":["vehicle"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsGetHosDailyLogsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get all driver HOS daily logs","tags":["Hours of Service"]}},"/fleet/hos/logs":{"get":{"description":"Returns HOS logs between a given `startTime` and `endTime`. The logs can be further filtered using tags or by providing a list of driver IDs (including external IDs). The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/getFleetHosLogs).\n\n**Note:** If data is still being uploaded from the Samsara Driver App, it may not be completely reflected in the response from this endpoint. The best practice is to wait a couple of days before querying this endpoint to make sure that all data from the Samsara Driver App has been uploaded. \n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getHosLogs","parameters":[{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of driver IDs. Example: `driverIds=1234,5678`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosLogsResponse"}}},"description":"List of the last known HOS log entries for the specified drivers."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get HOS logs","tags":["Hours of Service"]}},"/fleet/hos/violations":{"get":{"description":"Get active Hours of Service violations for the specified drivers.\n\nThe day object time range for a violation is defined by the `driver`'s `eldDayStartHour`. This value is configurable per driver.\n\nThe `startTime` and `endTime` parameters indicate the datetime range you'd like to retrieve violations for. A violation will be returned if its `violationStartTime` falls within this datetime range (inclusive of `startTime` and `endTime`) \n\n**Note:** The following are all the violation types with a short explanation about what each of them means: `californiaMealbreakMissed` (Missed California Meal Break), `cycleHoursOn` (Cycle Limit), `cycleOffHoursAfterOnDutyHours` (Cycle 2 Limit), `dailyDrivingHours` (Daily Driving Limit), `dailyOffDutyDeferralAddToDay2Consecutive` (Daily Off-Duty Deferral: Add To Day2 Consecutive), `dailyOffDutyDeferralNotPartMandatory` (Daily Off-Duty Deferral: Not Part Of Mandatory), `dailyOffDutyDeferralTwoDayDrivingLimit` (Daily Off-Duty Deferral: 2 Day Driving Limit), `dailyOffDutyDeferralTwoDayOffDuty` (Daily Off-Duty Deferral: 2 Day Off Duty), `dailyOffDutyNonResetHours` (Daily Off-Duty Time: Non-Reset), `dailyOffDutyTotalHours` (Daily Off-Duty Time), `dailyOnDutyHours` (Daily On-Duty Limit), `mandatory24HoursOffDuty` (24 Hours of Off Duty required), `restbreakMissed` (Missed Rest Break), `shiftDrivingHours` (Shift Driving Limit), `shiftHours` (Shift Duty Limit), `shiftOnDutyHours` (Shift On-Duty Limit), `unsubmittedLogs` (Missing Driver Certification)\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getHosViolations","parameters":[{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"A filter on violations data based on the violation type enum. Supported types: `NONE, californiaMealbreakMissed, cycleHoursOn, cycleOffHoursAfterOnDutyHours, dailyDrivingHours, dailyOffDutyDeferralAddToDay2Consecutive, dailyOffDutyDeferralNotPartMandatory, dailyOffDutyDeferralTwoDayDrivingLimit, dailyOffDutyDeferralTwoDayOffDuty, dailyOffDutyNonResetHours, dailyOffDutyTotalHours, dailyOnDutyHours, mandatory24HoursOffDuty, restbreakMissed, shiftDrivingHours, shiftHours, shiftOnDutyHours, unsubmittedLogs`","explode":false,"in":"query","name":"types","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosViolationsGetHosViolationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get all driver HOS violations","tags":["Hours of Service"]}},"/fleet/installer/photo-uploads":{"get":{"description":"Returns fleet installer photo upload sessions for the caller's org. Results are ordered by updatedAtTime ascending and paginated (up to 25 per page). Supports filtering by session IDs, startTime, and endTime. Omitting startTime returns all sessions for the org. endTime requires startTime.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Devices** under the Devices category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFleetInstallerPhotoUploads","parameters":[{"description":"Comma-separated list of upload session IDs to filter by. Max 100 IDs. When a single ID is provided and not found, returns 404. When multiple IDs are provided and any are not found, returns 400.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A start time in RFC 3339 format. When provided, returns sessions where updatedAtTime >= startTime. Omit to return sessions regardless of time. Combine with endTime for a bounded window.","in":"query","name":"startTime","schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Returns sessions where updatedAtTime < endTime. Requires startTime — returns 400 if provided without startTime. Must be after startTime. Millisecond precision and timezones are supported. (Examples: 2026-06-13T19:08:25Z, 2026-06-13T19:08:25.455Z, OR 2026-06-13T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List fleet installer photo uploads.","tags":["Beta APIs"]},"post":{"description":"Creates a fleet installer photo upload session and returns a presigned S3 PUT URL. Upload the file bytes directly to the presigned URL using the headers in uploadContext, then call POST /fleet/installer/photo-uploads/complete to finalize.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Devices** under the Devices category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postFleetInstallerPhotoUpload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a fleet installer photo upload.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostFleetInstallerPhotoUploadRequestBody"}},"/fleet/installer/photo-uploads/complete":{"post":{"description":"Marks a fleet installer photo upload session as complete after the file bytes have been uploaded to S3. Triggers async processing of the photo. Poll GET /fleet/installer/photo-uploads to observe the final state.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Devices** under the Devices category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postFleetInstallerPhotoUploadComplete","parameters":[{"description":"Upload session ID to mark as complete. Accepts exactly one ID.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Complete a fleet installer photo upload.","tags":["Beta APIs"]}},"/fleet/maintenance/vendor-categories":{"get":{"description":"Returns the list of vendor categories available for maintenance vendors.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listVendorCategories","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorCategoriesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List all vendor categories.","tags":["Beta APIs"]}},"/fleet/maintenance/vendor-locations":{"delete":{"description":"Soft-deletes a vendor location without deleting its linked Place or work orders.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteVendorLocation","parameters":[{"description":"Unique identifier for the vendor location record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceDeleteVendorLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a vendor location","tags":["Beta APIs"]},"get":{"description":"Returns a paginated list of vendor locations in the organization. Each linked Place owns the location's name, address, and notes. Use the location's addressId as {id} in the public Addresses API: GET /addresses/{id} retrieves data.name, data.formattedAddress, and data.notes; PATCH /addresses/{id} updates name, formattedAddress, and notes. These calls require Read Addresses and Write Addresses permissions, respectively.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listVendorLocations","parameters":[{"description":"A comma-separated list of up to 100 vendor location IDs to filter on. Accepts Samsara UUIDs or external IDs in key:value format. See [external IDs](https://developers.samsara.com/docs/external-ids).","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of up to 100 external IDs in key:value format to filter vendor locations on. See [external IDs](https://developers.samsara.com/docs/external-ids).","explode":false,"in":"query","name":"externalIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Include resolved vendor settings and their sources. Defaults to false.","in":"query","name":"includeResolvedSettings","schema":{"type":"boolean"}},{"description":"When true, include externalIds on each vendor location in the response. Default false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceVendorsListVendorLocationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List vendor locations.","tags":["Beta APIs"]},"patch":{"description":"Updates an existing maintenance vendor location. The linked Place owns the location's name, address, and notes; update them through the public Addresses API, not this resource. Use the location's addressId (or placeId.id from a mutation response) as {id} in GET /addresses/{id} to retrieve data.name, data.formattedAddress, and data.notes, and PATCH /addresses/{id} to update name, formattedAddress, and notes. These calls require Read Addresses and Write Addresses permissions, respectively. addressId is optional when the existing link identifies a live Place in this organization; otherwise supply a valid addressId before updating the location. Any supplied value must be the Address/Place ID returned as data.id by the Addresses API and identify a live Place in this organization. Legacy vendor-stored notes are separate and are not exposed or copied to the Place.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateVendorLocation","parameters":[{"description":"Include externalIds in the response. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Unique identifier for the vendor location record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceUpdateVendorLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a vendor location","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateVendorLocationRequestBody"},"post":{"description":"Creates a maintenance vendor location linked to a live Place in this organization. First create or reuse an Address through the public Addresses API and set addressId to its returned data.id (the Place ID). The Place owns the location's name, address, and notes. Use addressId as {id} in GET /addresses/{id} to retrieve data.name, data.formattedAddress, and data.notes, and PATCH /addresses/{id} to update name, formattedAddress, and notes. These calls require Read Addresses and Write Addresses permissions, respectively. Mutation responses expose the same Address/Place ID as placeId.id; location lists return it as addressId. This endpoint does not create Places. Legacy vendor-stored notes are separate and are not exposed or copied to the Place. parentVendorId is optional.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createVendorLocation","parameters":[{"description":"Include externalIds in the response. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorsServiceCreateVendorLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a vendor location","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateVendorLocationRequestBody"}},"/fleet/maintenance/vendors":{"delete":{"description":"Soft-deletes a parent vendor after all vendor locations have been detached, moved, or deleted.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteVendor","parameters":[{"description":"Unique identifier for the vendor record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceDeleteVendorBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a vendor","tags":["Beta APIs"]},"get":{"description":"Manage parent vendor identity and defaults inherited by vendor locations.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listVendors","parameters":[{"description":"A filter on the data based on this comma-separated list of Vendor ID values.","in":"query","name":"ids","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"If true, include externalIds in each response object.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceListVendorsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List vendors","tags":["Beta APIs"]},"patch":{"description":"Manage parent vendor identity and defaults inherited by vendor locations.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateVendor","parameters":[{"description":"Include externalIds in the response. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Unique identifier for the vendor record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceUpdateVendorBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a vendor","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateVendorRequestBody"},"post":{"description":"Manage parent vendor identity and defaults inherited by vendor locations.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createVendor","parameters":[{"description":"Include externalIds in the response. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVendorProfilesServiceCreateVendorBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a vendor","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateVendorRequestBody"}},"/fleet/reports/drivers/fuel-energy":{"get":{"description":"Get fuel and energy efficiency driver reports for the requested time range.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFuelEnergyDriverReports","parameters":[{"description":"A start date in RFC 3339 format. This parameter ignores everything (i.e. hour, minutes, seconds, nanoseconds, etc.) besides the date and timezone. If no time zone is passed in, then the UTC time zone will be used. This parameter is inclusive, so data on the date specified will be considered. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.","in":"query","name":"startDate","required":true,"schema":{"type":"string"}},{"description":"An end date in RFC 3339 format. This parameter ignores everything (i.e. hour, minutes, seconds, nanoseconds, etc.) besides the date and timezone. If no time zone is passed in, then the UTC time zone will be used. This parameter is inclusive, so data on the date specified will be considered. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.","in":"query","name":"endDate","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyDriverReportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get fuel and energy efficiency driver reports.","tags":["Fuel and Energy"]}},"/fleet/reports/ifta/jurisdiction":{"get":{"description":"Get all jurisdiction IFTA reports for the requested time duration. Data is returned in your organization's defined timezone.\n\n**Note:** The most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read IFTA (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIftaJurisdictionReports","parameters":[{"description":" The year of the requested IFTA report summary. Must be provided with a month or quarter param. Example: `year=2021`","in":"query","name":"year","required":true,"schema":{"maximum":2100,"minimum":2015,"type":"integer"}},{"description":" The month of the requested IFTA report summary. Can not be provided with the quarter param. Example: `month=January`  Valid values: `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November`, `December`","in":"query","name":"month","schema":{"enum":["January","February","March","April","May","June","July","August","September","October","November","December"],"type":"string"}},{"description":" The quarter of the requested IFTA report summary. Can not be provided with the month param. Q1: January, February, March. Q2: April, May, June. Q3: July, August, September. Q4: October, November, December. Example: `quarter=Q1`  Valid values: `Q1`, `Q2`, `Q3`, `Q4`","in":"query","name":"quarter","schema":{"enum":["Q1","Q2","Q3","Q4"],"type":"string"}},{"description":" A filter on the data based on this comma-separated list of jurisdictions. Example: `jurisdictions=GA`","in":"query","name":"jurisdictions","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of IFTA fuel types. Example: `fuelType=Diesel`  Valid values: `Unspecified`, `A55`, `Biodiesel`, `CompressedNaturalGas`, `Diesel`, `E85`, `Electricity`, `Ethanol`, `Gasohol`, `Gasoline`, `Hydrogen`, `LiquifiedNaturalGas`, `M85`, `Methanol`, `Propane`, `Other`","in":"query","name":"fuelType","schema":{"enum":["Unspecified","A55","Biodiesel","CompressedNaturalGas","Diesel","E85","Electricity","Ethanol","Gasohol","Gasoline","Hydrogen","LiquifiedNaturalGas","M85","Methanol","Propane","Other"],"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaJurisdictionReportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get IFTA jurisdiction reports.","tags":["IFTA"]}},"/fleet/reports/ifta/vehicle":{"get":{"description":"Get all vehicle IFTA reports for the requested time duration. Data is returned in your organization's defined timezone.\n\n**Note:** The most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read IFTA (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIftaVehicleReports","parameters":[{"description":" The year of the requested IFTA report summary. Must be provided with a month or quarter param. Example: `year=2021`","in":"query","name":"year","required":true,"schema":{"maximum":2100,"minimum":2015,"type":"integer"}},{"description":" The month of the requested IFTA report summary. Can not be provided with the quarter param. Example: `month=January`  Valid values: `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November`, `December`","in":"query","name":"month","schema":{"enum":["January","February","March","April","May","June","July","August","September","October","November","December"],"type":"string"}},{"description":" The quarter of the requested IFTA report summary. Can not be provided with the month param. Q1: January, February, March. Q2: April, May, June. Q3: July, August, September. Q4: October, November, December. Example: `quarter=Q1`  Valid values: `Q1`, `Q2`, `Q3`, `Q4`","in":"query","name":"quarter","schema":{"enum":["Q1","Q2","Q3","Q4"],"type":"string"}},{"description":" A filter on the data based on this comma-separated list of jurisdictions. Example: `jurisdictions=GA`","in":"query","name":"jurisdictions","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of IFTA fuel types. Example: `fuelType=Diesel`  Valid values: `Unspecified`, `A55`, `Biodiesel`, `CompressedNaturalGas`, `Diesel`, `E85`, `Electricity`, `Ethanol`, `Gasohol`, `Gasoline`, `Hydrogen`, `LiquifiedNaturalGas`, `M85`, `Methanol`, `Propane`, `Other`","in":"query","name":"fuelType","schema":{"enum":["Unspecified","A55","Biodiesel","CompressedNaturalGas","Diesel","E85","Electricity","Ethanol","Gasohol","Gasoline","Hydrogen","LiquifiedNaturalGas","M85","Methanol","Propane","Other"],"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaVehicleReportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get IFTA vehicle reports.","tags":["IFTA"]}},"/fleet/reports/vehicle/idling":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getidlingevents) instead. The endpoint will continue to function as documented.** Get all vehicle idling reports for the requested time duration.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getVehicleIdlingReports","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"A filter on the data based on power take-off being active or inactive.","in":"query","name":"isPtoActive","schema":{"type":"boolean"}},{"description":"A filter on the data based on a minimum idling duration.","in":"query","name":"minIdlingDurationMinutes","schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdlingReportsGetVehicleIdlingReportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[legacy] Get vehicle idling reports.","tags":["Legacy APIs"]}},"/fleet/reports/vehicles/fuel-energy":{"get":{"description":"Get fuel and energy efficiency vehicle reports for the requested time range.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFuelEnergyVehicleReports","parameters":[{"description":"A start date in RFC 3339 format. This parameter ignores everything (i.e. hour, minutes, seconds, nanoseconds, etc.) besides the date and timezone. If no time zone is passed in, then the UTC time zone will be used. This parameter is inclusive, so data on the date specified will be considered. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.","in":"query","name":"startDate","required":true,"schema":{"type":"string"}},{"description":"An end date in RFC 3339 format. This parameter ignores everything (i.e. hour, minutes, seconds, nanoseconds, etc.) besides the date and timezone. If no time zone is passed in, then the UTC time zone will be used. This parameter is inclusive, so data on the date specified will be considered. Note that the most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.","in":"query","name":"endDate","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":"The type of energy used by the vehicle.  Valid values: `fuel`, `hybrid`, `electric`","in":"query","name":"energyType","schema":{"enum":["fuel","hybrid","electric"],"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelEnergyGetFuelEnergyVehicleReportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get fuel and energy efficiency vehicle reports.","tags":["Fuel and Energy"]}},"/fleet/routes":{"get":{"description":"Returns multiple routes. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/fetchAllDispatchRoutes).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"fetchRoutes","parameters":[{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A comma-separated list of additional fields to include in the response. Valid values: `stops.actualDistanceMeters`","explode":false,"in":"query","name":"include","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRoutesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Fetch all routes","tags":["Routes"]},"post":{"description":"Create a route. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/createDispatchRoute).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createRoute","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesCreateRouteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a route","tags":["Routes"],"x-codegen-request-body-name":"CreateRouteRequestBody"}},"/fleet/routes/audit-logs/feed":{"get":{"description":"Subscribes to a feed of immutable, append-only updates for routes. The initial request to this feed endpoint returns a cursor, which can be used on the next request to fetch updated routes that have had state changes since that request.\n\nThe legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/fetchAllRouteJobUpdates).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getRoutesFeed","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Expands the specified value(s) in the response object. Expansion populates additional fields in an object, if supported. Unsupported fields are ignored. To expand multiple fields, input a comma-separated list.\n\nValid value: `route`  Valid values: `route`","in":"query","name":"expand","schema":{"enum":["route"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRoutesFeedBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get route updates","tags":["Routes"]}},"/fleet/routes/{id}":{"delete":{"description":"Delete a dispatch route and its associated stops.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteRoute","parameters":[{"description":"ID of the route. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesDeleteRouteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a route.","tags":["Routes"]},"get":{"description":"Returns a single route. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/getDispatchRouteById).\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"fetchRoute","parameters":[{"description":"A comma-separated list of additional fields to include in the response. Valid values: `stops.actualDistanceMeters`","explode":false,"in":"query","name":"include","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"ID of the route. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesFetchRouteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Fetch a route","tags":["Routes"]},"patch":{"description":"Update a route.  **Note** this implementation of patch uses [the JSON merge patch](https://tools.ietf.org/html/rfc7396) proposed standard.\n This means that any fields included in the patch request will _overwrite_ fields which exist on the target resource.\n For arrays, this means any array included in the request will _replace_ the array that exists at the specified path, it will not _add_ to the existing array.\n\nThe legacy version of this endpoint (which uses PUT instead of PATCH) can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/updateDispatchRouteById).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchRoute","parameters":[{"description":"ID of the route. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesPatchRouteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a route","tags":["Routes"],"x-codegen-request-body-name":"PatchRouteRequestBody"}},"/fleet/safety-events":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** \n\n Fetch safety events for the organization in a given time period. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getSafetyEvents","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsListResponse"}}},"description":"List of safety events from given time period."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"[legacy] List all safety events.","tags":["Legacy APIs"]}},"/fleet/safety-events/audit-logs/feed":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.**\n\nGet continuous safety events. The safety activity event feed offers a change-log for safety events. Use this endpoint to subscribe to safety event changes. See documentation below for all supported change-log types.\n\n| ActivityType      | Description |\n| ----------- | ----------- |\n| CreateSafetyEventActivityType | a new safety event is processed by Samsara      |\n| BehaviorLabelActivityType     | a label is added or removed from a safety event |\n| CoachingStateActivityType     | a safety event coaching state is updated        |\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getSafetyActivityEventFeed","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsGetSafetyActivityEventFeedBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[legacy] Fetches safety activity event feed","tags":["Legacy APIs"]}},"/fleet/settings/compliance":{"get":{"description":"Get organization's compliance settings, including carrier name, office address, and DOT number\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getComplianceSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetComplianceSettingsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get compliance settings","tags":["Settings"]},"patch":{"description":"Update organization's compliance settings, including carrier name, office address, and DOT number\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write ELD Compliance Settings (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchComplianceSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchComplianceSettingsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update compliance settings","tags":["Settings"],"x-codegen-request-body-name":"PatchComplianceSettingsRequestBody"}},"/fleet/settings/driver-app":{"get":{"description":"Get driver app settings.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Driver App Settings** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverAppSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsGetDriverAppSettingsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get driver app settings","tags":["Settings"]},"patch":{"description":"Update driver app settings.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Driver App Settings** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchDriverAppSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatchDriverAppSettingsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update driver app settings","tags":["Settings"],"x-codegen-request-body-name":"PatchDriverAppSettingsRequestBody"}},"/fleet/settings/safety":{"get":{"description":"Get safety settings\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getSafetySettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsGetSafetySettingsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get safety settings","tags":["Settings"]}},"/fleet/tachograph-live-data/latest":{"get":{"description":"Returns the latest live tachograph data for drivers, including working state and driving rest times, sourced from real-time telemetry.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Tachograph (EU)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listTachographLiveData","parameters":[{"description":"A filter on the data based on this comma-separated list of Driver ID values.","in":"query","name":"driverIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Vehicle ID values.","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. Defaults to 1 hour before now if not provided.","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List tachograph live data","tags":["Beta APIs"]}},"/fleet/tachograph/file-uploads":{"post":{"description":"Reserve a tachograph file upload and return a presigned URL. Upload the file bytes directly to the URL with the returned headers. The driver or device the file belongs to is resolved from the file contents after upload.\n\n**Uploading the file**\n\nOnce you have the `uploadUrl` and `requiredHeaders` from the response, PUT the raw file bytes directly to the URL — do not send the request through the Samsara API servers:\n\n```bash\ncurl -X PUT \"<uploadUrl>\" \\\n  -H \"Content-Type: <value from requiredHeaders>\" \\\n  -H \"Content-MD5: <value from requiredHeaders>\" \\\n  -H \"Content-Length: <value from requiredHeaders>\" \\\n  --data-binary @/path/to/file.ddd\n```\n\nEvery header listed in `requiredHeaders` must be sent verbatim — they are part of the URL signature, and the upload is rejected with a `403` if any header is missing or has a different value.\n\n**Retrieving uploaded files**\n\nA successful response to this request reserves the upload; it does not indicate that a file has been received or processed. Uploaded files are processed asynchronously after the PUT completes. Once a file has been processed, it can be retrieved through the standard tachograph file endpoints:\n\n- **Driver-card files** — `GET /fleet/drivers/tachograph-files/history`\n- **Vehicle-unit files** — `GET /fleet/vehicles/tachograph-files/history`\n\nFiles that cannot be processed — for example files that are corrupt, are not valid tachograph files, or cannot be matched to a driver or vehicle in your organization — are not retrievable through these endpoints.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Tachograph (EU)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postTachographFileUpload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographFileUploadsPostTachographFileUploadBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a tachograph file upload.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostTachographFileUploadRequestBody"}},"/fleet/trailers":{"get":{"description":"List all trailers.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listTrailers","parameters":[{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersListTrailersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List all trailers","tags":["Trailers"]},"post":{"description":"Creates a new trailer asset.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createTrailer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersCreateTrailerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Creates a new trailer asset","tags":["Trailers"],"x-codegen-request-body-name":"CreateTrailerRequestBody"}},"/fleet/trailers/stats":{"get":{"description":"Returns the last known stats of all trailers at the given `time`. If no `time` is specified, the current time is used.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailer Statistics** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrailerStatsSnapshot","parameters":[{"description":"The stat types you want this endpoint to return information on.\n\nYou may list **up to 3** types using comma-separated format. For example: `types=gps,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters`.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.","in":"query","name":"types","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of trailer IDs and externalIds. Example: `trailerIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"trailerIds","schema":{"type":"string"}},{"description":" A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 Format. Millisecond precision and timezones are supported.","in":"query","name":"time","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsSnapshotBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get trailer stats","tags":["Trailers"]}},"/fleet/trailers/stats/feed":{"get":{"description":"Follow a feed of trailer stats.\n\nThe first call to this endpoint will provide the most recent stats for each trailer and an `endCursor`.\n\nProviding the `endCursor` value to the `after` query parameter will fetch all updates since the previous API call.\n\nIf `hasNextPage` is false, no new data is immediately available. Please wait a minimum of 5 seconds before making a subsequent request.\n\nEach page includes every trailer in the current device page, even when a requested stat type has no datapoints. For example, a trailer without recent GPS data is returned with an empty `gps` array rather than being omitted from the response. An empty stat array typically indicates the gateway has not reported that stat recently due to an unhealthy or low-battery gateway, or because the trailer has been inactive.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailer Statistics** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrailerStatsFeed","parameters":[{"description":"The stat types you want this endpoint to return information on.\n\nYou may list **up to 3** types using comma-separated format. For example: `types=gps,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters`.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.","in":"query","name":"types","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of trailer IDs and externalIds. Example: `trailerIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"trailerIds","schema":{"type":"string"}},{"description":"Decorations add to the primary stats listed in the `types` parameter. For example, if you wish to know the trailer's location whenever the odometer updates, you may set `types=gpsOdometerMeters&decorations=gps`.\n\nYou may list **up to 2** types using comma-separated format. If multiple stats are listed in the types parameter, the decorations will be added to each type. For example: `types=reeferStateZone1,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters&decorations=gps` will list GPS decorations for each reeferStateZone1 reading, each reeferAmbientAirTemperatureMilliC reding, and gpsOdometerMeters reading.\n\nNote that decorations may significantly increase the response payload size.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.","in":"query","name":"decorations","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsFeedBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get trailer stats feed","tags":["Trailers"]}},"/fleet/trailers/stats/history":{"get":{"description":"Returns trailer stats during the given time range for all trailers. This can be optionally filtered by tags or specific trailer IDs.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailer Statistics** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrailerStatsHistory","parameters":[{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"The stat types you want this endpoint to return information on.\n\nYou may list **up to 3** types using comma-separated format. For example: `types=gps,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters`.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.","in":"query","name":"types","required":true,"schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of trailer IDs and externalIds. Example: `trailerIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"trailerIds","schema":{"type":"string"}},{"description":"Decorations add to the primary stats listed in the `types` parameter. For example, if you wish to know the trailer's location whenever the odometer updates, you may set `types=gpsOdometerMeters&decorations=gps`.\n\nYou may list **up to 2** types using comma-separated format. If multiple stats are listed in the types parameter, the decorations will be added to each type. For example: `types=reeferStateZone1,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters&decorations=gps` will list GPS decorations for each reeferStateZone1 reading, each reeferAmbientAirTemperatureMilliC reding, and gpsOdometerMeters reading.\n\nNote that decorations may significantly increase the response payload size.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.","in":"query","name":"decorations","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailerStatsGetTrailerStatsHistoryBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get trailer stats history","tags":["Trailers"]}},"/fleet/trailers/{id}":{"delete":{"description":"Delete a trailer with the given ID.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteTrailer","parameters":[{"description":"Unique identifier for the trailer to delete.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersDeleteTrailerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a trailer","tags":["Trailers"]},"get":{"description":"Retrieve a trailer with given ID.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrailer","parameters":[{"description":"ID of the trailer. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: \"key:value\". For example, \"maintenanceId:250020\".","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersGetTrailerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Retrieve a trailer","tags":["Trailers"]},"patch":{"description":"Update a trailer.  **Note** this implementation of patch uses [the JSON merge patch](https://tools.ietf.org/html/rfc7396) proposed standard.\n This means that any fields included in the patch request will _overwrite_ fields which exist on the target resource.\n For arrays, this means any array included in the request will _replace_ the array that exists at the specified path, it will not _add_ to the existing array\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateTrailer","parameters":[{"description":"ID of the trailer. Can be either unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the trailer.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersUpdateTrailerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a trailer","tags":["Trailers"],"x-codegen-request-body-name":"UpdateTrailerRequestBody"}},"/fleet/vehicles":{"get":{"description":"Returns a list of all vehicles.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Vehicles** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listVehicles","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of attribute value IDs. Only entities associated with ALL of the referenced values will be returned (i.e. the intersection of the sets of entities with each value). Example: `attributeValueIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","in":"query","name":"attributeValueIds","schema":{"type":"string"}},{"description":"A filter on the data to return entities having given attributes using either name-value pair, or range query (only for numeric and date attributes) separated by a comma. Only entities meeting all the conditions will be returned. Example: `attributes=ExampleAttributeName:some_value&attributes=SomeOtherAttr:123&attributes=Length:range(10,20)&attributes=Date:range(2025-01-01,2025-01-31)`","explode":true,"in":"query","name":"attributes","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" A filter on data to have an updated at time after or equal to this specified time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"updatedAfterTime","schema":{"type":"string"}},{"description":" A filter on data to have a created at time after or equal to this specified time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"createdAfterTime","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesListVehiclesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List all vehicles.","tags":["Vehicles"]}},"/fleet/vehicles/driver-assignments":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getdrivervehicleassignments) instead. The endpoint will continue to function as documented.** Get all driver assignments for the requested vehicles in the requested time range. The only type of assignment supported right now are assignments created through the driver app.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getVehiclesDriverAssignments","parameters":[{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). The maximum allowed startTime-endTime range is 7 days.","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). The maximum allowed startTime-endTime range is 7 days.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":" A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[legacy] Get all drivers assigned to a set of vehicles","tags":["Legacy APIs"]}},"/fleet/vehicles/immobilizer/stream":{"get":{"description":"Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Vehicle Immobilization** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getEngineImmobilizerStates","parameters":[{"description":" A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`","in":"query","name":"vehicleIds","required":true,"schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineImmobilizerGetEngineImmobilizerStatesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get engine immobilizer states","tags":["Beta APIs"]}},"/fleet/vehicles/locations":{"get":{"description":"***NOTE: The Vehicle Locations API is an older API that does not combine GPS data with onboard diagnostics. Try our new [Vehicle Stats API](ref:getvehiclestats) instead.***\n\nReturns the last known location of all vehicles at the given `time`. If no `time` is specified, the current time is used. This can be optionally filtered by tags or specific vehicle IDs.\n\nRelated guide: <a href=\"/docs/vehicle-locations-1\" target=\"_blank\">Vehicle Locations</a>. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleLocations","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Example: `2020-01-27T07:06:25Z`).","in":"query","name":"time","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleLocationsResponse"}}},"description":"List of the most recent locations for the specified vehicles."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Locations snapshot","tags":["Vehicle Locations"]}},"/fleet/vehicles/locations/feed":{"get":{"description":"***NOTE: The Vehicle Locations API is an older API that does not combine GPS data with onboard diagnostics. Try our new [Vehicle Stats API](ref:getvehiclestatsfeed) instead.***\n\nFollow a continuous feed of all vehicle locations from Samsara Vehicle Gateways.\n\nYour first call to this endpoint will provide you with the most recent location for each vehicle and a `pagination` object that contains an `endCursor`.\n\nYou can provide the `endCursor` to the `after` parameter of this endpoint to get location updates since that `endCursor`. \n\nIf `hasNextPage` is `false`, no updates are readily available yet. We'd suggest waiting a minimum of 5 seconds before requesting updates.\n\nRelated guide: <a href=\"/docs/vehicle-locations-1\" target=\"_blank\">Vehicle Locations</a>. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicle category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleLocationsFeed","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleLocationsListResponse"}}},"description":"List of locations events for the specified vehicles."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Locations feed","tags":["Vehicle Locations"]}},"/fleet/vehicles/locations/history":{"get":{"description":"***NOTE: The Vehicle Locations API is an older API that does not combine GPS data with onboard diagnostics. Try our new [Vehicle Stats API](ref:getvehiclestatshistory) instead.***\n\nReturns all known vehicle locations during the given time range. This can be optionally filtered by tags or specific vehicle IDs.\n\nRelated guide: <a href=\"/docs/vehicle-locations-1\" target=\"_blank\">Vehicle Locations</a>. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicle category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleLocationsHistory","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleLocationsListResponse"}}},"description":"List of all locations for the specified vehicles and time range."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Historical locations","tags":["Vehicle Locations"]}},"/fleet/vehicles/stats":{"get":{"description":"Returns the last known stats of all vehicles at the given `time`. If no `time` is specified, the current time is used.\n\nRelated guide: <a href=\"/docs/telematics\" target=\"_blank\">Telematics</a>. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleStats","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Example: `2020-01-27T07:06:25Z`).","in":"query","name":"time","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The stat types you want this endpoint to return information on. See also the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nYou may list ***up to 3*** types using comma-separated format. For example: `types=gps,engineStates,obdOdometerMeters`.\n\n*Note:* `auxInput3`-`auxInput10` count as a single type against the limit of 3. For example, you could list `types=engineStates,obdOdometerMeters,auxInput3,auxInput4` because `auxInput3` and `auxInput4` count as a single stat type. `auxInput1` and `auxInput2` still count as their own individual types.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `defLevelMilliPercent`: The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `gpsOdometerMeters`: Odometer reading provided by GPS calculations when OBD odometer cannot be pulled automatically. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the [PATCH /fleet/vehicles/{id}](ref:updatevehicle) endpoint or through the <a href=\"https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading\" target=\"_blank\">cloud dasbhoard</a>. Odometer readings that are manually set will update as GPS trip data is gathered. Try combining with `obdOdometerMeters`.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use [the Idling Events API](https://developers.samsara.com/reference/getvehicleidlingreports).\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in ‘blast mode’.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","barometricPressurePa","batteryMilliVolts","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","gpsOdometerMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","syntheticEngineSeconds","evStateOfChargeMilliPercent","evChargingStatus","evChargingEnergyMicroWh","evChargingVoltageMilliVolt","evChargingCurrentMilliAmp","evConsumedEnergyMicroWh","evRegeneratedEnergyMicroWh","evBatteryVoltageMilliVolt","evBatteryCurrentMilliAmp","evBatteryStateOfHealthMilliPercent","evAverageBatteryTemperatureMilliCelsius","evDistanceDrivenMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleStatsResponse"}}},"description":"Vehicle stats snapshot"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Stats snapshot","tags":["Vehicle Stats"]}},"/fleet/vehicles/stats/feed":{"get":{"description":"Follow a feed of vehicle stats. \n\nYour first call to this endpoint will provide you with the most recent stats for each vehicle and an `endCursor`.\n\nYou can the provide the `endCursor` value to the `after` query parameter to get all updates since the last call you made.\n\nIf `hasNextPage` is `false`, no new data is immediately available. You should wait a minimum of 5 seconds making a subsequent request.\n\nRelated guide: <a href=\"/docs/telematics\" target=\"_blank\">Telematics</a>. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleStatsFeed","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The stat types you want this endpoint to return information on. See also the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nYou may list ***up to 3*** types using comma-separated format. For example: `types=gps,engineStates,obdOdometerMeters`.\n\n*Note:* `auxInput3`-`auxInput10` count as a single type against the limit of 3. For example, you could list `types=engineStates,obdOdometerMeters,auxInput3,auxInput4` because `auxInput3` and `auxInput4` count as a single stat type. `auxInput1` and `auxInput2` still count as their own individual types.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `defLevelMilliPercent`: The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `gpsOdometerMeters`: Odometer reading provided by GPS calculations when OBD odometer cannot be pulled automatically. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the [PATCH /fleet/vehicles/{id}](ref:updatevehicle) endpoint or through the <a href=\"https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading\" target=\"_blank\">cloud dasbhoard</a>. Odometer readings that are manually set will update as GPS trip data is gathered. Try combining with `obdOdometerMeters`.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use [the Idling Events API](https://developers.samsara.com/reference/getvehicleidlingreports).\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in ‘blast mode’.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","barometricPressurePa","batteryMilliVolts","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","gpsOdometerMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","syntheticEngineSeconds","evStateOfChargeMilliPercent","evChargingStatus","evChargingEnergyMicroWh","evChargingVoltageMilliVolt","evChargingCurrentMilliAmp","evConsumedEnergyMicroWh","evRegeneratedEnergyMicroWh","evBatteryVoltageMilliVolt","evBatteryCurrentMilliAmp","evBatteryStateOfHealthMilliPercent","evAverageBatteryTemperatureMilliCelsius","evDistanceDrivenMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"},{"description":"Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.\n\nYou may list ***up to 2*** decorations using comma-separated format. If multiple stats are listed in the `types` parameter, the decorations will be added to each one. For example: `types=engineStates,obdOdometerMeters,faultCodes&decorations=gps,fuelPercents` will list GPS and fuel decorations for each engine state change, each odometer reading, and each fault code. See the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nNote that decorations may significantly increase the response payload size.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in 'blast mode'.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"decorations","schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","batteryMilliVolts","barometricPressurePa","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleStatsListResponse"}}},"description":"List of stat events for the specified vehicles and stat types."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Stats feed","tags":["Vehicle Stats"]}},"/fleet/vehicles/stats/history":{"get":{"description":"Returns vehicle stats during the given time range for all vehicles. This can be optionally filtered by tags or specific vehicle IDs.\n\nRelated guide: <a href=\"/docs/telematics\" target=\"_blank\">Telematics</a>. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleStatsHistory","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The stat types you want this endpoint to return information on. See also the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nYou may list ***up to 3*** types using comma-separated format. For example: `types=gps,engineStates,obdOdometerMeters`.\n\n*Note:* `auxInput3`-`auxInput10` count as a single type against the limit of 3. For example, you could list `types=engineStates,obdOdometerMeters,auxInput3,auxInput4` because `auxInput3` and `auxInput4` count as a single stat type. `auxInput1` and `auxInput2` still count as their own individual types.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `defLevelMilliPercent`: The Diesel Exhaust Fluid (DEF) level in milli percentage points (e.g. `99001`, `49999`, etc).\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `gpsOdometerMeters`: Odometer reading provided by GPS calculations when OBD odometer cannot be pulled automatically. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the [PATCH /fleet/vehicles/{id}](ref:updatevehicle) endpoint or through the <a href=\"https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading\" target=\"_blank\">cloud dasbhoard</a>. Odometer readings that are manually set will update as GPS trip data is gathered. Try combining with `obdOdometerMeters`.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use [the Idling Events API](https://developers.samsara.com/reference/getvehicleidlingreports).\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in ‘blast mode’.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"types","required":true,"schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","barometricPressurePa","batteryMilliVolts","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","gpsOdometerMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","syntheticEngineSeconds","evStateOfChargeMilliPercent","evChargingStatus","evChargingEnergyMicroWh","evChargingVoltageMilliVolt","evChargingCurrentMilliAmp","evConsumedEnergyMicroWh","evRegeneratedEnergyMicroWh","evBatteryVoltageMilliVolt","evBatteryCurrentMilliAmp","evBatteryStateOfHealthMilliPercent","evAverageBatteryTemperatureMilliCelsius","evDistanceDrivenMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"},{"description":"Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.\n\nYou may list ***up to 2*** decorations using comma-separated format. If multiple stats are listed in the `types` parameter, the decorations will be added to each one. For example: `types=engineStates,obdOdometerMeters,faultCodes&decorations=gps,fuelPercents` will list GPS and fuel decorations for each engine state change, each odometer reading, and each fault code. See the <a href=\"/docs/telematics#query-parameters\" target=\"_blank\">Telematics</a> guide for more details.\n\nNote that decorations may significantly increase the response payload size.\n\n- `ambientAirTemperatureMilliC`: The ambient air temperature reading in millidegree Celsius.\n- `auxInput1`-`auxInput13`: Stat events from the <a href=\"https://kb.samsara.com/hc/en-us/articles/360043040512-Auxiliary-Inputs\" target=\"_blank\">auxiliary inputs</a> for the vehicle.\n- `batteryMilliVolts`: The vehicle battery voltage reading.\n- `barometricPressurePa`: The barometric pressure reading in pascals.\n- `ecuSpeedMph`: The speed of the engine in miles per hour according to the ECU.\n- `engineCoolantTemperatureMilliC`: The engine coolant temperature reading in millidegree Celsius.\n- `engineImmobilizer`: The state of the engine immobilizer - Valid values: `ignition_disabled`, `ignition_enabled`. This stat type will only return states of our first Engine Immobilizer Hardware (ACC-EI). Please use <a href=\"https://developers.samsara.com/reference/getengineimmobilizerstates\" target=\"_blank\">Get engine immobilizer states</a> to get states for both Engine Immobilizer Hardware versions (incl. HW-EI21).\n- `engineOilPressureKPa`: The engine oil pressure reading in kilopascals.\n- `engineLoadPercent`: The engine load in percentage points (e.g. `99`, `50`, etc).\n- `engineRpm`: The revolutions per minute of the engine.\n- `engineStates`: The state of the engine (`Off`, `On`, `Idle`).\n- `faultCodes`: The diagnostic fault codes for the vehicle.\n- `fuelPercents`: The engine fuel level in percentage points (e.g. `99`, `50`, etc).\n- `fuelConsumedMilliliters`: The cumulative fuel consumption in milliliters for vehicles. Cumulative values always increase. This includes all fuel consumption reported by vehicles without filtering of invalid data points. For filtered fuel consumption that matches the Fuel & Energy Report, please use <a href=\"https://developers.samsara.com/reference/getfuelenergyvehiclereports\" target=\"_blank\">the Fuel and Energy API</a>.\n- `gps`: GPS data including lat/long, heading, speed, address book entry (if exists), and a reverse geocoded address.\n- `gpsDistanceMeters`: The distance the vehicle has traveled since the gateway was installed based on GPS calculations.\n- `idlingDurationMilliseconds`: The cumulative idling duration in milliseconds. Cumulative values always increase. For filtering of idling duration please use <a href=\"https://developers.samsara.com/reference/getvehicleidlingreports\" target=\"_blank\">the Idling Events API</a>.\n- `intakeManifoldTemperatureMilliC`: The intake manifold temperature reading in millidegree Celsius.\n- `nfcCardScans`: ID card scans.\n- `obdEngineSeconds`: The cumulative number of seconds the engine has run according to onboard diagnostics. When onboard diagnostic data is unavailable, ignition-based engine data (for ELD vehicles) will be used as a proxy to accumulate engine hours.\n- `obdOdometerMeters`: The odometer reading according to onboard diagnostics. If Samsara does not have diagnostic coverage for a particular vehicle, the value for this stat type will be omitted.\n- `syntheticEngineSeconds`: The cumulative number of seconds the engine has run estimated based on when the engine is running. Please note that this method <a href=\"https://kb.samsara.com/hc/en-us/articles/360043552511-Synthetic-Engine-Hours\" target=\"_blank\">requires the addition of a baseline</a> to trigger accumulation.\n- `evStateOfChargeMilliPercent`: Milli percent State of Charge for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evChargingStatus`: Charging status for electric and hybrid vehicles. Not all EV and HEVs may report this field. Statuses: unknown - 0, not charging - 1, charging - 2.\n- `evChargingEnergyMicroWh`: Charging energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evChargingVoltageMilliVolt`: Charging voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evChargingCurrentMilliAmp`: Charging current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evConsumedEnergyMicroWh`: Consumed energy (including regenerated) for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evRegeneratedEnergyMicroWh`: Regenerated energy for electric and hybrid vehicles in microwatt hours. Not all EV and HEVs may report this field.\n- `evBatteryVoltageMilliVolt`: Battery voltage for electric and hybrid vehicles in milli volts. Not all EV and HEVs may report this field.\n- `evBatteryCurrentMilliAmp`: Battery current for electric and hybrid vehicles in milli amps. Not all EV and HEVs may report this field.\n- `evBatteryStateOfHealthMilliPercent`: Milli percent battery state of health for electric and hybrid vehicles. Not all EV and HEVs may report this field.\n- `evAverageBatteryTemperatureMilliCelsius`: Battery temperature for electric and hybrid vehicles in milli celsius. Not all EV and HEVs may report this field.\n- `evDistanceDrivenMeters`: Electric distance driven for electric and hybrid vehicles in meters. Not all EV and HEVs may report this field.\n- `spreaderLiquidRate`: Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderGranularRate`: Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderPrewetRate`: Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.\n- `spreaderAirTemp`: Air (ambient) temperature in milli celsius reading from material spreader.\n- `spreaderRoadTemp`: Road temperature reading in milli celsius from material spreader.\n- `spreaderOnState`: Whether vehicle spreader is enabled.\n- `spreaderActive`: Whether vehicle is actively spreading any material.\n- `spreaderBlastState`: Whether vehicle is actively spreading material in 'blast mode'.\n- `spreaderGranularName`: Name of most recent type of granular material spread, read from the material spreader.\n- `spreaderPrewetName`: Name of most recent type of prewet material spread, read from the material spreader.\n- `spreaderLiquidName`: Name of most recent type of liquid material spread, read from the material spreader.\n- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.\n- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)\n- `tellTales`: Tell tales status as read from the vehicle.\n- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.","explode":false,"in":"query","name":"decorations","schema":{"items":{"enum":["ambientAirTemperatureMilliC","auxInput1","auxInput2","auxInput3","auxInput4","auxInput5","auxInput6","auxInput7","auxInput8","auxInput9","auxInput10","auxInput11","auxInput12","auxInput13","batteryMilliVolts","barometricPressurePa","defLevelMilliPercent","ecuSpeedMph","engineCoolantTemperatureMilliC","engineImmobilizer","engineLoadPercent","engineOilPressureKPa","engineRpm","engineStates","faultCodes","fuelPercents","fuelConsumedMilliliters","gps","gpsDistanceMeters","idlingDurationMilliseconds","intakeManifoldTemperatureMilliC","nfcCardScans","obdEngineSeconds","obdOdometerMeters","spreaderLiquidRate","spreaderGranularRate","spreaderPrewetRate","spreaderAirTemp","spreaderRoadTemp","spreaderOnState","spreaderActive","spreaderBlastState","spreaderGranularName","spreaderPrewetName","spreaderLiquidName","spreaderPlowStatus","seatbeltDriver","tellTales","ecuDoorStatus"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleStatsListResponse"}}},"description":"List of vehicle stats for the specified vehicles, stat type, and time range."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Historical stats","tags":["Vehicle Stats"]}},"/fleet/vehicles/tachograph-files/history":{"get":{"description":"Returns all known tachograph files for all specified vehicles in the time range. \n\n <b>Rate limit:</b> 150 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Tachograph (EU)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicleTachographFiles","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of vehicle IDs. Example: `vehicleIds=1234,5678`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TachographVehicleFilesResponse"}}},"description":"List of all vehicle tachograph files in a specified time range."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get tachograph vehicle files","tags":["Tachograph (EU Only)"]}},"/fleet/vehicles/{id}":{"get":{"description":"Get information about a specific vehicle. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicles** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVehicle","parameters":[{"description":"ID of the vehicle. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource, or automatically populated by fields on the vehicle. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `maintenanceId:250020`. Automatically populated external IDs are prefixed with `samsara.`. For example, `samsara.vin:1HGBH41JXMN109186`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}},"description":"Returns the specified vehicle object."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve a vehicle","tags":["Vehicles"]},"patch":{"description":"Updates the given Vehicle object.\n\n**Note:** Vehicle objects are automatically created when Samsara Vehicle Gateways are installed. You cannot create a Vehicle object via API.\n\nYou are able to *update* many of the fields of a Vehicle.\n\n**Note**: There are no required fields in the request body, and you only need to provide the fields you wish to update. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Vehicles** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateVehicle","parameters":[{"description":"ID of the vehicle. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource, or automatically populated by fields on the vehicle. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `maintenanceId:250020`. Automatically populated external IDs are prefixed with `samsara.`. For example, `samsara.vin:1HGBH41JXMN109186`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVehicleRequest"}}},"description":"Fields that can be patched on a vehicle.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}},"description":"Returns the specified vehicle object."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a vehicle","tags":["Vehicles"],"x-codegen-request-body-name":"vehicle"}},"/form-submissions":{"get":{"description":"Returns all form submissions data for the specified list of IDs.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFormSubmissions","parameters":[{"description":"A comma-separated list containing up to 100 form submission IDs to filter on. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the form submission.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of strings indicating whether to return additional information. Valid values: `externalIds`","explode":false,"in":"query","name":"include","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a list of specified form submissions.","tags":["Forms"]},"patch":{"description":"Updates an instance of a form submission.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchFormSubmission","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPatchFormSubmissionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a single form submission.","tags":["Forms"],"x-codegen-request-body-name":"PatchFormSubmissionRequestBody"},"post":{"description":"Creates a form submission and assigns it to an individual worker. This endpoint can be used to create an empty or partially complete form submission and assign it to a worker.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postFormSubmission","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a form submission.","tags":["Forms"],"x-codegen-request-body-name":"PostFormSubmissionRequestBody"}},"/form-submissions/pdf-exports":{"get":{"description":"Returns a PDF export that has already been generated for a form submission.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFormSubmissionsPdfExports","parameters":[{"description":"ID of the form submission PDF export.","in":"query","name":"pdfId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsPdfExportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Return a PDF export that has already been generated for a form submission.","tags":["Forms"]},"post":{"description":"Creates a PDF export for an existing form submission.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postFormSubmissionsPdfExports","parameters":[{"description":"ID of the form submission to create a PDF export from.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsResponseBody"}}},"description":"Accepted response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsPostFormSubmissionsPdfExportsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a PDF export for an existing form submission.","tags":["Forms"]}},"/form-submissions/stream":{"get":{"description":"Returns all form submissions data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFormSubmissionsStream","parameters":[{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. Value is compared against `updatedAtTime`. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. Value is compared against `updatedAtTime`. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A comma-separated list containing up to 50 template IDs to filter data to.","explode":false,"in":"query","name":"formTemplateIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list containing up to 50 user IDs to filter data to.","explode":false,"in":"query","name":"userIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list containing up to 50 user IDs to filter data to.","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of strings indicating whether to return additional information. Valid values: `externalIds`","explode":false,"in":"query","name":"include","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list containing up to 50 route stop IDs to filter data to.","explode":false,"in":"query","name":"assignedToRouteStopIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionsGetFormSubmissionsStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a stream of filtered form submissions.","tags":["Forms"]}},"/form-templates":{"get":{"description":"Returns a list of the organization's form templates for the specified list of IDs. If no IDs are provided, all form templates for the organization will be returned.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Form Submissions** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFormTemplates","parameters":[{"description":"A comma-separated list containing up to 100 template IDs to filter on.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesGetFormTemplatesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a list of form templates.","tags":["Forms"]}},"/fuel-purchase":{"post":{"description":"Create a fuel purchase transaction.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postFuelPurchase","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuelPurchasePostFuelPurchaseBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a fuel purchase transaction.","tags":["Fuel and Energy"],"x-codegen-request-body-name":"PostFuelPurchaseRequestBody"}},"/functions":{"post":{"description":"Create a new Function with the given name, description, and configuration. The response includes a URL (`uploadPutUrl`) for uploading the function's code package. After uploading, call `POST /functions/{name}/deploy` to make the function runnable.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createFunction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsCreateFunctionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a Function.","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateFunctionRequestBody"}},"/functions-storage/files":{"delete":{"description":"Delete a file from Functions storage by name.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions Storage** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteFunctionStorageFile","parameters":[{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageDeleteFunctionStorageFileBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a Functions storage file.","tags":["Beta APIs"]},"get":{"description":"Get a file from Functions storage by name. Returns file metadata and a presigned download URL.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Functions Storage** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFunctionStorageFile","parameters":[{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageGetFunctionStorageFileBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a Functions storage file.","tags":["Beta APIs"]},"post":{"description":"Create a new file in Functions storage. Returns a presigned upload URL. Returns an error if the file already exists.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions Storage** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createFunctionStorageFile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageCreateFunctionStorageFileBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a Functions storage file.","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateFunctionStorageFileRequestBody"},"put":{"description":"Get a presigned upload URL for overwriting an existing file in Functions storage. Returns an error if the file does not exist.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions Storage** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateFunctionStorageFile","parameters":[{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageUpdateFunctionStorageFileBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a Functions storage file.","tags":["Beta APIs"]}},"/functions-storage/ls":{"get":{"description":"List files in Functions storage for the organization. Returns file metadata and optionally includes presigned download or upload URLs.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Functions Storage** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listFunctionsStorageFiles","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The maximum number of files to return per page.","in":"query","name":"limit","schema":{"default":50,"maximum":512,"minimum":1,"type":"integer"}},{"description":"If true, include presigned download URLs for each file.","in":"query","name":"includeDownloadUrls","schema":{"type":"boolean"}},{"description":"If true, include presigned upload URLs for each file. Requires write permission.","in":"query","name":"includeUploadUrls","schema":{"type":"boolean"}},{"description":"Only list files and immediate subfolders under this path prefix, for example `logs/`.","in":"query","name":"prefix","schema":{"type":"string"}},{"description":"When true, roll immediate subfolders up into the `folders` field and return only files directly under the prefix in `data`.","in":"query","name":"groupByFolder","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStorageListFunctionsStorageFilesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List Functions storage files.","tags":["Beta APIs"]}},"/functions/{name}":{"delete":{"description":"Delete a Function by name. A Function that is currently configured as an action in a workflow config cannot be deleted.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteFunction","parameters":[{"description":"The name of the Function to delete.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeleteFunctionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a Function.","tags":["Beta APIs"]},"get":{"description":"Retrieve the current state of an existing Function, including its configuration, code package status, and a `lastUpdateTimestampMs` value for use in subsequent PATCH requests.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFunction","parameters":[{"description":"The name of the Function to retrieve.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a Function.","tags":["Beta APIs"]},"patch":{"description":"Update an existing Function's description and configuration. The request must include `lastUpdateTimestampMs`, which is the timestamp value obtained from a previous create or get response. The response includes a URL (`uploadPutUrl`) for uploading new code. After uploading, call `POST /functions/{name}/deploy` for the changes to be applied.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchFunction","parameters":[{"description":"The name of the Function to update.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsPatchFunctionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a Function.","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchFunctionRequestBody"}},"/functions/{name}/deploy":{"post":{"description":"Deploy the uploaded code package for the specified Function, making it runnable.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deployFunction","parameters":[{"description":"The name of the Function to deploy.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsDeployFunctionBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Deploy a Function.","tags":["Beta APIs"]}},"/functions/{name}/logs":{"get":{"description":"Retrieve paginated log entries for a specific Function within a given time range. Logs are produced during Function executions and can be filtered by text content.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFunctionLogs","parameters":[{"description":"Required RFC 3339 timestamp for the beginning of the log time range.","in":"query","name":"startTime","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Required RFC 3339 timestamp for the end of the log time range.","in":"query","name":"endTime","required":true,"schema":{"format":"date-time","type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The maximum number of log entries to return per page. Default is 100.","in":"query","name":"limit","schema":{"default":100,"maximum":512,"minimum":1,"type":"integer"}},{"description":"Optional text to filter log entries. Only logs containing this text will be returned.","in":"query","name":"filterText","schema":{"type":"string"}},{"description":"The name of the Function whose logs to retrieve.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionLogsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get Function logs.","tags":["Beta APIs"]}},"/functions/{name}/runs":{"post":{"description":"Start an asynchronous run for the specified Function. This endpoint allows you to override parameters available at runtime.\n\n <b>Rate limit:</b> 2 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"startFunctionRun","parameters":[{"description":"The name of the Function to run.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsStartFunctionRunBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Start a Function run.","tags":["Beta APIs"],"x-codegen-request-body-name":"StartFunctionRunRequestBody"}},"/functions/{name}/runs/{correlationId}":{"get":{"description":"Retrieve the execution summary for a specific Function run, identified by the correlationId returned from the start run endpoint.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Functions** under the Functions category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFunctionRun","parameters":[{"description":"The name of the Function.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"The unique correlationId of the Function run, returned by the start run endpoint.","in":"path","name":"correlationId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionsGetFunctionRunBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a Function run.","tags":["Beta APIs"]}},"/gateways":{"get":{"description":"List all gateways\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Gateways** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getGateways","parameters":[{"description":"Filter by a comma separated list of gateway models.","explode":false,"in":"query","name":"models","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysGetGatewaysBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List all gateways","tags":["Gateways"]},"post":{"description":"Activate a new gateway. To activate a device and associate it with your organization, enter its serial number. Each device's serial number can also be found on its label or packaging, or from your order confirmation email. A Not Found error could mean that the serial was not found or it has already been activated\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postGateway","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPostGatewayBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Activate a new gateway","tags":["Gateways"],"x-codegen-request-body-name":"PostGatewayRequestBody"}},"/gateways/pair":{"post":{"description":"Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's \"Pair Gateway\" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Beta and gated behind a feature configuration; contact your Samsara representative to enable access.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"pairGateways","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysPairGatewaysBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Pair gateways to devices","tags":["Beta APIs"],"x-codegen-request-body-name":"PairGatewaysRequestBody"}},"/gateways/{id}":{"delete":{"description":"Deactivate a gateway\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteGateway","parameters":[{"description":"Gateway serial number","in":"path","name":"id","required":true,"schema":{"pattern":"^[a-zA-Z0-9]{4}-[a-zA-Z0-9]{3}-[a-zA-Z0-9]{3}$","type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewaysDeleteGatewayBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Deactivate a gateway","tags":["Gateways"]}},"/ground-intelligence/issues":{"get":{"description":"Returns a paginated list of Ground Intelligence issues for an organization, ordered by updatedAtTime descending and then id ascending.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Ground Intelligence Issues** under the Ground Intelligence category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listIssues","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","in":"query","name":"ids","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Type values.","in":"query","name":"types","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Status values.","in":"query","name":"statuses","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Severity values.","in":"query","name":"severities","schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Time field to filter with startTime and endTime. Defaults to updatedAtTime.","in":"query","name":"queryByTimeField","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported.","in":"query","name":"startTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceListIssuesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List Ground Intelligence issues","tags":["Beta APIs"]},"patch":{"description":"Updates the status, type, or dismissal metadata for a Ground Intelligence road-condition issue.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ground Intelligence Issues** under the Ground Intelligence category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateGroundIntelligenceIssue","parameters":[{"description":"Unique identifier for the Ground Intelligence issue.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroundIntelligenceIssuesServiceUpdateGroundIntelligenceIssueBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a Ground Intelligence issue","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateGroundIntelligenceIssueRequestBody"}},"/ground-intelligence/watchpoints":{"patch":{"description":"Updates the name, note, or observation type for an existing Ground Intelligence watchpoint.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Watchpoints** under the Ground Intelligence category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateWatchpoint","parameters":[{"description":"Unique identifier for the Watchpoint record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceUpdateWatchpointBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a watchpoint","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateWatchpointRequestBody"},"post":{"description":"Creates a Ground Intelligence watchpoint for the organization. The submitted location may be snapped to a road within 75 meters. Use the location returned in the response as the saved watchpoint location.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Watchpoints** under the Ground Intelligence category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createWatchpoint","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWatchpointsServiceCreateWatchpointBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a watchpoint","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateWatchpointRequestBody"}},"/hos/daily-logs/log-meta-data":{"patch":{"description":"Update the shippingDocs field of an existing assignment.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write ELD Hours of Service (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateShippingDocs","parameters":[{"description":"A start date in yyyy-mm-dd format. Required.","in":"query","name":"hosDate","required":true,"schema":{"type":"string"}},{"description":"ID of the driver for whom the duty status is being set.","in":"query","name":"driverID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HosDailyLogsUpdateShippingDocsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update the shippingDocs field of an existing assignment.","tags":["Hours of Service"],"x-codegen-request-body-name":"UpdateShippingDocsRequestBody"}},"/hub/capacities":{"get":{"description":"Retrieve capacity types for a specific hub.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubCapacities","parameters":[{"description":"The hub identifier","in":"query","name":"hubId","required":true,"schema":{"type":"string"}},{"description":"Comma-separated list of capacity IDs for filtering.","in":"query","name":"capacityIds","schema":{"type":"string"}},{"description":"Comma-separated list of capacity names for filtering.","in":"query","name":"capacityNames","schema":{"type":"string"}},{"description":"Time filter of when the capacity was updated, in RFC 3339 format","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Time filter of when the capacity was updated, in RFC 3339 format","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCapacitiesListHubCapacitiesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List capacities for a specific hub","tags":["Hubs"]}},"/hub/customProperties":{"get":{"description":"Retrieve custom properties for a specific hub.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubCustomProperties","parameters":[{"description":"The hub identifier","in":"query","name":"hubId","required":true,"schema":{"type":"string"}},{"description":"A comma-separated list of custom property IDs that can be used for filtering.","in":"query","name":"customPropertyIds","schema":{"type":"string"}},{"description":"A comma-separated list of custom property names that can be used for filtering.","in":"query","name":"customPropertyNames","schema":{"type":"string"}},{"description":"Time filter of when the custom property was updated, in RFC 3339 format","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Time filter of when the custom property was updated, in RFC 3339 format","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubCustomPropertiesListHubCustomPropertiesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List custom properties for a specific hub","tags":["Hubs"]}},"/hub/location/{id}":{"patch":{"description":"**Note: This endpoint is deprecated. Use [PATCH /places](https://developers.samsara.com/reference/patchplace) instead. Access closes for new customers on November 1, 2026, and the endpoint will be removed on November 1, 2027. It will continue to function as documented until then. See the [migration guide](https://developers.samsara.com/docs/migrating-from-the-hub-locations-api-to-the-places-api).**\n\nUpdate existing location by ID.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateHubLocation","parameters":[{"description":"The unique Samsara ID of the hub location to update","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsUpdateHubLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a location","tags":["Hubs"],"x-codegen-request-body-name":"UpdateHubLocationRequestBody"}},"/hub/locations":{"get":{"description":"**Note: This endpoint is deprecated. Use [GET /places](https://developers.samsara.com/reference/getplaces) instead. Access closes for new customers on November 1, 2026, and the endpoint will be removed on November 1, 2027. It will continue to function as documented until then. See the [migration guide](https://developers.samsara.com/docs/migrating-from-the-hub-locations-api-to-the-places-api).**\n\nRetrieve locations for a specific hub.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubLocations","parameters":[{"description":"The hub identifier","in":"query","name":"hubId","required":true,"schema":{"type":"string"}},{"description":"A comma-separated list of location IDs that can be used for filtering","in":"query","name":"locationIds","schema":{"type":"string"}},{"description":"A comma-separated list of customer provided location IDs that can be used for filtering","in":"query","name":"customerLocationIds","schema":{"type":"string"}},{"description":"Time filter of when the location was updated, in RFC 3339 format","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Time filter of when the location was updated, in RFC 3339 format","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsListHubLocationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List locations for a specific hub","tags":["Hubs"]},"post":{"description":"**Note: This endpoint is deprecated. Use [POST /places](https://developers.samsara.com/reference/postplace) instead. Access closes for new customers on November 1, 2026, and the endpoint will be removed on November 1, 2027. It will continue to function as documented until then. See the [migration guide](https://developers.samsara.com/docs/migrating-from-the-hub-locations-api-to-the-places-api).**\n\nCreate new locations.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createHubLocations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubLocationsCreateHubLocationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create locations in bulk","tags":["Hubs"],"x-codegen-request-body-name":"CreateHubLocationsRequestBody"}},"/hub/plan":{"post":{"description":"Create a new plan.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createHubPlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansCreateHubPlanBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a new plan","tags":["Plans"],"x-codegen-request-body-name":"CreateHubPlanRequestBody"}},"/hub/plan/orders":{"delete":{"description":"Delete one or more orders from a plan. Pass either `orderIds` (a comma-separated list) or `deleteAll=true`; exactly one is required. Orders are automatically unassigned from their routes before deletion.\n\n**Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deletePlanOrders","parameters":[{"description":"The plan identifier","in":"query","name":"planId","required":true,"schema":{"type":"string"}},{"description":"Comma-separated list of order IDs to delete. Mutually exclusive with `deleteAll=true`; exactly one of the two must be provided.","in":"query","name":"orderIds","schema":{"type":"string"}},{"description":"When `true`, every order in the plan is deleted. Must not be combined with `orderIds`. Must be set to `true` explicitly — `false` is equivalent to omitting the parameter and requires `orderIds` to be supplied.","in":"query","name":"deleteAll","schema":{"type":"boolean"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersDeletePlanOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete orders from a plan","tags":["Beta APIs"]},"get":{"description":"Retrieve all orders for a specific plan, including both assigned and unassigned orders.\n\n**Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listPlanOrders","parameters":[{"description":"The plan identifier","in":"query","name":"planId","required":true,"schema":{"type":"string"}},{"description":"Comma-separated list of order IDs for filtering.","in":"query","name":"orderIds","schema":{"type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersListPlanOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List orders for a specific plan","tags":["Beta APIs"]},"post":{"description":"Create one or more orders (bulk upsert). Pass an array of order objects; any object whose customerOrderId already exists will be updated, otherwise a new order is created. Functions can return JSON arrays in this Order POST format. Orders are initially created at the plan level but will migrate to hub-level entities, with planId becoming optional in future versions.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createPlanOrders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOrdersCreatePlanOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create orders in bulk","tags":["Plans"],"x-codegen-request-body-name":"CreatePlanOrdersRequestBody"}},"/hub/plan/routes":{"get":{"description":"Retrieve routes for a specific plan.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubPlanRoutes","parameters":[{"description":"The plan identifier","in":"query","name":"planId","required":true,"schema":{"type":"string"}},{"description":"Comma-separated list of route IDs for filtering.","in":"query","name":"routeIds","schema":{"type":"string"}},{"description":"Time filter of when the route was updated, in RFC 3339 format","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Time filter of when the route was updated, in RFC 3339 format","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlanRoutesListHubPlanRoutesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List routes for a specific plan","tags":["Routes"]}},"/hub/plans":{"get":{"description":"Retrieve all plans for a specific hub.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubPlans","parameters":[{"description":"The hub identifier","in":"query","name":"hubId","required":true,"schema":{"type":"string"}},{"description":"Comma-separated list of plan IDs for filtering.","in":"query","name":"planIds","schema":{"type":"string"}},{"description":"Time filter of when the plan was updated, in RFC 3339 format","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Time filter of when the plan was updated, in RFC 3339 format","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubPlansListHubPlansBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List plans for a specific hub","tags":["Plans"]}},"/hub/route-templates":{"delete":{"description":"Delete a route template by its unique identifier.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteHubRouteTemplate","parameters":[{"description":"The unique identifier of the route template to delete.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesDeleteHubRouteTemplateBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a route template","tags":["Beta APIs"]},"get":{"description":"Retrieve route templates for a specific hub. Optionally filter by route template ID or name.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubRouteTemplates","parameters":[{"description":"The hub identifier.","in":"query","name":"hubId","required":true,"schema":{"type":"string"}},{"description":"Filter by a specific route template ID.","in":"query","name":"id","schema":{"type":"string"}},{"description":"Filter by route template name (exact match).","in":"query","name":"name","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 100 objects.","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesListHubRouteTemplatesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List route templates for a specific hub","tags":["Beta APIs"]},"patch":{"description":"Update an existing route template by its unique identifier. Only the fields provided in the request body are changed.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateHubRouteTemplate","parameters":[{"description":"The unique identifier of the route template to update.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesUpdateHubRouteTemplateBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a route template","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateHubRouteTemplateRequestBody"},"post":{"description":"Create a new route template for a hub.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createHubRouteTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubRouteTemplatesCreateHubRouteTemplateBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a route template for a specific hub","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateHubRouteTemplateRequestBody"}},"/hub/skills":{"get":{"description":"Retrieve skills for a specific hub.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubSkills","parameters":[{"description":"The hub identifier","in":"query","name":"hubId","required":true,"schema":{"type":"string"}},{"description":"A comma-separated list of skill IDs that can be used for filtering.","in":"query","name":"skillIds","schema":{"type":"string"}},{"description":"A comma-separated list of skill namess that can be used for filtering.","in":"query","name":"skillNames","schema":{"type":"string"}},{"description":"Time filter of when the skill was updated, in RFC 3339 format","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Time filter of when the skill was updated, in RFC 3339 format","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSkillsListHubSkillsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List skills for a specific hub","tags":["Hubs"]}},"/hubs":{"get":{"description":"Retrieve all hubs (planners) in the organization. This endpoint supports pagination and filtering based on hub IDs and update times.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listHubs","parameters":[{"description":"A comma-separated list of hub IDs for filtering results.","in":"query","name":"hubIds","schema":{"type":"string"}},{"description":"Returns hubs updated after the specified time in UTC","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Returns hubs updated before the specified time in UTC","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of objects to return. Default and maximum is 100","in":"query","name":"limit","schema":{"default":100,"maximum":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubsListHubsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List all hubs for the organization","tags":["Hubs"]}},"/idling/events":{"get":{"description":"Get idling events for the requested time duration.\n\n**Note:** The data from this endpoint comes from the new Advanced Idling Report, which provides additional data fields for each idling event such as air temperature, geofence, PTO state and minimum idle time. This endpoint includes data from January 1, 2024. If you require additional historical data, you can access it via the [vehicle idling reports API](https://developers.samsara.com/reference/getvehicleidlingreports).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Idling** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIdlingEvents","parameters":[{"description":"The start of the time range for filtering idling events in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-11T19:00:00Z, 2015-09-12T14:00:00-04:00). Returns events that begin at or after this timestamp.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"The end of the time range for filtering idling events in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:00:00Z, 2015-09-15T14:00:00-04:00). Returns events that begin before this timestamp.","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of asset IDs. Asset IDs only include vehicle IDs at this time.","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of operator IDs. Operator IDs only include driver IDs at this time.","explode":false,"in":"query","name":"operatorIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data on this PTO (Power Take-Off) state. If no specific state is provided, data including any state will be included.  Valid values: `active`, `inactive`","in":"query","name":"ptoState","schema":{"enum":["active","inactive"],"type":"string"}},{"description":"A filter on the data based on the minimum value of air temperature in millicelsius. The acceptable range for this value is between -20,000 and 50,000 millicelsius.","in":"query","name":"minAirTemperatureMillicelsius","schema":{"maximum":50000,"minimum":-20000,"type":"integer"}},{"description":"A filter on the data based on the maximum value of air temperature in millicelsius. The acceptable range for this value is between -20,000 and 50,000 millicelsius.","in":"query","name":"maxAirTemperatureMillicelsius","schema":{"maximum":50000,"minimum":-20000,"type":"integer"}},{"description":"A filter on the data based on unknown air temperature value.","in":"query","name":"excludeEventsWithUnknownAirTemperature","schema":{"default":false,"type":"boolean"}},{"description":"A filter on the data based on the minimum value of Idling duration in milliseconds. The acceptable range for this value is between 2 minutes and 24 hours.","in":"query","name":"minDurationMilliseconds","schema":{"maximum":86400000,"minimum":120000,"type":"integer"}},{"description":"A filter on the data based on the maximum value of Idling duration in milliseconds. The acceptable range for this value is between 2 minutes and 24 hours.","in":"query","name":"maxDurationMilliseconds","schema":{"maximum":86400000,"minimum":120000,"type":"integer"}},{"description":"A filter on the data based on this comma-separated list of tag IDs. Tag IDs only include vehicle IDs at this time.","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of parent tag IDs. Parent tag IDs only include vehicle IDs at this time.","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedIdlingGetIdlingEventsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get idling events.","tags":["Idling"]}},"/ifta-detail/csv":{"post":{"description":"Create a job to generate csv files of IFTA mileage segments.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write IFTA (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createIftaDetailJob","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTACreateIftaDetailJobBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a job to generate csv files of IFTA mileage segments.","tags":["IFTA"],"x-codegen-request-body-name":"CreateIftaDetailJobRequestBody"}},"/ifta-detail/csv/{id}":{"get":{"description":"Get information about an existing IFTA detail job.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read IFTA (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIftaDetailJob","parameters":[{"description":"ID of the requested job.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IFTAGetIftaDetailJobBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get information about an existing IFTA detail job.","tags":["IFTA"]}},"/industrial/assets":{"get":{"description":"List all assets in the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getIndustrialAssets","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of industrial asset UUIDs. Example: `assetIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIndustrialAssetsResponse"}}},"description":"Assets in the organization."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all assets","tags":["Industrial"]},"post":{"description":"Create an asset with optional configuration parameters. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createIndustrialAsset","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCreate"}}},"description":"The asset to create","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200"}}},"description":"Newly created asset object"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create an asset","tags":["Industrial"],"x-codegen-request-body-name":"asset"}},"/industrial/assets/{id}":{"delete":{"description":"Delete asset. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteIndustrialAsset","parameters":[{"description":"Id of the asset to be deleted.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Delete an existing asset","tags":["Industrial"]},"patch":{"description":"Update an existing asset. Only the provided fields will be updated. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"patchIndustrialAsset","parameters":[{"description":"Id of the asset to be updated","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetPatch"}}},"description":"The updated asset fields","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200"}}},"description":"The updated asset"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update an asset","tags":["Industrial"],"x-codegen-request-body-name":"asset"}},"/industrial/assets/{id}/data-outputs":{"patch":{"description":"Writes values to multiple data outputs on an asset simultaneously. Only the provided data outputs will be updated.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchAssetDataOutputs","parameters":[{"description":"Asset ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDataOutputsPatchAssetDataOutputsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Writes to data outputs on an asset","tags":["Industrial"],"x-codegen-request-body-name":"PatchAssetDataOutputsRequestBody"}},"/industrial/data-inputs":{"get":{"description":"Returns all data inputs, optionally filtered by tags or asset ids. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDataInputs","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of industrial asset UUIDs. Example: `assetIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputsTinyResponse"}}},"description":"List of data inputs with names, ids, and other metadata."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Unexpected error."}},"summary":"List all data inputs","tags":["Industrial"]}},"/industrial/data-inputs/data-points":{"get":{"description":"Returns last known data points for all data inputs. This can be filtered by optional tags, specific data input IDs or asset IDs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDataInputDataSnapshot","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of data input IDs. Example: `dataInputIds=1234,5678`","explode":false,"in":"query","name":"dataInputIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of industrial asset UUIDs. Example: `assetIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputSnapshotResponse"}}},"description":"List of last known data input data points and pagination parameters"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Unexpected error."}},"summary":"List most recent data points for data inputs","tags":["Industrial"]}},"/industrial/data-inputs/data-points/feed":{"get":{"description":"Follow a continuous feed of all data input data points.\n\nYour first call to this endpoint will provide you with the most recent data points for each data input and a `pagination` object that contains an `endCursor`.\n\nYou can provide the `endCursor` to the `after` parameter of this endpoint to get data point updates since that `endCursor`.\n\nIf `hasNextPage` is `false`, no updates are readily available yet. We suggest waiting a minimum of 5 seconds before requesting updates. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDataInputDataFeed","parameters":[{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of data input IDs. Example: `dataInputIds=1234,5678`","explode":false,"in":"query","name":"dataInputIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of industrial asset UUIDs. Example: `assetIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputListResponse"}}},"description":"List of all data points for specified data inputs"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Unexpected error."}},"summary":"Follow a real-time feed of data points for data inputs","tags":["Industrial"]}},"/industrial/data-inputs/data-points/history":{"get":{"description":"Returns all known data points during the given time range for all data inputs. This can be filtered by optional tags, specific data input IDs or asset IDs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getDataInputDataHistory","parameters":[{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`","explode":false,"in":"query","name":"parentTagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of data input IDs. Example: `dataInputIds=1234,5678`","explode":false,"in":"query","name":"dataInputIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of industrial asset UUIDs. Example: `assetIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputListResponse"}}},"description":"List of all data points for the specified data inputs and time range."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Unexpected error."}},"summary":"List historical data points for data inputs","tags":["Industrial"]}},"/issues":{"get":{"description":"Returns all issues data for the specified IDs.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Issues** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIssues","parameters":[{"description":"A comma-separated list containing up to 100 issue IDs to filter on. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the issue.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma separated list of additional fields to include on requested objects. Valid values: `externalIds`","explode":false,"in":"query","name":"include","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a list of specified issues.","tags":["Issues"]},"patch":{"description":"Updates an instance of an issue.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Issues** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchIssue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPatchIssueBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a single issue.","tags":["Issues"],"x-codegen-request-body-name":"PatchIssueRequestBody"},"post":{"description":"Creates a new issue associated with an asset, with optional media attachments uploaded inline as base64.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Issues** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postIssue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesPostIssueBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a single issue.","tags":["Issues"],"x-codegen-request-body-name":"PostIssueRequestBody"}},"/issues/stream":{"get":{"description":"Returns all issues data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Issues** under the Forms category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getIssuesStream","parameters":[{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. Value is compared against `updatedAtTime`. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. Value is compared against `updatedAtTime`. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A comma-separated list containing status values to filter issues on. Valid values: `open`, `inProgress`, `resolved`, `dismissed`","explode":false,"in":"query","name":"status","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list containing up to 50 asset IDs to filter issues on. Each value can be a Samsara asset ID, an [external ID](https://developers.samsara.com/docs/external-ids) (`key:value` format), or the literal `untracked` to include issues with untracked assets.","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list containing up to 50 asset [external IDs](https://developers.samsara.com/docs/external-ids) (`key:value` format) to filter issues on.","explode":false,"in":"query","name":"assetExternalIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma separated list of additional fields to include on requested objects. Valid values: `externalIds`","explode":false,"in":"query","name":"include","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list containing up to 50 route stop IDs to filter data on.","explode":false,"in":"query","name":"assignedToRouteStopIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuesGetIssuesStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a stream of filtered issues.","tags":["Issues"]}},"/live-shares":{"delete":{"description":"Delete Live Sharing Link.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Live Sharing Links** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteLiveSharingLink","parameters":[{"description":"Unique identifier for the Live Sharing Link.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksDeleteLiveSharingLinkBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete non-expired Live Sharing Link","tags":["Live Sharing Links"]},"get":{"description":"Returns all non-expired Live Sharing Links.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Live Sharing Links** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getLiveSharingLinks","parameters":[{"description":"A filter on the data based on this comma-separated list of Live Share Link IDs","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A filter on the data based on the Live Sharing Link type.  Valid values: `all`, `assetsLocation`, `assetsNearLocation`, `assetsOnRoute`","in":"query","name":"type","schema":{"default":"all","enum":["all","assetsLocation","assetsNearLocation","assetsOnRoute"],"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 100 objects.","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksGetLiveSharingLinksBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Live Sharing Links","tags":["Live Sharing Links"]},"patch":{"description":"Update Live Sharing Link.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Live Sharing Links** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateLiveSharingLink","parameters":[{"description":"Unique identifier for the Live Sharing Link.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksUpdateLiveSharingLinkBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update non-expired Live Sharing Link","tags":["Live Sharing Links"],"x-codegen-request-body-name":"UpdateLiveSharingLinkRequestBody"},"post":{"description":"Create Live Sharing Link.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Live Sharing Links** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createLiveSharingLink","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSharingLinksCreateLiveSharingLinkBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create Live Sharing Link","tags":["Live Sharing Links"],"x-codegen-request-body-name":"CreateLiveSharingLinkRequestBody"}},"/maintenance/asset-status-changes":{"get":{"description":"Returns the status history of one asset, newest first. Exactly one asset ID must be given in assetIds.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listAssetStatusChangeEvents","parameters":[{"description":"A filter on the data based on this comma-separated list of Asset ID values.","in":"query","name":"assetIds","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusChangeEventsServiceListAssetStatusChangeEventsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List asset status changes","tags":["Beta APIs"]}},"/maintenance/asset-statuses":{"get":{"description":"Returns the current maintenance status of the organization's assets, optionally narrowed to specific assets.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listAssetStatuses","parameters":[{"description":"A filter on the data based on this comma-separated list of Asset ID values.","in":"query","name":"assetIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceListAssetStatusesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List asset statuses","tags":["Beta APIs"]},"patch":{"description":"Moves an asset into another status. A comment is required when the status being entered requires one on entry, or the status being left requires one on exit.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateAssetStatus","parameters":[{"description":"Unique identifier for the AssetStatus record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityAssetStatusesServiceUpdateAssetStatusBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update an asset's status","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateAssetStatusRequestBody"}},"/maintenance/campaigns":{"get":{"description":"Gets campaigns. Optionally filter to specific campaign ids; returns 404 Not Found when none of the requested ids resolve to a campaign.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Campaigns** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getCampaigns","parameters":[{"description":"Comma-separated list of campaign IDs to filter by. Up to 100 ids. Returns all campaigns, paginated, when omitted. Returns 404 Not Found when none of the requested ids resolve to a campaign; ids that do not resolve (e.g. deleted) are otherwise omitted from the response.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Gets campaigns.","tags":["Beta APIs"]},"post":{"description":"Creates a campaign. The campaign is created in your organization's Draft status with `createdSource` set to `api`. Creating a campaign never creates work orders or places items on hold.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Campaigns** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postCampaigns","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Creates a campaign.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostCampaignsRequestBody"}},"/maintenance/campaigns/items":{"get":{"description":"Gets the items of a campaign, with each item's stored state, effective state, linked work order, VIN and source.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Campaigns** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getCampaignItems","parameters":[{"description":"Unique ID of the campaign.","in":"query","name":"campaignId","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignItemsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Gets campaign items.","tags":["Beta APIs"]}},"/maintenance/campaigns/items/batch":{"post":{"description":"Adds assets to a campaign by VIN or asset ID, for campaigns whose membership is managed outside Samsara. Up to 5000 entries per request; the rate limit applies to this endpoint, not to the individual entries. Each entry is processed independently and the response reports a result per entry, in request order: `created`, `alreadyPresent`, `unresolvedVin`, `unresolvedAssetId`, `invalid` or `overCap`. A campaign holds at most 100000 items. Items are created in `pending` with `sourceBasis` `api`. An asset joins a campaign at most once, so requests are idempotent: an asset that already has an item, including a dismissed one, is reported as `alreadyPresent` and never re-added. Ingesting items never creates work orders or places holds. Not accepted for `complete` or `cancelled` campaigns.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Campaigns** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postCampaignItemsBatch","parameters":[{"description":"Unique ID of the campaign.","in":"query","name":"campaignId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsPostCampaignItemsBatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Adds items to a campaign.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostCampaignItemsBatchRequestBody"}},"/maintenance/campaigns/rollups":{"get":{"description":"Gets item counts for a campaign grouped by item state, plus the number of items aging in a non-terminal state.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Campaigns** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getCampaignRollups","parameters":[{"description":"Unique ID of the campaign.","in":"query","name":"campaignId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignsGetCampaignRollupsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Gets campaign rollups.","tags":["Beta APIs"]}},"/maintenance/estimates":{"get":{"description":"Read estimates by IDs or work orders, including historical decisions. One primary selector is required. Up to 100 estimate IDs, 10 WO IDs and 10 vendor IDs bound query and authorization work. Filters use OR within each set and AND across sets.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listMaintenanceEstimates","parameters":[{"description":"Up to 100 comma-separated estimate identifiers.","explode":true,"in":"query","name":"ids","schema":{"items":{"type":"string"},"maxItems":100,"type":"array"},"style":"form"},{"description":"Up to 10 comma-separated numeric WO IDs. Bounds indexed-query fanout and authorization work.","explode":true,"in":"query","name":"workOrderIds","schema":{"items":{"type":"string"},"maxItems":10,"type":"array"},"style":"form"},{"description":"Up to 10 comma-separated vendor-location identifiers; narrows the primary selection. Resolve locations via GET /fleet/maintenance/vendor-locations.","explode":true,"in":"query","name":"vendorIds","schema":{"items":{"type":"string"},"maxItems":10,"type":"array"},"style":"form"},{"description":"Cursor returned by the preceding response; retain the same filters.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Include estimate external identifiers. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesListMaintenanceEstimatesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List maintenance estimates","tags":["Beta APIs"]},"patch":{"description":"Update eligible quote content or convert the active selected expectedCost recommendation to vendorQuote with the same estimate ID. Type conversion can include pricing changes but must be separate from approval, cancellation and award; reverse conversion is not allowed. Otherwise approve or deny through Samsara approval and UTS, or separately award an approved quote through the native work-order flow. Award assigns the vendor and preserves the exact financial baseline; applying quote lines to work-order service tasks is a separate dashboard action. Selecting a different quote while an active award exists is rejected; withdraw an eligible awarded quote before awarding its replacement. Approval and award require their respective authority and must be separate updates. Approval, cancellation or award cannot be combined with content or external ID changes. Cancel an unapproved or pending estimate and close any open approval ticket. Cancellation retains history. For an active externally selected recommendation or unapproved quote, this existing cancellation path also releases that selection, clears its vendor assignment and returns an open work order to vendor selection. Cancelling an unselected recommendation leaves other selections unchanged, and native quote cancellation preserves vendor assignment. A current finished vendorQuote that is approved, denied or awarded can instead be withdrawn while retaining its approval decision and award history and retiring only its exact completed active award. This decided-quote withdrawal does not change the work order, vendor assignment, selection attempt, service tasks, actual costs or invoices. It is not restricted by whether repair work has started. Cancellation requires approval authority and, for a known or current award, separate award authority. Processing or superseded quotes and incomplete awards cannot be withdrawn; retry an award in progress after reconciliation. Repeating a cancellation is safe. Omitted fields remain unchanged.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchMaintenanceEstimate","parameters":[{"description":"Include estimate external identifiers. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Estimate UUID or external ID.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesPatchMaintenanceEstimateBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a maintenance estimate","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchMaintenanceEstimateRequestBody"},"post":{"description":"Create a priced vendor quote or expected-cost recommendation for a work order.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createMaintenanceEstimate","parameters":[{"description":"Include estimate external identifiers. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimateBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a maintenance estimate","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateMaintenanceEstimateRequestBody"}},"/maintenance/estimates/attachments":{"delete":{"description":"Remove evidence from an editable estimate. Returns no content. Read the estimate for its updated version.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteMaintenanceEstimateAttachment","parameters":[{"description":"Attachment ID, not the parent estimate ID.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsDeleteMaintenanceEstimateAttachmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Remove an estimate attachment","tags":["Beta APIs"]},"post":{"description":"Attach a PDF, JPEG or PNG to an editable estimate and its work order. Supply exactly one of file (up to 7.5 MB decoded) or upload (up to 40 MB). For upload, PUT the declared file with matching Content-Type, Content-MD5 and Content-Length before uploadPut expires, then read the estimate for availability. Up to 50 work-order attachments are supported.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createMaintenanceEstimateAttachment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimateAttachmentsCreateMaintenanceEstimateAttachmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Attach a file to an estimate","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateMaintenanceEstimateAttachmentRequestBody"}},"/maintenance/estimates/batch":{"post":{"description":"Create 1–10 unapproved priced recommendations or vendor quotes in one request, limited to 3000000 raw JSON bytes. The batch is non-atomic: each create is independently authorized and validated, and successful writes remain committed when another item fails. Structural request errors return 400 before execution; exceeding the count or byte bound returns 413. Item business errors are returned in input order alongside successes, under HTTP 200. The rate limit applies to batch requests, not individual estimates. Approval, denial, award and attachments use their existing separate operations. Retry failed items only; reconcile ambiguous outcomes by stable external IDs through GET before retrying, because ordinary quote creation is not automatically replayed.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createMaintenanceEstimatesBatch","parameters":[{"description":"Include estimate external identifiers. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceEstimatesCreateMaintenanceEstimatesBatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a batch of maintenance estimates","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateMaintenanceEstimatesBatchRequestBody"}},"/maintenance/invoice-scans":{"post":{"description":"Process an invoice scan to create or update a work order with AI-extracted data. Accepts base64 encoded invoice files (PDF, JPEG, PNG) up to 10MB.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postInvoiceScan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostInvoiceScanBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Process an invoice scan.","tags":["Work Orders"],"x-codegen-request-body-name":"PostInvoiceScanRequestBody"}},"/maintenance/parts":{"delete":{"description":"Deletes a part for the organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deletePart","parameters":[{"description":"Unique identifier for the PartDefinition record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceDeletePartBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a part","tags":["Maintenance"]},"get":{"description":"Returns a paginated list of parts for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listParts","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","in":"query","name":"idIn","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Part ID values.","in":"query","name":"partIds","schema":{"type":"string"}},{"description":"A filter on the data based on Part status. Status of the part.","in":"query","name":"partStatus","schema":{"type":"string"}},{"description":"Whether to include deleted parts in the response. Defaults to false.","in":"query","name":"includeDeleted","schema":{"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceListPartsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List parts","tags":["Maintenance"]},"patch":{"description":"Updates an existing part for the organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updatePart","parameters":[{"description":"Unique identifier for the PartDefinition record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceUpdatePartBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a part","tags":["Maintenance"],"x-codegen-request-body-name":"UpdatePartRequestBody"},"post":{"description":"Creates a part for the organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createPart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartDefinitionsServiceCreatePartBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a part","tags":["Maintenance"],"x-codegen-request-body-name":"CreatePartRequestBody"}},"/maintenance/parts-requests":{"get":{"description":"Gets parts request lines with their requested, reserved, ordered and received quantities. Optionally filter by parts request IDs, work orders and maintenance sites; returns 404 Not Found when none of the requested parts request IDs resolve.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Purchase Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPartsRequests","parameters":[{"description":"Comma-separated list of parts request IDs to filter by. Maximum number of IDs: 1. Returns all lines of the requested parts request on one page, including closed and cancelled lines. Returns 404 Not Found when the parts request does not exist.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Comma-separated list of work order IDs to filter by. Maximum number of IDs: 100. Returns only lines linked to these work orders. Cannot be combined with `ids`; supplying both returns 400 Bad Request.","explode":false,"in":"query","name":"workOrderIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Comma-separated list of maintenance site IDs, as returned by GET /maintenance/sites. Returns only lines requested by these maintenance sites. When omitted or empty, returns lines from all maintenance sites you have permission to access.","explode":false,"in":"query","name":"maintenanceSiteIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequestsGetPartsRequestsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Gets parts requests.","tags":["Beta APIs"]}},"/maintenance/parts/inventory-location":{"get":{"description":"Returns a paginated list of per-part, per-location inventory levels for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listPartInventory","parameters":[{"description":"A filter on the data based on this comma-separated list of Place ID values.","in":"query","name":"placeIds","schema":{"type":"string"}},{"description":"A filter on the data based on Low stock. Whether the available quantity is greater than zero and at or below the reorder threshold.","in":"query","name":"isLowStock","schema":{"type":"boolean"}},{"description":"A filter on the data based on this comma-separated list of Part ID values.","in":"query","name":"partSamsaraIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceListPartInventoryBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List part inventory","tags":["Maintenance"]},"patch":{"description":"Updates existing per-part, per-location inventory metadata for the organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updatePartInventoryLocation","parameters":[{"description":"Unique identifier for the part definition these inventory levels are tracked for.","in":"query","name":"partSamsaraId","schema":{"type":"string"}},{"description":"Unique identifier for the place linked to the maintenance site holding this inventory. The internal location identifier is never exposed.","in":"query","name":"placeId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceUpdatePartInventoryLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a part inventory location","tags":["Maintenance"],"x-codegen-request-body-name":"UpdatePartInventoryLocationRequestBody"},"post":{"description":"Creates per-part, per-location inventory metadata for the organization. Upserts by part and place — a second create at the same pair updates the existing record instead of duplicating it.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createPartInventoryLocation","parameters":[{"description":"Unique identifier for the part definition these inventory levels are tracked for.","in":"query","name":"partSamsaraId","schema":{"type":"string"}},{"description":"Unique identifier for the place linked to the maintenance site holding this inventory. The internal location identifier is never exposed.","in":"query","name":"placeId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPartInventoryLocationsServiceCreatePartInventoryLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a part inventory location","tags":["Maintenance"],"x-codegen-request-body-name":"CreatePartInventoryLocationRequestBody"}},"/maintenance/parts/photos":{"delete":{"description":"Deletes a photo of a part.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deletePartPhoto","parameters":[{"description":"ID of the part the photo belongs to.","in":"query","name":"partId","required":true,"schema":{"type":"string"}},{"description":"ID of the photo to delete.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosDeletePartPhotoBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a part photo.","tags":["Beta APIs"]},"get":{"description":"Returns the profile photo and other photos of a part.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPartPhotos","parameters":[{"description":"ID of the part.","in":"query","name":"partId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosGetPartPhotosBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List the photos of a part.","tags":["Beta APIs"]},"post":{"description":"Adds a photo to an existing part. Accepts base64 encoded JPEG or PNG images up to 7.5MB decoded. The photo is returned with processingStatus 'processing' until it is ready; GET /maintenance/parts/photos returns its url once processingStatus is 'finished'.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postPartPhoto","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartPhotosPostPartPhotoBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Add a photo to a part.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostPartPhotoRequestBody"}},"/maintenance/parts/stock-movements":{"post":{"description":"Records a receive, transfer, scrap, or adjust stock movement against a part's inventory and returns the resulting inventory location(s). Not idempotent — retrying a request that already succeeded records the movement again.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createStockMovement","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStockMovementActionServiceCreateStockMovementBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a stock movement","tags":["Maintenance"],"x-codegen-request-body-name":"CreateStockMovementRequestBody"}},"/maintenance/parts/transactions":{"get":{"description":"Returns a paginated, time-windowed feed of inventory transactions (an append-only parts audit log) for the organization, ordered by the time each transaction occurred.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Parts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listPartTransactions","parameters":[{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"happenedAtTimeStart","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"happenedAtTimeEnd","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Part Samsara ID values.","in":"query","name":"partSamsaraIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Place ID values.","in":"query","name":"placeIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Transaction Type values.","in":"query","name":"transactionTypeIn","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInventoryTransactionsServiceListPartTransactionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List part transactions","tags":["Maintenance"]}},"/maintenance/preventive/resolve":{"post":{"description":"Resolves the current open preventive maintenance instance for a schedule and asset, and automatically creates the next due record based on the schedule's intervals.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Preventive Maintenance Resolve** under the Preventive Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"resolvePreventiveMaintenance","parameters":[{"description":"Samsara ID of the asset the instance is being resolved for.","in":"query","name":"assetId","schema":{"type":"string"}},{"description":"ID of the preventive maintenance schedule to resolve.","in":"query","name":"scheduleId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreventiveMaintenanceActionServiceResolvePreventiveMaintenanceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Resolve a preventive maintenance instance","tags":["Preventive Maintenance"],"x-codegen-request-body-name":"ResolvePreventiveMaintenanceRequestBody"}},"/maintenance/preventive/schedules":{"get":{"description":"Returns a paginated list of preventive maintenance schedules for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Preventive Maintenance Schedules** under the Preventive Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listPreventiveMaintenanceSchedules","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","example":"281474976710656","in":"query","name":"ids","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List preventive maintenance schedules","tags":["Preventive Maintenance"]}},"/maintenance/preventive/upcoming":{"get":{"description":"Returns a paginated list of upcoming preventive maintenance schedules for the organization's assets, enriched with live telemetry (current odometer, engine hours) and due-date projections.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Upcoming Preventive Maintenance** under the Preventive Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listUpcomingPreventiveMaintenance","parameters":[{"description":"A filter on the data based on this comma-separated list of Preventive maintenance schedule ID values.","in":"query","name":"scheduleIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Asset ID values.","in":"query","name":"assetIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List upcoming preventive maintenance","tags":["Preventive Maintenance"]},"patch":{"description":"Patches the due-target and last-resolved values on the open preventive maintenance instance for a schedule and asset. Only fields provided in the request are updated.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Upcoming Preventive Maintenance** under the Preventive Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateUpcomingPreventiveMaintenance","parameters":[{"description":"Samsara ID for the asset.","in":"query","name":"assetId","schema":{"type":"string"}},{"description":"ID of the preventive maintenance schedule that the vehicle is scheduled to be serviced for.","in":"query","name":"scheduleId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpcomingPreventativeMaintenancesServiceUpdateUpcomingPreventiveMaintenanceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update an upcoming preventive maintenance instance","tags":["Preventive Maintenance"],"x-codegen-request-body-name":"UpdateUpcomingPreventiveMaintenanceRequestBody"}},"/maintenance/purchase-orders":{"delete":{"description":"Deletes a purchase order for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Purchase Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deletePurchaseOrder","parameters":[{"description":"Unique identifier for the PurchaseOrder record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceDeletePurchaseOrderBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a purchase order","tags":["Maintenance"]},"get":{"description":"Returns a paginated list of purchase orders ordered by last update time.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Purchase Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listPurchaseOrders","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","example":"281474976710656","in":"query","name":"ids","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of PO number values.","example":"PO-1001","in":"query","name":"poNumbers","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Vendor values.","example":"281474976710656","in":"query","name":"vendorIds","schema":{"type":"string"}},{"description":"Optional end of the updated time range, exclusive. Defaults to the server's current time.","example":"2026-07-31T00:00:00Z","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Required start of the updated time range, inclusive.","example":"2026-07-01T00:00:00Z","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceListPurchaseOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List purchase orders","tags":["Maintenance"]},"patch":{"description":"Updates a purchase order for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Purchase Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updatePurchaseOrder","parameters":[{"description":"Unique identifier for the PurchaseOrder record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceUpdatePurchaseOrderBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a purchase order","tags":["Maintenance"],"x-codegen-request-body-name":"UpdatePurchaseOrderRequestBody"},"post":{"description":"Creates a purchase order for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Purchase Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createPurchaseOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPurchaseOrdersServiceCreatePurchaseOrderBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a purchase order","tags":["Maintenance"],"x-codegen-request-body-name":"CreatePurchaseOrderRequestBody"}},"/maintenance/service-tasks":{"get":{"description":"Gets service tasks.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getServiceTasks","parameters":[{"description":"Filter by the IDs. If not provided, won't filter by id.","explode":true,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Include archived service task definitions.","in":"query","name":"includeArchived","schema":{"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetServiceTasksBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Gets service tasks.","tags":["Work Orders"]}},"/maintenance/sites":{"get":{"description":"Returns a paginated list of maintenance sites for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Maintenance Sites** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listMaintenanceSites","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","in":"query","name":"ids","schema":{"type":"string"}},{"description":"A filter on the data based on Archived. Whether the site is archived. Archived sites are no longer active but are retained for historical record.","in":"query","name":"isArchived","schema":{"type":"boolean"}},{"description":"A filter on the data based on this comma-separated list of Place IDs values.","in":"query","name":"placeIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"If true, include externalIds in each response object.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceListMaintenanceSitesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List maintenance sites","tags":["Maintenance Sites"]},"patch":{"description":"Updates an existing maintenance site for the organization. Moving a site between placeIds and customAddress is not supported.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Maintenance Sites** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateMaintenanceSite","parameters":[{"description":"Unique identifier for the MaintenanceSite record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceUpdateMaintenanceSiteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a maintenance site","tags":["Maintenance Sites"],"x-codegen-request-body-name":"UpdateMaintenanceSiteRequestBody"},"post":{"description":"Creates a maintenance site for the organization. Exactly one of placeIds or customAddress must be set.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Maintenance Sites** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createMaintenanceSite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMaintenanceSitesServiceCreateMaintenanceSiteBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a maintenance site","tags":["Maintenance Sites"],"x-codegen-request-body-name":"CreateMaintenanceSiteRequestBody"}},"/maintenance/technician-shifts":{"get":{"description":"List shifts ordered by updated time and UUID. ID filters allow up to 100 values each, with OR within and AND across filters. Lists are eventually consistent; reconcile overlapping time windows and deduplicate by ID and version.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Technician Shifts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listTechnicianShifts","parameters":[{"description":"Up to 100 comma-separated shift identifiers.","explode":true,"in":"query","name":"ids","schema":{"items":{"type":"string"},"maxItems":100,"type":"array"},"style":"form"},{"description":"Up to 100 comma-separated user IDs.","explode":true,"in":"query","name":"userIds","schema":{"items":{"type":"string"},"maxItems":100,"type":"array"},"style":"form"},{"description":"Up to 100 comma-separated employee aliases.","explode":true,"in":"query","name":"externalTechnicianIds","schema":{"items":{"type":"string"},"maxItems":100,"type":"array"},"style":"form"},{"description":"Inclusive updated-time lower bound.","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Exclusive updated-time upper bound.","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"Cursor from the previous page.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Page size from 1 to 200; defaults to 200.","in":"query","name":"limit","schema":{"maximum":200,"minimum":1,"type":"integer"}},{"description":"Include nonempty shift and technician external-ID maps. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsListTechnicianShiftsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List technician shifts","tags":["Beta APIs"]},"patch":{"description":"Close or correct a shift using the last received version. An already-applied retry returns the current shift. External IDs fully replace the previous map; an empty object clears it.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Technician Shifts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchTechnicianShift","parameters":[{"description":"Include nonempty shift and technician external-ID maps. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Shift UUID or key:value alias.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsPatchTechnicianShiftBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a technician shift","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchTechnicianShiftRequestBody"},"post":{"description":"Create an open or completed shift. Equivalent retries using registered external IDs return the existing shift; conflicting content or aliases return 409.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Technician Shifts** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createTechnicianShift","parameters":[{"description":"Include nonempty shift and technician external-ID maps. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianShiftsCreateTechnicianShiftBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a technician shift","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateTechnicianShiftRequestBody"}},"/maintenance/time-entries/stream":{"get":{"description":"Returns a paginated feed of technician time entries updated in the requested time window, including deletion tombstones.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Time Entries** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listTimeEntries","parameters":[{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"An end time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTimeEntriesServiceListTimeEntriesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List time entries","tags":["Maintenance"]}},"/maintenance/warranties":{"delete":{"description":"Deletes a warranty for the organization. Asset associations are removed server-side.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteWarranty","parameters":[{"description":"Unique identifier for the Warranty record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceDeleteWarrantyBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a warranty","tags":["Maintenance"]},"get":{"description":"Returns a paginated list of warranties for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listWarranties","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","in":"query","name":"warrantyIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Name values.","in":"query","name":"name","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"If true, include externalIds in each response object.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceListWarrantiesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List warranties","tags":["Maintenance"]},"patch":{"description":"Updates an existing warranty for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateWarranty","parameters":[{"description":"Unique identifier for the Warranty record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceUpdateWarrantyBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a warranty","tags":["Maintenance"],"x-codegen-request-body-name":"UpdateWarrantyRequestBody"},"post":{"description":"Creates a warranty for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createWarranty","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantiesServiceCreateWarrantyBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a warranty","tags":["Maintenance"],"x-codegen-request-body-name":"CreateWarrantyRequestBody"}},"/maintenance/warranties/assets":{"get":{"description":"Returns the assets assigned to a warranty.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listWarrantyAssetAssignments","parameters":[{"description":"A filter on the data based on this comma-separated list of Warranty values.","in":"query","name":"warrantyId","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyAssetAssignmentsServiceListWarrantyAssetAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List warranty asset assignments","tags":["Maintenance"]}},"/maintenance/warranties/assets/replace":{"post":{"description":"Replaces the full set of assets assigned to a warranty.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"replaceWarrantyAssetAssignments","parameters":[{"description":"ID of the warranty whose asset set to replace.","in":"query","name":"warrantyId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceWarrantyAssetAssignmentsActionServiceReplaceWarrantyAssetAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Replace warranty asset assignments","tags":["Maintenance"],"x-codegen-request-body-name":"ReplaceWarrantyAssetAssignmentsRequestBody"}},"/maintenance/warranty-claims":{"delete":{"description":"Deletes a warranty claim for the organization. Component links are removed server-side.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteWarrantyClaim","parameters":[{"description":"Unique identifier for the WarrantyClaim record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceDeleteWarrantyClaimBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a warranty claim","tags":["Maintenance"]},"get":{"description":"Returns a paginated list of warranty claims for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listWarrantyClaims","parameters":[{"description":"A filter on the data based on this comma-separated list of ID values.","in":"query","name":"warrantyClaimIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Asset values.","in":"query","name":"assetIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Claim status values.","in":"query","name":"claimStatus","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of Warranty values.","in":"query","name":"warrantyIds","schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 200 objects.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"If true, include externalIds in each response object.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceListWarrantyClaimsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List warranty claims","tags":["Maintenance"]},"patch":{"description":"Updates an existing warranty claim for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateWarrantyClaim","parameters":[{"description":"Unique identifier for the WarrantyClaim record.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceUpdateWarrantyClaimBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a warranty claim","tags":["Maintenance"],"x-codegen-request-body-name":"UpdateWarrantyClaimRequestBody"},"post":{"description":"Creates a warranty claim for the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Warranties** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createWarrantyClaim","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityWarrantyClaimsServiceCreateWarrantyClaimBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a warranty claim","tags":["Maintenance"],"x-codegen-request-body-name":"CreateWarrantyClaimRequestBody"}},"/maintenance/work-order-templates":{"get":{"description":"Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getWorkOrderTemplates","parameters":[{"description":"Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.","explode":true,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrderTemplatesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Gets work order templates.","tags":["Beta APIs"]}},"/maintenance/work-orders":{"delete":{"description":"Deletes a work order.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteWorkOrders","parameters":[{"description":"The unique id of the work order.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteWorkOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Deletes a work order.","tags":["Work Orders"]},"get":{"description":"Gets work orders.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getWorkOrders","parameters":[{"description":"Filter by the IDs. Up to 100 ids. Returns all if no ids are provided.","explode":true,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"When true, populates `externalId` on each work order and `maintenanceSite.placeExternalIds` by resolving the linked Place's external ids. Defaults to false. Adds one batch lookup per response page.","in":"query","name":"includeExternalIds","schema":{"default":false,"type":"boolean"}},{"description":"Whether to include the work order's custom fields (attributes) in the response. Defaults to false.","in":"query","name":"includeAttributes","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersGetWorkOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Gets work orders.","tags":["Work Orders"]},"patch":{"description":"Updates a work order.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchWorkOrders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPatchWorkOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Updates a work order.","tags":["Work Orders"],"x-codegen-request-body-name":"PatchWorkOrdersRequestBody"},"post":{"description":"Creates a work order.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postWorkOrders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Creates a work order.","tags":["Work Orders"],"x-codegen-request-body-name":"PostWorkOrdersRequestBody"}},"/maintenance/work-orders/attachments":{"delete":{"description":"Remove a work-order attachment by its attachment ID. Returns no content. Evidence referenced by a pending, approved, denied, awarded or superseded estimate, or retained as a reviewed estimate source, cannot be removed. Requires estimate REST access to be enabled.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteMaintenanceWorkOrderAttachment","parameters":[{"description":"Attachment ID returned by work-order attachment upload or work-order reads, not the work order ID.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentConflictErrorResponseBody"}}},"description":"Conflict response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersDeleteMaintenanceWorkOrderAttachmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Remove a work order attachment","tags":["Beta APIs"]},"post":{"description":"Attaches a PDF, JPEG or PNG file to an existing work order. Supply exactly one of file (base64, at most 7,864,320 decoded bytes) or upload (up to 40,000,000 bytes). For upload, PUT the declared file with matching Content-Type, Content-MD5 and Content-Length before uploadPut expires. Read GET /maintenance/work-orders for availability and the download URL after successful upload. Presigned uploads require the estimate REST rollout to be enabled.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postWorkOrderAttachment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersPostWorkOrderAttachmentBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Attach a file to a work order.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostWorkOrderAttachmentRequestBody"}},"/maintenance/work-orders/stream":{"get":{"description":"Stream work orders.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Work Orders** under the Work Orders category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"streamWorkOrders","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Work Order status filter.","explode":true,"in":"query","name":"workOrderStatuses","schema":{"items":{"enum":["Assigned","Awaiting estimate approval","Awaiting estimates","Cancelled","Closed","Completed","Estimate","Estimate approval denied","Estimate approved","Estimates ready","In Progress","Needs Vendor Selection","On Hold","Open","Pending Approval","Pending Parts","Planning"],"type":"string"},"type":"array"},"style":"form"},{"description":"Work Order asset id filter. Up to 50 ids.","explode":true,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Work Order assigned user id filter. Up to 50 ids.","explode":true,"in":"query","name":"assignedUserIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Work Order shop id filter. Up to 50 ids.","explode":true,"in":"query","name":"shopIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"When true, populates `externalId` on each work order and `maintenanceSite.placeExternalIds` by resolving the linked Place's external ids. Defaults to false. Adds one batch lookup per response page.","in":"query","name":"includeExternalIds","schema":{"default":false,"type":"boolean"}},{"description":"Whether to include the work order's custom fields (attributes) in the response. Defaults to false.","in":"query","name":"includeAttributes","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrdersStreamWorkOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Stream work orders.","tags":["Work Orders"]}},"/me":{"get":{"description":"Get information about your organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Org Information** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getOrganizationInfo","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInfoResponse"}}},"description":"Returns information about your organization."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Get information about your organization","tags":["Organization Info"]}},"/places":{"delete":{"description":"Deletes a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value).\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deletePlace","parameters":[{"description":"Samsara place id to delete. Mutually exclusive with `externalId`; provide exactly one.","in":"query","name":"placeId","schema":{"format":"int64","type":"integer"}},{"description":"External id token in `key:value` form (e.g. crmId:warehouse-east). Mutually exclusive with `placeId`; provide exactly one.","in":"query","name":"externalId","schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesDeletePlaceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a place","tags":["Beta APIs"]},"get":{"description":"Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds` or by external ids via `externalIds` (mutually exclusive).\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPlaces","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":"Comma-separated Samsara place IDs for batch lookup (max 100). When set, list filters and cursor pagination are ignored. Mutually exclusive with `externalIds`.","in":"query","name":"placeIds","schema":{"type":"string"}},{"description":"Comma-separated external ID tokens (`key:value`) for batch lookup (max 100). When set, list filters and cursor pagination are ignored. Mutually exclusive with `placeIds`.","in":"query","name":"externalIds","schema":{"type":"string"}},{"description":"When true, expands tag objects on each place. Defaults to false.","in":"query","name":"includeTags","schema":{"default":false,"type":"boolean"}},{"description":"When true, includes externalIds on each place. Defaults to false.","in":"query","name":"includeExternalIds","schema":{"default":false,"type":"boolean"}},{"description":"Comma-separated numeric tag IDs to filter places.","in":"query","name":"tagIds","schema":{"type":"string"}},{"description":"Comma-separated parent tag IDs to filter places. Includes places tagged with each parent tag and its descendant tags.","in":"query","name":"parentTagIds","schema":{"type":"string"}},{"description":"Comma-separated place type tokens (e.g. yard,normalGeofence).","in":"query","name":"placeTypes","schema":{"type":"string"}},{"description":"Filter places by name text.","in":"query","name":"name","schema":{"type":"string"}},{"description":"Comma-separated route-planning hub IDs (UUIDs). Returns places associated with any of the given hubs.","in":"query","name":"hubIds","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlacesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List or batch-get places","tags":["Beta APIs"]},"patch":{"description":"Updates a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value). Only fields present in the JSON body are changed; omit a field to leave it unchanged.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchPlace","parameters":[{"description":"Samsara place id to update. Mutually exclusive with `externalId`; provide exactly one.","in":"query","name":"placeId","schema":{"format":"int64","type":"integer"}},{"description":"External id token in `key:value` form (e.g. crmId:warehouse-east). Mutually exclusive with `placeId`; provide exactly one.","in":"query","name":"externalId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPatchPlaceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a place","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchPlaceRequestBody"},"post":{"description":"Creates a place. Supply a polygon `geofence`, a circle `geofence`, or an `auto` geofence that resolves geometry server-side.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postPlace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesPostPlaceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a place","tags":["Beta APIs"],"x-codegen-request-body-name":"PostPlaceRequestBody"}},"/places/deletions":{"get":{"description":"Returns cursor-paginated deletion markers for soft-deleted places in the organization. Use for replication after DELETE /places.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPlaceDeletions","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceDeletionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Poll place deletions","tags":["Beta APIs"]}},"/places/geocode":{"get":{"description":"Forward-geocodes a free-form address string. Does not create or update a Place. Returns geocode candidates with cursor pagination.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPlaceGeocode","parameters":[{"description":"Address string to forward-geocode (URL-encoded). Required; must be non-empty.","in":"query","name":"address","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default 5, max 20.","in":"query","name":"limit","schema":{"default":5,"maximum":20,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeocodeBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Forward geocode an address","tags":["Beta APIs"]}},"/places/geofence":{"get":{"description":"Returns geofence suggestion candidates for a seed point. Does not create or update a Place. Applies the same selection rules as geofence.auto on Place write.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Places** under the Places category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPlaceGeofence","parameters":[{"description":"Seed point latitude in WGS84 decimal degrees.","in":"query","name":"latitude","required":true,"schema":{"format":"double","type":"number"}},{"description":"Seed point longitude in WGS84 decimal degrees.","in":"query","name":"longitude","required":true,"schema":{"format":"double","type":"number"}},{"description":"Comma-separated geofence suggestion types in priority order. Values: building, parcel, landUse, boundary, facility, infrastructure.","in":"query","name":"suggestionTypes","schema":{"type":"string"}},{"description":"Candidate sort order: smallestFirst (default) or largestFirst.  Valid values: `smallestFirst`, `largestFirst`","in":"query","name":"sizeOrder","schema":{"enum":["smallestFirst","largestFirst"],"type":"string"}},{"description":"Search bound minimum latitude (WGS84 decimal degrees). Must be supplied with minLongitude, maxLatitude, and maxLongitude, or omitted entirely.","in":"query","name":"minLatitude","schema":{"format":"double","type":"number"}},{"description":"Search bound minimum longitude (WGS84 decimal degrees).","in":"query","name":"minLongitude","schema":{"format":"double","type":"number"}},{"description":"Search bound maximum latitude (WGS84 decimal degrees).","in":"query","name":"maxLatitude","schema":{"format":"double","type":"number"}},{"description":"Search bound maximum longitude (WGS84 decimal degrees).","in":"query","name":"maxLongitude","schema":{"format":"double","type":"number"}},{"description":"Drop candidates with area above this value in square meters.","in":"query","name":"maxAreaSquareMeters","schema":{"format":"double","type":"number"}},{"description":"Drop candidates whose source polygon exceeds this vertex count before simplification.","in":"query","name":"maxSourceVertices","schema":{"format":"int64","type":"integer"}},{"description":"Simplify each returned candidate polygon to at most this many vertices.","in":"query","name":"maxVertices","schema":{"format":"int64","type":"integer"}},{"description":"Page size: max candidates in data[] per page. Default 5, max 20.","in":"query","name":"maxResults","schema":{"default":5,"maximum":20,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesGetPlaceGeofenceBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Look up geofence suggestions","tags":["Beta APIs"]}},"/preferred-stations":{"delete":{"description":"Delete a preferred fuel station for your organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deletePreferredStation","parameters":[{"description":"Samsara ID of the preferred station to delete.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsDeletePreferredStationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a preferred fuel station.","tags":["Fuel and Energy"]},"get":{"description":"List all preferred fuel stations for your organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listPreferredStations","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Whether to include external IDs in the response.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsListPreferredStationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List preferred fuel stations.","tags":["Fuel and Energy"]},"patch":{"description":"Update a preferred fuel station for your organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchPreferredStation","parameters":[{"description":"Samsara ID of the preferred station to update.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPatchPreferredStationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a preferred fuel station.","tags":["Fuel and Energy"],"x-codegen-request-body-name":"PatchPreferredStationRequestBody"},"post":{"description":"Create a preferred fuel station for your organization.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postPreferredStation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsPostPreferredStationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a preferred fuel station.","tags":["Fuel and Energy"],"x-codegen-request-body-name":"PostPreferredStationRequestBody"}},"/preferred-stations/{id}":{"get":{"description":"Get a single preferred fuel station by ID.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getPreferredStation","parameters":[{"description":"Whether to include external IDs in the response.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Samsara-assigned station ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredStationsGetPreferredStationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a preferred fuel station.","tags":["Fuel and Energy"]}},"/preview/fleet/drivers/create-auth-token":{"post":{"description":"Creates a short-lived auth token for a driver.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Driver Auth Token** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createDriverAuthToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversAuthTokenCreateDriverAuthTokenBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Create auth token for a driver","tags":["Preview APIs"],"x-codegen-request-body-name":"CreateDriverAuthTokenRequestBody"}},"/preview/fleet/orders":{"delete":{"description":"Deletes one canonical order by Samsara UUID or external ID.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteOrder","parameters":[{"description":"One Samsara order UUID or external ID token.","in":"query","name":"orderId","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteOrderBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Delete an order","tags":["Preview APIs"]},"get":{"description":"Returns current canonical order state for up to 100 supplied order IDs.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getOrders","parameters":[{"description":"Comma-separated Samsara order UUIDs or external ID tokens. Maximum 100.","explode":false,"in":"query","name":"orderIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Include external IDs in returned orders.","in":"query","name":"includeExternalIds","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Get orders","tags":["Preview APIs"]}},"/preview/fleet/orders/batch":{"post":{"description":"Atomically creates or updates up to 250 canonical orders.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postOrdersBatch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersPostOrdersBatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Upsert orders","tags":["Preview APIs"],"x-codegen-request-body-name":"PostOrdersBatchRequestBody"}},"/preview/fleet/orders/deletions":{"get":{"description":"Returns deletion markers for order replication.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getOrderDeletions","parameters":[{"description":"Optional deletedAtTime lower bound in RFC 3339 format.","in":"query","name":"startTime","schema":{"format":"date-time","type":"string"}},{"description":"Optional deletedAtTime upper bound in RFC 3339 format.","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of deletion markers to return.","in":"query","name":"limit","schema":{"default":100,"maximum":250,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrderDeletionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Get order deletions","tags":["Preview APIs"]}},"/preview/fleet/orders/stream":{"get":{"description":"Returns live order create and update state for replication.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getOrdersStream","parameters":[{"description":"Inclusive updatedAtTime lower bound in RFC 3339 format.","in":"query","name":"startTime","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Exclusive updatedAtTime upper bound in RFC 3339 format.","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":"Optional route ID scope.","in":"query","name":"routeId","schema":{"type":"string"}},{"description":"Include external IDs in returned orders.","in":"query","name":"includeExternalIds","schema":{"default":false,"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersGetOrdersStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Stream orders","tags":["Preview APIs"]}},"/preview/fleet/vehicles/{id}/lock":{"delete":{"description":"Unlock a vehicle.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Vehicle Lock/Unlock** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"unlockVehicle","parameters":[{"description":"The ID of the vehicle to lock or unlock. This can be a Samsara internal ID or an external ID in the format `samsara.vin:{VIN}`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockUnlockVehicleBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Unlock a vehicle.","tags":["Preview APIs"]},"put":{"description":"Lock a vehicle. This requires a vehicle gateway with locking capabilities.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Vehicle Lock/Unlock** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n\nEndpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications\n\n- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.\n\n- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"lockVehicle","parameters":[{"description":"The ID of the vehicle to lock or unlock. This can be a Samsara internal ID or an external ID in the format `samsara.vin:{VIN}`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclesLockLockVehicleBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[preview] Lock a vehicle.","tags":["Preview APIs"]}},"/qualification-records":{"delete":{"description":"Deletes an existing qualification record.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteQualificationRecord","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordRequestBody"}}},"required":true},"responses":{"200":{"content":{},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsDeleteQualificationRecordBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a qualification record.","tags":["Beta APIs"],"x-codegen-request-body-name":"DeleteQualificationRecordRequestBody"},"get":{"description":"Returns qualification records for the specified list of IDs.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getQualificationRecords","parameters":[{"description":"A comma-separated list containing up to 100 qualification record IDs to filter on. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a query parameter, use the following format: key:value.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"If true, externalIds for qualification record and for the owner entity are returned.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a list of specified qualification records.","tags":["Beta APIs"]},"patch":{"description":"Updates an existing qualification record.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchQualificationRecord","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPatchQualificationRecordBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a qualification record.","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchQualificationRecordRequestBody"},"post":{"description":"Creates a new qualification record.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postQualificationRecord","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordRequestBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordResponseBody"}}},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsPostQualificationRecordBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a qualification record.","tags":["Beta APIs"],"x-codegen-request-body-name":"PostQualificationRecordRequestBody"}},"/qualification-records/archive":{"post":{"description":"Archives an existing qualification record.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"archiveQualificationRecord","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordRequestBody"}}},"required":true},"responses":{"200":{"content":{},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsArchiveQualificationRecordBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Archive a qualification record.","tags":["Beta APIs"],"x-codegen-request-body-name":"ArchiveQualificationRecordRequestBody"}},"/qualification-records/stream":{"get":{"description":"Returns all qualification records that have been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, the API will continue to poll with the pagination cursor that gets returned on every call. The hasNextPage response value will be true if there is no endTime specified and endCursor is nonempty.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getQualificationRecordsStream","parameters":[{"description":"String of entity type.  Valid values: `worker`, `asset`","in":"query","name":"entityType","required":true,"schema":{"enum":["worker","asset"],"type":"string"}},{"description":"A start time in RFC 3339 format. Millisecond precision and timezones are supported. Examples: '2019-06-13T19:08:25Z' (basic UTC), '2019-06-13T19:08:25.455Z' (with milliseconds), '2015-09-15T14:00:12-04:00' (with timezone).","in":"query","name":"startTime","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"An end time in RFC 3339 format. Optional and defaults to now if not provided. Millisecond precision and timezones are supported. Examples: '2019-06-13T19:08:25Z' (basic UTC), '2019-06-13T19:08:25.455Z' (with milliseconds), '2015-09-15T14:00:12-04:00' (with timezone).","in":"query","name":"endTime","schema":{"format":"date-time","type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Optional comma-separated list containing up to 100 qualification type IDs to filter on.","explode":false,"in":"query","name":"qualificationTypeIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional comma-separated list of unique Samsara IDs of workers (if \"entityType\" is \"worker\") or assets (if \"entityType\" is \"asset\") to filter on. Max value for this field is 100 objects.","explode":false,"in":"query","name":"ownerIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"If true, deleted qualification records are returned.","in":"query","name":"includeDeleted","schema":{"type":"boolean"}},{"description":"If true, externalIds for qualification record and for the owner entity are returned.","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationRecordsStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a stream of filtered qualification records.","tags":["Beta APIs"]}},"/qualification-records/unarchive":{"post":{"description":"Unarchives an existing qualification record.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"unarchiveQualificationRecord","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordRequestBody"}}},"required":true},"responses":{"200":{"content":{},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsUnarchiveQualificationRecordBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Unarchive a qualification record.","tags":["Beta APIs"],"x-codegen-request-body-name":"UnarchiveQualificationRecordRequestBody"}},"/qualification-types":{"get":{"description":"Returns a list of qualification types for the specified list of IDs. If no IDs are provided, all qualification types will be returned.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Qualification Records** under the Qualification Records category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getQualificationTypes","parameters":[{"description":"String of entity type.  Valid values: `worker`, `asset`","in":"query","name":"entityType","required":true,"schema":{"enum":["worker","asset"],"type":"string"}},{"description":"Optional comma-separated list containing up to 100 qualification type IDs to filter on. If no IDs are provided, all qualification types will be returned.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualificationsGetQualificationTypesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a list of qualification types.","tags":["Beta APIs"]}},"/readings":{"post":{"description":"Ingest new readings. This endpoint allows the ingestion of batches of readings.\n\nIngesting readings is only supported for assets created using the POST /assets API endpoint with readingsIngestionEnabled set to true. To see a full list of readings available for ingestion use the GET readings definitions API.\n\n\nReadings that currently support ingestion (by category):\n\n\n<details>\n<summary><strong>ingestible</strong></summary>\n\n* `batteryVoltage`\n* `coolantTemp`\n* `ecuFuelLevelMillipercent`\n* `engineHours`\n* `engineRpm`\n* `engineState` (values: off | running | idling)\n* `faultCodes`\n* `fuelLevelPerc`\n* `gps`\n* `odometerEcu`\n* `oilPressure`\n\n</details>\n\nWhen ingesting GPS location data, use the readingID 'gps'. The value object must contain the following fields: 'latitude' (decimal degrees), 'longitude' (decimal degrees), and 'speed' (meters per second).\n\nRelated guide: [Readings](https://developers.samsara.com/docs/readings).\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Readings** under the Readings category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postReadings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsRequestBody"}}},"required":true},"responses":{"201":{"content":{},"description":"Created response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsPostReadingsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Ingest Readings","tags":["Beta APIs"],"x-codegen-request-body-name":"PostReadingsRequestBody"}},"/readings/definitions":{"get":{"description":"An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata.\n\nRelated guide: [Readings](https://developers.samsara.com/docs/readings).\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Readings** under the Readings category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listReadingsDefinitions","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A String of comma separated reading IDs. Include up to 50 readings IDs. If not set, all readings are returned.","in":"query","name":"ids","schema":{"type":"string"}},{"description":"A list of entity types to return readings for. (Examples: asset, sensor)","in":"query","name":"entityTypes","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsListReadingsDefinitionsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Readings Definitions","tags":["Readings"]}},"/readings/history":{"get":{"description":"Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.\n\nRelated guide: [Readings](https://developers.samsara.com/docs/readings).\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Readings** under the Readings category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getReadingsHistory","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The reading ID to retrieve data for. Use /readings/definitions endpoint to get a list of valid reading IDs. (Examples: engineRpm,fuelLevel)\n\nAvailable reading IDs (by category):\n\n\n<details>\n<summary><strong>diagnostic</strong></summary>\n\n* `airInletPressure` (Air Inlet Pressure): Air inlet pressure. (kilopascal)\n* `airTemp` (Air Inlet (Ambient Air) Temp): Air inlet (ambient air) temperature. (celsius)\n* `altitude` (Altitude): The altitude of the asset (meter)\n* `altitudeAccuracy` (Altitude Uncertainty): The uncertainty of the asset's GPS-based altitude. (meter)\n* `assetStatus` (Status): Combined movement and equipment status derived from location & Digio events. (values: movementStart | movementEnd | stopped | none | equipmentOn | equipmentOff)\n* `averageACCurrent` (Average AC Current): Average AC current in amperes. (ampere)\n* `averageACFrequency` (Average AC Frequency): Average AC frequency in Hertz. (hertz)\n* `averageLineToLineACRMSVoltage` (Average Line-to-Line Voltage): Average RMS voltage between AC lines in volts. (volt)\n* `averageLineToNeutralACRMSVoltage` (Average Line-to-Neutral Voltage): Average RMS voltage from AC line to neutral in volts. (volt)\n* `barometerPressure` (Barometric Pressure): Atmospheric pressure as measured by the barometer. (kilopascal)\n* `batteryPotentialSwitched` (Battery Potential (Switched)): Switched battery potential in volts. (volt)\n* `batteryVoltage` (Battery Voltage): Voltage of the asset's battery. (volt)\n* `boostPressureEngineTurbocharger1` (Engine Turbocharger 1 Boost Pressure): Represents the boost pressure for engine turbocharger 1. (kilopascal)\n* `boostPressurePa` (Boost Pressure): Represents the boost pressure. (kilopascal)\n* `boostPressureTurbocharger2` (Boost Pressure (Turbocharger 2)): Boost pressure from the second turbocharger in kPa. (kilopascal)\n* `canBusType` (CAN Bus Status): Indicates whether the CAN Bus system is active or provides an invalid reading. (values: invalid | active)\n* `checkEngineLightJ1939Emissions` (Check Engine Light (J1939) - Emissions): Indicates whether the J1939 check engine light emissions indicator is active or inactive. (values: off | on)\n* `checkEngineLightJ1939Protect` (Check Engine Light (J1939) - Protect): Indicates whether the J1939 check engine light protect indicator is active or inactive. (values: off | on)\n* `checkEngineLightJ1939Stop` (Check Engine Light (J1939) - Stop): Indicates whether the J1939 check engine light stop indicator is active or inactive. (values: off | on)\n* `checkEngineLightJ1939Warning` (Check Engine Light (J1939) - Warning): Indicates whether the J1939 check engine light warning indicator is active or inactive. (values: off | on)\n* `checkEngineLightPassenger` (Check Engine Light (Passenger)): Indicates whether the passenger check engine light indicator is active or inactive. (values: off | on)\n* `coolantTemp` (Engine Coolant Temp): Represents the engine coolant temperature. (celsius)\n* `crankcasePressure` (Crankcase Pressure): The pressure inside the engine's crankcase (kilopascal)\n* `defLevel` (DEF Level): Represents the DEF (Diesel Exhaust Fluid) level percentage. (percent)\n* `derivedFuelConsumed` (Lifetime Fuel Consumed (Samsara)): Samsara-maintained fuel consumption since the device was firstinstalled. (liter)\n* `digioInput1` (Digital IO #1): Represents the state of digital IO #1. (values: off | on)\n* `dpfLampStatus` (DPF Lamp Status): Status of the Diesel Particulate Filter warning lamp. (values: off | on | blinking)\n* `dpfSootLoadPercent` (DPF Soot Load): Diesel Particulate Filter soot load percentage. (percent)\n* `ecuHistoryTotalRunTime` (ECU Total Run Time): Total engine run time from ECU in seconds. (second)\n* `ecuNativeDoorStatus` (Door Status (ECU)): Indicates whether the vehicle door is open or closed based on the native ECU diagnostic signal. (values: unknown | closed | open)\n* `engineExhaustTemperature` (Engine Exhaust Temperature): Temperature of the engine exhaust (celsius)\n* `engineHours` (Engine Hours (ECU)): Represents the total engine runtime in hours as reported by the ECU. (second)\n* `engineHoursDigioBased` (Engine Hours (Synthetic - Aux input)): Represents the synthetic total engine runtime in hours based on auxiliary input. (millisecond)\n* `engineHoursEngineStateBased` (Engine Hours (Synthetic)): Represents the synthetic total engine runtime in hours based on engine state. (millisecond)\n* `engineImmobilizer` (Engine Immobilizer): The state of the engine immobilizer. Valid values: ignition_disabled, ignition_enabled.\n* `engineIntakeAirTemp` (Engine Intake Air Temperature): Represents the engine intake air temperature. (celsius)\n* `engineLoadPercent` (Engine Load): Engine load percentage. (percent)\n* `engineOilTemperature` (Engine Oil Temperature): Temperature of the engine oil (celsius)\n* `engineRpm` (Engine Speed): Engine speed in revolutions per minute (RPM). (rpm)\n* `engineState` (Engine State): Indicates the current state of the engine, such as running, stopped. (values: off | running | idling)\n* `engineTotalIdleTime` (Engine Total Idle Time): Total idle time for the vehicle. (minute)\n* `evAverageCellTemperature` (EV Average Cell Temperature): Average temperature of EV battery cells in degrees Celsius. (celsius)\n* `evBatteryHealth` (EV Battery Health): Represents the health of the EV battery in percentage. (percent)\n* `evChargingCurrent` (EV Charging Current): Charging current for electric and hybrid vehicles. (ampere)\n* `evChargingEnergy` (EV Charging Energy): Charging energy for electric and hybrid vehicles. (watthour)\n* `evChargingStatus` (EV Charging Status): Charging status for electric and hybrid vehicles. (values: unknown | notCharging | charging)\n* `evChargingVoltage` (EV Charging Voltage): Charging voltage for electric and hybrid vehicles. (volt)\n* `evConsumedEnergy` (EV Consumed Energy): Consumed energy (including regenerated) for electric and hybrid vehicles. (watthour)\n* `evDistanceDriven` (EV Distance Driven): Electric distance driven for electric and hybrid vehicles. (meter)\n* `evEstimatedRemainingDistance` (EV Estimated remaining distance): Estimated remaining distance based on existing available HV system capacity. (meter)\n* `evHighCapacityBatteryCurrent` (EV High Capacity Battery Current): Current from the high capacity EV battery in amperes. (ampere)\n* `evHighCapacityBatteryVoltage` (High Capacity EV Battery Voltage): Represents the voltage of the high capacity EV battery. (volt)\n* `evRegeneratedEnergy` (EV Regenerated Energy): Regenerated energy for electric and hybrid vehicles. (watthour)\n* `evStateOfCharge` (State of Charge): Represents the state of charge of the EV battery in percentage. (percent)\n* `exhaustGasPressure` (Exhaust Gas Pressure): Represents the exhaust gas pressure. (kilopascal)\n* `faultCodes` (Fault Codes): Engine fault codes for the asset\n* `fuelConsumptionRate` (Fuel Consumption Rate): The rate at which an asset uses fuel (litersperhour)\n* `fuelDeliveryPressure` (Fuel Delivery Pressure): The pressure of fuel being delivered to the engine (kilopascal)\n* `fuelLevelPerc` (Fuel Level): Percentage of fuel remaining in the tank. (percent)\n* `fuelSource` (Fuel Source): Type of fuel used by the asset. (values: gasoline | diesel)\n* `geoCoordinates` (Geo Coordinates): GPS coordinates (latitude and longitude) of the asset's location.\n* `gpsDistance` (GPS Distance): The distance the vehicle has traveled since the gateway was installed based on GPS calculations. (meter)\n* `gpsSpeed` (GPS Speed): Asset speed measured by the gateway's GPS receiver. (meterspersec)\n* `idlingDuration` (Cumulative Idling Duration): The cumulative idling duration. Cumulative values always increase. (millisecond)\n* `ignitionStatus` (Ignitions Status): Indicates the current ignition status as a voltage (values: off | on)\n* `latitude` (Latitude): Latitude coordinate of the asset's location. (decimaldegrees)\n* `lifetimeFuelConsumed` (Lifetime Fuel Consumed): Represents the vehicle maintained lifetime fuel consumption as reported by the vehicle. (liter)\n* `location` (Location): Represents the current address of the asset.\n* `longitude` (Longitude): Longitude coordinate of the asset's location. (decimaldegrees)\n* `mnfldTemp` (Intake Manifold Temp): Represents the intake manifold temperature. (celsius)\n* `ngFuelPressure` (NG Fuel Pressure): Represents the natural gas fuel pressure. (kilopascal)\n* `odometerEcu` (Odometer (ECU)): Represents the total distance traveled as recorded by the ECU. (meter)\n* `odometerGps` (Odometer (GPS)): Represents the total distance traveled as determined by GPS. (meter)\n* `oilPressure` (Engine Oil Pressure): Represents the oil pressure in the engine. (kilopascal)\n* `phaseAACFrequency` (Phase A AC Frequency): AC frequency for Phase A in Hertz. (hertz)\n* `phaseAAmpsRms` (Phase A Current (RMS)): RMS current for Phase A in amperes. (ampere)\n* `phaseALLVolts` (Phase A Line-to-Line Voltage): Line-to-line voltage for Phase A in volts. (volt)\n* `phaseALNVolts` (Phase A Line-to-Neutral Voltage): Line-to-neutral voltage for Phase A in volts. (volt)\n* `phaseBAmpsRms` (Phase B Current (RMS)): RMS current for Phase B in amperes. (ampere)\n* `phaseBLLVolts` (Phase B Line-to-Line Voltage): Line-to-line voltage for Phase B in volts. (volt)\n* `phaseBLNVolts` (Phase B Line-to-Neutral Voltage): Line-to-neutral voltage for Phase B in volts. (volt)\n* `phaseCAmpsRms` (Phase C Current (RMS)): RMS current for Phase C in amperes. (ampere)\n* `phaseCLLVolts` (Phase C Line-to-Line Voltage): Line-to-line voltage for Phase C in volts. (volt)\n* `phaseCLNVolts` (Phase C Line-to-Neutral Voltage): Line-to-neutral voltage for Phase C in volts. (volt)\n* `powerFactorRatio` (Power Factor Ratio): Represents the power factor ratio. (percent)\n* `rfidCardIdScan` (RFID Card Scan): The card number from RFID Card scans used for identification. When a user taps their RFID card on the reader, this captures the unique card code.\n* `samsaraEngineHours` (Samsara Engine Hours): Samsara's intelligent engine hours calculation that combines ECU data, synthetic calculations, and manual overrides with automatic fallbacks for optimal accuracy across all asset types. (millisecond)\n* `samsaraEngineHoursWithSource` (Samsara Engine Hours with Source): Samsara's intelligent engine hours calculation including detailed source metadata to indicate the origin of the data (ECU, synthetic, or manual override). Useful for debugging and understanding data provenance.\n* `samsaraOdometer` (Samsara Odometer): Samsara automatically pulls odometer readings from a vehicle's engine control unit (ECU). If the reading isn't available and the vehicle is unregulated, you can manually enter the odometer value for maintenance tracking—this value will then update based on GPS trip data. (kilometer)\n* `samsaraSpeed` (Samsara Speed): Samsara's best estimate of the asset speed, combining multiple data sources such as ECU and GPS. (meterspersec)\n* `samsaraSpeedLimit` (Samsara Speed Limit): Speed limit at the location of the asset. (meterspersec)\n* `seatbeltDriver` (Seatbelt (Driver)): Indicates whether the driver's seatbelt is buckled or unbuckled. (values: unbuckled | buckled)\n* `tellTales` (Tell Tale Status): Tell tales status as read from the vehicle.\n* `tirePressuresBackLeft` (Tire pressure, back left): Represents the tire pressure for the back-left tire. (kilopascal)\n* `tirePressuresBackRight` (Tire pressure, back right): Represents the tire pressure for the back-right tire. (kilopascal)\n* `tirePressuresFrontLeft` (Tire pressure, front left): Represents the tire pressure for the front-left tire. (kilopascal)\n* `tirePressuresFrontRight` (Tire pressure, front right): Represents the tire pressure for the front-right tire. (kilopascal)\n* `torquePercent` (Torque): Engine torque as a percentage. (percent)\n* `totalApparentPower` (Total Apparent Power): Total apparent power in volt-amperes. (voltAmpere)\n* `totalEnergyExported` (Total Energy Exported): Represents the total energy exported in kilowatt-hours (kWh). (kilowatthour)\n* `totalReactivePower` (Total Reactive Power): Total reactive power in volt-amperes reactive. (voltAmpereReactive)\n* `totalRealPower` (Total Real Power): Total real power in watts. (watt)\n\n</details>\n\n<details>\n<summary><strong>levelMonitoring</strong></summary>\n\n* `fillCriticality` (Fill Level Criticality): Indicates if the state of the fill level is critical. (values: normal | criticallyHigh | criticallyLow)\n* `fillMass` (Fill Mass): Mass of material in the vessel. (kilogram)\n* `fillMassAvailableCapacity` (Fill Mass Available Capacity): Available mass to be filled in the vessel. (kilogram)\n* `fillMassEgress` (Fill Mass Out): Mass negative change in the vessel. (kilogram)\n* `fillMassIngress` (Fill Mass In): Mass positive change in the vessel. (kilogram)\n* `fillPercent` (Fill Level Percent): Fill level of the vessel as a percentage full. (percent)\n* `fillVolume` (Fill Volume): Volume of material in the vessel. (liter)\n* `fillVolumeAvailableCapacity` (Fill Volume Available Capacity): Available volume to be filled in the vessel. (liter)\n* `fillVolumeEgress` (Fill Volume Out): Volume negative change in the vessel. (liter)\n* `fillVolumeIngress` (Fill Volume In): Volume positive change in the vessel. (liter)\n* `fluidLevelStatus` (Battery Water Level): The status of the battery's water level. Will be OK or LOW. (values: noData | ok | low)\n* `remoteSensingDistance` (Sensor distance measurement): Distance measured by remote sensing device (meter)\n* `smoothedFillMass` (Smoothed Fill Mass): Algorithm smoothed mass value in the vessel. (kilogram)\n* `smoothedFillVolume` (Smoothed Fill Volume): Algorithm smoothed volume value in the vessel. (liter)\n* `totalCapacityMass` (Total Capacity Mass): Total mass capacity of the vessel. (kilogram)\n* `totalCapacityVolume` (Total Capacity Volume): Total volume capacity of the vessel. (liter)\n\n</details>\n\n<details>\n<summary><strong>obd</strong></summary>\n\n* `accDistanceAlertSignal` (ACC Distance Alert): Distance Alert Signal from the Adaptive Cruise Control system. (values: notActive | active)\n* `adaptiveCruiseControlMode` (ACC Mode): Current mode of the Adaptive Cruise Control System. (values: off | speedControlActive | distanceControlActive | overtakeMode | holdMode | finishMode | disabledOrError)\n* `aebsDriverActivationDemand` (AEBS Activation): Whether Advanced Emergency Braking is enabled or disabled by the driver. (values: deactivated | activated)\n* `cruiseControlSetSpeed` (Cruise Control Set Speed): Driver's set speed for the cruise control system. (kmperhr)\n* `cruiseControlSwitch` (Cruise Control Switch): The state of the cruise control switch. (values: off | on | error)\n* `ecuSpeed` (ECU Speed): Speed read from the asset's OBD port. (kmperhr)\n* `emergencyBrakingAebsState` (AEBS State (Collision)): State of the Emergency Braking System for Forward Collision. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | readyAndActivated | driverOverrides | forwardCollisionWarningActive | forwardCollisionWarningWithBraking | forwardCollisionEmergencyBrakingActive | performanceLimited | error)\n* `forwardCollisionWarningLevel` (AEBS FCW Level): Severity level of the AEBS Forward Collision Warning. (values: noWarning | level1 | level2 | level3 | level4 | level5 | level6 | level7)\n* `forwardCollisionWarningStatus` (ACC FCW Status): Status of the Adaptive Cruise Control Forward Collision Warning system. (values: noWarning | collisionImminent | error)\n* `forwardLaneImagerStatus` (Forward Lane Imager State): State of the Forward Lane Imager. (values: fullyOperational | warmingUp | partiallyBlocked | fullyBlocked | misaligned | viewDegraded | error)\n* `imminentLeftLaneDeparture` (Imminent Left Lane Departure): State of the Imminent Left Lane Departure detection. (values: notImminent | imminent)\n* `imminentRightLaneDeparture` (Imminent Right Lane Departure): State of the Imminent Right Lane Departure detection. (values: notImminent | imminent)\n* `laneCenteringSystemState` (Lane Centering State): State of the Lane Centering System. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | ready | suppressedByOperator | actuating | error)\n* `laneDepartureIndicationStatus` (LDW Indication): State of the Lane Departure Indication system. (values: disabled | enabled)\n* `laneDepartureWarningSystemState` (LDW System State): State of the Lane Departure Warning system. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | ready | warningSuppressed | warningLaneDeparture | error)\n* `laneKeepingAssistSystemState` (LKAS State): State of the Lane Keep Assist System. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | ready | suppressedByOperator | actuating | error)\n* `roadDepartureAebsState` (AEBS State (Lane Departure)): State of the AEBS system for Lane Departure. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | readyAndActivated | driverOverrides | roadDepartureWarningActive | roadDepartureWarningWithBraking | roadDepartureEmergencyBrakingActive | performanceLimited | error)\n* `ropBrakeControlActive` (ROP Brake Control Active): Indicates whether Roll Over Prevention (ROP) has activated brake control. (values: passive | active)\n* `ropEngineControlActive` (ROP Engine Control Active): Indicates whether Roll Over Prevention (ROP) has commanded engine control to be active. (values: passive | active)\n* `tractionControlOverrideSwitch` (Traction Control Override Switch): When the switch is on, the automatic traction control function is disabled by the driver. (values: off | on | error)\n* `turnSignal` (Turn Signal): State of the turn signal switch (blinker). (values: off | left | right)\n* `vdcFullyOperational` (VDC Fully Operational): Indicates whether the Vehicle Dynamic Stability Control (VDC) system is fully operational. (values: notFullyOperational | fullyOperational)\n* `vehicleGear` (Vehicle Gear): The gear of the vehicle that is currently selected. (values: unknown | park | neutral | reverse | drive)\n* `xbrActiveControlMode` (Emergency Self-Braking System Mode): Current mode of the emergency self-braking system. (values: noBrakeDemand | driverBrakeDemand | additionMode | maximumMode | brakeHold)\n* `xbrSystemState` (Emergency Self-Braking System Operational State): State of the emergency self-braking system. (values: fullyOperational | highestPriorityOnly | noRequestsAccepted)\n* `ycBrakeControlActive` (YC Brake Control Active): Indicates whether Yaw Control (YC) has activated brake control. (values: passive | active)\n* `ycEngineControlActive` (YC Engine Control Active): Indicates whether Yaw Control (YC) has commanded engine control to be active. (values: passive | active)\n\n</details>\n\n<details>\n<summary><strong>pressureVesselHealth</strong></summary>\n\n* `pressureVesselBatteryLevelPercentage` (Pressure Vessel Battery Level Percentage): Battery level percentage of the pressure vessel. (percent)\n* `pressureVesselPressure` (Pressure Vessel Pressure): Pressure of the pressure vessel. (kilopascal)\n* `pressureVesselTemperature` (Pressure Vessel Temperature): Temperature of the pressure vessel. (celsius)\n\n</details>\n\n<details>\n<summary><strong>reefer</strong></summary>\n\n* `reeferAlarm` (Reefer Alarms): Array of active alarm codes for the refrigeration unit with metadata\n* `reeferAlarmActive` (TouchPrint Alarm Active): TouchPrint ALM digital output (input configured as Switch). On-device gating ensures this only reports on alarm-configured inputs; see reeferAlarm for OEM alarm codes and reeferAlarmSeverity for severity. (values: inactive | active)\n* `reeferAlarmSeverity` (Reefer Alarm Severity): Highest severity level across active reefer alarms (green, yellow, red, orange) (values: none | green | yellow | red | orange)\n* `reeferAmbientAir` (Reefer Ambient Air Temperature): External environment temperature for the reefer (celsius)\n* `reeferBatteryVoltage` (Reefer Battery Voltage): The voltage of the Refrigeration Unit's battery. (volt)\n* `reeferDefrostZone1` (Reefer Defrost (Zone 1)): Whether the reefer defrost cycle is active in zone 1 (sustained state). On-device gating ensures this only reports on defrost-configured inputs. (values: off | on)\n* `reeferDefrostZone2` (Reefer Defrost (Zone 2)): Whether the reefer defrost cycle is active in zone 2 (sustained state). On-device gating ensures this only reports on defrost-configured inputs. (values: off | on)\n* `reeferDefrostZone3` (Reefer Defrost (Zone 3)): Whether the reefer defrost cycle is active in zone 3 (sustained state). On-device gating ensures this only reports on defrost-configured inputs. (values: off | on)\n* `reeferDoorOpenZone1` (Reefer Door Open (Zone 1)): Status indicating whether the reefer's door (zone 1) is closed or open (values: closed | open)\n* `reeferDoorOpenZone2` (Reefer Door Open (Zone 2)): Status indicating whether the reefer's door (zone 2) is closed or open (values: closed | open)\n* `reeferDoorOpenZone3` (Reefer Door Open (Zone 3)): Status indicating whether the reefer's door (zone 3) is closed or open (values: closed | open)\n* `reeferEngineHours` (Reefer Engine Hours): The total accumulated hours that the Refrigeration Unit has been running on its engine. (hour)\n* `reeferFuelLevel` (Reefer Fuel Level): Refrigeration Unit Fuel Level (%) (percent)\n* `reeferOdometer` (Reefer Odometer): Cumulative travel distance reported by the Refrigeration Unit OEM telematics. (meter)\n* `reeferPowerSource` (Reefer Power Source): The power source of the refrigeration unit (Diesel, Electric or Cryo) (values: engine | electric | cryo)\n* `reeferReturnAirZone1` (Reefer Return Air Temperature (Zone 1)): Return air temperature for the reefer's zone 1 (celsius)\n* `reeferReturnAirZone2` (Reefer Return Air Temperature (Zone 2)): Return air temperature for the reefer's zone 2 (celsius)\n* `reeferReturnAirZone3` (Reefer Return Air Temperature (Zone 3)): Return air temperature for the reefer's zone 3 (celsius)\n* `reeferRunMode` (Reefer Run Mode): The run mode of the refrigeration unit (Continuous or Start/Stop) (values: continuous | startStop)\n* `reeferSetPointZone1` (Reefer Set Point (Zone 1)): Current set point for the reefer's zone 1 (celsius)\n* `reeferSetPointZone2` (Reefer Set Point (Zone 2)): Current set point for the reefer's zone 2 (celsius)\n* `reeferSetPointZone3` (Reefer Set Point (Zone 3)): Current set point for the reefer's zone 3 (celsius)\n* `reeferState` (Reefer State): The on/off state of the refrigeration unit (values: off | active | error | inactive)\n* `reeferStateZone1` (Reefer State (Zone 1)): The on/off state of the refrigeration unit (Zone 1) (values: off | active | error | inactive)\n* `reeferStateZone2` (Reefer State (Zone 2)): The on/off state of the refrigeration unit (Zone 2) (values: off | active | error | inactive)\n* `reeferStateZone3` (Reefer State (Zone 3)): The on/off state of the refrigeration unit (Zone 3) (values: off | active | error | inactive)\n* `reeferSupplyAirZone1` (Reefer Supply Air Temperature (Zone 1)): Supply air temperature for the reefer's zone 1 (celsius)\n* `reeferSupplyAirZone2` (Reefer Supply Air Temperature (Zone 2)): Supply air temperature for the reefer's zone 2 (celsius)\n* `reeferSupplyAirZone3` (Reefer Supply Air Temperature (Zone 3)): Supply air temperature for the reefer's zone 3 (celsius)\n* `reeferTemperatureRecorder1` (Reefer Temperature Recorder (Zone 1)): Temperature recorder reading for reefer zone 1 (celsius)\n* `reeferTemperatureRecorder2` (Reefer Temperature Recorder (Zone 2)): Temperature recorder reading for reefer zone 2 (celsius)\n* `reeferTemperatureRecorder3` (Reefer Temperature Recorder (Zone 3)): Temperature recorder reading for reefer zone 3 (celsius)\n* `reeferTemperatureRecorder4` (Reefer Temperature Recorder (Zone 4)): Temperature recorder reading for reefer zone 4 (celsius)\n* `reeferTemperatureRecorder5` (Reefer Temperature Recorder (Zone 5)): Temperature recorder reading for reefer zone 5 (celsius)\n* `reeferTemperatureRecorder6` (Reefer Temperature Recorder (Zone 6)): Temperature recorder reading for reefer zone 6 (celsius)\n\n</details>\n\n<details>\n<summary><strong>smartTrailer</strong></summary>\n\n* `addressEntry` (Address Entry): Address data from the address entry event\n* `addressExit` (Address Exit): Address data from the address exit event\n* `atisLamp` (Atis Lamp status): Atis lamp on/off status (values: off | on)\n* `cargoFillPercent` (Cargo fill percent): Estimated percentage of the trailer cargo space that is occupied, based on cargo camera images. (percent)\n* `derivedCargoState` (Cargo Status): Indicates if the overall cargo status of the asset is Empty, Partially Empty, Full, or Unknown. (values: unknown | empty | partiallyEmpty | full)\n* `doorClosedStatus` (Door Closed Status): Status indicating whether a door is closed or open (values: open | closed)\n* `doorClosedStatusAdvanced` (Door Closed Status (Advanced)): Status indicating whether a door is closed or open (values: open | closed)\n* `environmentMonitorAmbientTemperature` (Ambient Temperature): Air temperature at the environmental monitor device (built-in sensor). (celsius)\n* `environmentMonitorAmbientTemperatureBLEConnection` (Ambient Temperature (BLE Connection)): Air temperature at the environmental monitor device (built-in sensor) via BLE Connection. (celsius)\n* `environmentMonitorThermistorTemperature` (Thermistor Temperature): Temperature from an external thermistor probe (e.g. cable probe in cargo or reefer). (celsius)\n* `environmentMonitorThermistorTemperatureBLEConnection` (Thermistor Temperature (BLE Connection)): Temperature from an external thermistor probe (e.g. cable probe in cargo or reefer) via BLE Connection. (celsius)\n* `gatewayBatteryStatus` (Gateway Battery Status): Battery status of the gateway based on temperature-compensated voltage threshold. The threshold varies from 3672mV at -40°C to 4579mV at 60°C. (values: ok | low)\n* `gatewayBatteryTemperature` (Gateway Battery Temperature): Internal temperature of the gateway battery in degrees Celsius (celsius)\n* `gatewayBatteryVoltage` (Gateway Battery Voltage): Total battery voltage of the gateway (sum of all 3 cells) in volts (volt)\n* `trailerMovingWithoutPower` (Trailer Moving Without Power): Trailer moving without power status (values: off | on)\n* `trailerVoltage` (Trailer Voltage): Represents the voltage reading off the primary power of the trailer (volt)\n* `validBrakeScore` (Braking Performance Value): Percent score representing trailer braking effectiveness using regression analysis over the past 90 days, guaranteed to have under 3% margin of error. (percent)\n* `widgetBatteryVoltage` (Widget Battery Voltage): Battery voltage level of the widget sensor in millivolts (volt)\n* `widgetBatteryVoltageLow` (Widget Battery Voltage Low): Indicates if widget battery voltage is below 1500mV threshold (values: normal | low)\n* `widgetDisconnect` (Widget Disconnection Status): Connection status between widget and device (values: connected | disconnected)\n\n</details>\n\n<details>\n<summary><strong>tireCondition</strong></summary>\n\n* `axle1tirefromleft1pressure` (Axle 1 Left Outer Tire Pressure): Pressure of the left outer tire on axle 1. (kilopascal)\n* `axle1tirefromleft1temperature` (Axle 1 Left Outer Tire Temperature): Temperature of the left outer tire on axle 1. (celsius)\n* `axle1tirefromleft2pressure` (Axle 1 Left Inner Tire Pressure): Pressure of the left inner tire on axle 1. (kilopascal)\n* `axle1tirefromleft2temperature` (Axle 1 Left Inner Tire Temperature): Temperature of the left inner tire on axle 1. (celsius)\n* `axle1tirefromleft3pressure` (Axle 1 Right Inner Tire Pressure): Pressure of the right inner tire on axle 1. (kilopascal)\n* `axle1tirefromleft3temperature` (Axle 1 Right Inner Tire Temperature): Temperature of the right inner tire on axle 1. (celsius)\n* `axle1tirefromleft4pressure` (Axle 1 Right Outer Tire Pressure): Pressure of the right outer tire on axle 1. (kilopascal)\n* `axle1tirefromleft4temperature` (Axle 1 Right Outer Tire Temperature): Temperature of the right outer tire on axle 1. (celsius)\n* `axle2tirefromleft1pressure` (Axle 2 Left Outer Tire Pressure): Pressure of the left outer tire on axle 2. (kilopascal)\n* `axle2tirefromleft1temperature` (Axle 2 Left Outer Tire Temperature): Temperature of the left outer tire on axle 2. (celsius)\n* `axle2tirefromleft2pressure` (Axle 2 Left Inner Tire Pressure): Pressure of the left inner tire on axle 2. (kilopascal)\n* `axle2tirefromleft2temperature` (Axle 2 Left Inner Tire Temperature): Temperature of the left inner tire on axle 2. (celsius)\n* `axle2tirefromleft3pressure` (Axle 2 Right Inner Tire Pressure): Pressure of the right inner tire on axle 2. (kilopascal)\n* `axle2tirefromleft3temperature` (Axle 2 Right Inner Tire Temperature): Temperature of the right inner tire on axle 2. (celsius)\n* `axle2tirefromleft4pressure` (Axle 2 Right Outer Tire Pressure): Pressure of the right outer tire on axle 2. (kilopascal)\n* `axle2tirefromleft4temperature` (Axle 2 Right Outer Tire Temperature): Temperature of the right outer tire on axle 2. (celsius)\n* `axle3tirefromleft1pressure` (Axle 3 Left Outer Tire Pressure): Pressure of the left outer tire on axle 3. (kilopascal)\n* `axle3tirefromleft1temperature` (Axle 3 Left Outer Tire Temperature): Temperature of the left outer tire on axle 3. (celsius)\n* `axle3tirefromleft2pressure` (Axle 3 Left Inner Tire Pressure): Pressure of the left inner tire on axle 3. (kilopascal)\n* `axle3tirefromleft2temperature` (Axle 3 Left Inner Tire Temperature): Temperature of the left inner tire on axle 3. (celsius)\n* `axle3tirefromleft3pressure` (Axle 3 Right Inner Tire Pressure): Pressure of the right inner tire on axle 3. (kilopascal)\n* `axle3tirefromleft3temperature` (Axle 3 Right Inner Tire Temperature): Temperature of the right inner tire on axle 3. (celsius)\n* `axle3tirefromleft4pressure` (Axle 3 Right Outer Tire Pressure): Pressure of the right outer tire on axle 3. (kilopascal)\n* `axle3tirefromleft4temperature` (Axle 3 Right Outer Tire Temperature): Temperature of the right outer tire on axle 3. (celsius)\n* `axle4tirefromleft1pressure` (Axle 4 Left Outer Tire Pressure): Pressure of the left outer tire on axle 4. (kilopascal)\n* `axle4tirefromleft1temperature` (Axle 4 Left Outer Tire Temperature): Temperature of the left outer tire on axle 4. (celsius)\n* `axle4tirefromleft2pressure` (Axle 4 Left Inner Tire Pressure): Pressure of the left inner tire on axle 4. (kilopascal)\n* `axle4tirefromleft2temperature` (Axle 4 Left Inner Tire Temperature): Temperature of the left inner tire on axle 4. (celsius)\n* `axle4tirefromleft3pressure` (Axle 4 Right Inner Tire Pressure): Pressure of the right inner tire on axle 4. (kilopascal)\n* `axle4tirefromleft3temperature` (Axle 4 Right Inner Tire Temperature): Temperature of the right inner tire on axle 4. (celsius)\n* `axle4tirefromleft4pressure` (Axle 4 Right Outer Tire Pressure): Pressure of the right outer tire on axle 4. (kilopascal)\n* `axle4tirefromleft4temperature` (Axle 4 Right Outer Tire Temperature): Temperature of the right outer tire on axle 4. (celsius)\n* `axle5tirefromleft1pressure` (Axle 5 Left Outer Tire Pressure): Pressure of the left outer tire on axle 5. (kilopascal)\n* `axle5tirefromleft1temperature` (Axle 5 Left Outer Tire Temperature): Temperature of the left outer tire on axle 5. (celsius)\n* `axle5tirefromleft2pressure` (Axle 5 Left Inner Tire Pressure): Pressure of the left inner tire on axle 5. (kilopascal)\n* `axle5tirefromleft2temperature` (Axle 5 Left Inner Tire Temperature): Temperature of the left inner tire on axle 5. (celsius)\n* `axle5tirefromleft3pressure` (Axle 5 Right Inner Tire Pressure): Pressure of the right inner tire on axle 5. (kilopascal)\n* `axle5tirefromleft3temperature` (Axle 5 Right Inner Tire Temperature): Temperature of the right inner tire on axle 5. (celsius)\n* `axle5tirefromleft4pressure` (Axle 5 Right Outer Tire Pressure): Pressure of the right outer tire on axle 5. (kilopascal)\n* `axle5tirefromleft4temperature` (Axle 5 Right Outer Tire Temperature): Temperature of the right outer tire on axle 5. (celsius)\n* `axle6tirefromleft1pressure` (Axle 6 Left Outer Tire Pressure): Pressure of the left outer tire on axle 6. (kilopascal)\n* `axle6tirefromleft1temperature` (Axle 6 Left Outer Tire Temperature): Temperature of the left outer tire on axle 6. (celsius)\n* `axle6tirefromleft2pressure` (Axle 6 Left Inner Tire Pressure): Pressure of the left inner tire on axle 6. (kilopascal)\n* `axle6tirefromleft2temperature` (Axle 6 Left Inner Tire Temperature): Temperature of the left inner tire on axle 6. (celsius)\n* `axle6tirefromleft3pressure` (Axle 6 Right Inner Tire Pressure): Pressure of the right inner tire on axle 6. (kilopascal)\n* `axle6tirefromleft3temperature` (Axle 6 Right Inner Tire Temperature): Temperature of the right inner tire on axle 6. (celsius)\n* `axle6tirefromleft4pressure` (Axle 6 Right Outer Tire Pressure): Pressure of the right outer tire on axle 6. (kilopascal)\n* `axle6tirefromleft4temperature` (Axle 6 Right Outer Tire Temperature): Temperature of the right outer tire on axle 6. (celsius)\n\n</details>\n\n**Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.\n","in":"query","name":"readingId","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of entity IDs. If not set, all entities are returned.","in":"query","name":"entityIds","schema":{"type":"string"}},{"description":"The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor)","in":"query","name":"entityType","required":true,"schema":{"type":"string"}},{"description":"A filter on asset readings based on this comma-separated list of asset types. Only supported when entityType is asset. Valid values are: uncategorized, trailer, equipment, unpowered, vehicle.","in":"query","name":"assetTypes","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM)","in":"query","name":"externalIds","schema":{"type":"string"}},{"description":"A filter on the data that returns data points with timestamps greater than or equal to this value. Required when feed mode is not enabled. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)","in":"query","name":"startTime","schema":{"type":"string"}},{"description":"A filter on the data that returns the last known data points with timestamps less than or equal to this value. If not set, the time of the request is considered the endTime. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Set to true to enable feed mode for continuous reading updates. When enabled, the API always includes an endCursor in the response. If hasNextPage is false, it indicates that no new data is currently available — wait at least 5 seconds before making the next request to avoid unnecessary polling.","in":"query","name":"feed","schema":{"type":"boolean"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsHistoryBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Readings History and Feed","tags":["Readings"]}},"/readings/latest":{"get":{"description":"An endpoint to get the last value of a reading for a set of entities at the specified time.\n\nRelated guide: [Readings](https://developers.samsara.com/docs/readings).\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Readings** under the Readings category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getReadingsSnapshot","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A collection of comma separated reading IDs. Include up to 5 readings IDs. Use /readings/definitions endpoint to get a list of valid reading IDs. (Examples: engineRpm,fuelLevel)\n\nAvailable reading IDs (by category):\n\n\n<details>\n<summary><strong>diagnostic</strong></summary>\n\n* `airInletPressure` (Air Inlet Pressure): Air inlet pressure. (kilopascal)\n* `airTemp` (Air Inlet (Ambient Air) Temp): Air inlet (ambient air) temperature. (celsius)\n* `altitude` (Altitude): The altitude of the asset (meter)\n* `altitudeAccuracy` (Altitude Uncertainty): The uncertainty of the asset's GPS-based altitude. (meter)\n* `assetStatus` (Status): Combined movement and equipment status derived from location & Digio events. (values: movementStart | movementEnd | stopped | none | equipmentOn | equipmentOff)\n* `averageACCurrent` (Average AC Current): Average AC current in amperes. (ampere)\n* `averageACFrequency` (Average AC Frequency): Average AC frequency in Hertz. (hertz)\n* `averageLineToLineACRMSVoltage` (Average Line-to-Line Voltage): Average RMS voltage between AC lines in volts. (volt)\n* `averageLineToNeutralACRMSVoltage` (Average Line-to-Neutral Voltage): Average RMS voltage from AC line to neutral in volts. (volt)\n* `barometerPressure` (Barometric Pressure): Atmospheric pressure as measured by the barometer. (kilopascal)\n* `batteryPotentialSwitched` (Battery Potential (Switched)): Switched battery potential in volts. (volt)\n* `batteryVoltage` (Battery Voltage): Voltage of the asset's battery. (volt)\n* `boostPressureEngineTurbocharger1` (Engine Turbocharger 1 Boost Pressure): Represents the boost pressure for engine turbocharger 1. (kilopascal)\n* `boostPressurePa` (Boost Pressure): Represents the boost pressure. (kilopascal)\n* `boostPressureTurbocharger2` (Boost Pressure (Turbocharger 2)): Boost pressure from the second turbocharger in kPa. (kilopascal)\n* `canBusType` (CAN Bus Status): Indicates whether the CAN Bus system is active or provides an invalid reading. (values: invalid | active)\n* `checkEngineLightJ1939Emissions` (Check Engine Light (J1939) - Emissions): Indicates whether the J1939 check engine light emissions indicator is active or inactive. (values: off | on)\n* `checkEngineLightJ1939Protect` (Check Engine Light (J1939) - Protect): Indicates whether the J1939 check engine light protect indicator is active or inactive. (values: off | on)\n* `checkEngineLightJ1939Stop` (Check Engine Light (J1939) - Stop): Indicates whether the J1939 check engine light stop indicator is active or inactive. (values: off | on)\n* `checkEngineLightJ1939Warning` (Check Engine Light (J1939) - Warning): Indicates whether the J1939 check engine light warning indicator is active or inactive. (values: off | on)\n* `checkEngineLightPassenger` (Check Engine Light (Passenger)): Indicates whether the passenger check engine light indicator is active or inactive. (values: off | on)\n* `coolantTemp` (Engine Coolant Temp): Represents the engine coolant temperature. (celsius)\n* `crankcasePressure` (Crankcase Pressure): The pressure inside the engine's crankcase (kilopascal)\n* `defLevel` (DEF Level): Represents the DEF (Diesel Exhaust Fluid) level percentage. (percent)\n* `derivedFuelConsumed` (Lifetime Fuel Consumed (Samsara)): Samsara-maintained fuel consumption since the device was firstinstalled. (liter)\n* `digioInput1` (Digital IO #1): Represents the state of digital IO #1. (values: off | on)\n* `dpfLampStatus` (DPF Lamp Status): Status of the Diesel Particulate Filter warning lamp. (values: off | on | blinking)\n* `dpfSootLoadPercent` (DPF Soot Load): Diesel Particulate Filter soot load percentage. (percent)\n* `ecuHistoryTotalRunTime` (ECU Total Run Time): Total engine run time from ECU in seconds. (second)\n* `ecuNativeDoorStatus` (Door Status (ECU)): Indicates whether the vehicle door is open or closed based on the native ECU diagnostic signal. (values: unknown | closed | open)\n* `engineExhaustTemperature` (Engine Exhaust Temperature): Temperature of the engine exhaust (celsius)\n* `engineHours` (Engine Hours (ECU)): Represents the total engine runtime in hours as reported by the ECU. (second)\n* `engineHoursDigioBased` (Engine Hours (Synthetic - Aux input)): Represents the synthetic total engine runtime in hours based on auxiliary input. (millisecond)\n* `engineHoursEngineStateBased` (Engine Hours (Synthetic)): Represents the synthetic total engine runtime in hours based on engine state. (millisecond)\n* `engineImmobilizer` (Engine Immobilizer): The state of the engine immobilizer. Valid values: ignition_disabled, ignition_enabled.\n* `engineIntakeAirTemp` (Engine Intake Air Temperature): Represents the engine intake air temperature. (celsius)\n* `engineLoadPercent` (Engine Load): Engine load percentage. (percent)\n* `engineOilTemperature` (Engine Oil Temperature): Temperature of the engine oil (celsius)\n* `engineRpm` (Engine Speed): Engine speed in revolutions per minute (RPM). (rpm)\n* `engineState` (Engine State): Indicates the current state of the engine, such as running, stopped. (values: off | running | idling)\n* `engineTotalIdleTime` (Engine Total Idle Time): Total idle time for the vehicle. (minute)\n* `evAverageCellTemperature` (EV Average Cell Temperature): Average temperature of EV battery cells in degrees Celsius. (celsius)\n* `evBatteryHealth` (EV Battery Health): Represents the health of the EV battery in percentage. (percent)\n* `evChargingCurrent` (EV Charging Current): Charging current for electric and hybrid vehicles. (ampere)\n* `evChargingEnergy` (EV Charging Energy): Charging energy for electric and hybrid vehicles. (watthour)\n* `evChargingStatus` (EV Charging Status): Charging status for electric and hybrid vehicles. (values: unknown | notCharging | charging)\n* `evChargingVoltage` (EV Charging Voltage): Charging voltage for electric and hybrid vehicles. (volt)\n* `evConsumedEnergy` (EV Consumed Energy): Consumed energy (including regenerated) for electric and hybrid vehicles. (watthour)\n* `evDistanceDriven` (EV Distance Driven): Electric distance driven for electric and hybrid vehicles. (meter)\n* `evEstimatedRemainingDistance` (EV Estimated remaining distance): Estimated remaining distance based on existing available HV system capacity. (meter)\n* `evHighCapacityBatteryCurrent` (EV High Capacity Battery Current): Current from the high capacity EV battery in amperes. (ampere)\n* `evHighCapacityBatteryVoltage` (High Capacity EV Battery Voltage): Represents the voltage of the high capacity EV battery. (volt)\n* `evRegeneratedEnergy` (EV Regenerated Energy): Regenerated energy for electric and hybrid vehicles. (watthour)\n* `evStateOfCharge` (State of Charge): Represents the state of charge of the EV battery in percentage. (percent)\n* `exhaustGasPressure` (Exhaust Gas Pressure): Represents the exhaust gas pressure. (kilopascal)\n* `faultCodes` (Fault Codes): Engine fault codes for the asset\n* `fuelConsumptionRate` (Fuel Consumption Rate): The rate at which an asset uses fuel (litersperhour)\n* `fuelDeliveryPressure` (Fuel Delivery Pressure): The pressure of fuel being delivered to the engine (kilopascal)\n* `fuelLevelPerc` (Fuel Level): Percentage of fuel remaining in the tank. (percent)\n* `fuelSource` (Fuel Source): Type of fuel used by the asset. (values: gasoline | diesel)\n* `geoCoordinates` (Geo Coordinates): GPS coordinates (latitude and longitude) of the asset's location.\n* `gpsDistance` (GPS Distance): The distance the vehicle has traveled since the gateway was installed based on GPS calculations. (meter)\n* `gpsSpeed` (GPS Speed): Asset speed measured by the gateway's GPS receiver. (meterspersec)\n* `idlingDuration` (Cumulative Idling Duration): The cumulative idling duration. Cumulative values always increase. (millisecond)\n* `ignitionStatus` (Ignitions Status): Indicates the current ignition status as a voltage (values: off | on)\n* `latitude` (Latitude): Latitude coordinate of the asset's location. (decimaldegrees)\n* `lifetimeFuelConsumed` (Lifetime Fuel Consumed): Represents the vehicle maintained lifetime fuel consumption as reported by the vehicle. (liter)\n* `location` (Location): Represents the current address of the asset.\n* `longitude` (Longitude): Longitude coordinate of the asset's location. (decimaldegrees)\n* `mnfldTemp` (Intake Manifold Temp): Represents the intake manifold temperature. (celsius)\n* `ngFuelPressure` (NG Fuel Pressure): Represents the natural gas fuel pressure. (kilopascal)\n* `odometerEcu` (Odometer (ECU)): Represents the total distance traveled as recorded by the ECU. (meter)\n* `odometerGps` (Odometer (GPS)): Represents the total distance traveled as determined by GPS. (meter)\n* `oilPressure` (Engine Oil Pressure): Represents the oil pressure in the engine. (kilopascal)\n* `phaseAACFrequency` (Phase A AC Frequency): AC frequency for Phase A in Hertz. (hertz)\n* `phaseAAmpsRms` (Phase A Current (RMS)): RMS current for Phase A in amperes. (ampere)\n* `phaseALLVolts` (Phase A Line-to-Line Voltage): Line-to-line voltage for Phase A in volts. (volt)\n* `phaseALNVolts` (Phase A Line-to-Neutral Voltage): Line-to-neutral voltage for Phase A in volts. (volt)\n* `phaseBAmpsRms` (Phase B Current (RMS)): RMS current for Phase B in amperes. (ampere)\n* `phaseBLLVolts` (Phase B Line-to-Line Voltage): Line-to-line voltage for Phase B in volts. (volt)\n* `phaseBLNVolts` (Phase B Line-to-Neutral Voltage): Line-to-neutral voltage for Phase B in volts. (volt)\n* `phaseCAmpsRms` (Phase C Current (RMS)): RMS current for Phase C in amperes. (ampere)\n* `phaseCLLVolts` (Phase C Line-to-Line Voltage): Line-to-line voltage for Phase C in volts. (volt)\n* `phaseCLNVolts` (Phase C Line-to-Neutral Voltage): Line-to-neutral voltage for Phase C in volts. (volt)\n* `powerFactorRatio` (Power Factor Ratio): Represents the power factor ratio. (percent)\n* `rfidCardIdScan` (RFID Card Scan): The card number from RFID Card scans used for identification. When a user taps their RFID card on the reader, this captures the unique card code.\n* `samsaraEngineHours` (Samsara Engine Hours): Samsara's intelligent engine hours calculation that combines ECU data, synthetic calculations, and manual overrides with automatic fallbacks for optimal accuracy across all asset types. (millisecond)\n* `samsaraEngineHoursWithSource` (Samsara Engine Hours with Source): Samsara's intelligent engine hours calculation including detailed source metadata to indicate the origin of the data (ECU, synthetic, or manual override). Useful for debugging and understanding data provenance.\n* `samsaraOdometer` (Samsara Odometer): Samsara automatically pulls odometer readings from a vehicle's engine control unit (ECU). If the reading isn't available and the vehicle is unregulated, you can manually enter the odometer value for maintenance tracking—this value will then update based on GPS trip data. (kilometer)\n* `samsaraSpeed` (Samsara Speed): Samsara's best estimate of the asset speed, combining multiple data sources such as ECU and GPS. (meterspersec)\n* `samsaraSpeedLimit` (Samsara Speed Limit): Speed limit at the location of the asset. (meterspersec)\n* `seatbeltDriver` (Seatbelt (Driver)): Indicates whether the driver's seatbelt is buckled or unbuckled. (values: unbuckled | buckled)\n* `tellTales` (Tell Tale Status): Tell tales status as read from the vehicle.\n* `tirePressuresBackLeft` (Tire pressure, back left): Represents the tire pressure for the back-left tire. (kilopascal)\n* `tirePressuresBackRight` (Tire pressure, back right): Represents the tire pressure for the back-right tire. (kilopascal)\n* `tirePressuresFrontLeft` (Tire pressure, front left): Represents the tire pressure for the front-left tire. (kilopascal)\n* `tirePressuresFrontRight` (Tire pressure, front right): Represents the tire pressure for the front-right tire. (kilopascal)\n* `torquePercent` (Torque): Engine torque as a percentage. (percent)\n* `totalApparentPower` (Total Apparent Power): Total apparent power in volt-amperes. (voltAmpere)\n* `totalEnergyExported` (Total Energy Exported): Represents the total energy exported in kilowatt-hours (kWh). (kilowatthour)\n* `totalReactivePower` (Total Reactive Power): Total reactive power in volt-amperes reactive. (voltAmpereReactive)\n* `totalRealPower` (Total Real Power): Total real power in watts. (watt)\n\n</details>\n\n<details>\n<summary><strong>levelMonitoring</strong></summary>\n\n* `fillCriticality` (Fill Level Criticality): Indicates if the state of the fill level is critical. (values: normal | criticallyHigh | criticallyLow)\n* `fillMass` (Fill Mass): Mass of material in the vessel. (kilogram)\n* `fillMassAvailableCapacity` (Fill Mass Available Capacity): Available mass to be filled in the vessel. (kilogram)\n* `fillMassEgress` (Fill Mass Out): Mass negative change in the vessel. (kilogram)\n* `fillMassIngress` (Fill Mass In): Mass positive change in the vessel. (kilogram)\n* `fillPercent` (Fill Level Percent): Fill level of the vessel as a percentage full. (percent)\n* `fillVolume` (Fill Volume): Volume of material in the vessel. (liter)\n* `fillVolumeAvailableCapacity` (Fill Volume Available Capacity): Available volume to be filled in the vessel. (liter)\n* `fillVolumeEgress` (Fill Volume Out): Volume negative change in the vessel. (liter)\n* `fillVolumeIngress` (Fill Volume In): Volume positive change in the vessel. (liter)\n* `fluidLevelStatus` (Battery Water Level): The status of the battery's water level. Will be OK or LOW. (values: noData | ok | low)\n* `remoteSensingDistance` (Sensor distance measurement): Distance measured by remote sensing device (meter)\n* `smoothedFillMass` (Smoothed Fill Mass): Algorithm smoothed mass value in the vessel. (kilogram)\n* `smoothedFillVolume` (Smoothed Fill Volume): Algorithm smoothed volume value in the vessel. (liter)\n* `totalCapacityMass` (Total Capacity Mass): Total mass capacity of the vessel. (kilogram)\n* `totalCapacityVolume` (Total Capacity Volume): Total volume capacity of the vessel. (liter)\n\n</details>\n\n<details>\n<summary><strong>obd</strong></summary>\n\n* `accDistanceAlertSignal` (ACC Distance Alert): Distance Alert Signal from the Adaptive Cruise Control system. (values: notActive | active)\n* `adaptiveCruiseControlMode` (ACC Mode): Current mode of the Adaptive Cruise Control System. (values: off | speedControlActive | distanceControlActive | overtakeMode | holdMode | finishMode | disabledOrError)\n* `aebsDriverActivationDemand` (AEBS Activation): Whether Advanced Emergency Braking is enabled or disabled by the driver. (values: deactivated | activated)\n* `cruiseControlSetSpeed` (Cruise Control Set Speed): Driver's set speed for the cruise control system. (kmperhr)\n* `cruiseControlSwitch` (Cruise Control Switch): The state of the cruise control switch. (values: off | on | error)\n* `ecuSpeed` (ECU Speed): Speed read from the asset's OBD port. (kmperhr)\n* `emergencyBrakingAebsState` (AEBS State (Collision)): State of the Emergency Braking System for Forward Collision. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | readyAndActivated | driverOverrides | forwardCollisionWarningActive | forwardCollisionWarningWithBraking | forwardCollisionEmergencyBrakingActive | performanceLimited | error)\n* `forwardCollisionWarningLevel` (AEBS FCW Level): Severity level of the AEBS Forward Collision Warning. (values: noWarning | level1 | level2 | level3 | level4 | level5 | level6 | level7)\n* `forwardCollisionWarningStatus` (ACC FCW Status): Status of the Adaptive Cruise Control Forward Collision Warning system. (values: noWarning | collisionImminent | error)\n* `forwardLaneImagerStatus` (Forward Lane Imager State): State of the Forward Lane Imager. (values: fullyOperational | warmingUp | partiallyBlocked | fullyBlocked | misaligned | viewDegraded | error)\n* `imminentLeftLaneDeparture` (Imminent Left Lane Departure): State of the Imminent Left Lane Departure detection. (values: notImminent | imminent)\n* `imminentRightLaneDeparture` (Imminent Right Lane Departure): State of the Imminent Right Lane Departure detection. (values: notImminent | imminent)\n* `laneCenteringSystemState` (Lane Centering State): State of the Lane Centering System. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | ready | suppressedByOperator | actuating | error)\n* `laneDepartureIndicationStatus` (LDW Indication): State of the Lane Departure Indication system. (values: disabled | enabled)\n* `laneDepartureWarningSystemState` (LDW System State): State of the Lane Departure Warning system. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | ready | warningSuppressed | warningLaneDeparture | error)\n* `laneKeepingAssistSystemState` (LKAS State): State of the Lane Keep Assist System. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | ready | suppressedByOperator | actuating | error)\n* `roadDepartureAebsState` (AEBS State (Lane Departure)): State of the AEBS system for Lane Departure. (values: notReady | temporarilyNotAvailable | deactivatedByDriver | readyAndActivated | driverOverrides | roadDepartureWarningActive | roadDepartureWarningWithBraking | roadDepartureEmergencyBrakingActive | performanceLimited | error)\n* `ropBrakeControlActive` (ROP Brake Control Active): Indicates whether Roll Over Prevention (ROP) has activated brake control. (values: passive | active)\n* `ropEngineControlActive` (ROP Engine Control Active): Indicates whether Roll Over Prevention (ROP) has commanded engine control to be active. (values: passive | active)\n* `tractionControlOverrideSwitch` (Traction Control Override Switch): When the switch is on, the automatic traction control function is disabled by the driver. (values: off | on | error)\n* `turnSignal` (Turn Signal): State of the turn signal switch (blinker). (values: off | left | right)\n* `vdcFullyOperational` (VDC Fully Operational): Indicates whether the Vehicle Dynamic Stability Control (VDC) system is fully operational. (values: notFullyOperational | fullyOperational)\n* `vehicleGear` (Vehicle Gear): The gear of the vehicle that is currently selected. (values: unknown | park | neutral | reverse | drive)\n* `xbrActiveControlMode` (Emergency Self-Braking System Mode): Current mode of the emergency self-braking system. (values: noBrakeDemand | driverBrakeDemand | additionMode | maximumMode | brakeHold)\n* `xbrSystemState` (Emergency Self-Braking System Operational State): State of the emergency self-braking system. (values: fullyOperational | highestPriorityOnly | noRequestsAccepted)\n* `ycBrakeControlActive` (YC Brake Control Active): Indicates whether Yaw Control (YC) has activated brake control. (values: passive | active)\n* `ycEngineControlActive` (YC Engine Control Active): Indicates whether Yaw Control (YC) has commanded engine control to be active. (values: passive | active)\n\n</details>\n\n<details>\n<summary><strong>pressureVesselHealth</strong></summary>\n\n* `pressureVesselBatteryLevelPercentage` (Pressure Vessel Battery Level Percentage): Battery level percentage of the pressure vessel. (percent)\n* `pressureVesselPressure` (Pressure Vessel Pressure): Pressure of the pressure vessel. (kilopascal)\n* `pressureVesselTemperature` (Pressure Vessel Temperature): Temperature of the pressure vessel. (celsius)\n\n</details>\n\n<details>\n<summary><strong>reefer</strong></summary>\n\n* `reeferAlarm` (Reefer Alarms): Array of active alarm codes for the refrigeration unit with metadata\n* `reeferAlarmActive` (TouchPrint Alarm Active): TouchPrint ALM digital output (input configured as Switch). On-device gating ensures this only reports on alarm-configured inputs; see reeferAlarm for OEM alarm codes and reeferAlarmSeverity for severity. (values: inactive | active)\n* `reeferAlarmSeverity` (Reefer Alarm Severity): Highest severity level across active reefer alarms (green, yellow, red, orange) (values: none | green | yellow | red | orange)\n* `reeferAmbientAir` (Reefer Ambient Air Temperature): External environment temperature for the reefer (celsius)\n* `reeferBatteryVoltage` (Reefer Battery Voltage): The voltage of the Refrigeration Unit's battery. (volt)\n* `reeferDefrostZone1` (Reefer Defrost (Zone 1)): Whether the reefer defrost cycle is active in zone 1 (sustained state). On-device gating ensures this only reports on defrost-configured inputs. (values: off | on)\n* `reeferDefrostZone2` (Reefer Defrost (Zone 2)): Whether the reefer defrost cycle is active in zone 2 (sustained state). On-device gating ensures this only reports on defrost-configured inputs. (values: off | on)\n* `reeferDefrostZone3` (Reefer Defrost (Zone 3)): Whether the reefer defrost cycle is active in zone 3 (sustained state). On-device gating ensures this only reports on defrost-configured inputs. (values: off | on)\n* `reeferDoorOpenZone1` (Reefer Door Open (Zone 1)): Status indicating whether the reefer's door (zone 1) is closed or open (values: closed | open)\n* `reeferDoorOpenZone2` (Reefer Door Open (Zone 2)): Status indicating whether the reefer's door (zone 2) is closed or open (values: closed | open)\n* `reeferDoorOpenZone3` (Reefer Door Open (Zone 3)): Status indicating whether the reefer's door (zone 3) is closed or open (values: closed | open)\n* `reeferEngineHours` (Reefer Engine Hours): The total accumulated hours that the Refrigeration Unit has been running on its engine. (hour)\n* `reeferFuelLevel` (Reefer Fuel Level): Refrigeration Unit Fuel Level (%) (percent)\n* `reeferOdometer` (Reefer Odometer): Cumulative travel distance reported by the Refrigeration Unit OEM telematics. (meter)\n* `reeferPowerSource` (Reefer Power Source): The power source of the refrigeration unit (Diesel, Electric or Cryo) (values: engine | electric | cryo)\n* `reeferReturnAirZone1` (Reefer Return Air Temperature (Zone 1)): Return air temperature for the reefer's zone 1 (celsius)\n* `reeferReturnAirZone2` (Reefer Return Air Temperature (Zone 2)): Return air temperature for the reefer's zone 2 (celsius)\n* `reeferReturnAirZone3` (Reefer Return Air Temperature (Zone 3)): Return air temperature for the reefer's zone 3 (celsius)\n* `reeferRunMode` (Reefer Run Mode): The run mode of the refrigeration unit (Continuous or Start/Stop) (values: continuous | startStop)\n* `reeferSetPointZone1` (Reefer Set Point (Zone 1)): Current set point for the reefer's zone 1 (celsius)\n* `reeferSetPointZone2` (Reefer Set Point (Zone 2)): Current set point for the reefer's zone 2 (celsius)\n* `reeferSetPointZone3` (Reefer Set Point (Zone 3)): Current set point for the reefer's zone 3 (celsius)\n* `reeferState` (Reefer State): The on/off state of the refrigeration unit (values: off | active | error | inactive)\n* `reeferStateZone1` (Reefer State (Zone 1)): The on/off state of the refrigeration unit (Zone 1) (values: off | active | error | inactive)\n* `reeferStateZone2` (Reefer State (Zone 2)): The on/off state of the refrigeration unit (Zone 2) (values: off | active | error | inactive)\n* `reeferStateZone3` (Reefer State (Zone 3)): The on/off state of the refrigeration unit (Zone 3) (values: off | active | error | inactive)\n* `reeferSupplyAirZone1` (Reefer Supply Air Temperature (Zone 1)): Supply air temperature for the reefer's zone 1 (celsius)\n* `reeferSupplyAirZone2` (Reefer Supply Air Temperature (Zone 2)): Supply air temperature for the reefer's zone 2 (celsius)\n* `reeferSupplyAirZone3` (Reefer Supply Air Temperature (Zone 3)): Supply air temperature for the reefer's zone 3 (celsius)\n* `reeferTemperatureRecorder1` (Reefer Temperature Recorder (Zone 1)): Temperature recorder reading for reefer zone 1 (celsius)\n* `reeferTemperatureRecorder2` (Reefer Temperature Recorder (Zone 2)): Temperature recorder reading for reefer zone 2 (celsius)\n* `reeferTemperatureRecorder3` (Reefer Temperature Recorder (Zone 3)): Temperature recorder reading for reefer zone 3 (celsius)\n* `reeferTemperatureRecorder4` (Reefer Temperature Recorder (Zone 4)): Temperature recorder reading for reefer zone 4 (celsius)\n* `reeferTemperatureRecorder5` (Reefer Temperature Recorder (Zone 5)): Temperature recorder reading for reefer zone 5 (celsius)\n* `reeferTemperatureRecorder6` (Reefer Temperature Recorder (Zone 6)): Temperature recorder reading for reefer zone 6 (celsius)\n\n</details>\n\n<details>\n<summary><strong>smartTrailer</strong></summary>\n\n* `addressEntry` (Address Entry): Address data from the address entry event\n* `addressExit` (Address Exit): Address data from the address exit event\n* `atisLamp` (Atis Lamp status): Atis lamp on/off status (values: off | on)\n* `cargoFillPercent` (Cargo fill percent): Estimated percentage of the trailer cargo space that is occupied, based on cargo camera images. (percent)\n* `derivedCargoState` (Cargo Status): Indicates if the overall cargo status of the asset is Empty, Partially Empty, Full, or Unknown. (values: unknown | empty | partiallyEmpty | full)\n* `doorClosedStatus` (Door Closed Status): Status indicating whether a door is closed or open (values: open | closed)\n* `doorClosedStatusAdvanced` (Door Closed Status (Advanced)): Status indicating whether a door is closed or open (values: open | closed)\n* `environmentMonitorAmbientTemperature` (Ambient Temperature): Air temperature at the environmental monitor device (built-in sensor). (celsius)\n* `environmentMonitorAmbientTemperatureBLEConnection` (Ambient Temperature (BLE Connection)): Air temperature at the environmental monitor device (built-in sensor) via BLE Connection. (celsius)\n* `environmentMonitorThermistorTemperature` (Thermistor Temperature): Temperature from an external thermistor probe (e.g. cable probe in cargo or reefer). (celsius)\n* `environmentMonitorThermistorTemperatureBLEConnection` (Thermistor Temperature (BLE Connection)): Temperature from an external thermistor probe (e.g. cable probe in cargo or reefer) via BLE Connection. (celsius)\n* `gatewayBatteryStatus` (Gateway Battery Status): Battery status of the gateway based on temperature-compensated voltage threshold. The threshold varies from 3672mV at -40°C to 4579mV at 60°C. (values: ok | low)\n* `gatewayBatteryTemperature` (Gateway Battery Temperature): Internal temperature of the gateway battery in degrees Celsius (celsius)\n* `gatewayBatteryVoltage` (Gateway Battery Voltage): Total battery voltage of the gateway (sum of all 3 cells) in volts (volt)\n* `trailerMovingWithoutPower` (Trailer Moving Without Power): Trailer moving without power status (values: off | on)\n* `trailerVoltage` (Trailer Voltage): Represents the voltage reading off the primary power of the trailer (volt)\n* `validBrakeScore` (Braking Performance Value): Percent score representing trailer braking effectiveness using regression analysis over the past 90 days, guaranteed to have under 3% margin of error. (percent)\n* `widgetBatteryVoltage` (Widget Battery Voltage): Battery voltage level of the widget sensor in millivolts (volt)\n* `widgetBatteryVoltageLow` (Widget Battery Voltage Low): Indicates if widget battery voltage is below 1500mV threshold (values: normal | low)\n* `widgetDisconnect` (Widget Disconnection Status): Connection status between widget and device (values: connected | disconnected)\n\n</details>\n\n<details>\n<summary><strong>tireCondition</strong></summary>\n\n* `axle1tirefromleft1pressure` (Axle 1 Left Outer Tire Pressure): Pressure of the left outer tire on axle 1. (kilopascal)\n* `axle1tirefromleft1temperature` (Axle 1 Left Outer Tire Temperature): Temperature of the left outer tire on axle 1. (celsius)\n* `axle1tirefromleft2pressure` (Axle 1 Left Inner Tire Pressure): Pressure of the left inner tire on axle 1. (kilopascal)\n* `axle1tirefromleft2temperature` (Axle 1 Left Inner Tire Temperature): Temperature of the left inner tire on axle 1. (celsius)\n* `axle1tirefromleft3pressure` (Axle 1 Right Inner Tire Pressure): Pressure of the right inner tire on axle 1. (kilopascal)\n* `axle1tirefromleft3temperature` (Axle 1 Right Inner Tire Temperature): Temperature of the right inner tire on axle 1. (celsius)\n* `axle1tirefromleft4pressure` (Axle 1 Right Outer Tire Pressure): Pressure of the right outer tire on axle 1. (kilopascal)\n* `axle1tirefromleft4temperature` (Axle 1 Right Outer Tire Temperature): Temperature of the right outer tire on axle 1. (celsius)\n* `axle2tirefromleft1pressure` (Axle 2 Left Outer Tire Pressure): Pressure of the left outer tire on axle 2. (kilopascal)\n* `axle2tirefromleft1temperature` (Axle 2 Left Outer Tire Temperature): Temperature of the left outer tire on axle 2. (celsius)\n* `axle2tirefromleft2pressure` (Axle 2 Left Inner Tire Pressure): Pressure of the left inner tire on axle 2. (kilopascal)\n* `axle2tirefromleft2temperature` (Axle 2 Left Inner Tire Temperature): Temperature of the left inner tire on axle 2. (celsius)\n* `axle2tirefromleft3pressure` (Axle 2 Right Inner Tire Pressure): Pressure of the right inner tire on axle 2. (kilopascal)\n* `axle2tirefromleft3temperature` (Axle 2 Right Inner Tire Temperature): Temperature of the right inner tire on axle 2. (celsius)\n* `axle2tirefromleft4pressure` (Axle 2 Right Outer Tire Pressure): Pressure of the right outer tire on axle 2. (kilopascal)\n* `axle2tirefromleft4temperature` (Axle 2 Right Outer Tire Temperature): Temperature of the right outer tire on axle 2. (celsius)\n* `axle3tirefromleft1pressure` (Axle 3 Left Outer Tire Pressure): Pressure of the left outer tire on axle 3. (kilopascal)\n* `axle3tirefromleft1temperature` (Axle 3 Left Outer Tire Temperature): Temperature of the left outer tire on axle 3. (celsius)\n* `axle3tirefromleft2pressure` (Axle 3 Left Inner Tire Pressure): Pressure of the left inner tire on axle 3. (kilopascal)\n* `axle3tirefromleft2temperature` (Axle 3 Left Inner Tire Temperature): Temperature of the left inner tire on axle 3. (celsius)\n* `axle3tirefromleft3pressure` (Axle 3 Right Inner Tire Pressure): Pressure of the right inner tire on axle 3. (kilopascal)\n* `axle3tirefromleft3temperature` (Axle 3 Right Inner Tire Temperature): Temperature of the right inner tire on axle 3. (celsius)\n* `axle3tirefromleft4pressure` (Axle 3 Right Outer Tire Pressure): Pressure of the right outer tire on axle 3. (kilopascal)\n* `axle3tirefromleft4temperature` (Axle 3 Right Outer Tire Temperature): Temperature of the right outer tire on axle 3. (celsius)\n* `axle4tirefromleft1pressure` (Axle 4 Left Outer Tire Pressure): Pressure of the left outer tire on axle 4. (kilopascal)\n* `axle4tirefromleft1temperature` (Axle 4 Left Outer Tire Temperature): Temperature of the left outer tire on axle 4. (celsius)\n* `axle4tirefromleft2pressure` (Axle 4 Left Inner Tire Pressure): Pressure of the left inner tire on axle 4. (kilopascal)\n* `axle4tirefromleft2temperature` (Axle 4 Left Inner Tire Temperature): Temperature of the left inner tire on axle 4. (celsius)\n* `axle4tirefromleft3pressure` (Axle 4 Right Inner Tire Pressure): Pressure of the right inner tire on axle 4. (kilopascal)\n* `axle4tirefromleft3temperature` (Axle 4 Right Inner Tire Temperature): Temperature of the right inner tire on axle 4. (celsius)\n* `axle4tirefromleft4pressure` (Axle 4 Right Outer Tire Pressure): Pressure of the right outer tire on axle 4. (kilopascal)\n* `axle4tirefromleft4temperature` (Axle 4 Right Outer Tire Temperature): Temperature of the right outer tire on axle 4. (celsius)\n* `axle5tirefromleft1pressure` (Axle 5 Left Outer Tire Pressure): Pressure of the left outer tire on axle 5. (kilopascal)\n* `axle5tirefromleft1temperature` (Axle 5 Left Outer Tire Temperature): Temperature of the left outer tire on axle 5. (celsius)\n* `axle5tirefromleft2pressure` (Axle 5 Left Inner Tire Pressure): Pressure of the left inner tire on axle 5. (kilopascal)\n* `axle5tirefromleft2temperature` (Axle 5 Left Inner Tire Temperature): Temperature of the left inner tire on axle 5. (celsius)\n* `axle5tirefromleft3pressure` (Axle 5 Right Inner Tire Pressure): Pressure of the right inner tire on axle 5. (kilopascal)\n* `axle5tirefromleft3temperature` (Axle 5 Right Inner Tire Temperature): Temperature of the right inner tire on axle 5. (celsius)\n* `axle5tirefromleft4pressure` (Axle 5 Right Outer Tire Pressure): Pressure of the right outer tire on axle 5. (kilopascal)\n* `axle5tirefromleft4temperature` (Axle 5 Right Outer Tire Temperature): Temperature of the right outer tire on axle 5. (celsius)\n* `axle6tirefromleft1pressure` (Axle 6 Left Outer Tire Pressure): Pressure of the left outer tire on axle 6. (kilopascal)\n* `axle6tirefromleft1temperature` (Axle 6 Left Outer Tire Temperature): Temperature of the left outer tire on axle 6. (celsius)\n* `axle6tirefromleft2pressure` (Axle 6 Left Inner Tire Pressure): Pressure of the left inner tire on axle 6. (kilopascal)\n* `axle6tirefromleft2temperature` (Axle 6 Left Inner Tire Temperature): Temperature of the left inner tire on axle 6. (celsius)\n* `axle6tirefromleft3pressure` (Axle 6 Right Inner Tire Pressure): Pressure of the right inner tire on axle 6. (kilopascal)\n* `axle6tirefromleft3temperature` (Axle 6 Right Inner Tire Temperature): Temperature of the right inner tire on axle 6. (celsius)\n* `axle6tirefromleft4pressure` (Axle 6 Right Outer Tire Pressure): Pressure of the right outer tire on axle 6. (kilopascal)\n* `axle6tirefromleft4temperature` (Axle 6 Right Outer Tire Temperature): Temperature of the right outer tire on axle 6. (celsius)\n\n</details>\n\n**Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.\n","in":"query","name":"readingIds","required":true,"schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of entity IDs. If not set, all entities are returned.","in":"query","name":"entityIds","schema":{"type":"string"}},{"description":"A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM)","in":"query","name":"externalIds","schema":{"type":"string"}},{"description":"A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)","in":"query","name":"asOfTime","schema":{"type":"string"}},{"description":"The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor)","in":"query","name":"entityType","required":true,"schema":{"type":"string"}},{"description":"A filter on asset readings based on this comma-separated list of asset types. Only supported when entityType is asset. Valid values are: uncategorized, trailer, equipment, unpowered, vehicle.","in":"query","name":"assetTypes","schema":{"type":"string"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"A filter on the data based on whether the asset is currently associated with a gateway. If set to true, only returns readings for assets that are currently associated with a gateway. If set to false, only returns readings for assets that are not currently associated with a gateway. If not set, no gateway filtering is applied. Only supported when entityType is asset.","in":"query","name":"hasGateway","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingsGetReadingsSnapshotBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Readings Snapshot","tags":["Readings"]}},"/reports/configs":{"get":{"description":"Get report configs created in the organization.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Custom Reports** under the Custom Reports category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getReportConfigs","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of configs to return","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The list of report config IDs to retrieve. Include up to 10 report config IDs. If not provided, all configs will be returned.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportConfigsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get custom report configs","tags":["Beta APIs"]}},"/reports/datasets":{"get":{"description":"Get datasets for custom reports.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Custom Reports** under the Custom Reports category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDatasets","parameters":[{"description":"The list of dataset IDs to retrieve the datasets for. Include up to 10 dataset IDs. If not provided, all datasets will be returned.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of datasets to return.","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetDatasetsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get custom report datasets","tags":["Beta APIs"]}},"/reports/runs":{"get":{"description":"Get custom report runs created by the user.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Custom Reports** under the Custom Reports category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getReportRuns","parameters":[{"description":"The list of report config IDs to retrieve the report runs for. Include up to 10 report config IDs. If not provided, runs for all configs will be returned.","explode":false,"in":"query","name":"reportConfigIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"The list of report run IDs to retrieve the report runs for. Include up to 10 report run IDs. If not provided, all report runs will be returned.","explode":false,"in":"query","name":"ids","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of runs to return.","in":"query","name":"limit","schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get custom report runs","tags":["Beta APIs"]},"post":{"description":"Triggers a new custom report run based on the provided configuration.\n\n <b>Rate limit:</b> 50 requests/hour (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Custom Reports** under the Custom Reports category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createReportRun","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunRequestBody"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunResponseBody"}}},"description":"Accepted response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsCreateReportRunBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a custom report run","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateReportRunRequestBody"}},"/reports/runs/data":{"get":{"description":"Get data for the given custom report run.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Custom Reports** under the Custom Reports category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getReportRunData","parameters":[{"description":"ID of the report run.","in":"query","name":"id","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Maximum number of rows to return.","in":"query","name":"limit","schema":{"default":1024,"maximum":1024,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsGetReportRunDataBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get custom report run data","tags":["Beta APIs"]}},"/ridership/passengers":{"delete":{"description":"Delete a passenger by Samsara UUID or external ID, such as `student:STU-001`. The passenger is no longer returned by get or list requests, and their external IDs are removed. Deleting a passenger that does not exist or has already been deleted returns not found.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteRidershipPassenger","parameters":[{"description":"Samsara UUID of the passenger, or an external ID in `key:value` format, such as `student:STU-001`.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersDeleteRidershipPassengerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a ridership passenger.","tags":["Beta APIs"]},"get":{"description":"List passengers assigned to a tag. External IDs are omitted from the response unless `includeExternalIds=true`.\n\nResults are paginated. A page may contain fewer results than requested. While `pagination.hasNextPage` is true, pass `pagination.endCursor` as `after` to retrieve the next page.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listRidershipPassengers","parameters":[{"description":"Samsara ID of the tag to filter passengers by, such as `5678`. External IDs are not supported here.","in":"query","name":"tagId","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersListRidershipPassengersBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List ridership passengers.","tags":["Beta APIs"]},"post":{"description":"Create a new ridership passenger. The response includes the passenger's external IDs.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createRidershipPassenger","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersCreateRidershipPassengerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a ridership passenger.","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateRidershipPassengerRequestBody"},"put":{"description":"Update a passenger by Samsara UUID or external ID, such as `student:STU-001`. The response includes the passenger's external IDs.\n\nBoth first and last name are required. Include the values you want to keep:\n- Omitted classification, special instructions, identifiers, and external IDs are cleared.\n- Omitted tags are kept. Send `tagIds: []` to remove them.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateRidershipPassenger","parameters":[{"description":"Samsara UUID of the passenger, or an external ID in `key:value` format, such as `student:STU-001`.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersUpdateRidershipPassengerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a ridership passenger.","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateRidershipPassengerRequestBody"}},"/ridership/passengers/{id}":{"get":{"description":"Get a passenger by Samsara UUID or external ID, such as `student:STU-001`. External IDs are omitted from the response unless `includeExternalIds=true`.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getRidershipPassenger","parameters":[{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}},{"description":"Samsara UUID of the passenger, or an external ID in `key:value` format, such as `student:STU-001`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipPassengersGetRidershipPassengerBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a ridership passenger.","tags":["Beta APIs"]}},"/ridership/route-setups":{"delete":{"description":"Remove the route's passenger setup and assignments. The route and passenger records are kept. Deleting a setup that does not exist returns not found.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteRidershipRouteSetup","parameters":[{"description":"The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`.","in":"query","name":"routeId","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsDeleteRidershipRouteSetupBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Delete a ridership route setup.","tags":["Beta APIs"]},"get":{"description":"List route setups associated with the specified ridership account.\n\nResults are paginated. A page may contain fewer results than requested. While `pagination.hasNextPage` is true, pass `pagination.endCursor` as `after` to retrieve the next page.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listRidershipRouteSetups","parameters":[{"description":"The Samsara UUID of the ridership account to list route setups for.","in":"query","name":"accountId","required":true,"schema":{"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsListRidershipRouteSetupsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] List ridership route setups.","tags":["Beta APIs"]},"post":{"description":"Create passenger assignments for an existing Routing API route. If the route already has a setup, use the update endpoint instead.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"createRidershipRouteSetup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsCreateRidershipRouteSetupBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Create a ridership route setup.","tags":["Beta APIs"],"x-codegen-request-body-name":"CreateRidershipRouteSetupRequestBody"},"put":{"description":"Add or update passenger assignments for an existing Routing API route. Creates a setup if none exists. Passengers omitted from the request keep their assignments; an empty passenger list leaves existing assignments unchanged.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"updateRidershipRouteSetup","parameters":[{"description":"The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`.","in":"query","name":"routeId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsUpdateRidershipRouteSetupBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update a ridership route setup.","tags":["Beta APIs"],"x-codegen-request-body-name":"UpdateRidershipRouteSetupRequestBody"}},"/ridership/route-setups/{routeId}":{"get":{"description":"Get the passenger assignments for a route by Samsara route ID or external ID, such as `extRoute:WB-12`.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Ridership** under the Ridership category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getRidershipRouteSetup","parameters":[{"description":"The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`.","in":"path","name":"routeId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidershipRouteSetupsGetRidershipRouteSetupBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Get a ridership route setup.","tags":["Beta APIs"]}},"/route-events/stream":{"get":{"description":"Subscribes to a feed of immutable, append-only updates for routes. The initial request to this feed endpoint returns a cursor, which can be used in subsequent requests to fetch events on all routes that occurred after the last retrieved event. An initial request (with empty after and startTime parameters) will return events from the past 24 hours.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getRouteEventsStream","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"A start time in RFC 3339 format. Defaults to 24 hours ago if not provided. Millisecond precision and timezones are supported. (Examples: 2025-07-01T19:08:25Z, 2025-07-01T19:08:25.455Z, OR 2025-07-01T14:00:12-04:00). Cannot be more than 7 days in the past.","in":"query","name":"startTime","schema":{"type":"string"}},{"description":"The limit for how many events will be in the response. Default and max for this value is 200 events.","in":"query","name":"limit","schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Optional boolean indicating whether to return external IDs on supported entities","in":"query","name":"includeExternalIds","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesGetRouteEventsStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get route events stream","tags":["Route Events"]}},"/safety-events":{"get":{"description":"This endpoint will return details for the specified safety events based on the parameters passed in. Results are paginated.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getSafetyEventsV2","parameters":[{"description":"Required string of comma separated Safety Event IDs. Unique Samsara IDs (uuid) of the safety event.","explode":false,"in":"query","name":"safetyEventIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Indicates whether or not to return expanded “asset” data","in":"query","name":"includeAsset","schema":{"default":false,"type":"boolean"}},{"description":"Indicates whether or not to return expanded “driver” data","in":"query","name":"includeDriver","schema":{"default":false,"type":"boolean"}},{"description":"Indicates whether or not to return events that are captured by devices with only a Vehicle Gateway (VG) installed.","in":"query","name":"includeVgOnlyEvents","schema":{"default":false,"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2ResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2UnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2NotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2MethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2ContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2TooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2InternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2NotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2BadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2ServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2GatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2BadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Safety Events","tags":["Safety"]}},"/safety-events/batch":{"patch":{"description":"Asynchronously update eventState, context labels, and/or behavior labels for one or more Safety Events. Returns 202 Accepted immediately. State changes propagate asynchronously; use GET /safety-events to confirm updated state. If any safetyEventIds are not found, the entire request fails with 404 before any mutations are executed.If both eventState and label fields are provided, the two mutations execute serially and are not transactional — a label mutation failure will not roll back a successful state change.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchSafetyEventsV2Batch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchResponseBody"}}},"description":"Accepted response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2PatchSafetyEventsV2BatchBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"[beta] Update Safety Events","tags":["Beta APIs"],"x-codegen-request-body-name":"PatchSafetyEventsV2BatchRequestBody"}},"/safety-events/stream":{"get":{"description":"This endpoint will return all safety events associated with your organization based on the parameters passed in. To get core endpoint data, select Read Safety Events & Scores under the Safety & Cameras category when creating or editing an API token. Read Camera Media permissions required to get Safety Event video media via this endpoint. If you include an endTime, the endpoint will return data up until that point. If you do not include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. Results are paginated.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getSafetyEventsV2Stream","parameters":[{"description":"RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` or the event detection time (`startMs`) depending on the `queryByTimeField` parameter.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"RFC 3339 timestamp. If not provided and filtering by `updatedAtTime` then the endpoint behaves as an unending feed of changes. If endTime is set the same as startTime, the most recent data point before that time will be returned per asset. Value is compared against `updatedAtTime` or the event detection time (`startMs`) depending on the `queryByTimeField` parameter.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Optional string that decides which timestamp to compare against the provided time range. `updatedAtTime` filters by when the Safety Event was last updated in Samsara. `createdAtTime` filters by when the Safety Event was detected (`startMs` in the response).  Valid values: `updatedAtTime`, `createdAtTime`","in":"query","name":"queryByTimeField","schema":{"default":"updatedAtTime","enum":["updatedAtTime","createdAtTime"],"type":"string"}},{"description":"Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Limit of 2000 asset IDs.","explode":false,"in":"query","name":"assetIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated driver IDs. If driver ID is present, events for the specified driver(s) will be returned. Limit of 2000 driver IDs.","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated tag IDs. If tag ID is present, events for the specified tag(s) will be returned. Limit of 2000 tag IDs.","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated coach IDs to filter events assigned to a particular coach. Limit of 2000 coach IDs.","explode":false,"in":"query","name":"assignedCoaches","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated values to filter behavior labels. Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HeavySpeeding`, `HosViolation`, `Idling`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `RanRedLight`, `Reversing`, `RollingStop`, `RolloverProtection`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VulnerableRoadUserCollisionWarning`, `YawControl`","explode":false,"in":"query","name":"behaviorLabels","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated values to filter event states. Valid values: `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized`","explode":false,"in":"query","name":"eventStates","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Indicates whether or not to return expanded “asset” data","in":"query","name":"includeAsset","schema":{"default":false,"type":"boolean"}},{"description":"Indicates whether or not to return expanded “driver” data","in":"query","name":"includeDriver","schema":{"default":false,"type":"boolean"}},{"description":"Indicates whether or not to return events that are captured by devices with only a Vehicle Gateway (VG) installed.","in":"query","name":"includeVgOnlyEvents","schema":{"default":false,"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyEventsV2GetSafetyEventsV2StreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Safety Events Stream","tags":["Safety"]}},"/safety-scores/drivers":{"get":{"description":"Get safety scores and overall risk factors for drivers.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getDriverSafetyScores","parameters":[{"description":"End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Comma separated list of driver IDs to filter by. Include up to 100 IDs. Defaults to all drivers.","explode":false,"in":"query","name":"driverIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetDriverSafetyScoresBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get driver scores","tags":["Safety Scores"]}},"/safety-scores/tag-group":{"get":{"description":"Get a combined safety score and risk factors for a set of tags.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTagGroupSafetyScores","parameters":[{"description":"End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Whether to calculate tag score with either all drivers or all vehicles in the tag. Deactivated drivers and unassigned trips are not included when calculating scores for drivers.   Valid values: `driver`, `vehicle`","in":"query","name":"scoreType","required":true,"schema":{"enum":["driver","vehicle"],"type":"string"}},{"description":"Comma separated list of tag IDs to filter by. Include up to 100 IDs. Defaults to all tags.","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagGroupSafetyScoresBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get tags combined score","tags":["Safety Scores"]}},"/safety-scores/tags":{"get":{"description":"Get safety scores and overall risk factors for tags.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTagSafetyScores","parameters":[{"description":"End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Whether to calculate tag score with either all drivers or all vehicles in the tag. Deactivated drivers and unassigned trips are not included when calculating scores for drivers.   Valid values: `driver`, `vehicle`","in":"query","name":"scoreType","required":true,"schema":{"enum":["driver","vehicle"],"type":"string"}},{"description":"Comma separated list of tag IDs to filter by. Include up to 100 IDs. Defaults to all tags.","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetTagSafetyScoresBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get tag scores","tags":["Safety Scores"]}},"/safety-scores/vehicles":{"get":{"description":"Get safety scores and overall risk factors for vehicles.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getVehicleSafetyScores","parameters":[{"description":"End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.","in":"query","name":"endTime","required":true,"schema":{"type":"string"}},{"description":"Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"Comma separated list of vehicle IDs to filter by. Include up to 100 IDs. Defaults to all vehicles.","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyScoresGetVehicleSafetyScoresBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get vehicle scores","tags":["Safety Scores"]}},"/speeding-intervals/stream":{"get":{"description":"This endpoint will return all speeding intervals associated with all trips that have been collected for your organization based on the time parameters passed in. Only completed trips are included. Trips with no speeding intervals detected will be returned with an empty list of intervals. Results are paginated.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Speeding Intervals** under the Speeding Intervals category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getSpeedingIntervals","parameters":[{"description":"Comma-separated list of asset IDs. Include up to 50 asset IDs.","explode":false,"in":"query","name":"assetIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"RFC 3339 timestamp which is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter. If not provided then the endpoint behaves as an unending feed of changes.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Decide which timestamp the `startTime` and `endTime` are compared to.  Valid values: `updatedAtTime`, `tripStartTime`","in":"query","name":"queryBy","schema":{"default":"updatedAtTime","enum":["updatedAtTime","tripStartTime"],"type":"string"}},{"description":"Indicates whether or not to return expanded “asset” data","in":"query","name":"includeAsset","schema":{"default":false,"type":"boolean"}},{"description":"Indicates whether or not to return trip's driver id","in":"query","name":"includeDriverId","schema":{"default":false,"type":"boolean"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Optional string of comma-separated severity levels to filter speeding intervals by. Valid values:  “light”, ”moderate”, ”heavy”, “severe”. This filter does not exclude trips that have no speeding intervals.","explode":false,"in":"query","name":"severityLevels","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedingIntervalsGetSpeedingIntervalsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Speeding Intervals","tags":["Speeding Intervals"]}},"/tags":{"get":{"description":"Return all of the tags for an organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Tags** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listTags","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTagsResponse"}}},"description":"List of tags."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all tags","tags":["Tags"]},"post":{"description":"Create a new tag for the organization. This may include up to 20,000 tagged entities. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Tags** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createTag","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}},"description":"Newly created tag object, including the new tag ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create a tag","tags":["Tags"],"x-codegen-request-body-name":"tag"}},"/tags/{id}":{"delete":{"description":"Permanently deletes a tag. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Tags** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteTag","parameters":[{"description":"ID of the Tag. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`. Automatically populated external IDs are prefixed with `samsara.`. For example, `samsara.name:ELD-exempt`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Delete a tag","tags":["Tags"]},"get":{"description":"Fetch a tag by id. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Tags** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getTag","parameters":[{"description":"ID of the Tag. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`. Automatically populated external IDs are prefixed with `samsara.`. For example, `samsara.name:ELD-exempt`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}},"description":"The tag corresponding to request id."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve a tag","tags":["Tags"]},"patch":{"description":"Update an existing tag. **Note** this implementation of patch uses [the JSON merge patch](https://tools.ietf.org/html/rfc7396) proposed standard. \n\n This means that any fields included in the patch request will _overwrite_ fields which exist on the target resource. \n\n For arrays, this means any array included in the request will _replace_ the array that exists at the specified path, it will not _add_ to the existing array. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Tags** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"patchTag","parameters":[{"description":"ID of the Tag. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`. Automatically populated external IDs are prefixed with `samsara.`. For example, `samsara.name:ELD-exempt`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTagRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}},"description":"Returns updated tag object."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a tag","tags":["Tags"],"x-codegen-request-body-name":"tag"},"put":{"description":"Update a tag with a new name and new members. This API call would replace all old members of a tag with new members specified in the request body. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Tags** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"replaceTag","parameters":[{"description":"ID of the Tag. This can either be the Samsara-provided ID or an external ID. External IDs are customer-specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `crmId:abc123`. Automatically populated external IDs are prefixed with `samsara.`. For example, `samsara.name:ELD-exempt`.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceTagRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}},"description":"The updated tag data."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a tag","tags":["Tags"],"x-codegen-request-body-name":"tag"}},"/training-assignments":{"delete":{"description":"This endpoint supports batch deletion operations. The response does not indicate which specific deletions, if any, have failed. On a successful deletion or partial failure, a ‘204 No Content’ status is returned. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Training Assignments** under the Training Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteTrainingAssignments","parameters":[{"description":"String of comma separated assignments IDs. Max value for this value is 100 objects. Example: `ids=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsDeleteTrainingAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete training assignments.","tags":["TrainingAssignments"]},"patch":{"description":"Update training assignments. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Training Assignments** under the Training Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchTrainingAssignments","parameters":[{"description":"String of comma separated assignments IDs. Max value for this value is 100 objects. Example: `ids=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Due date of the training assignment in RFC 3339 format. Millisecond precision and timezones are supported.","in":"query","name":"dueAtTime","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPatchTrainingAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update training assignments.","tags":["TrainingAssignments"]},"post":{"description":"Create training assignments. Existing assignments will remain unchanged. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Training Assignments** under the Training Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postTrainingAssignments","parameters":[{"description":"String for the course ID.","in":"query","name":"courseId","required":true,"schema":{"type":"string"}},{"description":"Due date of the training assignment in RFC 3339 format. Millisecond precision and timezones are supported.","in":"query","name":"dueAtTime","required":true,"schema":{"type":"string"}},{"description":"String of comma separated learner IDs using the format `driver-<id>` or `user-<id>`. Training assignments for the specified course ID and learner(s) will be created. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,user-46282156`. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.","explode":false,"in":"query","name":"learnerIds","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsPostTrainingAssignmentsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create training assignments.","tags":["TrainingAssignments"]}},"/training-assignments/stream":{"get":{"description":"Returns all training assignments data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, the API will continue to poll with the pagination cursor that gets returned on every call. The hasNextPage response value will be true if there is no endTime specified and endCursor is nonempty. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Training Assignments** under the Training Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrainingAssignmentsStream","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":" A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":" An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Optional string of comma separated learner IDs. Learner IDs use the format `driver-<id>` or `user-<id>`. If learner ID is present, training assignments for the specified learner(s) will be returned. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,user-46282156`. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.","explode":false,"in":"query","name":"learnerIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`","explode":false,"in":"query","name":"courseIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated values. If status is present, training assignments for the specified status(s) will be returned. Valid values: \"notStarted\", \"inProgress\", \"completed\". Defaults to returning all courses.","explode":false,"in":"query","name":"status","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional boolean value. If present, training assignments for the specified overdue status will be returned. Valid values: true, false. Defaults to returning all assignments.","in":"query","name":"isOverdue","schema":{"type":"boolean"}},{"description":"Optional string of comma separated category IDs. If category ID is present, training assignments for the specified category ID(s) will be returned. Max value for this value is 100 objects. Example: `categoryIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`","explode":false,"in":"query","name":"categoryIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingAssignmentsGetTrainingAssignmentsStreamBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a stream of filtered training assignments.","tags":["TrainingAssignments"]}},"/training-courses":{"get":{"description":"Returns all training courses data. Results are paginated. \n Courses in the ‘draft’ status are excluded from the data returned by this endpoint.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Training Courses** under the Training Courses category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrainingCourses","parameters":[{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`","explode":false,"in":"query","name":"courseIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated course category IDs. If courseCategoryId is present, training courses for the specified course category(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses.  Example: `categoryIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`","explode":false,"in":"query","name":"categoryIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Optional string of comma separated values. If status is present, training courses with the specified status(s) will be returned. Valid values: “published”, “deleted”, “archived”. Defaults to returning all courses.","explode":false,"in":"query","name":"status","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCoursesGetTrainingCoursesBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get a list of filtered training courses.","tags":["TrainingCourses"]}},"/trips/stream":{"get":{"description":"This endpoint will return trips that have been collected for your organization based on the time parameters passed in. Results are paginated.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trips** under the Trips category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getTrips","parameters":[{"description":"Indicates whether or not to return expanded “asset” data","in":"query","name":"includeAsset","schema":{"default":false,"type":"boolean"}},{"description":"Filters trips based on a specific completion status  Valid values: `inProgress`, `completed`, `all`","in":"query","name":"completionStatus","schema":{"default":"all","enum":["inProgress","completed","all"],"type":"string"}},{"description":"RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter.","in":"query","name":"startTime","required":true,"schema":{"type":"string"}},{"description":"RFC 3339 timestamp which is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter. If not provided then the endpoint behaves as an unending feed of changes.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"Decide which timestamp the `startTime` and `endTime` are compared to.  Valid values: `updatedAtTime`, `tripStartTime`","in":"query","name":"queryBy","schema":{"default":"updatedAtTime","enum":["updatedAtTime","tripStartTime"],"type":"string"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Comma-separated list of asset IDs. Include up to 50 asset IDs.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsGetTripsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Get Trips Stream","tags":["Trips"]}},"/user-roles":{"get":{"description":"Returns a list of all user roles in an organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Users** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listUserRoles","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUserRolesResponse"}}},"description":"List all user roles."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all user roles","tags":["Users"]}},"/users":{"get":{"description":"Returns a list of all users in an organization. Users that have expired access will not be returned. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Users** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"listUsers","parameters":[{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"format":"int64","maximum":512,"minimum":1,"type":"integer"}},{"description":"If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersResponse"}}},"description":"List all users."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"List all users","tags":["Users"]},"post":{"description":"Add a user to the organization. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Users** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"description":"The user to create.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}},"description":"Newly created user object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Create a user","tags":["Users"],"x-codegen-request-body-name":"user"}},"/users/{id}":{"delete":{"description":"Delete the given user. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Users** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"deleteUser","parameters":[{"description":"Unique identifier for the user.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardDeleteResponse"}}},"description":"A successful DELETE response is a 204 with no content."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Delete a user","tags":["Users"]},"get":{"description":"Get a specific user's information. Users that have expired access will not be returned. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Users** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getUser","parameters":[{"description":"Unique identifier for the user.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}},"description":"Returns the specified user."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Retrieve a user","tags":["Users"]},"patch":{"description":"Update a specific user's information. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Users** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"updateUser","parameters":[{"description":"Unique identifier for the user.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}},"description":"Updates to the user.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}},"description":"Updated user object with ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/standardErrorResponse"}}},"description":"Error response"}},"summary":"Update a user","tags":["Users"],"x-codegen-request-body-name":"user"}},"/v1/fleet/assets":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/listassets) instead. The endpoint will continue to function as documented.** \n\n Fetch all powered and unpowered equipment. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getAllAssets","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_1"}}},"description":"List of assets."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"[Legacy] List all assets","tags":["Legacy"]}},"/v1/fleet/assets/locations":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch current locations of all assets. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getAllAssetCurrentLocations","parameters":[{"description":"Pagination parameter indicating the cursor position to continue returning results after. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'endingBefore' parameter.","in":"query","name":"startingAfter","schema":{"type":"string"}},{"description":"Pagination parameter indicating the cursor position to return results before. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'startingAfter' parameter.","in":"query","name":"endingBefore","schema":{"type":"string"}},{"description":"Pagination parameter indicating the number of results to return in this request. Used in conjunction with either 'startingAfter' or 'endingBefore'.","in":"query","name":"limit","schema":{"format":"int64","type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_2"}}},"description":"List of assets and their current locations."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"List current location for all assets","tags":["Assets"]}},"/v1/fleet/assets/reefers":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetches all reefers and reefer-specific stats. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getAssetsReefers","parameters":[{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Pagination parameter indicating the cursor position to continue returning results after. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'endingBefore' parameter.","in":"query","name":"startingAfter","schema":{"type":"string"}},{"description":"Pagination parameter indicating the cursor position to return results before. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'startingAfter' parameter.","in":"query","name":"endingBefore","schema":{"type":"string"}},{"description":"Pagination parameter indicating the number of results to return in this request. Used in conjunction with either 'startingAfter' or 'endingBefore'.","in":"query","name":"limit","schema":{"format":"int64","type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_3"}}},"description":"All org reefers and reefer-specific details."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"List stats for all reefers","tags":["Assets"]}},"/v1/fleet/assets/{assetId}/locations":{"get":{"description":"<n class=\"warning\">\n<nh>\n<i class=\"fa fa-exclamation-circle\"></i>\nThis endpoint is still on our legacy API.\n</nh>\n</n>\n\nList historical locations for a given asset.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getAssetLocation","parameters":[{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.","in":"query","name":"startMs","schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},{"description":"Samsara asset ID.","in":"path","name":"assetId","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLocationsGetAssetLocationBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List historical locations for a given asset","tags":["Assets"]}},"/v1/fleet/assets/{assetId}/reefer":{"get":{"description":"Fetch the reefer-specific stats of an asset.\n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getAssetReefer","parameters":[{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"ID of the asset. Must contain only digits 0-9.","in":"path","name":"assetId","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsGetAssetReeferBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List stats for a given reefer","tags":["Assets"]}},"/v1/fleet/assets/{asset_id}/locations":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nList historical locations for a given asset. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getAssetLocation","parameters":[{"description":"ID of the asset. Must contain only digits 0-9.","in":"path","name":"asset_id","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AssetLocationResponse"}}},"description":"Asset location details."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"List historical locations for a given asset","tags":["Assets"]}},"/v1/fleet/assets/{asset_id}/reefer":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch the reefer-specific stats of an asset. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getAssetReefer","parameters":[{"description":"ID of the asset. Must contain only digits 0-9.","in":"path","name":"asset_id","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AssetReeferResponse"}}},"description":"Reefer-specific asset details."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"List stats for a given reefer","tags":["Assets"]}},"/v1/fleet/dispatch/routes/{route_id_or_external_id}":{"delete":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nDelete a dispatch route and its associated jobs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1deleteDispatchRouteById","parameters":[{"description":"ID of the route. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: `key:value`. For example, `payrollId:ABFS18600`","in":"path","name":"route_id_or_external_id","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/inline_object","content":{"application/json":{"schema":{"properties":{"apply_to_future_routes":{"description":"This is only for a recurring route.  If set to true, delete all following runs of the route.  If set to false, only delete the current route.","example":true,"type":"boolean"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{},"description":"Successfully deleted the dispatch route. No response body is returned."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Delete a route","tags":["Routes"],"x-codegen-request-body-name":"applyToFutureRoutes"}},"/v1/fleet/drivers/{driverId}/safety/score":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch the safety score for the driver.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getDriverSafetyScore","parameters":[{"description":"ID of the driver. Must contain only digits 0-9.","in":"path","name":"driverId","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs. Total duration (endMs - startMs) must be greater than or equal to 1 hour.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs. Total duration (endMs - startMs) must be greater than or equal to 1 hour.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1DriverSafetyScoreResponse"}}},"description":"Safety score details."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch driver safety score","tags":["Safety"]}},"/v1/fleet/drivers/{driver_id}/hos/duty_status":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nSet an individual driver’s current duty status to 'On Duty' or 'Off Duty'.\n\n To ensure compliance with the ELD Mandate, only  authenticated drivers can make direct duty status changes on their own logbook. Any system external to the Samsara Driver App using this endpoint to trigger duty status changes must ensure that such changes are only triggered directly by the driver in question and that the driver has been properly authenticated. This endpoint should not be used to algorithmically trigger duty status changes nor should it be used by personnel besides the driver to trigger duty status changes on the driver’s behalf. Carriers and their drivers are ultimately responsible for maintaining accurate logs and should confirm that their use of the endpoint is compliant with the ELD Mandate. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write ELD Hours of Service (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"setCurrentDutyStatus","parameters":[{"description":"ID of the driver for whom the duty status is being set.","in":"path","name":"driver_id","required":true,"schema":{"format":"int64","type":"integer"}}],"requestBody":{"$ref":"#/components/requestBodies/inline_object_1","content":{"application/json":{"schema":{"properties":{"duty_status":{"description":"Duty status to set the driver to. The only supported values are 'ON_DUTY' and 'OFF_DUTY'.","example":"ON_DUTY","type":"string"},"location":{"description":"Location to associate the duty status change with.","example":"Loading dock","type":"string"},"remark":{"description":"Remark to associate the duty status change with.","example":"Beginning On Duty Shift","type":"string"},"status_change_at_ms":{"description":"Timestamp that the duty status will begin at specified in milliseconds UNIX time. Defaults to the current time if left blank. This can only be set to up to 8 hours in the past.","example":1580834793568,"format":"int64","type":"number"},"vehicle_id":{"description":"Vehicle ID to associate the duty status change with.","example":1234,"format":"int64","type":"number"}},"required":["duty_status"],"type":"object"}}},"required":false},"responses":{"200":{"content":{},"description":"Successfully changed duty status. No response body is returned."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Set a duty status for a specific driver","tags":["Hours of Service"],"x-codegen-request-body-name":"dutyStatusParams"}},"/v1/fleet/hos_authentication_logs":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet the HOS (hours of service) signin and signout logs for the specified driver. The response includes 4 fields that are now deprecated.\n\n**Note:** If data is still being uploaded from the Samsara Driver App, it may not be completely reflected in the response from this endpoint. The best practice is to wait a couple of days before querying this endpoint to make sure that all data from the Samsara Driver App has been uploaded. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read ELD Hours of Service (US)** under the Compliance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getFleetHosAuthenticationLogs","parameters":[{"description":"Driver ID to query.","in":"query","name":"driverId","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Beginning of the time range, specified in milliseconds UNIX time.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"End of the time range, specified in milliseconds UNIX time.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1HosAuthenticationLogsResponse"}}},"description":"HOS authentication logs for the specified driver."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get HOS signin and signout","tags":["Hours of Service"]}},"/v1/fleet/locations":{"get":{"description":"Get current location of vehicles.\n\n <b>Rate limit:</b> 50 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Vehicle Statistics** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getFleetLocations","parameters":[{"description":"Pagination parameter indicating the cursor position to continue returning results after. Used in conjunction with the 'limit' parameter.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Pagination parameter indicating the number of results to return in this request. Used in conjunction with 'after'.","in":"query","name":"limit","schema":{"maximum":512,"minimum":1,"type":"integer"}},{"description":"A comma-separated list of vehicle IDs. Example: `vehicleIds=1000,1001`","explode":false,"in":"query","name":"vehicleIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"A comma-separated list of tag IDs. Example: `tagIds=1000,1001`","explode":false,"in":"query","name":"tagIds","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetLocationsGetFleetLocationsBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"/fleet/locations","tags":["Fleet"]}},"/v1/fleet/maintenance/list":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet list of the vehicles with any engine faults or check light data. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read DVIRs** under the Maintenance category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getFleetMaintenanceList","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_4"}}},"description":"List of vehicles and maintenance information about each."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get vehicles with engine faults or check lights","tags":["Maintenance"]}},"/v1/fleet/messages":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet all messages. \n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Messages** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getMessages","parameters":[{"description":"Time in unix milliseconds that represents the end of time range of messages to return. Used in combination with durationMs. Defaults to now.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},{"description":"Time in milliseconds that represents the duration before endMs to query. Defaults to 24 hours.","in":"query","name":"durationMs","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_5"}}},"description":"Returns the fetched messages from most recently sent to least recently sent."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get all messages.","tags":["Messages"]},"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nSend a message to a list of driver ids. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Messages** under the Driver Workflow category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1createMessages","requestBody":{"$ref":"#/components/requestBodies/inline_object_2","content":{"application/json":{"schema":{"properties":{"driverIds":{"description":"IDs of the drivers for whom the messages are sent to.","example":[111,222,333],"items":{"example":555,"format":"int64","type":"number"},"type":"array"},"text":{"description":"The text sent in the message. Max 2500 characters allowed.","example":"This is a message.","type":"string"}},"required":["driverIds","text"],"type":"object"}}},"description":"Text to send to a list of driverIds.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_6"}}},"description":"Returns the created messages."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Send a message to a list of driver ids.","tags":["Messages"],"x-codegen-request-body-name":"createMessages"}},"/v1/fleet/trailers/assignments":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch trailer assignment data for all trailers in your organization. \n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getAllTrailerAssignments","parameters":[{"description":"Timestamp in Unix epoch miliseconds representing the start of the period to fetch. Omitting both startMs and endMs only returns current assignments.","in":"query","name":"startMs","schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in Unix epoch miliseconds representing the end of the period to fetch. Omitting endMs sets endMs as the current time","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}},{"description":"Pagination parameter indicating the number of results to return in this request. Used in conjunction with either 'startingAfter' or 'endingBefore'.","in":"query","name":"limit","schema":{"format":"int64","type":"number"}},{"description":"Pagination parameter indicating the cursor position to continue returning results after. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'endingBefore' parameter.","in":"query","name":"startingAfter","schema":{"type":"string"}},{"description":"Pagination parameter indicating the cursor position to return results before. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'startingAfter' parameter.","in":"query","name":"endingBefore","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_7"}}},"description":"Returns trailer assignment data for all trailers in your organization"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"List trailer assignments for all trailers","tags":["Trailer Assignments"]}},"/v1/fleet/trailers/{trailerId}/assignments":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch trailer assignment data for a single trailer. \n\n <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getFleetTrailerAssignments","parameters":[{"description":"ID of trailer. Must contain only digits 0-9.","in":"path","name":"trailerId","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in Unix epoch milliseconds representing the start of the period to fetch. Omitting both startMs and endMs only returns current assignments.","in":"query","name":"startMs","schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in Unix epoch milliseconds representing the end of the period to fetch. Omitting endMs sets endMs as the current time","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1TrailerAssignmentsResponse"}}},"description":"Returns trailer assignment data for a single trailer"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"List trailer assignments for a given trailer","tags":["Trailer Assignments"]}},"/v1/fleet/trips":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet historical trips data for specified vehicle. This method returns a set of historical trips data for the specified vehicle in the specified time range. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Vehicle Trips** under the Vehicles category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getFleetTrips","parameters":[{"description":"Vehicle ID to query.","in":"query","name":"vehicleId","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Beginning of the time range, specified in milliseconds UNIX time. Limited to a 90 day window with respect to startMs and endMs","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"End of the time range, specified in milliseconds UNIX time.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1TripResponse"}}},"description":"List of trips taken by the requested vehicle within the specified timeframe. Ongoing trips will be returned with 9223372036854775807 as their endMs."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get vehicle trips","tags":["Trips"]}},"/v1/fleet/vehicles/{vehicleId}/safety/harsh_event":{"get":{"description":"**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** > 🚧 This endpoint is still on our legacy API.\n\nFetch harsh event details for a vehicle. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getVehicleHarshEvent","parameters":[{"description":"ID of the vehicle. Must contain only digits 0-9.","in":"path","name":"vehicleId","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the timestamp of a harsh event.","in":"query","name":"timestamp","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VehicleHarshEventResponse"}}},"description":"Harsh event details."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"[legacy] Fetch harsh events","tags":["Legacy APIs"]}},"/v1/fleet/vehicles/{vehicleId}/safety/score":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch the safety score for the vehicle. \n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getVehicleSafetyScore","parameters":[{"description":"ID of the vehicle. Must contain only digits 0-9.","in":"path","name":"vehicleId","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs. Total duration (endMs - startMs) must be greater than or equal to 1 hour.","in":"query","name":"startMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs. Total duration (endMs - startMs) must be greater than or equal to 1 hour.","in":"query","name":"endMs","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VehicleSafetyScoreResponse"}}},"description":"Safety score details."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch vehicle safety scores","tags":["Safety"]}},"/v1/industrial/vision/cameras":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch all cameras. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getCameras","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VisionCamerasResponse"}}},"description":"Returns details about a camera."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch industrial cameras","tags":["Industrial"]}},"/v1/industrial/vision/cameras/{camera_id}/programs":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch configured programs on the camera. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getVisionProgramsByCamera","parameters":[{"description":"The camera_id should be valid for the given accessToken.","in":"path","name":"camera_id","required":true,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ProgramsForTheCameraResponse"}}},"description":"Returns programs configured on the camera."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch industrial camera programs","tags":["Industrial"]}},"/v1/industrial/vision/run/camera/{camera_id}":{"get":{"description":"Fetch the latest run for a camera or program by default. If startedAtMs is supplied, fetch the specific run that corresponds to that start time. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getVisionLatestRunCamera","parameters":[{"description":"The camera_id should be valid for the given accessToken.","in":"path","name":"camera_id","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"The configured program's ID on the camera.","in":"query","name":"program_id","schema":{"format":"int64","type":"integer"}},{"description":"EndMs is an optional param. It will default to the current time.","in":"query","name":"startedAtMs","schema":{"format":"int64","type":"integer"}},{"description":"Include is a filter parameter. Accepts 'pass', 'reject' or 'no_read'.","in":"query","name":"include","schema":{"type":"string"}},{"description":"Limit is an integer value from 1 to 1,000.","in":"query","name":"limit","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VisionRunByCameraResponse"}}},"description":"Returns the details for this run."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch the latest run for a camera or program","tags":["Industrial"]}},"/v1/industrial/vision/runs":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch runs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getVisionRuns","parameters":[{"description":"DurationMs is a required param. This works with the EndMs parameter. Indicates the duration in which the visionRuns will be fetched","in":"query","name":"durationMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"EndMs is an optional param. It will default to the current time.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VisionRunsResponse"}}},"description":"Return runs."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch runs","tags":["Industrial"]}},"/v1/industrial/vision/runs/{camera_id}":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch runs by camera. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"getVisionRunsByCamera","parameters":[{"description":"The camera_id should be valid for the given accessToken.","in":"path","name":"camera_id","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"DurationMs is a required param. This works with the EndMs parameter. Indicates the duration in which the visionRuns will be fetched","in":"query","name":"durationMs","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"EndMs is an optional param. It will default to the current time.","in":"query","name":"endMs","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VisionRunsByCameraResponse"}}},"description":"Return runs by cameraId."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch runs by camera","tags":["Industrial"]}},"/v1/industrial/vision/runs/{camera_id}/{program_id}/{started_at_ms}":{"get":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nFetch runs by camera and program. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getVisionRunsByCameraAndProgram","parameters":[{"description":"The camera_id should be valid for the given accessToken.","in":"path","name":"camera_id","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"The configured program's ID on the camera.","in":"path","name":"program_id","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Started_at_ms is a required param. Indicates the start time of the run to be fetched.","in":"path","name":"started_at_ms","required":true,"schema":{"format":"int64","type":"integer"}},{"description":"Include is a filter parameter. Accepts 'pass', 'reject' or 'no_read'.","in":"query","name":"include","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1VisionRunsByCameraAndProgramResponse"}}},"description":"Return runs by camera ID and program ID."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Fetch runs by camera and program","tags":["Industrial"]}},"/v1/machines/history":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet historical data for machine objects. This method returns a set of historical data for all machines. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getMachinesHistory","requestBody":{"$ref":"#/components/requestBodies/inline_object_3","content":{"application/json":{"schema":{"properties":{"endMs":{"description":"End of the time range, specified in milliseconds UNIX time.","example":1462881998034,"type":"integer"},"startMs":{"description":"Beginning of the time range, specified in milliseconds UNIX time.","example":1462878398034,"type":"integer"}},"required":["endMs","startMs"],"type":"object"}}},"description":"Time range to query for events","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1MachineHistoryResponse"}}},"description":"List of machine results objects, each containing a time and a datapoint."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get machine history","tags":["Industrial"],"x-codegen-request-body-name":"historyParam"}},"/v1/machines/list":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet machine objects. This method returns a list of the machine objects in the Samsara Cloud and information about them. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Industrial** under the Industrial category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getMachines","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_8"}}},"description":"List of machine objects."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get machines","tags":["Industrial"]}},"/v1/sensors/cargo":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet cargo monitor status (empty / full) for requested sensors. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getSensorsCargo","requestBody":{"$ref":"#/components/requestBodies/inline_object_4","content":{"application/json":{"schema":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"}}},"description":"List of sensor IDs to query.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CargoResponse"}}},"description":"List of sensor objects containing the current cargo status reported by each sensor."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get cargo status","tags":["Sensors"],"x-codegen-request-body-name":"V1sensorParam"}},"/v1/sensors/door":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet door monitor status (closed / open) for requested sensors. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getSensorsDoor","requestBody":{"$ref":"#/components/requestBodies/inline_object_5","content":{"application/json":{"schema":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"}}},"description":"List of sensor IDs to query.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1DoorResponse"}}},"description":"List of sensor objects containing the current door status reported by each sensor."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get door status","tags":["Sensors"],"x-codegen-request-body-name":"V1sensorParam"}},"/v1/sensors/history":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet historical data for specified sensors. This method returns a set of historical data for the specified sensors in the specified time range and at the specified time resolution. \n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>). \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getSensorsHistory","requestBody":{"$ref":"#/components/requestBodies/inline_object_6","content":{"application/json":{"schema":{"properties":{"endMs":{"description":"End of the time range, specified in milliseconds UNIX time.","example":1462881998034,"type":"integer"},"fillMissing":{"default":"withNull","enum":["withNull","withPrevious"],"type":"string"},"series":{"items":{"$ref":"#/components/schemas/_v1_sensors_history_series"},"maxItems":40,"type":"array"},"startMs":{"description":"Beginning of the time range, specified in milliseconds UNIX time.","example":1462878398034,"type":"integer"},"stepMs":{"description":"Time resolution for which data should be returned, in milliseconds. Specifying 3600000 will return data at hour intervals.","example":3600000,"type":"integer"}},"required":["endMs","series","startMs","stepMs"],"type":"object"}}},"description":"Time range and resolution, and list of sensor ID, field pairs to query.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1SensorHistoryResponse"}}},"description":"List of results objects, each containing a time and a datapoint for each requested sensor/field pair."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get sensor history","tags":["Sensors"],"x-codegen-request-body-name":"historyParam"}},"/v1/sensors/humidity":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet humidity for requested sensors. This method returns the current relative humidity for the requested sensors. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getSensorsHumidity","requestBody":{"$ref":"#/components/requestBodies/inline_object_7","content":{"application/json":{"schema":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"}}},"description":"List of sensor IDs to query.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1HumidityResponse"}}},"description":"List of sensor objects containing the current humidity reported by each sensor."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get humidity","tags":["Sensors"],"x-codegen-request-body-name":"V1sensorParam"}},"/v1/sensors/list":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet sensor objects. This method returns a list of the sensor objects in the Samsara Cloud and information about them. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getSensors","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_9"}}},"description":"List of sensor objects."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get all sensors","tags":["Sensors"]}},"/v1/sensors/temperature":{"post":{"description":"> 🚧 This endpoint is still on our legacy API.\n\nGet temperature for requested sensors. This method returns the current ambient temperature (and probe temperature if applicable) for the requested sensors. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>","operationId":"V1getSensorsTemperature","requestBody":{"$ref":"#/components/requestBodies/inline_object_8","content":{"application/json":{"schema":{"properties":{"sensors":{"description":"List of sensor IDs to query.","example":[122],"items":{"format":"int64","type":"integer"},"type":"array"}},"required":["sensors"],"type":"object"}}},"description":"List of sensor IDs to query.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1TemperatureResponse"}}},"description":"List of sensor objects containing the current temperature reported by each sensor."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}},"description":"Unexpected error."}},"summary":"Get temperature","tags":["Sensors"],"x-codegen-request-body-name":"V1sensorParam"}},"/webhooks":{"get":{"description":"List all webhooks belonging to a specific org.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Webhooks** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"listWebhooks","parameters":[{"description":" A filter on the data based on this comma-separated list of webhook IDs. Example: `ids=49412323223,49412329928`","in":"query","name":"ids","schema":{"type":"string"}},{"description":"The limit for how many objects will be in the response. Default and max for this value is 512 objects.","in":"query","name":"limit","schema":{"default":512,"maximum":512,"minimum":1,"type":"integer"}},{"description":" If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.","in":"query","name":"after","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksListWebhooksBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"List all webhooks belonging to a specific org.","tags":["Webhooks"]},"post":{"description":"Create a webhook\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Webhooks** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"postWebhooks","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPostWebhooksBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Create a webhook","tags":["Webhooks"],"x-codegen-request-body-name":"PostWebhooksRequestBody"}},"/webhooks/{id}":{"delete":{"description":"Delete a webhook with the given ID.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Webhooks** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"deleteWebhook","parameters":[{"description":"Unique identifier for the webhook to delete.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{},"description":"No Content response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksDeleteWebhookBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Delete a webhook with the given ID","tags":["Webhooks"]},"get":{"description":"Retrieve a webhook with given ID.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Webhooks** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"getWebhook","parameters":[{"description":"ID of the webhook. This is the Samsara-specified ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksGetWebhookBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Retrieve a webhook with given ID","tags":["Webhooks"]},"patch":{"description":"Update a specific webhook's information.  **Note** this implementation of patch uses [the JSON merge patch](https://tools.ietf.org/html/rfc7396) proposed standard.\n This means that any fields included in the patch request will _overwrite_ fields which exist on the target resource.\n For arrays, this means any array included in the request will _replace_ the array that exists at the specified path, it will not _add_ to the existing array\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Webhooks** under the Setup & Administration category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.","operationId":"patchWebhook","parameters":[{"description":"Unique identifier for the webhook to update.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookResponseBody"}}},"description":"OK response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookUnauthorizedErrorResponseBody"}}},"description":"Unauthorized response."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookNotFoundErrorResponseBody"}}},"description":"Not Found response."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookMethodNotAllowedErrorResponseBody"}}},"description":"Method Not Allowed response."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookContentTooLargeErrorResponseBody"}}},"description":"Content Too Large response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookTooManyRequestsErrorResponseBody"}}},"description":"Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookInternalServerErrorResponseBody"}}},"description":"Internal Server Error response."},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookNotImplementedErrorResponseBody"}}},"description":"Not Implemented response."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookBadGatewayErrorResponseBody"}}},"description":"Bad Gateway response."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookServiceUnavailableErrorResponseBody"}}},"description":"Service Unavailable response."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookGatewayTimeoutErrorResponseBody"}}},"description":"Gateway Timeout response."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhooksPatchWebhookBadRequestErrorResponseBody"}}},"description":"Bad Request response."}},"summary":"Update a specific webhook's information.","tags":["Webhooks"],"x-codegen-request-body-name":"PatchWebhookRequestBody"}}},"security":[{"AccessTokenHeader":[]}],"servers":[{"url":"https://api.samsara.com"},{"url":"https://api.eu.samsara.com"},{"url":"https://api.ca.samsara.com"}],"tags":[{"name":"Addresses"},{"name":"Assets"},{"name":"Attributes"},{"name":"Camera Media"},{"name":"Carrier Proposed Assignments"},{"name":"Contacts"},{"name":"Documents"},{"name":"Drivers"},{"name":"Driver Vehicle Assignments"},{"name":"Equipment"},{"name":"Hours of Service"},{"name":"Industrial"},{"name":"Maintenance"},{"name":"Messages"},{"name":"Organization Info"},{"name":"Routes"},{"name":"Safety"},{"name":"Sensors"},{"name":"Tachograph (EU Only)"},{"name":"Tags"},{"name":"Trailer Assignments"},{"name":"Trips"},{"name":"Users"},{"name":"Vehicles"},{"name":"Vehicle Driver Assignments"},{"name":"Vehicle Stats"},{"name":"Vehicle Locations"},{"name":"Beta APIs"},{"name":"Preview APIs"},{"name":"Legacy APIs"}],"x-original-swagger-version":"2.0"}