---
updatedAt: 2026-07-07T10:51:07.000Z
agentTools:
  projectIndex: https://dreev.readme.io/llms.txt
---

# /evses/{evseId}/assumed-vehicle

The Vehicle we assume to be connected when Vehicle identification is unavailable.

When `badgeId` is provided, resolves the assumed vehicle using fleet-scoped badge identification:
1. Resolves all fleets linked to the EVSE (an EVSE may belong to multiple fleets via EVSE groups).
2. For each fleet, looks up the `(fleetId, badgeId)` → vehicle association.
3. Returns the first match found, in fleet precedence order.

When `badgeId` is absent, returns the statically configured assumed vehicle for this EVSE.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Fleet Management API",
    "description": "API endpoints for managing charging requirements, badges and identification.",
    "version": "1.2.0"
  },
  "servers": [
    {
      "url": "https://csms.api.staging.dreev.net",
      "description": "staging"
    },
    {
      "url": "https://csms.api.production.dreev.net",
      "description": "production"
    }
  ],
  "security": [
    {
      "dreevOAuth": []
    }
  ],
  "paths": {
    "/evses/{evseId}/assumed-vehicle": {
      "get": {
        "operationId": "findEvseAssumedVehicle",
        "description": "The Vehicle we assume to be connected when Vehicle identification is unavailable.\n\nWhen `badgeId` is provided, resolves the assumed vehicle using fleet-scoped badge identification:\n1. Resolves all fleets linked to the EVSE (an EVSE may belong to multiple fleets via EVSE groups).\n2. For each fleet, looks up the `(fleetId, badgeId)` → vehicle association.\n3. Returns the first match found, in fleet precedence order.\n\nWhen `badgeId` is absent, returns the statically configured assumed vehicle for this EVSE.\n",
        "tags": [
          "identification"
        ],
        "parameters": [
          {
            "name": "badgeId",
            "in": "query",
            "required": false,
            "description": "RFID UID of the badge presented at the EVSE. Fleet resolution is performed internally.",
            "schema": {
              "$ref": "#/components/schemas/BadgeId"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Default Vehicle",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvseAssumedVehicle"
                }
              }
            }
          },
          "204": {
            "description": "EVSE has no assumed vehicle"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      },
      "parameters": [
        {
          "name": "evseId",
          "in": "path",
          "description": "EVSE ID",
          "required": true,
          "schema": {
            "$ref": "#/components/schemas/EvseId"
          }
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "dreevOAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "Problem": {
        "description": "- 400 : Invalid request format or incoherent request\n- 404 : Resource not found\n- 401 : Invalid or Expired Token\n- 403 : Insufficient Scope and/or Permission\n- 500 : Business or Technical error\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "BadgeId": {
        "type": "string",
        "description": "Unique ID identifying a badge"
      },
      "Problem": {
        "type": "object",
        "description": "See [RFC-7807 - Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807)",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A URI reference that identifies the problem type.\nThis specification encourages that, when dereferenced,\nit provide human-readable documentation for the\nproblem type.\nWhen this member is not present, its value is assumed to be \\\"about:blank\\\"\n"
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code generated by the origin server for this occurrence of the problem."
          },
          "detail": {
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "EvseId": {
        "type": "string",
        "description": "Legacy ID identifying a \"legacy EVSE\": now corresponds to either a charging station ID or an EVSE ID\n"
      },
      "VehicleId": {
        "type": "string",
        "description": "Unique ID identifying the vehicle"
      },
      "EvseAssumedVehicle": {
        "type": "object",
        "properties": {
          "evseId": {
            "$ref": "#/components/schemas/EvseId"
          },
          "vehicleId": {
            "$ref": "#/components/schemas/VehicleId"
          }
        },
        "required": [
          "evseId",
          "vehicleId"
        ]
      }
    }
  }
}
```