PBX API : POST /Phonebooks/:id/Contacts/

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

http(s)://{PBX}/api/v1/Phonebooks/:id/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

Example:
data[name]=contact name

hash - set automatically

 

Optional Parameters:

NameDefaultPossible valuesDescription

Example:

 

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

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