SmartGare
API referenceEndpoints

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`

POST/cycle/v1/temporary-access-codes/{id}/revocation

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

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RevokeTemporaryAccessCodeRequest

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"}