Adding multiple users/devices via Kazoo API (in bulk) through Poster/chrome Advanced Rest Client

147 views
Skip to first unread message

mdury

unread,
Jul 11, 2014, 6:32:16 PM7/11/14
to 2600h...@googlegroups.com
Hi,
Is it possible to add multiple users/ devices through the API?
I have followed the kazoo wiki documentation and have been able to add single users/devices. Just cannot figure out the syntax to add multiples at once

Does anyone have an example input of how to add multiple users at once?

for example

{
   "data":{
      "name":"Mr User1",
      "sip":{
         "realm":"lab.d3uc.us",
         "password":"d3uc135790",
         "device_type":"sip_device",
         "username":"101",
         "mac_address":"33:44:44:55:66:01"       
      },
      "caller_id":{
         "external":{
            "number":"+19995550101"
         }
      },
      "owner_id": "b8d2d7b3992b12bf8a34bd878fa8bc41"
   }
],
   "data":{
      "name":"Mr User2",
      "sip":{
         "realm":"lab.d3uc.us",
         "password":"d3uc135790",
         "device_type":"sip_device",
         "username":"102",
         "mac_address":"33:44:44:55:66:02"       
      },
      "caller_id":{
         "external":{
            "number":"+19995550102"
         }
      },
      "owner_id": "b8d2d7b3992b12bf8a34bd878fa8bc42"
   }
}

My objective is to be able to add multiple users/devices/voicemailboxes etc, for larger installs

if anyone has some tips, really would appreciate it

Thanks

MD

Jean Roch Maitre

unread,
Jul 11, 2014, 6:40:35 PM7/11/14
to 2600h...@googlegroups.com
There's no bulk add available via the APIs. You would have to do it programmatically by creating a dataset and sending requests with a loop or something!

--
Jean-Roch Maitre
Front-end Engineer

  visit: www.2600hz.com
  e-mail: JR@2600hz.com
  tel: 415-886-7900


De : 2600h...@googlegroups.com [2600h...@googlegroups.com] de la part de mdury [miked...@gmail.com]
Envoyé : vendredi 11 juillet 2014 15:32
À : 2600h...@googlegroups.com
Objet : Adding multiple users/devices via Kazoo API (in bulk) through Poster/chrome Advanced Rest Client

--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mdury

unread,
Jul 14, 2014, 10:23:51 AM7/14/14
to 2600h...@googlegroups.com
JR,

I appreciate the response. 
Thanks

MD
Reply all
Reply to author
Forward
0 new messages