public async Task <IActionResult> AssignProfilePatternKeyToPublishedProvider( [FromRoute] string fundingStreamId, [FromRoute] string fundingPeriodId, [FromRoute] string providerId, [FromBody] ProfilePatternKey profilePatternKey) { Guard.ArgumentNotNull(fundingStreamId, nameof(fundingStreamId)); Guard.ArgumentNotNull(fundingPeriodId, nameof(fundingPeriodId)); Guard.ArgumentNotNull(providerId, nameof(providerId)); Guard.ArgumentNotNull(profilePatternKey, nameof(profilePatternKey)); HttpStatusCode apiResponse = await _publishingApiClient.AssignProfilePatternKeyToPublishedProvider( fundingStreamId, fundingPeriodId, providerId, profilePatternKey); return(StatusCode((int)apiResponse)); }