List contact groups
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
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
-
pagesizeinteger
-
countinteger
-
contactGroupsarray
Show child attributes -
paginationinteger
-
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Retrieve contact group
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
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
-
descriptionstring
description of contact group. -
namestring
name of contact group. -
extension_groupsarray
Show child attributesextension groups belong contact group. -
idinteger
unquie id.
Sample Response
{
"id": 1234
}
Add a new contact group to the system.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
descriptionstring
required
description of contact group. -
nameinteger
required
unquie id. -
extension_groupsarray
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
-
idinteger
unquie id.
Sample Response
{
"id": 1234
}
List contact
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
contact_grpidinteger
required
The id of the contact group. -
sort_bystring
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
-
pagesizeinteger
-
countinteger
-
extensionsarray
Show child attributes -
paginationinteger
-
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Retrieve contact
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
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
-
typestring
type of contact. -
otherstring
phone number of contact. -
companystring
company of contact. -
mobile_phone2string
phone number of contact. -
last_namestring
Last name of contact. -
home_faxstring
phone number of contact. -
pagerstring
pager of contact. -
business_faxstring
phone number of contact. -
businessstring
phone number of contact. -
home_phone2string
phone number of contact. -
emailstring
email of contact. -
first_namestring
First name of contact. -
idinteger
unquie id. -
mobile_phonestring
phone number of contact. -
home_phonestring
phone number of contact. -
business2string
phone number of contact.
Sample Response
{
"id": 1234
}
Update contact group.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
descriptionstring
required
description of contact group. -
idinteger
required
unquie id. -
namestring
required
name of contact group. -
extension_groupsarray
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
typestring
required
type of contact. -
otherstring
required
phone number of contact. -
companystring
required
company of contact. -
mobile_phone2string
required
phone number of contact. -
last_namestring
required
Last name of contact. -
home_faxstring
required
phone number of contact. -
pagerstring
required
pager of contact. -
business_faxstring
required
phone number of contact. -
businessstring
required
phone number of contact. -
home_phone2string
required
phone number of contact. -
emailstring
required
email of contact. -
first_namestring
required
First name of contact. -
idinteger
required
unquie id. -
mobile_phonestring
required
phone number of contact. -
home_phonestring
required
phone number of contact. -
business2string
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
typestring
required
type of contact. -
contact_grpidinteger
required
unquie id. -
companystring
required
company of contact. -
otherstring
required
phone number of contact. -
mobile_phone2string
required
phone number of contact. -
last_namestring
required
Last name of contact. -
home_faxstring
required
phone number of contact. -
pagerstring
required
pager of contact. -
business_faxstring
required
phone number of contact. -
businessstring
required
phone number of contact. -
home_phone2string
required
phone number of contact. -
emailstring
required
email of contact. -
first_namestring
required
First name of contact. -
mobile_phonestring
required
phone number of contact. -
home_phonestring
required
phone number of contact. -
business2string
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
-
idinteger
unquie id.
Sample Response
{
"id": 1234
}