PBX API : POST /Phonebooks/

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

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

POST Parameters

Required Parameters

NamePossible valuesRequiredDescription
data

name
type
hash
sync_set
sync_interval
sync_params

name

Example:
data[name]=phone book name
data[type]=1

type - can be 1 (PERSONAL), 2 (GLOBAL)

hash - set automatically

Only for admins:
type - 2 (GLOBAL)
sync_set
sync_interval


Optional Parameters:

NameDefaultPossible valuesDescription

Example:

 

POST params
data[name]=phone book name
data[type]=1
POST http://{PBX}/api/v1/Phonebooks/
 {

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