Revoke a session
DELETE/sessions/:sessionId
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request DELETE \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/sessions/{sessionId}"
Ends this session immediately, server-side — the same effect as that session's own logout, forced by an admin.
Request
Responses
- 204
- default
Session revoked.
An error response.