Guest User

Untitled

a guest
Dec 8th, 2017
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. #### To create new group
  2.  
  3. ### POST/v1/group
  4.  
  5.  
  6. Request:
  7.  
  8. Body :
  9.  
  10. {
  11. "group_name" : "Live Answer",
  12. "greeting_id": "4ec5c4c9-d02b-4050-b092-40a084",
  13. "organisation_id" : "cb224b99-c516-4461-9b26-bb13315495c4",
  14. "group_phone" : "+918015321683",
  15. "group_email" : "liveanswerservice@gmail.com",
  16. "ring_type" : "RingEach",
  17. }
  18.  
  19.  
  20. Response:
  21.  
  22. {
  23. "success": true,
  24. "id": "72b82ab7-345b-4035-aff7-7ef34131b172",
  25. }
  26.  
  27.  
  28. ### PUT/v1/group/< group_id >
  29.  
  30.  
  31. Request:
  32.  
  33. Body :
  34.  
  35. {
  36. "group_name" :"SynclioSupport",
  37. "group_email" : "syncliosupport@gmail.com",
  38. "group_phone" : "+919949003459",
  39. "ring_type" : "RingAll",
  40. "greeting_id":"4050-b092-40a084f75a14"
  41. }
  42.  
  43.  
  44. Response:
  45.  
  46. {
  47. "success": True
  48. }
  49.  
  50.  
  51. ### PUT/v1/group/< group_id >/user
  52.  
  53.  
  54. Request:
  55.  
  56. Body:
  57.  
  58. {
  59. "user_id" : "385e666d-1790-49fb-8caa-2c338bea97b6"
  60. }
  61.  
  62.  
  63.  
  64. Response:
  65.  
  66. {
  67. "success": True
  68. }
  69.  
  70.  
  71. ### GET/v1/group_details/<group_id>
  72.  
  73.  
  74. Response:
  75.  
  76. {
  77. "group_details": {
  78. "group_email": "liveanswerservice@gmail.com",
  79. "group_phone": "+918015321683",
  80. "team_name": "Live Answer",
  81. "greeting_name": "goodday.mp3",
  82. "greeting_url": "wish.mp3",
  83. "ring_type": "RingEach"
  84. },
  85. "success": true
  86. }
  87.  
  88.  
  89. ### GET/v1/user/< user_id >/groups
  90.  
  91.  
  92. Response:
  93.  
  94. {
  95. "success": true
  96. "group_list": [
  97. {
  98. "group_name": "live",
  99. "group_id": "f71e7bd7-7383-40f6-ac6f-bc929106e2af"
  100. },
  101. {
  102. "group_name": "live answer",
  103. "group_id": "7bd7-7383-40f6-ac6f-bc92910
  104. },
  105. {
  106. "group_name": "synclio support",
  107. "group_id": "7bd7-7383-40f6-ac6f-bc92910
  108. }
  109. ]
  110. }
Add Comment
Please, Sign In to add comment