Page 1 of 1

unknown parameter API Error

Posted: Wed Jan 02, 2019 6:24 pm
by hiad
Hello Everybody,

Im adding and activating a user using the API with nodejs. But im getting an error, actually i dont know what parameters are required or no.

Error result { type: 'trap',
[0] tag: '1545860481331',
[0] data: [ { field: 'message', value: 'unknown parameter' } ],
[0] cmd:
[0] { id: 1,
[0] command: '/ip/hotspot/active/login',
[0] args:
[0] { name: 'Hector',
[0] password: 'hiaffffd9@gmail.com',
[0] ip: '172.16.100.5' } } }
[0] Error result { type: 'trap',
[0] tag: '1545860481334',
[0] data: [ { field: 'message', value: 'unknown parameter' } ],
[0] cmd:
[0] { id: 1,
[0] command: '/ip/hotspot/user/add',
[0] args:
[0] { name: 'Hector',
[0] password: 'hiaffffd9@gmail.com',
[0] ip: '172.16.100.5' } } }

Re: unknown parameter API Error

Posted: Thu Jan 03, 2019 11:55 am
by mrz
use correct parameter names, there is no "name" for this command, but "user"