---
title: "Asset Event"
method: POST
path: "/entities/asset/{asset_id}/event"
tags: ["4. Assets"]
---

# Asset Event

`POST /entities/asset/{asset_id}/event`

Send notification of an event happening on an asset.

This endpoint allows reporting various events related to an asset, such as:
- Plug-in/plug-out events
- Updates to charging intent
- Charge now events

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.

## Path parameters

- `asset_id` string, uuid, required

## Request body

- AssetEventRequest
  - `event_type` 'plug_in' | 'plug_out' | 'intent_update' | 'charge_now' | 'charge_now_deleted', required — An enumeration.
  - `intent` Intent — This is the received intent from a user
    - `energy_required_kwh` number, required
    - `ready_by` string, date-time, required — Deprecated: use ready_by_local_time instead. The date component is discarded; only used to derive local time when ready_by_local_time is absent.
    - `ready_by_local_time` string, time — Local time by which energy is required (wall time)
    - `energy_estimated` boolean — False if energy_required_kwh is derived from target %SOC set on vehicle (e.g. via Enode), True if the energy_required_kwh is purely a user input
    - `may_charge_peak` boolean — If True, the vehicle may be charged in peak periods but only if all off-peak periods are used up and the energy requirement is not met.
    - `charging_mode` 'maximise_charging_time' | 'minimise_charging_time' — An enumeration.
  - `vehicle` Vehicle
    - `charging_rate_kw` number, required
  - `tariff` Tariff
    - `off_peak_times` string, required
    - `timezone` string, required
    - `tariff_type` 'single_rate' | 'dual_rate' | 'dynamic' | 'smart' | 'unknown' — An enumeration.
  - `end_at` string, date-time — End time for the charge. This should only be included for "charge_now" events

## Response `200`

Event successfully processed

- unknown

## Other responses

- `400` — Invalid event data
- `404` — Asset not found or not authorized to access
- `422` — Validation Error
- `500` — Server error while processing event

---

[API](https://skmtc.dev/axle/apis/axle-api-docs.md) · [All operations](https://skmtc.dev/axle/apis/axle-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/axle/axle-api-docs/revisions/75be7f9a952f/schema)
