Help with API config.wan.connection

I’m trying to modify the bandwidth allowance settings for my cellular connection. The following is being accepted by the API but the settings aren’t changing. Does anyone know what I’m doing wrong?

{
"action": "update",
"list": [
	{
		"cellular": {
			"sim": {
				"1": {
					"bandwidthAllowanceMonitor": {
						"start": 3,
						"monthlyAllowance": {
							"value": 20,
							"unit": "GB"
						}
					}
				}
			}
		}
	}
]

}

I managed to get the start date working but the actual allowance is still a mystery to me.

My problem was that “sim” needs to be an array.

{
"action": "update",
"list": [
	{
		"id": 2,
		"cellular": {
			"sim": [
				{
					"id": 1,
					"bandwidthAllowanceMonitor": {
						"enable": true,
						"start": 10,
						"monthlyAllowance": {
							"value": 13,
							"unit": "GB"
						}
					}
				}
			]
		}
	}
]
}
1 Like