Jump to: navigation, search

Create and Assign Device to User

The device can be created and assigned to a user using different paths.

The device is unassigned from previous owner, if it was assigned previously.

The target user must have Contact Center Agent role.

Requests

  • .../api/v2/users/{userId}/devices
    • Creates and assigns the device to target user.
    • Requires contact center admin role.
POST .../api/v2/users/{user_id}/devices
{
  "phoneNumber": "3001"
}
  • .../api/v2/me/devices
    • Creates assigns the device to current user.
    • Requires agent role.
POST .../api/v2/me/devices
{
  "phoneNumber": "3001"
}

The method to be used: POST with body which contains device resource to be used for device creation (see create device section).

Response

{ 
    "statusCode": 0, 
    "id": "0bf06531-9cb7-4d6e-bff3-d910f83a493d", 
    "uri": "http://172.21.16.123:8080/cloud-web/api/v2/devices/0bf06531-9cb7-4d6e-bff3-d910f83a493d" 
}
This page was last edited on December 12, 2014, at 18:16.
Comments or questions about this documentation? Contact us for support!