Einrichtungscode sperren
Revoke a token by deleting it; redeeming it afterwards fails
Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).
Ort: header
Pfadparameter
The employee ID
uuidThe enrollment token ID
uuidResponse-Body
application/json
application/json
curl -X DELETE "https://example.com/employees/497f6eca-6276-4993-bfeb-53cbbbba6f08/enrollment_tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08"Einrichtungscode erstellen POST
The plain token is returned exactly once, together with the ready-made QR payload; the database only ever sees its SHA-256 hash. Redeeming it is a full session as the employee, so apart from a workspace admin nobody may create one for an account with permissions beyond their own (403); the employee is notified when someone else created it.
Einrichtungscode einlösen POST
Returns the same payload as `POST /rest/login`. Every failure mode (unknown, expired, revoked, already redeemed, blocked account, issuer no longer entitled to issue it for this account) answers with the identical 422 so token state cannot be probed.