Community discussions

 
hiad
just joined
Topic Author
Posts: 9
Joined: Tue Jul 10, 2018 6:38 am

unknown parameter API Error

Wed Jan 02, 2019 6:24 pm

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' } } }
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5934
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: unknown parameter API Error

Thu Jan 03, 2019 11:55 am

use correct parameter names, there is no "name" for this command, but "user"

Who is online

Users browsing this forum: Majestic-12 [Bot] and 12 guests