/user/totp/saveSave a user TOTP configuration
Saves a TOTP configuration for the authenticated user. Supply a config_name defined in the SFTPGo configuration file and select the protocols that require TOTP. Set secret.status to Plain with a payload to save a new secret, or to Redacted to preserve the existing secret.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
TOTP configuration settings to save for the authenticated user.
A 400 is returned when the request is invalid; a 401 when the request is unauthenticated; and a 403 when the authenticated user is not permitted to save the configuration. A 409 is returned when the save conflicts with the current configuration; a 500 when an internal server error occurs. config_name must name a configuration defined in the totp section, protocols values must be SSH, FTP, or HTTP, and a new secret payload must use status Plain.