PBX API : PUT /Phonebooks/:id/

To update a phone book, make an HTTP PUT request with basic authorization, resource URI:

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

PUT Parameters

Required Parameters

NamePossible valuesRequiredDescription
data

name
type
hash
sync_set
sync_interval
sync_params

 

Example:
data[name]=phone book name

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
POST http://{PBX}/api/v1/Phonebooks/53/
 {

    "type":"result",
    "result":{
        "changed":1
    }
}