Tesla Motors Vehicle Commands API

The Vehicle Commands API from Tesla Motors — 45 operation(s) for vehicle commands.

OpenAPI Specification

tesla-motors-vehicle-commands-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Tesla Motors Owner Authentication Vehicle Commands API
  description: The Tesla Motors Owner API provides programmatic access to Tesla vehicles for monitoring state data (charge, climate, drive, vehicle config) and executing remote commands (wake up, lock/unlock doors, control climate, manage charging, control trunk, media playback, and more).
  version: '1.0'
  contact:
    name: Tesla Developer Support
    url: https://developer.tesla.com
servers:
- url: https://owner-api.teslamotors.com/
  description: Tesla Owner API
tags:
- name: Vehicle Commands
paths:
  /api/1/vehicles/{vehicle_id}/wake_up:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Wake Up Car
      description: Wakes up the car from the sleep state. Necessary to get some data from the car.
      operationId: WakeUpVehicle
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WakeUpResponse'
  /api/1/vehicles/{vehicle_id}/command/wake_up:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Wake Up Car
      description: Wakes up the car from the sleep state. Necessary to get some data from the car.
      operationId: WakeUpVehicleCommand
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/set_valet_mode:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Valet Mode
      description: 'Sets valet mode on or off with a PIN to disable it from within the car. Reuses last PIN from previous valet session.

        Valet Mode limits the car''s top speed to 70MPH and 80kW of acceleration power. It also disables Homelink, Bluetooth and

        Wifi settings, and the ability to disable mobile access to the car. It also hides your favorites, home, and work

        locations in navigation.'
      operationId: ToggleValetMode
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetValetRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/reset_valet_pin:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Reset Valet PIN
      description: Resets the PIN set for valet mode, if set.
      operationId: ResetValetPin
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/charge_port_door_open:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Open Charge Port
      description: Opens and unlocks the charge port.
      operationId: OpenChargePort
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/charge_port_door_close:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Close Charge Port
      description: Closes the charge port.
      operationId: CloseChargePort
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/charge_standard:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Charge Limit to Standard
      description: Set the charge mode to standard (90% under the new percentage system introduced in 4.5).
      operationId: SendStandardChargeLimit
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/charge_max_range:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Charge Limit to Max Range
      description: Set the charge mode to max range (100% under the new percentage system introduced in 4.5). Use sparingly!
      operationId: SetMaxChargeLimit
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/set_charge_limit:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Charge Limit
      description: Set the charge limit to a custom percentage.
      operationId: SetChargeLimit
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetChargeLimitRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_charging_amps:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Charge Current
      description: Set the maximum Charge Current in Amps
      operationId: SetChargingAmps
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetChargingAmpsRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_scheduled_departure:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Scheduled Departure
      description: Set Scheduled Departure settings
      operationId: SetScheduledDeparture
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledDepartureRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_scheduled_charging:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Scheduled Charging
      description: Set Scheduled Charging settings
      operationId: SetScheduledCharging
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledChargingRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/charge_start:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Start Charging
      description: Start charging. Must be plugged in, have power available, and not have reached your charge limit.
      operationId: StartCharge
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/charge_stop:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Stop Charging
      description: Stop charging. Must already be charging.
      operationId: StopCharge
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/flash_lights:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Flash Lights
      description: Flash the lights once.
      operationId: FlashLights
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/honk_horn:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Honk Horn
      description: Honk the horn once.
      operationId: HonkHorn
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/door_unlock:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Unlock Doors
      description: Unlock the car's doors.
      operationId: UnlockDoors
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/door_lock:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Lock Doors
      description: Lock the car's doors.
      operationId: LockDoors
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/set_temps:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Temperature
      description: Set the temperature target for the HVAC system.
      operationId: SetTemperatures
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetTempsRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/auto_conditioning_start:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Start HVAC System
      description: Start the climate control system. Will cool or heat automatically, depending on set temperature.
      operationId: StartHVAC
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/auto_conditioning_stop:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Stop HVAC System
      description: Stop the climate control system.
      operationId: StopHVAC
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/set_bioweapon_mode:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Toggle Bioweapon Defense Mode
      description: Enable or Disable Bioweapon Defense Mode on equipped vehicles.
      operationId: BioweaponDefense
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetBioweaponModeRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_climate_keeper_mode:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set the Climate Keeper mode
      description: Set the Climate Keeper mode.
      operationId: ClimateKeeper
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetClimateKeeperRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_cabin_overheat_protection:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Enable or Disable Cabin Overheat Protection
      description: Enable or Disable Cabin Overheat Protection
      operationId: CabinOverheatProtection
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCabinOverheatProtectionRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/remote_seat_heater_request:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Seat Heater Level
      description: Set the heating level of a seat heater
      operationId: RemoteSeatHeaterRequest
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoteSeatHeaterRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/remote_seat_cooler_request:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Seat Cooler Level
      description: Set the cooling level of a seat heater
      operationId: RemoteSeatCoolerRequest
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoteSeatCoolerRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/remote_auto_seat_climate_request:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Toggle Automatic Seat Heater/Cooler
      description: Enables or disables automatic control of a seat heater/coooler
      operationId: RemoteAutoSeatClimateRequest
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoteAutoSeatClimateRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/remote_steering_wheel_heater_request:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Toggle Steering Wheel Heater
      description: Toggle the steering wheel heater
      operationId: RemoteSteeringWheelHeaterRequest
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoteSteeringWheelHeaterRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/sun_roof_control:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Move Pano Roof
      description: Controls the car's panoramic roof, if installed.
      operationId: OpenSunroof
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MovePanoRoofRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/remote_start_drive:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Remote Start
      description: Start the car for keyless driving. Must start driving within 2 minutes of issuing this request.
      operationId: RemoteStart
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoteStartRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/actuate_trunk:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Open Trunk/Frunk
      description: Open the trunk or frunk. Currently inoperable.
      operationId: OpenTrunk
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenTrunkRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
              example:
                response:
                  result: true
                  reason: ''
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/speed_limit_activate:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Activate Speed Limit
      description: Activates Speed Limit
      operationId: ActivateSpeedLimit
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpeedLimitRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/speed_limit_deactivate:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Deactivate Speed Limit
      description: Deactivates Speed Limit
      operationId: DeactivateSpeedLimit
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpeedLimitRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/speed_limit_set_limit:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Speed Limit
      description: Sets Speed Limit
      operationId: SetSpeedLimit
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetSpeedLimitRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/speed_limit_clear_pin:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Clear Speed Limit Pin
      description: Clears Speed Limit Pin
      operationId: ClearSpeedLimitPin
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpeedLimitRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/navigation_request:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Send Navigation Request
      description: Sends Navigation Request to Vehicle
      operationId: NavigationRequest
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NavigationRequestRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/share:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Share data to Vehicle
      description: Sends Data to Vehicle (v10 only)
      operationId: SharetoVehicle
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShareRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/schedule_software_update:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Start Software Update
      description: Start Software Update
      operationId: StartSoftwareUpdate
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/cancel_software_update:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Cancel Software Update
      description: Cancel Software Update
      operationId: CancelSoftwareUpdate
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
  /api/1/vehicles/{vehicle_id}/command/set_sentry_mode:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Toggle Sentry Mode
      description: Toggle Sentry Mode
      operationId: SetSentryMode
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SentryModeRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_preconditioning_max:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Max Defrost
      description: Set Max Defrost
      operationId: SetMaxDefrost
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MaxDefrostRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/window_control:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Window Control
      description: Window Control
      operationId: WindowControl
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WindowControlRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/trigger_homelink:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Trigger Homelink
      description: Trigger Homelink
      operationId: TriggerHomelink
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerHomelinkRequest'
        required: true
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandResponse'
      x-codegen-request-body-name: body
  /api/1/vehicles/{vehicle_id}/command/set_vehicle_name:
    post:
      tags:
      - Vehicle Commands
      summary: Tesla Set Vehicle Name
      description: Set Vehicle Name
      operationId: SetVehicleName
      parameters:
      - name: vehicle_id
        in: path
        description: The id of the Vehicle.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/compone

# --- truncated at 32 KB (45 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/tesla-motors/refs/heads/main/openapi/tesla-motors-vehicle-commands-api-openapi.yml