From 19a1f97be8bdc1c9756f205eebb327c32ae6908f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 18 May 2023 13:17:36 +0300 Subject: [PATCH] Add `forceSave` to the OpenAPI docs (cherry picked from commit ef0b91b45bc7f1295efb03dc44630f1442e18be1) Fixes #8538 --- src/Radarr.Api.V3/ProviderControllerBase.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Radarr.Api.V3/ProviderControllerBase.cs b/src/Radarr.Api.V3/ProviderControllerBase.cs index 2d506b6b6..872bc979d 100644 --- a/src/Radarr.Api.V3/ProviderControllerBase.cs +++ b/src/Radarr.Api.V3/ProviderControllerBase.cs @@ -6,7 +6,6 @@ using NzbDrone.Common.Serializer; using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; -using Radarr.Http.Extensions; using Radarr.Http.REST; using Radarr.Http.REST.Attributes; @@ -74,10 +73,9 @@ public ActionResult CreateProvider(TProviderResource provider } [RestPutById] - public ActionResult UpdateProvider(TProviderResource providerResource) + public ActionResult UpdateProvider([FromBody] TProviderResource providerResource, [FromQuery] bool forceSave = false) { var providerDefinition = GetDefinition(providerResource, true, false, false); - var forceSave = Request.GetBooleanQueryParameter("forceSave"); // Only test existing definitions if it is enabled and forceSave isn't set. if (providerDefinition.Enable && !forceSave)