Calling failing on adding devices

Hi All, so i have been making an API to add a user using your, i call the functions and it adds an extension but fails to add a device.

here is my out put:


Fields are empty

Trace Back

/var/www/html/admin/modules/core/Core.class.php:110 die_freepbx()
  [0]: Fields are empty

/var/www/html/admin/modules/core/ FreePBX\modules\Core->convertRequest2Array()
  [0]: 471100
  [1]: sip
  [2]: 2

/var/www/html/dir/add.php:154 core_devices_add()
  [0]: 471100
  [1]: sip
  [2]: SIP/471100
  [3]: fixed
  [4]: 471100
  [5]: brian test

any help would be greatly appreciated.

many thanks,