Workspace Admin API endpoint requests and responses
This is the request/response reference for every /v2/admin endpoint. Authentication, idempotency, rate limits, token creation, and scope semantics are documented in Workspace Admin API. Reusable field-level types and examples are in Schemas and examples. Read every endpoint row together with Response and error contract, which lists all possible shared and endpoint-specific non-success response bodies.
Common contract
Every path begins with the deployed app-api origin. The workspace is derived exclusively from the authenticated token; clients must not send cpoId. All documented :...Id resource path values are positive decimal integers. Every request requires exactly one:
Authorization: Bearer <workspace-access-token>
Requests shown with a JSON body require Content-Type: application/json. All mutations require Idempotency-Key (POST, PUT, PATCH, and DELETE), including POST /v2/admin/reports/send; unless a row says otherwise, the success content type is application/json, JSON dates are RFC 3339 strings, and numbers are JSON numbers.
Every request may include X-Request-Id and X-Error-Format: envelope; see Response and error contract. These headers do not change success schemas.
Notation used below:
nonemeans no request body. ADELETEthat documents a JSON body still requires that body.?marks an optional property or query parameter.T | nullmeans the property is present and nullable.204 emptymeans no response body.CursorPage<T>means{ items: T[], nextCursor: number|string|null }, except where the row names apageorpaginationobject explicitly.- All nested resource misses, including cross-workspace IDs, use
404 { "error": "Workspace resource not found", "code": "RESOURCE_NOT_FOUND" }unless a feature documents a more specific conflict.
Shared request schemas
Workspace and site inputs
WorkspacePatch = {
name?: string(1..100), email?: email|null, website?: string|null,
addressLine1?: string|null, addressLine2?: string|null,
postalCode?: string|null, city?: string|null, state?: string|null,
countryId?: positive integer
} // at least one property
SiteInput = {
name: string(1..255), description?: string|null = null,
addressLine1?: string|null = null, addressLine2?: string|null = null,
postalCode?: string|null = null, city?: string|null = null, state?: string|null = null,
countryId: positive integer, timezoneId: positive integer,
latitude?: number[-90,90]|null = null, longitude?: number[-180,180]|null = null
}
Power-management input
PowerConfigurationInput = { pools: PowerPoolInput[0..200] }
PowerPoolInput = {
id?: positive integer|null, name?: string(0..255),
limit: integer[0,100000000], meterSources?: ExternalMeterInput[0..16],
children?: (PowerPoolInput | ChargerPoolChild)[0..1000]
}
ChargerPoolChild = { chargepointId: positive integer, priority?: integer[-1000000,1000000] }
ExternalMeterInput = {
id?: positive integer|null, sourceId?: positive integer|null,
provider?: "perific", name?: string(0..255), externalId: string(1..80),
measurementMode?: "available_headroom"|"external_non_ev_load_only"|"total_site_load_including_ev",
valueMode?: "perific_relative"|"perific_direct"|"perific_meter",
reserveA?: integer[0,100000], offlineSafeA?: integer[0,100000],
ttlSeconds?: integer[30,86400], enabled?: boolean
}
Charger inputs
ChargerCreate = { name: string(1..40), identifier: string(1..40), password?: string(0..40) = "", siteId: positive integer }
ChargerPatch = {
name?: string(1..40), siteId?: positive integer, invertedRfid?: boolean,
smartMode?: integer[0,3], automationDisabled?: boolean
} // at least one
ConnectorPatch = {
connectorFormatId: positive integer, connectorTypeId: positive integer,
powerTypeId: positive integer, maxVoltage: integer[1,10000],
maxAmperage: integer[1,10000], maxElectricPower: integer[1,100000000]
}
Report inputs
ReportFilters = {
from?: RFC3339, to?: RFC3339, siteId?: positive integer,
chargerId?: positive integer, userId?: positive integer,
anonymous?: true|false|1|0, active?: true|false|1|0
}
ReportScheduleInput = {
enabled: boolean, recipientEmail: email(max 255; may be empty only when disabled), format: "csv"|"pdf",
sendDay: integer[1,28], sendTime: UTC "HH:mm"
}
Report ranges must satisfy from < to and may not exceed 90 days. When omitted, the latest 90-day window is used. userId and anonymous=true are mutually exclusive. Scheduled exports catch up after a missed UTC minute and use bounded retries (5/10-minute backoff, 30-minute stale-claim lease, three attempts).
Tariff inputs
TariffInput = {
name: string(1..64),
exactly one of currencyId: positive integer, currencyCode: 3 letters, currency: 3 letters,
biddingZoneId?: positive integer|null, tax?: finite number
}
TariffComponentInput = {
typeId: positive integer, seasonId: positive integer, priority?: finite number,
price: finite number, validFromMonth?: finite number, validToMonth?: finite number,
validFromWeekDay?: finite number, validToWeekDay?: finite number,
validFromHour?: finite number, validToHour?: finite number
}
TariffAssignmentCreateInput = { tariffId: positive integer, connectorId?: nonnegative integer }
TariffAssignmentUpdateInput = { tariffId: positive integer, connectorId: positive integer }
Charging-profile inputs
ChargingProfileInput = {
label: string(1..40), locationId: positive integer, stackLevel: nonnegative number,
purposeId: positive integer, kindId: positive integer,
recurrencyKindId?: positive integer|null, validFrom?: RFC3339|null,
validTo?: RFC3339|null, startSchedule?: RFC3339|null,
rateUnitId: positive integer, minChargingRate?: nonnegative number|null
}
ChargingProfileCreate = ChargingProfileInput & { schedule?: SchedulePeriod[0..256] }
SchedulePeriod = { startPeriod: nonnegative number, limit: nonnegative number, numberOfPhases?: positive integer|null }
ChargingScheduleInput = { rateUnitId: positive integer, periods: SchedulePeriod[1..256] }
ProfileAssignmentInput = { profileId: positive integer, connectorId?: nonnegative integer }
User inputs
UserCreate = { email: email(max 255), name: string(1..255) }
InvitationInput = {
email: email, name?: string|null, rfid?: string|null,
allChargers?: boolean, chargerIds?: unique positive integer[0..500]
} // chargerIds must be non-empty unless allChargers=true
AccessInput = { allChargers?: boolean, chargerIds?: unique positive integer[0..500] }
LimitCreate = { limitTypeId: positive integer, energyValue?: nonnegative integer = 0, timeValue?: nonnegative integer = 0 }
LimitPatch = { limitTypeId?: positive integer, energyValue?: nonnegative integer, timeValue?: nonnegative integer }
At least one of energyValue or timeValue must be greater than zero when creating a limit. Emails are trimmed and lowercased. RFID UIDs are accepted only on writes and are masked in read responses.
Response DTO summary
The endpoint tables show every top-level response envelope. These are the principal reusable DTOs inside those envelopes:
| DTO | Fields |
|---|---|
Workspace | id, name, email, website, address { line1, line2, postalCode, city, state, countryId, countryCode, countryName }, createdAt, updatedAt |
Site | id, name, description, address, timezone { id, name }, latitude, longitude, chargerCount; detail adds normalized chargers and connector state |
GeocodeCandidate | placeId, displayName, latitude, longitude; provider credentials and provider-specific metadata are never returned |
MetricsWindow | from, to, session limits/counts, and totalsCapped where applicable |
Charger | id, name, identifier, cpoId, site, normalized status, isPublic, RFID/smart/automation flags, provisioned, connection, evses, connectors, createdAt, updatedAt; detail adds redacted configuration, firmware, and counts |
Connector | portId, connectorId, connector lookup IDs, maxVoltage, maxAmperage, maxElectricPower |
ReportSession | id, charger/site, port and connector IDs, minimized user, active, energyWh, start/stop/duration, and per-currency net/tax/total costs |
ReportSchedule | id, workspaceId, enabled, recipientEmail, format, UTC sendDay/sendTime, creation/update and safe last-delivery metadata including attempt count |
Tariff | id, cpoId, name, type/site/currency/bidding-zone objects, tax, fallbackPrice, effective price, components, assignmentCount |
ChargingProfile | id, cpoId, label, description, stackLevel, location/purpose/kind/recurrency/rate-unit objects, validity, schedule, assignmentCount, timestamps |
User | id, membershipId, name, email, masked rfids, charger access, limitCount; detail adds phone, createdAt, and limits. OCPP authorization credentials such as contractId are never returned. |
RFID | id, maskedUid, name, type, valid; raw UID is never returned |
Access | allChargers, sorted chargerIds, and items containing grant/charger/site/expiry metadata |
Limit | id, limitTypeId, label, energyValue, timeValue |
LocalUser | List DTO: id, customerId, name, email, expiresAt, systemManaged. Local-user mutations use the distinct LocalUserMutation/LocalUserUpdate shapes in Schemas and examples. |
Lookup objects are returned by list/detail routes so callers can discover valid IDs. Treat unknown added fields as forward-compatible and branch only on documented stable fields and error codes.
Workspace endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin | workspaces:read | Body: none | 200 { workspace: Workspace } |
PATCH /v2/admin | workspaces:update | Body: WorkspacePatch | 200 { workspace: Workspace } |
GET /v2/admin/dashboard | workspaces:read + reports:read | Body/query: none | 200 { window, stats { chargerCount, onlineChargerCount, siteCount, userCount }, sessions: DashboardSession[], analytics }; sessions are capped at 1,000 over 90 days |
Site and power-management endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin/sites | sites:read | Body/query: none | 200 { items: Site[], metricsWindow: MetricsWindow, lookups { countries, timezones } } |
GET /v2/admin/sites/geocode | sites:read | Query: optional street (max 160), city, state, country (max 100 each), countryCode (max 2); optional Accept-Language header; at least two combined street/city/state characters are required | 200 { results: GeocodeCandidate[] }; identical in-flight searches are coalesced and provider work uses a bounded serialized queue plus a bounded server-side cache; invalid searches return 400 INVALID_GEOCODE_QUERY, queue saturation returns 429 GEOCODING_BUSY with Retry-After, and provider failures return 502 GEOCODING_UNAVAILABLE |
POST /v2/admin/sites | sites:create | Body: SiteInput | 201 { site: Site } |
GET /v2/admin/sites/:siteId | sites:read + reports:read | Body/query: none | 200 { site: SiteDetail, recentSessions: SiteSession[], totals, metricsWindow } |
PATCH /v2/admin/sites/:siteId | sites:update | Body: complete SiteInput | 200 { site: Site } |
DELETE /v2/admin/sites/:siteId | sites:delete | Body: none | 204 empty; a non-empty site returns 409 SITE_NOT_EMPTY |
GET /v2/admin/sites/:siteId/power-management | sites:power-management | Body/query: none | 200 { configuration: PowerConfiguration } containing owned site, chargers/connectors, pools, meter sources, assignments, and compatibility state |
PUT /v2/admin/sites/:siteId/power-management | sites:power-management | Body: PowerConfigurationInput | 200 { configuration: PowerConfiguration }; OCPP refusal, timeout, or concurrent change returns 409 POWER_MANAGEMENT_CONFLICT without applying the replacement |
Charger endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin/chargers | chargers:read | Body/query: none | 200 { items: Charger[], metricsWindow: MetricsWindow, connectorLookups { formats, types, powerTypes } } |
POST /v2/admin/chargers | chargers:create | Body: ChargerCreate; identifier is uppercased | 201 { charger: Charger }; password is never returned |
GET /v2/admin/chargers/:chargerId | chargers:read | Body/query: none | 200 { charger: ChargerDetail } |
PATCH /v2/admin/chargers/:chargerId | chargers:update | Body: ChargerPatch | 200 { charger: ChargerDetail } |
DELETE /v2/admin/chargers/:chargerId | chargers:delete | Body: none | 204 empty |
PATCH /v2/admin/chargers/:chargerId/credentials | chargers:credentials | Body: { password: string(0..40) } | 200 { success: true } |
PATCH /v2/admin/chargers/:chargerId/connectors/:portId | chargers:connector-settings | Body: ConnectorPatch | 200 { connector: Connector } |
PATCH /v2/admin/chargers/:chargerId/public-listing | chargers:public | Body: { isPublic: boolean } | 200 { isPublic: boolean }; unmet readiness returns 409 CHARGER_CONFLICT |
GET /v2/admin/chargers/:chargerId/public-readiness | chargers:read | Body/query: none | 200 { readiness: { ready, missingRequirements, connectorIds, missingTariffConnectorIds, ...commercialState } } |
GET /v2/admin/chargers/:chargerId/logs | chargers:read | Query: cursor?, limit?=50 (1..200), from?, to?, action?, direction?, levelId? | 200 { items: RedactedOcppLog[], nextCursor: number or null } |
GET /v2/admin/chargers/:chargerId/sessions | chargers:read + reports:read | Query: page?=1, limit?=25 (1..100), from?, to?, customerId?: positive integer or "unknown" | 200 { items: ChargerSession[], pagination { page, limit, total, totalPages }, filters { customers }, totals, totalsCapped } |
GET /v2/admin/chargers/:chargerId/qr | chargers:read | Query: connector?: integer[0,255] | 200 image/png binary, 300 px, Content-Disposition: inline, Cache-Control: no-store |
GET /v2/admin/chargers/:chargerId/composite-schedules | chargers:read | Query: cursor?, limit?=20 (1..50), connectorId? | 200 { items: CompositeSchedule[], nextCursor: number or null } |
GET /v2/admin/chargers/:chargerId/configuration | chargers:read | Body/query: none | 200 { items: ChargerConfiguration[] }; secret-like values are [REDACTED] |
PATCH /v2/admin/chargers/:chargerId/configuration | chargers:configuration | Body: { key: string(1..50), value: string(0..500) } | 200 { status: string } where status is the charger/OCPP result |
POST /v2/admin/chargers/:chargerId/configuration/reload | chargers:configuration | Body: none | 200 { status: string } |
GET /v2/admin/chargers/:chargerId/firmware | chargers:read | Body/query: none | 200 { firmware: { status, notifiedAt, currentVersion, bootNotifiedAt } } |
POST /v2/admin/chargers/:chargerId/firmware | chargers:firmware | Body: { url: HTTP-or-HTTPS URL, max 2048 characters } | 202 { status: string } |
POST /v2/admin/chargers/:chargerId/commands/reset | chargers:commands | Body: { resetType: "Soft" or "Hard" } | 200 { status: string } |
POST /v2/admin/chargers/:chargerId/commands/availability | chargers:commands | Body: { availabilityType: "Operative" or "Inoperative" } | 200 { status: string } |
POST /v2/admin/chargers/:chargerId/commands/trigger | chargers:commands | Body: { messageType: "BootNotification", "Heartbeat", "StatusNotification", or "MeterValues" } | 200 { status: string, connectorResults: { connectorId, status }[] } |
POST /v2/admin/chargers/:chargerId/commands/unlock | chargers:commands | Body: { connectorId: positive integer } | 200 { status: string } |
POST /v2/admin/chargers/:chargerId/commands/composite-schedule | chargers:commands | Body: { connectorId: nonnegative integer, durationSeconds?: integer[60,604800], chargingRateUnit?: "W" or "A" } | 200 { status: string, connectorId: number, compositeSchedule: CompositeSchedule or null } |
Report endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin/reports/data | reports:read | Query: ReportFilters, opaque cursor?, limit?=50 (1..100) | 200 { items: ReportSession[], pageTotals, page { limit, nextCursor }, range { from, to, toExclusive: true } } |
GET /v2/admin/reports/schedule | reports:read | Body/query: none | 200 { schedule: ReportSchedule or null } |
PUT /v2/admin/reports/schedule | reports:schedules | Body: strict ReportScheduleInput | 200 { schedule: ReportSchedule } |
POST /v2/admin/reports/send | reports:send | Body: none; header Idempotency-Key is required | 200 { sent: true, format: "csv" or "pdf", rowCount: number, range { from, to } }; no saved schedule returns 409 REPORT_SCHEDULE_REQUIRED |
GET /v2/admin/reports/measurements | reports:read | Query: required transactionLogId, opaque cursor?, limit?=500 (1..1000) | 200 { transactionLogId, measurements: { name, unit, lines[] }[], page { limit, nextCursor, sampleValuesTruncated, sampleLimitPerMeterValue: 64 } } |
GET /v2/admin/reports/export | reports:export | Query: ReportFilters, format?="csv" or "pdf" | 200 CSV/PDF binary with attachment filename, Cache-Control: private, no-store, X-Content-Type-Options: nosniff; more than 2,000 rows returns 422 REPORT_EXPORT_ROW_LIMIT |
Tariff endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin/tariffs | tariffs:read | Body/query: none | 200 { items: Tariff[], lookups { currencies, biddingZones, currencyRates, componentTypes, seasons, tariffTypes } } |
POST /v2/admin/tariffs | tariffs:create | Body: TariffInput | 201 { tariff: Tariff } |
GET /v2/admin/tariffs/:tariffId | tariffs:read | Body/query: none | 200 { tariff: Tariff, lookups } |
PATCH /v2/admin/tariffs/:tariffId | tariffs:update | Body: complete TariffInput | 200 { tariff: Tariff } |
PUT /v2/admin/tariffs/:tariffId/components | tariffs:components | Body: { components: TariffComponentInput[0..256] } | 200 { tariff: Tariff, components: TariffComponent[] } |
DELETE /v2/admin/tariffs/:tariffId | tariffs:delete | Body: none | 204 empty; charging-record references return 409 TARIFF_CONFLICT |
GET /v2/admin/tariffs/:tariffId/market-prices | tariffs:read | Query: required startsAt nonnegative Unix timestamp | 200 { items: { id, value, currencyId, startsAt, endsAt, startsAtIso, endsAtIso, intervalMinutes }[], truncated: boolean }; at most 10,000 rows |
GET /v2/admin/chargers/:chargerId/tariff-assignments | chargers:tariff-assignments + tariffs:read | Body/query: none | 200 { items: TariffAssignment[], tariffs: Tariff[] } |
POST /v2/admin/chargers/:chargerId/tariff-assignments | chargers:tariff-assignments + tariffs:assign | Body: TariffAssignmentCreateInput; omitted connectorId or connectorId=0 means all connectors | 201 { assignments: TariffAssignment[] } |
PATCH /v2/admin/chargers/:chargerId/tariff-assignments/:assignmentId | chargers:tariff-assignments + tariffs:assign | Body: TariffAssignmentUpdateInput; connector is required and cannot be 0 | 200 { assignment: TariffAssignment } |
DELETE /v2/admin/chargers/:chargerId/tariff-assignments/:assignmentId | chargers:tariff-assignments + tariffs:assign | Body: none | 204 empty |
TariffAssignment contains id, chargerId, connectorId, a safe tariff/currency summary, createdAt, and updatedAt.
Charging-profile endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin/charging-profiles | chargingProfiles:read | Body/query: none | 200 { items: ChargingProfile[], lookups { locations, purposes, kinds, recurrencyKinds, rateUnits, allowedRateUnits } } |
POST /v2/admin/charging-profiles | chargingProfiles:create | Body: ChargingProfileCreate | 201 { profile: ChargingProfile } |
GET /v2/admin/charging-profiles/:profileId | chargingProfiles:read | Body/query: none | 200 { profile: ChargingProfile, lookups, isEditBlocked: boolean, usage { simpleChargingSchedule, smartSchedule, chargePoolChargepoint, isUsed } } |
PATCH /v2/admin/charging-profiles/:profileId | chargingProfiles:update | Body: complete ChargingProfileInput | 200 { profile: ChargingProfile, ocppSync: OcppCommandResult[] } |
PUT /v2/admin/charging-profiles/:profileId/schedule | chargingProfiles:update | Body: ChargingScheduleInput | 200 { profile: ChargingProfile, schedule: SchedulePeriod[], ocppSync: OcppCommandResult[] } |
DELETE /v2/admin/charging-profiles/:profileId | chargingProfiles:delete | Body: none | 204 empty only after all assigned chargers accept clear and state is revalidated; otherwise 409 and the profile remains |
GET /v2/admin/chargers/:chargerId/profile-assignments | chargers:profile-assignments + chargingProfiles:read | Body/query: none | 200 { items: ProfileAssignment[], profiles: ChargingProfile[] } |
POST /v2/admin/chargers/:chargerId/profile-assignments | chargers:profile-assignments + chargingProfiles:assign | Body: ProfileAssignmentInput | 201 { assignment: ProfileAssignment, ocpp: OcppCommandResult } |
PATCH /v2/admin/chargers/:chargerId/profile-assignments/:assignmentId | chargers:profile-assignments + chargingProfiles:assign | Body: ProfileAssignmentInput | 200 { assignment: ProfileAssignment, ocpp: OcppCommandResult } |
DELETE /v2/admin/chargers/:chargerId/profile-assignments/:assignmentId | chargers:profile-assignments + chargingProfiles:assign | Body: none | 204 empty after synchronized clear |
ProfileAssignment contains its assignment ID, charger/connector IDs, and safe profile summary. OCPP result objects expose stable request/status information and never credentials.
User, RFID, access, limit, and local-user endpoints
| Method and path | Scope | Request | Success response |
|---|---|---|---|
GET /v2/admin/users | users:read | Query: status-matched cursor? (members: positive numeric; invitations: authenticated opaque i2.*; all: numeric legacy member continuation or authenticated opaque a2.* composite), limit?=50 (1..100), status?="all", "members", or "invitations"; optional X-Admin-User-Search header (max 100) | 200 { items: User[], invitations: Invitation[], chargers: ChargerSummary[], page { nextCursor, memberNextCursor, invitationNextCursor, limit } }; invitations are paginated and hydrated using the same normalized email expression so legacy casing/whitespace cannot hide rows; cursors are bound to the workspace and search filter, contain no readable email address, and must be returned unchanged; all cursors advance member and invitation streams independently |
POST /v2/admin/users | users:create | Body: UserCreate; customer must already be registered | 201 { user: User }; an unknown email returns the non-enumerating 404 RESOURCE_NOT_FOUND body and should use invitations |
POST /v2/admin/users/invitations | users:invitations + users:access; plus users:rfid if rfid supplied | Body: InvitationInput | 200 or 201 { result }; attached result is { kind:"attached", user, accessChanged, rfidChanged }; pending result is { kind:"invited", email, name, maskedRfid, chargerIds, createdCount, emailSent, emailRetryReady, alreadyInvited } |
POST /v2/admin/users/invitations/resend | users:invitations | Body: { email: email } | 200 { result: { targetedChargers, emailSent, emailRetryReady } }; recipient-global cooldown is enforced |
DELETE /v2/admin/users/invitations | users:invitations | Body: { email: email } | 204 empty |
GET /v2/admin/users/:userId | users:read + reports:read | Body/query: none | 200 { user: UserDetail, sessions: UserSession[], totals { count, energyWh, durationSeconds }, window, limitTypes, chargers }; at most 200 sessions over 90 days |
PATCH /v2/admin/users/:userId | users:update | Body: { name: string(1..255) } | 200 { user: User } |
DELETE /v2/admin/users/:userId | users:delete | Body: none | 204 empty |
GET /v2/admin/users/:userId/vehicles | users:read | Query: numeric cursor?, limit?=50 (1..100) | 200 { items: Vehicle[], page { nextCursor, limit } }; vehicle DTO includes safe provider/status/model/telemetry fields |
GET /v2/admin/users/:userId/rfids | users:read | Body/query: none | 200 { items: RFID[] }; UIDs are masked |
POST /v2/admin/users/:userId/rfids | users:rfid | Body: { uid: string(1..36), name?: string or null } | 201 { rfid: RFID }; raw UID is not echoed |
PATCH /v2/admin/users/:userId/rfids/:rfidId | users:rfid | Body: { name: string or null } | 200 { rfid: RFID } |
DELETE /v2/admin/users/:userId/rfids/:rfidId | users:rfid | Body: none | 204 empty |
GET /v2/admin/users/:userId/access | users:read | Body/query: none | 200 { access: Access } |
PUT /v2/admin/users/:userId/access | users:access | Body: AccessInput | 200 { access: Access } |
DELETE /v2/admin/users/:userId/access/:accessId | users:access | Body: none | 204 empty |
GET /v2/admin/users/:userId/limits | users:read | Body/query: none | 200 { items: Limit[] } |
POST /v2/admin/users/:userId/limits | users:limits | Body: LimitCreate | 201 { limit: Limit } |
PATCH /v2/admin/users/:userId/limits/:limitId | users:limits | Body: LimitPatch, at least one property | 200 { limit: Limit } |
DELETE /v2/admin/users/:userId/limits/:limitId | users:limits | Body: none | 204 empty |
GET /v2/admin/chargers/:chargerId/local-users | chargers:read + users:read | Body/query: none | 200 { charger: ChargerSummary, items: LocalUser[], invitations: { email }[], availableMembers: [] }; API deliberately omits the portal's broad available-member directory |
POST /v2/admin/chargers/:chargerId/local-users | chargers:local-users + users:access | Body: { customerId: positive integer, expiresAt?: RFC3339 or null } | 201 { localUser: LocalUserMutation } |
POST /v2/admin/chargers/:chargerId/local-users/invitations | chargers:local-users + users:invitations + users:access | Body: { email: email } | 200 or 201 { result }; existing customer: { invited:false, localUser: LocalUserMutation }; invitation: { invited:true, alreadyInvited, emailSent, emailRetryReady } |
DELETE /v2/admin/chargers/:chargerId/local-users/invitations | chargers:local-users + users:invitations | Body: { email: email } | 204 empty |
PATCH /v2/admin/chargers/:chargerId/local-users/:localUserId | chargers:local-users + users:access | Body: { expiresAt: RFC3339 or null } | 200 { localUser: LocalUserUpdate } |
DELETE /v2/admin/chargers/:chargerId/local-users/:localUserId | chargers:local-users + users:access | Body: none | 204 empty |
The Tagless system user is protected from these operations. Invitation email failures return safe delivery state without leaking SMTP details; callers can retry when emailRetryReady is true.
Binary responses
Two endpoint families do not return JSON on success:
| Endpoint | Content type | Important headers |
|---|---|---|
| Charger QR | image/png | Cache-Control: no-store, Content-Disposition: inline, X-Content-Type-Options: nosniff |
| Report export | text/csv; charset=utf-8 or application/pdf | Cache-Control: private, no-store, Content-Disposition: attachment, X-Content-Type-Options: nosniff |
Errors from binary endpoints are still JSON.