revertSettingToDefault

abstract suspend fun revertSettingToDefault(sessionToken: SettingsManagementSessionToken, key: SettingKey): Boolean

Reverts the value of the setting with key for a session with sessionToken to its default value.

If sessionToken does not match the service's current session token, the request may still succeed if the token belongs to a previous session and the service is able to modify the setting in that session. Otherwise the request fails.

Return

True if request succeeds, and the setting was modified.

Throws

when the setting with key has not been created.