End a temporary access code early
Ends a code before it expires, with the reason somebody had. Expiry, using up its passages and the coach leaving end a code on their own and are not recorded here; this is the one ending that is a decision. **Required permission:** `cycle.access-code:write`
/cycle/v1/temporary-access-codes/{id}/revocationEnds a code before it expires, with the reason somebody had. Expiry, using up its passages and the coach leaving end a code on their own and are not recorded here; this is the one ending that is a decision.
Required permission: cycle.access-code:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/cycle/v1/temporary-access-codes/string/revocation" \ -H "Content-Type: application/json" \ -d '{ "reason": "string" }'{ "cycle_id": "string", "id": "string", "revoked_at": "2019-08-24T14:15:22Z", "revoked_by": "string", "revoked_reason": "string"}Report a code typed at a keypad
Checks what was typed and records the attempt. **The answer is the same whatever the station concluded** — a wrong code, an expired one, one ended by hand and one used at the wrong point are indistinguishable from here, because a keypad that answered differently would tell whoever is standing at it which they hold. What the station concluded is stored and read afterwards. A right code says which coach is at the point; it allows nothing. **Required permission:** `cycle.coach-cycle:write`
Read the account settings
Whether the station can send account e-mails, and how long the invitation and reset links stay usable. Without e-mail, nothing offers an invitation or a reset link, and a temporary password is given instead. **Required permission:** `identity.user:read`