List Workstations

Lists the workstations in the user's current unit.

This endpoint requires the Agent Impersonator role.

URL

GET: https://[base-url]/{applicationId}/agents/{userId}/workstations

Headers

Authorization: Bearer <accessToken>

Request Body

N/A

Response

Success -> 200

An array of Workstation objects

Sample response:

[
    {
        "workstationId": "3e5edafa-afd4-40a4-8fd0-0f8a780c5c08",
        "workstationName": "Counter 1",
        "description": null,
        "isActive": true,
        "status": "Empty",
        "user": null
    },
    {
        "workstationId": "8725058d-1594-49bd-93b8-325c1d55b6ac",
        "workstationName": "Counter 2",
        "description": null,
        "isActive": true,
        "status": "Empty",
        "user": null
    },
    {
        "workstationId": "85cebfcb-e1ce-4189-835d-08db45771c68",
        "workstationName": "Counter 3",
        "description": null,
        "isActive": true,
        "status": "OccupiedOpen",
        "user": {
            "userId": "accef80a-0491-4865-8f1b-1455f4c08b14",
            "displayName": "John Doe",
            "initials": "JD",
            "picture": "https://.../public/profiles/f1af71e8-3ba4-4034-b4f2-..."
        }
    }
]

No current unit was selected for the user -> 403 (Forbidden)

Last updated