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

# /fleets/{fleetId}/badges/{badgeId}/assumed-vehicle

Associate a badge to a vehicle within a fleet namespace.

# 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": {
    "/fleets/{fleetId}/badges/{badgeId}/assumed-vehicle": {
      "parameters": [
        {
          "name": "fleetId",
          "in": "path",
          "description": "Fleet ID",
          "required": true,
          "schema": {
            "$ref": "#/components/schemas/FleetId"
          }
        },
        {
          "name": "badgeId",
          "in": "path",
          "description": "RFID UID of the badge, unique within the fleet namespace",
          "required": true,
          "schema": {
            "$ref": "#/components/schemas/BadgeId"
          }
        }
      ],
      "post": {
        "operationId": "setFleetBadgeAssumedVehicle",
        "description": "Associate a badge to a vehicle within a fleet namespace.",
        "tags": [
          "identification"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BadgeAssumedVehicle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Assumed vehicle set"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "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": {
      "FleetId": {
        "type": "string",
        "description": "Unique ID of the fleet"
      },
      "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."
          }
        }
      },
      "VehicleId": {
        "type": "string",
        "description": "Unique ID identifying the vehicle"
      },
      "BadgeAssumedVehicle": {
        "type": "object",
        "properties": {
          "badgeId": {
            "$ref": "#/components/schemas/BadgeId"
          },
          "vehicleId": {
            "$ref": "#/components/schemas/VehicleId"
          }
        },
        "required": [
          "badgeId",
          "vehicleId"
        ]
      }
    }
  }
}
```