Skip to main content
PATCH
Change a card

Authorizations

Authorization
string
header
required

An access token from accounts.plugchoice.com, for a personal API token, a person signed in through an app, or an OAuth client.

Scopes

locations:write

Path Parameters

card
string<uuid>
required

The card's id

Body

application/json

What to change of a card: only the fields sent change. None may be null.

billed
boolean

Whether it is billed through roaming instead of charging free.

charger_ids
string<uuid>[]

The chargers at the location it may charge at, in place of those it has; empty: every charger at the location.

id_tag
string

The id a card shows a charger (OCPP's idTag or idToken), such as 04A2B334A1C380: 1 to 36 characters (the longest an OCPP 2.0.1 charger reads; 20 for OCPP 1.6), with spaces around it removed. The card check compares it ignoring case, so ab12 and AB12 are one card.

Required string length: 1 - 36
name
string

Its name, as people know it.

Required string length: 1 - 255

Response

The card, changed

A charge card of a location: a card, or another token such as a phone's, that may charge at the location's chargers.

automatic
boolean
required

Whether Plugchoice made it for the location, so a charger at home charges without anyone adding a card: Autostart and a start from the app use it. There is no physical card; it is changed and removed like any other.

billed
boolean
required

Whether it is billed through roaming instead of charging free.

charger_ids
string<uuid>[]
required

The chargers at the location it may charge at; empty: every charger at the location.

id
string<uuid>
required

The card's id.

id_tag
string
required

The id it shows a charger (OCPP's idTag or idToken). The card check compares it ignoring case.

name
string
required

Its name, as people know it: Jan's car.

created_at
string<date-time> | null

When it was added; null for a card from before Plugchoice recorded it.

updated_at
string<date-time> | null

When it, or the chargers it may charge at, last changed; null for a card from before Plugchoice recorded it.