LemursEye
Documentation
API

Issue an app code

POSThttps://lemurseye.com/api/v1/drivers/{id}/code

Creates 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

  • iduuidrequired

    The driver's id.

Response

200

The new code.

Response fields

  • codestring

    Give 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 found

    No driver with this id.

  • 400
    driver is inactive

    The driver is deactivated.

  • 401

    No token, or it has expired.

  • 403

    The token lacks the permission above.