Chargers

Add or remove users' access to the charger

Requires one of the following roles: ResellerAdmin, DomainManager, SiteManager, Installer.

patch/chargers/{id}/access

Request

  • Base URL: https://api.heycharge.com/v1/b2b
  • URL: https://api.heycharge.com/v1/b2b/chargers/{id}/access
  • Auth: HTTP bearer

Path parameters

idstring required

ID of charger to return

Headers

b2bidstring

BackofficeAdmin only. Specifies the target B2B ID when acting on behalf of a B2B. For regular users this header is ignored — the B2B from the JWT is always used.

Request body

usersToAddstring[]

User IDs, to which charger access will be granted.

usersToRemovestring[]

User IDs, from which charger access will be removed.

Response

A charger model

idstring
namestring
authorizedUsersstring[]
lastSeenstring

ISO string of the last time this charger has been communicated with.

addressstring

Address of the site, where the charger is located.

Changes

No recorded changes to this operation across all 1 revision of this API.