@ -66,9 +66,9 @@ namespace Radarr.Api.V3
}
[RestPostById]
public ActionResult < TProviderResource > CreateProvider ( TProviderResource providerResourc e)
public ActionResult < TProviderResource > CreateProvider ( [ FromBody ] TProviderResource providerResourc e, [ FromQuery ] bool forceSave = fals e)
{
var providerDefinition = GetDefinition ( providerResource , true , fals e, false ) ;
var providerDefinition = GetDefinition ( providerResource , true , ! forceSav e, false ) ;
if ( providerDefinition . Enable )
{
@ -83,7 +83,7 @@ namespace Radarr.Api.V3
[RestPutById]
public ActionResult < TProviderResource > UpdateProvider ( [ FromBody ] TProviderResource providerResource , [ FromQuery ] bool forceSave = false )
{
var providerDefinition = GetDefinition ( providerResource , true , fals e, false ) ;
var providerDefinition = GetDefinition ( providerResource , true , ! forceSav e, false ) ;
// Only test existing definitions if it is enabled and forceSave isn't set.
if ( providerDefinition . Enable & & ! forceSave )
@ -241,7 +241,7 @@ namespace Radarr.Api.V3
protected void VerifyValidationResult ( ValidationResult validationResult , bool includeWarnings )
{
var result = new NzbDroneValidationResult ( validationResult . Errors ) ;
var result = validationResult as NzbDroneValidationResult ? ? new NzbDroneValidationResult ( validationResult . Errors ) ;
if ( includeWarnings & & ( ! result . IsValid | | result . HasWarnings ) )
{