Mapping Method in HTTP module

:bullseye: What is your goal?

Set up Mapped value for HTTP module, field Method (GET, POST, PATCH,etc.)

:thinking: What is the problem & what have you tried?

Hello,

I have a problem with Mapping method in HTTP module.

First I set up and load variable. Then I am trying to set up variable as input for Mapped Method.

:clipboard: Error messages or input/output bundles

BundleValidationError
Validation failed for 1 parameter(s).
Prohibited value in parameter ‘method’.

Origin
Make

URL https://www.myurl.com
Method 44. Method
Body content type json
Body input method jsonString

Module 44. is GetVariable

1 Like

The HTTP Method field in Make does not support dynamic mapping. Only fixed values (GET, POST, PATCH, etc.) are allowed.

Mapping a variable causes the “Prohibited value in parameter ‘method’” error.

Do you need a solution to this project

Hi @vlado_vaco - the mapped method needs to be lowercase, e.g. get instead of GET.

In the Method field you can wrap your variable with the lower() formula like this:

lower( {{44.method}} )

… to dynamically transform it to lowercase.

If that still doesn’t work, make sure your method variable is correctly mapped/selected from the Get Variables module (not just typed in as plain text) and that it actually receives values/is not blank at runtime.

Cheers!

5 Likes

thank you. this is the solution :slight_smile:

1 Like

Thank you @vlado_vaco for coming back here and letting us know the solution :slight_smile: And @SierraV, thank you, of course for the solution :sun:

2 Likes