Skip to main content
Roam OCPI sessions use PUT for session start and stop, and PATCH to update consumed kilowatthours.

Sessions module adjustments

Patch of sessions

When receiving kWh data for ongoing sessions from CPOs, we share those through a PATCH on the session object so that you can see the incremental kWh data shared during the session. These updates will be delivered as PATCH requests with the following structure:
With this enhancement, the session lifecycle will be as follows:
  • PUT – Sent when a session starts (unchanged)
  • PATCH – Sent whenever the session kWh value is updated
  • PATCH – Additional updates may be sent as the session progresses
  • PUT – Sent when the session stops (unchanged)
In the production environment, these updates will be available on all chargers where the Charge Point Operator supports and sends kWh updates.