Import permits
Imports a batch of permits from a CSV file and reports one outcome per row, including permit conflicts committed concurrently. **Required permission:** `referential.vehicle:import-permits`
/referential/v1/vehicle-permits/importsImports a batch of permits from a CSV file and reports one outcome per row, including permit conflicts committed concurrently.
Required permission: referential.vehicle:import-permits
Authorization
oauth2 In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/referential/v1/vehicle-permits/imports" \ -F file="string"{ "conflicted": 0, "imported": 0, "rejected": 0, "rows": [ { "line": 0, "number": "string", "outcome": "string", "reason": "string" } ], "unresolved": 0}Run the permit expiry watch
Requests the permit expiry watch now. A request arriving while another run owns the distributed lock is coalesced into that run. **Required permission:** `referential.vehicle:trigger-expiry-watch`
Get a permit
Returns a vehicle permit by id. **Required permission:** `referential.vehicle:read`