# Invalidate temporal access
This allows you to invalidate a generated temporal access. If the temporal access is in progress, the AnyDesk session will be terminated and the access web page will expire.
PATCH api/v1/temporal-access/{token}/invalidate
Example request:
curl -X PATCH https://app.anyclassroom.com/api/v1/temporal-access/63afad41-033d-445c-8674-e4140923af86/invalidate \
-H 'X-Token-AC: {token}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "Invalidated",
"session_expires_at": "2021-09-08T16:27:30.110404Z"
}
# Notes
The link will be invalidated in the next 30 second interval. Example: If you request to invalidate a temporary link at 18:30:15, the link will be invalidated at 18:30:30. If the request is at 18:30:35 the link will be invalidated at 18:31:00.
If the temporary link has already invalidated the response will be a 422 error with the message:
{
"error": "Temporal access already invalidated or expired"
}
- In order for the link to be automatically invalidated, the device must have 2FA enabled in AnyClassroom.