Disable a user's TOTP
POST/users/:username/disable-totp
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/users/{username}/disable-totp"
Root-only over the Unix socket. Checked against the peer's uid 0 specifically. Audit-logged and announced through every notification channel.
Request
Responses
- 204
- default
TOTP disabled.
An error response.