Update Phone Line
This request changes the attributes of a phone line.
Resource
PATCH /phonelines/<OID>
Where OID
is the object ID of the phone line.
Parameters
None
Payload
Fields
name | Patch Operations | Editable by Manager |
---|---|---|
commonName |
|
|
callerName |
|
|
associatedAddressable |
|
|
defaultFallback |
|
|
externalNumber |
|
|
extensions |
|
|
phones |
|
|
musicOnHoldCategory |
|
V |
saveCallRecording |
|
|
doNotRecordInternalCalls |
|
|
unlimitedChannelCount |
|
|
hideInPhoneList |
|
|
announcementEnabled |
|
|
announcement |
|
|
announcement.audioMessage.commonName |
|
|
announcement.audioMessage.originalLocation |
|
|
announcement.audioMessage.mimeType |
|
|
announcement.audioMessage.contentsB64String |
|
|
announcement.textToSpeech.message |
|
|
announcement.textToSpeech.language |
|
|
announcement.textToSpeech.speaker |
|
|
callerAnnouncementEnabled |
|
|
callerAnnouncement |
|
|
callerAnnouncement.audioMessage.commonName |
|
|
callerAnnouncement.audioMessage.originalLocation |
|
|
callerAnnouncement.audioMessage.mimeType |
|
|
callerAnnouncement.audioMessage.contentsB64String |
|
|
callerAnnouncement.textToSpeech.message |
|
|
callerAnnouncement.textToSpeech.language |
|
|
callerAnnouncement.textToSpeech.speaker |
|
|
hideNumbers |
|
|
isConferenceRoom |
|
|
conferenceRoomListenOnly |
|
|
conferenceRoomCallerId |
|
|
allowedNumbers |
|
|
forwardCallerIdMap |
|
|
isChatable |
|
V |
groupChatActive |
|
|
chatHuntingTimeout |
|
V |
chatIdleTimeout |
|
V |
chatEndedTimeout |
|
V |
chatHeartbeatInterval |
|
V |
chatHeartbeatMessage |
|
V |
chatNoAgentsAvailableMessage |
|
V |
limitAccessToCallRecording |
|
|
callRecordingUsers |
|
|
callLogUsers |
|
|
managers |
|
|
trafficClasses |
|
|
afterCallTypes |
|
|
minNumberOfActiveUsersInLine |
|
|
Users |
||
users |
|
V |
users.user |
|
V |
users.skillNumber |
|
V |
users.incoming |
|
V |
users.outgoing |
|
V |
users.editable |
|
V |
users.lineOrder |
|
V |
User Phone Line |
||
userPhoneLine.timeout |
|
V |
userPhoneLine.redirectionTimeout |
|
V |
userPhoneLine.listeners |
|
V |
userPhoneLine.userStatus |
|
V |
userPhoneLine.message |
|
V |
userPhoneLine.location |
|
V |
userPhoneLine.voicemailGreeting |
|
V |
userPhoneLine.voicemailGreeting.audioMessage.commonName |
|
V |
userPhoneLine.voicemailGreeting.audioMessage.originalLocation |
|
V |
userPhoneLine.voicemailGreeting.audioMessage.mimeType |
|
V |
userPhoneLine.voicemailGreeting.audioMessage.contentsB64String |
|
V |
userPhoneLine.voicemailGreeting.textToSpeech.message |
|
V |
userPhoneLine.voicemailGreeting.textToSpeech.language |
|
V |
userPhoneLine.voicemailGreeting.textToSpeech.speaker |
|
V |
userPhoneLine.workSchedule.enabled |
|
V |
userPhoneLine.workSchedule.disableOverrideUnavWarn |
|
V |
userPhoneLine.workSchedule.template |
|
V |
userPhoneLine.workSchedule.times |
|
V |
Day Night Mode |
||
dayNightMode.enableDayNightMode |
|
V |
dayNightMode.manualNightMode |
|
V |
dayNightMode.oneOffOverrideDateTime |
|
V |
dayNightMode.oneOffOverrideMode |
|
V |
dayNightMode.disableNotReachableWarning |
|
V |
dayNightMode.switchTimeTemplate |
|
V |
dayNightMode.syncSwitchTimeTemplate |
|
V |
dayNightMode.switchTime |
|
V |
dayNightMode.mainOverrides |
|
V |
dayNightMode.overrides |
|
V |
Queue |
||
processQueueInOrder |
|
|
answerWithMusicOnHold |
|
V |
lineHuntingPolicy |
|
|
lineHuntingTimeout |
|
|
connectFirstAvailable |
|
|
ringLastTalkedToFirst |
|
|
callQueueWrapupTime |
|
|
manualWrapUp |
|
|
maxQueueLength |
|
|
positionReportPolicy |
|
|
positionReportTime |
|
|
positionMOH |
|
|
dtmfBreakoutEnabled |
|
|
toWhenNotAnsweredIfNoFreeAgent |
|
|
dtmfDigitQueueCallback |
|
|
Wallboard |
||
showWaitingQueue |
|
|
wallboardResetTime |
|
|
onlyExternalCalls |
|
|
missedCallThreshold |
|
|
durationThresholdMin |
|
|
durationThreshold |
|
|
agentShowInbound |
|
|
agentShowOutbound |
|
|
agentShowTotal |
|
|
wallboardEntries |
|
|
wallboardEntries.parameter |
|
|
wallboardEntries.direction |
|
|
wallboardEntries.formulaName |
|
|
wallboardEntries.formula |
|
|
wallboardEntries.orderNr |
|
|
wallboardEntries.threshold1 |
|
|
wallboardEntries.threshold2 |
|
|
Voicemail |
||
enableVoicemailDelivery |
|
|
enableVoicemailSms |
|
|
voicemailDeliveryNumber |
|
|
voicemailDeliveryMessage |
|
|
voicemailDeliveryMessage.audioMessage.commonName |
|
|
voicemailDeliveryMessage.audioMessage.originalLocation |
|
|
voicemailDeliveryMessage.audioMessage.mimeType |
|
|
voicemailDeliveryMessage.audioMessage.contentsB64String |
|
|
voicemailDeliveryMessage.textToSpeech.message |
|
|
voicemailDeliveryMessage.textToSpeech.language |
|
|
voicemailDeliveryMessage.textToSpeech.speaker |
|
|
voicemailDeliveryTimeout |
|
|
additionalVoicemailEmailText |
|
|
enableVoicemailToEmail |
|
|
voicemailRecipientAddress |
|
|
enableVoicemailTranscribe |
|
|
Auto Attendant |
||
autoAttendantOn |
|
V |
autoAttendant.audio |
|
V |
autoAttendant.audio.audioMessage.commonName |
|
V |
autoAttendant.audio.audioMessage.originalLocation |
|
V |
autoAttendant.audio.audioMessage.mimeType |
|
V |
autoAttendant.audio.audioMessage.contentsB64String |
|
V |
autoAttendant.audio.textToSpeech.message |
|
V |
autoAttendant.audio.textToSpeech.language |
|
V |
autoAttendant.audio.textToSpeech.speaker |
|
V |
autoAttendant.allowDirectNumber |
|
V |
autoAttendant.action1 |
|
V |
autoAttendant.voicemail1 |
|
V |
autoAttendant.action2 |
|
V |
autoAttendant.voicemail2 |
|
V |
autoAttendant.action3 |
|
V |
autoAttendant.voicemail3 |
|
V |
autoAttendant.action4 |
|
V |
autoAttendant.voicemail4 |
|
V |
autoAttendant.action5 |
|
V |
autoAttendant.voicemail5 |
|
V |
autoAttendant.action6 |
|
V |
autoAttendant.voicemail6 |
|
V |
autoAttendant.action7 |
|
V |
autoAttendant.voicemail7 |
|
V |
autoAttendant.action8 |
|
V |
autoAttendant.voicemail8 |
|
V |
autoAttendant.action9 |
|
V |
autoAttendant.voicemail9 |
|
V |
autoAttendant.fallback |
|
V |
Wallboard security |
||
wallboard.accessRights |
|
|
wallboard.domain |
|
|
wallboard.domain.writeObject |
|
|
Chat auto replies |
||
chatAutoReplies |
|
V |
chatAutoReplies.xelionStatus |
|
V |
chatAutoReplies.message |
|
V |
Response
None
Context
Authorization |
Administrator or User(manager of the line) |
Errors
Example
PATCH https://xelion.nl/api/v1/master/phonelines/10317713
change phone line direct member
{
"operations": [
{
"op": "replace",
"path": "/callerName",
"value": "test777"
}
]
}
add a user to the phone line, '1' is the virtual ID, value is the User Profile oid
{
"operations": [
{
"op": "add",
"path": "/users/1",
"value": "1651479"
},
{
"op": "replace",
"path": "/users/1/editable",
"value": "NONE"
}
]
}
remove a user from the phone line, value is the relation connected user oid
{
"operations": [
{
"op": "remove",
"path": "/users/1651479"
}
]
}
add a phone to the phone line, '1' is the virtual ID, value is the Base Phone oid
{
"operations": [
{
"op": "add",
"path": "/phones/1",
"value": "1651479"
}
]
}
remove a phone from the phone line, value is the relation connected phone oid
{
"operations": [
{
"op": "remove",
"path": "/phones/1651479"
}
]
}
add extension to the phone line, first add a operation add with a virtual number '1'
then add an extra operation replace to set the address / number of the extension.
{
"operations": [
{
"op": "add",
"path": "/extensions/1",
},
{
"op": "replace",
"path": "/extensions/1/address",
"value": "432"
}
]
}
remove extension from the phone line, value is the TelecomAddress oid
{
"operations": [
{
"op": "remove",
"path": "/extensions/1458789"
}
]
}
add new allowed number to phone line, first add a new object with virtual id 1 and then set the submember(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/allowedNumbers/1",
},
{
"op": "replace",
"path": "/allowedNumbers/1/externalNumber",
"value": "0151234567"
}
]
}
remove allowed number from phone line, <OID> is the oid of the allowed number
{
"operations": [
{
"op": "remove",
"path": "/allowedNumbers/1726623"
}
]
}
change allowed number submember, <OID> is the oid of the allowed number
{
"operations": [
{
"op": "replace",
"path": "/allowedNumbers/1726623/externalNumber",
"value": "0151234568"
}
]
}
add new forward caller id map / automatic transfer to phone line, first add a new object with virtual id 1 and then set the submember(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/forwardCallerIdMap/1",
},
{
"op": "replace",
"path": "/forwardCallerIdMap/1/addressStart",
"value": "0900"
}
]
}
remove forward caller id map / automatic transfer from phone line, <OID> is the oid of the forward caller id map
{
"operations": [
{
"op": "remove",
"path": "/forwardCallerIdMap/1726623"
}
]
}
change forward caller id map / automatic transfer submember, <OID> is the oid of the forward caller id map
{
"operations": [
{
"op": "replace",
"path": "/forwardCallerIdMap/1726623/addressStart",
"value": "0800"
}
]
}
change user line direct member
{
"operations": [
{
"op": "replace",
"path": "/userPhoneLine/message",
"value": "hello world"
}
]
}
change user line workschedule direct member
{
"operations": [
{
"op": "replace",
"path": "/userPhoneLine/workSchedule/enabled",
"value": true
}
]
}
add new time to user line work schedule, first add a new time with virtual id 1 and then set the time member(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/userPhoneLine/workSchedule/times/1"
},
{
"op": "replace",
"path": "/userPhoneLine/workSchedule/times/1/day",
"value": "tuesday"
}
]
}
remove time from user line work schedule, <OID> is the oid of the time
{
"operations": [
{
"op": "remove",
"path": "/userPhoneLine/workSchedule/times/1458789"
}
]
}
change user line work schedule time submember
{
"operations": [
{
"op": "replace",
"path": "/userPhoneLine/workSchedule/times/1458789/day",
"value": "monday"
}
]
}
add new line listener to the user line, first add a path with a virtual id '1' and insert the oid of the user profile as value
{
"operations": [
{
"op": "add",
"path": "/userPhoneLine/listeners/1",
"value": "1756113"
}
]
}
remove a listener from the user line, <OID> is the oid of the phone line listener object
{
"operations": [
{
"op": "remove",
"path": "/userPhoneLine/listeners/321443"
}
]
}
change day night mode direct member
{
"operations": [
{
"op": "replace",
"path": "/dayNightMode/enableDayNightMode",
"value": true
}
]
}
add new switch time to day night mode, first add a new switch time with virtual id 1 and then set the switch time member(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/dayNightMode/switchTime/1",
},
{
"op": "replace",
"path": "/dayNightMode/switchTime/1/day",
"value": "tuesday"
}
]
}
remove switch time from day night mode, <OID> is the oid of the switch time
{
"operations": [
{
"op": "remove",
"path": "/dayNightMode/switchTime/1458789"
}
]
}
change day night mode switch time submember
{
"operations": [
{
"op": "replace",
"path": "/dayNightMode/switchTime/1458789/day",
"value": "tuesday"
}
]
}
add new override to day night mode, first add a new override with virtual id 1 and then set the override member(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/dayNightMode/overrides/1"
},
{
"op": "replace",
"path": "/dayNightMode/overrides/1/startOverrideDateTime",
"value": "2017-07-21 13:30:00"
}
]
}
remove override from day night mode, <OID> is the oid of the override
{
"operations": [
{
"op": "remove",
"path": "/dayNightMode/overrides/1726623"
}
]
}
change day night mode override submember
{
"operations": [
{
"op": "replace",
"path": "/dayNightMode/overrides/1726623/startOverrideDateTime",
"value": "2017-07-21 13:30:00"
}
]
}
add new wallboard entry to phone line, first add a new entry with virtual id 1 and then set the member(s) by adding replace operations on the virtual id '1'
{
"operations": [
{
"op": "add",
"path": "/wallboardEntries/1"
},
{
"op": "replace",
"path": "/wallboardEntries/1/parameter",
"value": ACTIVE_CALLS"
}
]
}
remove wallboard entry from line, <OID> is the oid of the entry
{
"operations": [
{
"op": "remove",
"path": "/wallboardEntries/1726623"
}
]
}
change wallboard entry submember
{
"operations": [
{
"op": "replace",
"path": "/wallboardEntries/1726623/parameter",
"value": "CANCELED_CALLS"
}
]
}
change auto attendant direct member
{
"operations": [
{
"op": "replace",
"path": "/autoAttendant/voicemail1",
"value": true
}
]
}
add a call recording user to the phone line, value is the userprofile oid
{
"operations": [
{
"op": "add",
"path": "/callRecordingUsers/1",
"value": "1651218"
}
]
}
remove a call recording user from the phone line, <OID> is the userprofile oid
{
"operations": [
{
"op": "remove",
"path": "/callRecordingUsers/1651218"
}
]
}
add a call log user to the phone line, value is the userprofile oid
{
"operations": [
{
"op": "add",
"path": "/callLogUsers/1"
"value": "1651120"
}
]
}
remove a call log user from the phone line, value is the userprofile oid
{
"operations": [
{
"op": "remove",
"path": "/callLogUsers/11651120"
}
]
}
add new phone line manager to the phone line, first add a path with a virtual id '1' and insert the oid of the user profile as value
{
"operations": [
{
"op": "add",
"path": "/managers/1",
"value": "1756113"
}
]
}
remove a phone line manager from the phone line, <OID> is the oid of the phone line manager object
{
"operations": [
{
"op": "remove",
"path": "/managers/321443"
}
]
}
add new traffic class to the phone line, first add a path with a virtual id '1' and insert the oid of the traffic class as value
{
"operations": [
{
"op": "add",
"path": "/trafficClasses/1",
"value": "1756113"
}
]
}
remove a traffic class from the phone line, <OID> is the oid of the XCCTrafficClassPhoneLine relation object
{
"operations": [
{
"op": "remove",
"path": "/trafficClasses/321443"
}
]
}
add new after call type to the phone line, first add a path with a virtual id '1' and insert the oid of the after call type as value
{
"operations": [
{
"op": "add",
"path": "/afterCallTypes/1",
"value": "1756113"
}
]
}
remove an after call type from the phone line, <OID> is the oid of the RelAfterCallTypePhoneLine relation object
{
"operations": [
{
"op": "remove",
"path": "/afterCallTypes/321443"
}
]
}
update annoucement attachment contents
{
"operations": [
{
"op": "replace",
"path": "/announcement/audioMessage/contentsB64String",
"value": "UHKND77Gtt6YYHBGSTYFAERBJCBYEFGEDKH00..."
}
]
}
update line wallboard security direct member
{
"operations": [
{
"op": "replace",
"path": "/wallboard/accessRights",
"value": "Secured"
}
]
}
add new domain to line wallbaord security domain list, first add a path with a virtual id '1' and insert the oid of the domain class as value
{
"operations": [
{
"op": "add",
"path": "/wallboard/domain/1",
"value": "1756113"
}
]
}
remove a domain from the phone line wallboard security domain list, <OID> is the oid of the SecurityAttributes relation object
{
"operations": [
{
"op": "remove",
"path": "/wallboard/domain/321443"
}
]
}