HomeGuidesAPI ReferenceChangelog
Terms of Use
API Reference

Session validation rule / Update

⚠️ Experimental endpoint — not yet a stable contract. This resource ships as experimental / beta. While experimental, its schema and behaviour may change without a version bump — including breaking changes within v1.0 itself. Anyone consuming it does so for evaluation only, or by coordinating adoption with their account manager so changes can be sequenced with them. It graduates to a stable, version-locked contract (where the normal breaking-change rules apply) only when this experimental notice is removed.

Change a session validation rule. Only the properties sent change; the same checks as in the back office apply, and the change appears in the edit history of the rule under the admin of the token. The change applies to later session validation checks only. Concurrent changes of one rule apply one after the other, so a setting changed in the back office or through another request in the meantime is kept unless this request sends it. A rule of an operator the token cannot access is answered as not found. Requires the permission to update session validation rules.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
Body Params

⚠️ Experimental endpoint — not yet a stable contract. This resource ships as experimental / beta. While experimental, its schema and behaviour may change without a version bump — including breaking changes within v1.0 itself. Anyone consuming it does so for evaluation only, or by coordinating adoption with their account manager so changes can be sequenced with them. It graduates to a stable, version-locked contract (where the normal breaking-change rules apply) only when this experimental notice is removed.

The properties to change. Properties that are not sent keep their stored values.

boolean

Whether the rule runs on session validation checks.

string
enum

What the rule does when it fails. drop_session is offered only by some rule types.

Allowed:
acDcThresholds
object

Whether the thresholds of each role differ by charger type. Present only for rule types with values per charger type, with one property per role the rule type has.

string | null

Custom name of the rule. null, an empty string or the name of the rule type removes the custom name, so the rule uses the name of its rule type.

settings
array of objects

The settings to change. Settings that are not sent keep their values. Settings are required only while the rule is enabled. A validation error of a sent setting is reported on settings.{index}.value; an error of a setting the request did not send, such as a required setting of an enabled rule, is reported on settings, and the message names the setting by its name, role and chargerType. An error that concerns the settings as a whole, such as an enabled rule without any threshold, is reported on settings without naming a setting. Entries that set the same setting to different values are rejected on settings.{index}.value of the later entry. A setting sent for a rule whose rule type is no longer available is reported on settings.{index}.

settings
exclusions
object

Charge points the rule leaves alone when it fails. Accepted only when onFail, as sent or as stored, takes an action; sending exclusions for a rule that takes no action is rejected. Each list replaces the stored list only when it is sent. Vendor and model IDs belong to this environment, so a client copying rules from another environment maps them first.

Responses

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