Get Phone Line Selectable Statuses
This request returns a list of statuses the user can select as status.
Use this call to set up the list of statuses the user can select as new status.
Use the 'name' value to set the new status. Use the icon value to show the corresponding icon in the list of selectable statuses.
Resource
GET /phoneslines/<OID>/selectable_statuses
Where OID
is the object ID of the phone line.
Parameters
None
Payload
None
Response
Context
Authorization |
User |
Errors
Example
Request
GET https://xelion.nl/api/v1/master/phonelines/123456/selectable_statuses
Response
{
"data": [
{
"object": {
"name": "dont_disturb",
"icon": "statusDND"
}
},
{
"object": {
"name": "at_appointment",
"icon": "statusAppointment"
}
},
{
"object": {
"name": "available",
"icon": "statusGreen"
}
},
{
"object": {
"name": "automatic",
"icon": "statusAutomatic"
}
},
{
"object": {
"name": "unavailable",
"icon": "statusRed"
}
},
{
"object": {
"name": "Xelion",
"icon": "statusBlue"
}
}
],
"meta": {
"links": [
{
"rel": "refresh",
"href": "https://xelion.nl/api/v1/master/phonelines/123456/selectable_statuses",
"method": "GET"
}
]
}
}