PBX API : POST /Contacts/

To add a contact, make an HTTP POST request with basic authorization, resource URI:

http(s)://{PBX}/api/v1/Contacts/

POST Parameters

Required Parameters

NamePossible valuesRequiredDescription
data

name
email
extension
phone
office
home
home_mobile
fax
mobile
organization
picture
shortcut
phonebook_id
type
note
address
vat_id
name_prefix
document_type
document_id
pin
credit
hash
country
date_birth
born_in
postal_code
city
province
license_plate
document_released
document_from

name
phonebook_id

Example:
data[name]=contact name
data[phonebook_id]=54

hash - set automatically

 

Optional Parameters:

NameDefaultPossible valuesDescription

Example:

 

POST params
data[name]=contact name
data[phonebook_id]=54
POST http://{PBX}/api/v1/Contacts/
 {

    "type":"result",
    "result":{
        "id":58466
    }
}