Hello! I am trying to run a server action that updates an API. I am hoping that both elements of my key value pair can be called dynamically, not just the value. Here is what I am attempting to do:
I have successfully pulled in the dynamic value for both parameter and description_value POST variables. I have tested this by setting cookie values, etc. However, whenever I try to run this API request, it doesn’t work as expected because the key doesn’t resolve dynamically.
Here is the code for the server action:
I am wanting the {{$_POST.parameter}} on line 33 to resolve dynamically. Please let me know if this is possible, or if someone has done it before Thank you so much!