Update a Session object

Any changes to a Session in the CPO system are sent by calling PATCH on the Sessions endpoint with the updated Session object.

Path Params
string
required
string
required
string
required
Body Params
string | null

The unique id that identifies the session in the CPO platform

date-time | null

The time when the session became active.

date-time | null

The timestamp when the session was finished Charging might have finished before the session ends

double | null

How many kWh are charged.

charging_periods
array of objects | null

An optional list of charging periods that can be used to calculate and verify the total cost.

charging_periods
string | null

The status of the session: ACTIVE - The session is accepted and active. COMPLETED - The session is finished successfully. INVALID - The session is declared invalid and will not be billed. PENDING - The session is pending and has not yet started. This is the initial state.

date-time

Timestamp when this Session was last updated (or created).

double | null

State of Charge

Headers
string

Name of the client (or system) calling the api, this is helpful for tracing requests. This is optional.

string

Version of the client (or system) calling the api, this is helpful for tracing requests. This is optional.

Responses

400

Bad Request

Language
Credentials
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json