Update User Phone Settings
This request partially updates the user’s phone settings.
Resource
PATCH /me/phone/settings
Parameters
None
Payload
Fields
Name | Patch Operations |
---|---|
anonymous |
|
doNotDisturb |
|
fallback |
|
fallbackActive |
|
location |
|
message |
|
redirection |
|
redirectionActive |
|
timeout |
|
redirectionTimeout |
|
userStatus |
|
temporaryUserStatus |
|
temporaryUserStatusUntil |
|
voicemailActive |
|
voicemailGreeting |
|
voicemailGreeting.audioMessage.commonName |
|
voicemailGreeting.audioMessage.originalLocation |
|
voicemailGreeting.audioMessage.mimeType |
|
voicemailGreeting.audioMessage.contentsB64String |
|
voicemailGreeting.textToSpeech.message |
|
voicemailGreeting.textToSpeech.language |
|
voicemailGreeting.textToSpeech.speaker |
|
listeners |
|
workSchedule.enabled |
|
workSchedule.disableOverrideUnavWarn |
|
workSchedule.template |
|
workSchedule.times |
|
dndExceptions.listItems |
|
Response
None
Context
Authorization |
User |
Example
PATCH https://xelion.nl/api/v1/master/me/phone/settings
{
"operations": [
{
"op": "replace",
"path": "/redirection",
"value": "0657483920"
},
{
"op": "replace",
"path": "/redirectionActive",
"value": true
}
]
}
add new time to 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": "/workSchedule/times/1",
},
{
"op": "replace",
"path": "/workSchedule/times/1/day",
"value": "tuesday"
}
]
}
remove time from work schedule, <OID> is the oid of the time
{
"operations": [
{
"op": "remove",
"path": "/workSchedule/times/1458789"
}
]
}
change work schedule time submember
{
"operations": [
{
"op": "replace",
"path": "/workSchedule/times/1458789/day",
"value": "monday"
}
]
}
add dnd exception submember
{
"operations": [
{
"op": "add",
"path": "/dndExceptions/listItems/item",
"value": "<oid>"
}
]
}
remove dnd exception submember
{
"operations": [
{
"op": "remove",
"path": "/dndExceptions/listItems/<oid>"
}
]
}