- Goal: Send an HTTP POST request where the body of the request has the key "to" with an array value.
Steps:
- Create a query (REST api call with HTTP POST)
- Specify the header
Content-Type
: application/json - Set the body type to
Raw
- Use the following body (note the "to" keyword)
{
templateId: {{ template.value }},
params: {
date: {{ date.value }}
},
to: [
{
email: {{ to_email.value }},
name: "client"
}
],
}
Result: the request Retool makes will simply have "to": "" instead of taking the array value as specified
Changing the key from "to" to some arbitrary value appears to resolve the issue, (i.e, when changed to "foo" it works as expected)
- Screenshots
Fails to work correctly forto
key
Works with foo
key