HTTP Post data template

Hi,

I have this working curl command that makes a downlink in TTN and would like to use the HTTP node to call it.

curl --location \
  --header 'Authorization: Bearer [redacted]
  --header 'Content-Type: application/json' \
  --header 'User-Agent: my-integration/my-integration-version' \
  --request POST \
  --data '{
    "downlinks": [{
      "frm_payload": "MjAwMA==",
      "f_port": 1
    }]
  }' \
  'https://eu1.cloud.thethings.network/api/v3/as/applications/dessak/devices/eui-0sssss3c75d/down/replace'

However I can’t figure out where to put the data template:
[redacted]

Any ideas?

thanks

Hi there! Your original post contained an authorization token. Being as this is a public forum, we strongly discourage posting any tokens or credentials. While it has been removed from the original post, you should consider that token compromised and generate a new one.

As far as formatting the HTTP node, please refer to the following documentation. Your data should go under Body Template. If you have any further questions, please let us know.

1 Like

Ok i did some testing and this works:
image

thanks