TRB256 Device Data to Server Configuration API

Hello,

We are using the API to retrieve, add, and modify the TRB256 device configuration from an application.
We found that configuring the Data to Server requires calling three APIs:

  1. Create collection config
  2. Add data plugins
  3. Add server plugins
    When executing the first API to create the collection config, I encounter the following error. Since the other APIs depend on the collection config ID returned by the first API, this issue blocks further progress. Could you please assist us with the Data to Server APIs, including the payloads?

Error details:
“data”: [
{
“section”: “13”,
“error”: “Missing required option: input”,
“source”: “enabled”,
“code”: 103
},
{
“section”: “13”,
“error”: “Missing required option: output”,
“source”: “enabled”,
“code”: 103
}
]

Thanks for your help.

Hello,

If you haven’t already, please refer to our developers portal for the correct structure of the API calls & ensure that you’re not missing anything: https://developers.teltonika-networks.com/reference/rutx11/7.16.1/v1.8.2/data-to-server#get-data_to_server-collections-config

From the error messages, you haven’t declared the output that is supposed to happen once x action happens. "output": "string",

If you’re still unable to figure it out, please provide your API call structure (delete any sensitive information such as passwords, public IPs, etc.)

Regards,
M.

Hello,

We have reviewed the API schema and did not find any input or output fields that require being sent in the payload.
Please refer to the API URL and payload below that we are using to create the collection configuration.

https://api.rms.teltonika-networks.com/devices/configurator/configure

{
“configuration”: [
{
“device_id”: [
1
],
“path”: “/data_to_server/collections/config”,
“method”: “post”,
“content_type”: “application/json”,
“request_data”: {
“data”: {
“enabled”: “1”,
“name”: “Test”,
“format”: “json”,
“timer”: “period”,
“period”: “60”
}
}
}
]
}

Hello,

After reaching out to the RMS team, they’ve informed me that they are currently working on this issue.

Regards,
M.

Hello

Please let me know once the issue is fixed in this thread.Please fix as soon as possible.

Thank you

Will make sure to do that!

Regards,
M.

This topic was automatically closed after 60 days. New replies are no longer allowed.