Here in the below externalRateCardIds is a string[]. I need to pass the string[] to invoke lambda but when trying to call the endpoint, it tells that no input has been sent. How can we pass string[] to lambda call using JObject?
JArray array = new JArray();
array.Add(externalRateCardIds);
JObject queryParam = new JObject();
queryParam.Add("externalRateCardIds", array);
var externalRateCardLambdaResponse =
await _lambdaInvoker.InvokeLambdaWithResponseAsync(
EnvironmentVariables.ApiLambdaLongName,
$"/api/Bill/GetBillByExternalID",
"get",
new JObject(),
queryParam);