How to remove case sensitive params

Not applicable

I am new to apigee . I need to strip out some parameters from the request and how to do that in case-sensitive manner?

My target endpoint is case sensitive in accepting parameters.

Ex: in the below ex, i want to strip out apiKey,APIKEY or any other case combination.

<AssignMessage name="AssignMessage-1">

<AssignTo createNew="false">request</AssignTo>

<Remove>

<QueryParams>

<QueryParam name='apikey'/>

</QueryParams>

</Remove>

</AssignMessage>

I tried using javascript also for removing the query param , it s not working for me.

Solved Solved
0 2 460
1 ACCEPTED SOLUTION

Hi Ramya T

Welcome to Apigee Community!!

You can do this through Javascript. You can remove a query parameter using the below java code.

var apikey = 'apiKey';

context.removeVariable("request.queryparam." + apikey);

View solution in original post

2 REPLIES 2

Hi Ramya T

Welcome to Apigee Community!!

You can do this through Javascript. You can remove a query parameter using the below java code.

var apikey = 'apiKey';

context.removeVariable("request.queryparam." + apikey);

It is working for me now using the java code. thanks