Get visible lines of user


This request returns a list of phone lines the selected user can see.

Resource

GET /users/<OID>/visible_lines

Where OID is the object ID of the user.

Payload

None

Response

Context

Authorization

Administrator

Errors

Example

Request
GET https://xelion.nl/api/v1/master/users/103487/visible_lines
Response
{
    "data": [
        {
            "object": {
                "commonName": "Telefoonaansluiting Arno",
                "oid": "1651130",
                "objectType": "XCCPhoneLine"
            },
            "links": [
                {
                    "rel": "self",
                    "href": "https://xelion.nl/api/v1/master/phonelines/1651130",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "commonName": "Support",
                "oid": "1651614",
                "objectType": "XCCPhoneLine"
            },
            "links": [
                {
                    "rel": "self",
                    "href": "https://xelion.nl/api/v1/master/phonelines/1651614",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "commonName": "Sales",
                "oid": "1651626",
                "objectType": "XCCPhoneLine"
            },
            "links": [
                {
                    "rel": "self",
                    "href": "https://xelion.nl/api/v1/master/phonelines/1651626",
                    "method": "GET"
                }
            ]
        }
    ],
   "meta": {
        "links": [
            {
                "rel": "refresh",
                "href": "https://xelion.nl/api/v1/master/users/1651120/visible_lines",
                "method": "GET"
            },
            {
                "rel": "next",
                "href": "https://xelion.nl/api/v1/master/users/1651120/visible_lines?after=1651130",
                "method": "GET"
            },
            {
                "rel": "previous",
                "href": "https://xelion.nl/api/v1/master/users/1651120/visible_lines?before=1651130",
                "method": "GET"
            }
        ],
        "paging": {
            "previousId": "1651130",
            "nextId": "1651130"
        }
    }
}