Issues updating device Mobile Interface Configuration

Hi, i am in need of some help regarding updating configurations on a RUT200.

I have noticed with this current POST request, that it sometimes do update the configuration, and sometimes it wont (most oftenly it won’t).

Context

I am trying to update a RUT200 using this API Method /device/configurator/configure - POST

What i want to update is the configuration for the Mobile Interface WAN → (mob1s1a1).

This is my request body:

{
  "configuration": [
     {
            "device_id": [<device_id>],
            "path": "/interfaces/config/{id}",
            "content_type": "application/json",
            "method": "put",
            "request_data": {
                "data": {
                    "ifname": [],
                    "keepalive_interval": "1",
                    "fwzone": "wan",
                    "defaultroute": "1",
                    "apn": "3iot.com",
                    "metric": "3",
                    "delegate": "1",
                    "auto_apn": "0",
                    "proto": "wwan",
                    "method": "nat",
                    "keepalive_failure": "5",
                    "force_link": "0",
                    "pdptype": "ipv4v6",
                    "bridge": "0",
                    "enabled": "1",
                    "auth": "none"
                }
            },
            "search_elements": {
                "id": {
                    "name": "mob1s1a1",
                    "search_key": "id"
                }
            }
        }
  ]
}

Doing this request, the following error appears in my devices list in RMS.

It seems like it doesnt find the Mobile Interface that is already enabled by default, but tries to create a new one instead?

Any help towards this issue would be great :slight_smile:

Found the issue :slight_smile:

I looked at the direct request from the network, when doing it manually, and the search_elements was wrong. it should be:

search_elements: [
                    {
                        path: '/interfaces/config',
                        search_key: 'id',
                        elements: [
                            {
                                key: 'name',
                                value: 'mob1s1a1'
                            }
                        ]
                    }
                ]

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.