API
Issue an app code
POST
https://lemurseye.com/api/v1/drivers/{id}/codeCreates the code a driver types into the driver app to sign in: 8 characters, letters and digits without look-alikes (no 0, O, 1, I, L).
The code is returned only this once; we keep a hash. Issuing a new code signs the driver out of the app everywhere and the old code stops working. No body.
Permission: drivers:write. The token is sent as Authorization: Bearer <token>; see Authentication.
Path parameters
iduuidrequiredThe driver's id.
Response
200 The new code.
Response fields
codestringGive it to the driver; it cannot be read back later.
Errors
Where a message is listed, it comes back as JSON: { "error": "..." }. Otherwise only the status code is returned.
- 404
driver not foundNo driver with this id.
- 400
driver is inactiveThe driver is deactivated.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.