Access
Principals
Keep track of the people who may charge, and decide where. A principal is a person who holds one or more cards. Whether a person may charge is a permission policy bound to them at a project, a location or a single charger: bind it with the bindings routes of Projects, Locations & Circuits and Charging Stations, and read the result with the who-can-charge routes here. Suspend a person to stop all their cards at once.
Endpoints
- GETWho can charge at a charger
/v1/charging-stations/{chargingStationId}/who-can-charge - GETWho can charge at a location
/v1/locations/{locationId}/who-can-charge - GETGet a person
/v1/principals/{principalId} - PATCHUpdate a person
/v1/principals/{principalId} - POSTErase a person
/v1/principals/{principalId}/erase - POSTAdd your own id to a person
/v1/principals/{principalId}/references - DELETERemove your own id from a person
/v1/principals/{principalId}/references/{provider}/{externalId} - POSTReinstate a person
/v1/principals/{principalId}/reinstate - POSTSuspend a person
/v1/principals/{principalId}/suspend - GETList people
/v1/projects/{projectId}/principals - POSTAdd a person
/v1/projects/{projectId}/principals - GETGet a person by your id
/v1/projects/{projectId}/principals/by-reference/{provider}/{externalId} - PUTFind or add a person by your id
/v1/projects/{projectId}/principals/by-reference/{provider}/{externalId} - GETWho can charge in a project
/v1/projects/{projectId}/who-can-charge