Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### To create new group
- ### POST/v1/group
- Request:
- Body :
- {
- "group_name" : "Live Answer",
- "greeting_id": "4ec5c4c9-d02b-4050-b092-40a084",
- "organisation_id" : "cb224b99-c516-4461-9b26-bb13315495c4",
- "group_phone" : "+918015321683",
- "group_email" : "liveanswerservice@gmail.com",
- "ring_type" : "RingEach",
- }
- Response:
- {
- "success": true,
- "id": "72b82ab7-345b-4035-aff7-7ef34131b172",
- }
- ### PUT/v1/group/< group_id >
- Request:
- Body :
- {
- "group_name" :"SynclioSupport",
- "group_email" : "syncliosupport@gmail.com",
- "group_phone" : "+919949003459",
- "ring_type" : "RingAll",
- "greeting_id":"4050-b092-40a084f75a14"
- }
- Response:
- {
- "success": True
- }
- ### PUT/v1/group/< group_id >/user
- Request:
- Body:
- {
- "user_id" : "385e666d-1790-49fb-8caa-2c338bea97b6"
- }
- Response:
- {
- "success": True
- }
- ### GET/v1/group_details/<group_id>
- Response:
- {
- "group_details": {
- "group_email": "liveanswerservice@gmail.com",
- "group_phone": "+918015321683",
- "team_name": "Live Answer",
- "greeting_name": "goodday.mp3",
- "greeting_url": "wish.mp3",
- "ring_type": "RingEach"
- },
- "success": true
- }
- ### GET/v1/user/< user_id >/groups
- Response:
- {
- "success": true
- "group_list": [
- {
- "group_name": "live",
- "group_id": "f71e7bd7-7383-40f6-ac6f-bc929106e2af"
- },
- {
- "group_name": "live answer",
- "group_id": "7bd7-7383-40f6-ac6f-bc92910
- },
- {
- "group_name": "synclio support",
- "group_id": "7bd7-7383-40f6-ac6f-bc92910
- }
- ]
- }
Add Comment
Please, Sign In to add comment