Payload Formatters APIs

Good morning everyone,

Is there any API, that we can use to Create or Update the Payload Formatters (JavaScript) in TTN V3??

I went through the TTN API Documentation but could not find any. Any leads would be highly appreciated. Thanks.

Kind regards,
Imran Khan

Not that I’m aware of, but you can do it with the CLI

1 Like

I haven’t tried it myself but it looks like you can do it either on a per device basis ( End Device APIs | The Things Stack for LoRaWAN (thethingsindustries.com)) or per Application basis ( Application Server APIs | The Things Stack for LoRaWAN (thethingsindustries.com))

Good spot - I guess we’ll have to figure out the formatting of the JSON by formulating a get to see how it’s done as the only two examples for the formatter field set are both this:

{
  "up_formatter": "FORMATTER_NONE",
  "up_formatter_parameter": "",
  "down_formatter": "FORMATTER_NONE",
  "down_formatter_parameter": "",
}

You can create an issue on Github and request the documentation to be improved.