Update music on hold category
This request changes music on hold category attributes.
The music/audio files are added with a seperate call new music file
Resource
PATCH /musiconholdcategories/<OID>
Where OID
is the oid of the music on hold category
Parameters
None
Payload
Fields
Name | Patch Operations |
---|---|
playRandomOrder |
|
Audio Files List |
|
audioFiles |
|
audioFiles.orderNr |
|
Response
None
Context
Authorization |
Administrator |
Errors
Example
Request
PATCH https://xelion.nl/api/v1/master/musiconholdcategories/1627410
Payload
change music on hold category direct member
{
"operations": [
{
"op": "replace",
"path": "/playRandomOrder",
"value": true
}
]
}
remove audio/music file from music on hold category, <OID> is the oid of the music file
{
"operations": [
{
"op": "remove",
"path": "/audioFiles/1726623"
}
]
}
change audio/music file submember, <OID> is the oid of the music file
{
"operations": [
{
"op": "replace",
"path": "/audioFiles/1726623/orderNr",
"value": 1
}
]
}schedules