/admin/totp/saveSave an administrator TOTP configuration
Saves a TOTP configuration for the authenticated administrator. Set config_name to a configuration defined in the totp section of the SFTPGo configuration file, and provide a new secret with status Plain; status Redacted preserves the existing secret. The encryption key and additional data are generated automatically when a new secret is saved.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The TOTP configuration to save.
A 400 is returned when the request is invalid; a 401 when authentication is missing or invalid; a 403 when the authenticated user is not permitted to save the configuration; a 409 when the save conflicts with the current configuration; and a 500 when an internal error occurs. config_name must reference a configuration defined in the totp section; to set a new secret, provide its payload and set its status to Plain, while Redacted preserves the existing secret.