Update phone template
This request changes phone template attributes.
Resource
PATCH /phonetemplates/<OID>
Where OID
is the oid of the phone template
Parameters
None
Payload
Fields
XCCPhone | |
---|---|
Name |
|
allowPeerToPeer |
|
provisioningEnabled |
|
phoneType |
|
configFileName(Only for generic phone type) |
|
functionKeys/<OID PhoneFunctionKeys> |
|
functionKeys/<Random oid to group different function keys fields>/type |
|
functionKeys/<Random oid to group different function keys fields>/label |
|
functionKeys/<Random oid to group different function keys fields>/value |
|
functionKeys/<Random oid to group different function keys fields>/keyIndex |
|
functionKeys/<Random oid to group different function keys fields>/monitoredPhone/<OID XCCPhone> |
|
softKeys/<OID PhoneSoftKey> |
|
softKeys/<Random oid to group different soft keys fields>/type |
|
softKeys/<Random oid to group different soft keys fields>/label |
|
softKeys/<Random oid to group different soft keys fields>/value |
|
softKeys/<Random oid to group different soft keys fields>/keyIndex |
|
softKeys/<Random oid to group different soft keys fields>/monitoredPhone/<OID XCCPhone> |
|
customProvisioningOptions |
|
useRedirection |
|
active |
|
hotDeskingEnabled |
|
doNotDisturb |
|
commonName |
|
Response
None
Context
Authorization |
User |
Errors
Example
PATCH https://xelion.nl/api/v1/master/phonetemplates/1627410
Example
PATCH https://xelion.nl/api/v1/master/phonetemplates/1627410
{
"operations":
[
{
"op": "add",
"path": "/functionKeys/blabla1"
},
{
"op": "add",
"path": "/functionKeys/blabla22"
},
{
"op": "replace",
"path": "/functionKeys/blabla1/label",
"value": "wes"
},
{
"op": "replace",
"path": "/functionKeys/blabla1/keyIndex",
"value": 1
},
{
"op": "replace",
"path": "/functionKeys/blabla22/label",
"value": "haas"
},
{
"op": "replace",
"path": "/functionKeys/blabla22/keyIndex",
"value": 2
},
{
"op": "replace",
"path": "/voicemailNumber",
"value":"400"
},
{
"op": "replace",
"path": "/customProvisioningOptions",
"value":"customized"
}
]
}