Create CPO (durable)
Create CPO (durable)
Create CPO (durable)
Kick off a full OCPI CPO in one call: network + locations + chargers + topology routing. Returns 202 Accepted in under a second with the freshly minted Token A (so the eMSP peer can handshake immediately) and a status_url. The slow per-location / per-charger / ECS work runs as a durable Upstash Workflow with step-level retries. Poll GET {status_url} every 1-2s until status == READY (or FAILED).
Bearer authentication of the form Bearer <token>, where token is your auth token.
Template slug. Use GET /ocpi/cpos/templates for the gallery.
ISO 3166-1 alpha-2 country code.
3-char OCPI party identifier. May be auto-mangled on collision if another CPO already holds this (country, party) under your org.
Optional deterministic seed. Same seed + same template = byte-identical output. Leave null for random (different each call).
Auto-destroy after N seconds (min 60s, max 7 days). Defaults to 3600 (1 hour) so exploratory CPOs don’t pile up. Pass an explicit null to opt out of auto-destroy.
Template-specific overrides. Supported keys: locations, chargers_per_location. Values are bounded by each template’s caps.
CPO provisioning accepted; poll status_url for progress
Freshly minted Token A. Returned here only; not echoed on GET.
Pre-built eMSP helper payload so the peer can handshake in one paste.
Internal provisioning run id. Opaque to clients; include it in bug reports when something goes wrong.