4. Assets

Asset Plug In Event

Changed on

Send notification of a car being plugged in.

Tariff, vehicle and intent information may be optionally provided. If a tariff is included, it must comply with the OSM opening hours standard (https://wiki.openstreetmap.org/wiki/Key:opening_hours) for off-peak times and have a valid timezone, or a 400 error will be returned.

post/entities/asset/{asset_id}/event/plug-in

Request

Path parameters

asset_idstring uuid required

Request body

occurred_atstring date-time

When the event occurred, with a UTC offset.

external_session_idstring

Your ID for the charging session.

Example request

{
  "tariff": {
    "off_peak_times": "Mo-Su 00:30-05:30",
    "timezone": "Europe/London"
  }
}

Response

Plug-in event successfully processed

unknown required

Changes

    • warning

      removed from the request property allOf list

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added to the request property anyOf list

    • breaking

      added to the // request property allOf list

    • breaking

      removed the enum value dual_rate of the request property //

    • breaking

      removed the enum value dynamic of the request property //

    • breaking

      removed the enum value single_rate of the request property //

    • breaking

      removed the enum value smart of the request property //

    • breaking

      removed the enum value unknown of the request property //

    • breaking

      the // request property type changed from string to no type

    • warning

      removed the request property //