List contact groups
Path parameters
-
access_token
string
required
token to be passed as a header -
pagination
integer
required
The pagination of paging. -
pagesize
integer
required
The size of paging. -
sort_by
string
optional
Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/contacts/group/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesize
integer
-
count
integer
-
contactGroups
array
-
pagination
integer
-
sort_by
string
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Retrieve contact group
Path parameters
-
access_token
string
required
token to be passed as a header -
id
integer
required
contact ID
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/contacts/group/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
description
string
description of contact group. -
name
string
name of contact group. -
extension_groups
array
extension groups belong contact group. -
id
integer
unquie id.
Sample Response
{
"id": 1234
}
Add a new contact group to the system.
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
description
string
required
description of contact group. -
name
integer
required
unquie id. -
extension_groups
array
required
extension groups belong contact group.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/contacts/group/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"name": 1234
}'
Responses
200
application/json
-
id
integer
unquie id.
Sample Response
{
"id": 1234
}
List contact
Path parameters
-
access_token
string
required
token to be passed as a header -
pagination
integer
required
The pagination of paging. -
pagesize
integer
required
The size of paging. -
contact_grpid
integer
required
The id of the contact group. -
sort_by
string
optional
Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/contacts/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesize
integer
-
count
integer
-
extensions
array
-
pagination
integer
-
sort_by
string
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Retrieve contact
Path parameters
-
access_token
string
required
token to be passed as a header -
id
integer
required
contact ID
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/contacts/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
type
string
type of contact. -
other
string
phone number of contact. -
company
string
company of contact. -
mobile_phone2
string
phone number of contact. -
last_name
string
Last name of contact. -
home_fax
string
phone number of contact. -
pager
string
pager of contact. -
business_fax
string
phone number of contact. -
business
string
phone number of contact. -
home_phone2
string
phone number of contact. -
email
string
email of contact. -
first_name
string
First name of contact. -
id
integer
unquie id. -
mobile_phone
string
phone number of contact. -
home_phone
string
phone number of contact. -
business2
string
phone number of contact.
Sample Response
{
"id": 1234
}
Update contact group.
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
description
string
required
description of contact group. -
id
integer
required
unquie id. -
name
string
required
name of contact group. -
extension_groups
array
required
extension groups belong contact group.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/contacts/group/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
200
Sample Response
Delete an contact
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
id
integer
required
unquie id.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/contacts/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
404
200
400
Sample Response
Udpate contact
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
type
string
required
type of contact. -
other
string
required
phone number of contact. -
company
string
required
company of contact. -
mobile_phone2
string
required
phone number of contact. -
last_name
string
required
Last name of contact. -
home_fax
string
required
phone number of contact. -
pager
string
required
pager of contact. -
business_fax
string
required
phone number of contact. -
business
string
required
phone number of contact. -
home_phone2
string
required
phone number of contact. -
email
string
required
email of contact. -
first_name
string
required
First name of contact. -
id
integer
required
unquie id. -
mobile_phone
string
required
phone number of contact. -
home_phone
string
required
phone number of contact. -
business2
string
required
phone number of contact.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/contacts/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
200
Sample Response
Destroy an contact group
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
id
integer
required
unquie id.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/contacts/group/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
404
200
400
Sample Response
Add a new contact to the system.
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
type
string
required
type of contact. -
contact_grpid
integer
required
unquie id. -
company
string
required
company of contact. -
other
string
required
phone number of contact. -
mobile_phone2
string
required
phone number of contact. -
last_name
string
required
Last name of contact. -
home_fax
string
required
phone number of contact. -
pager
string
required
pager of contact. -
business_fax
string
required
phone number of contact. -
business
string
required
phone number of contact. -
home_phone2
string
required
phone number of contact. -
email
string
required
email of contact. -
first_name
string
required
First name of contact. -
mobile_phone
string
required
phone number of contact. -
home_phone
string
required
phone number of contact. -
business2
string
required
phone number of contact.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/contacts/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"contact_grpid": 1234
}'
Responses
200
application/json
-
id
integer
unquie id.
Sample Response
{
"id": 1234
}