Users

Update user

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

patch/users/{id}

Request

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

Path parameters

idstring required

ID of the user

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

metaIdstring required
emailstring required

Response

A user model

idstring
emailstring email

Email for the user, needs to be unique.

chargersstring[]

A list of charger IDs that the user has access to.

createdAtstring
propertyIdsstring[]

A list of property IDs the user belongs to.

Example response

{
  "email": "tom@heycharge.com"
}

Changes

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