Legacy Dev Forum Posts

 View Only

Sign Up

Error 400 when creating a WebRTC phone through the Platform API

  • 1.  Error 400 when creating a WebRTC phone through the Platform API

    Posted 06-05-2025 18:17

    robm | 2020-05-28 08:48:49 UTC | #1

    Hi, I am trying to create a new WebRTC phone by using the Platform API, but when I send my request I receive an error 400:

    { "message": "A web rtc phone has already been assigned to this user.", "code": "bad.request", "status": 400, "details": [ { "errorCode": "ONLYONEWEBRTCASSIGNMENT_ALLOWED", "fieldName": "webRtcUser" } ] }

    But the user I used has no phone assigned to it. The input looks like:

    { "name": "RobTest2WebRTC", "description": "RobTest2WebRTC", "site": { "id": "site ID goes here" }, "phoneBaseSettings": { "id": "phone base settings ID goes here" }, "lines": [ { "name": "Line" } ], "webRtcUser": { "id": "user ID goes here", "name": "RobTest2" } }

    If I remove the WebRtcUser object, I receive a message that there needs to be a webRtcUser..

    Anyone an idea how to fix this? Regards, Rob


    anon28885283 | 2020-05-28 08:59:25 UTC | #2

    You might want to check your other WebRTC phones if the user is selected under the Person field. It might not show under 'In Use By' if the phone is not selected or if the user deselected it, but it's still technically assigned to them.

    If you're sure that there are no existing WebRTC phones assigned to the user please open a ticket with PureCloud Care so they can investigate it.


    robm | 2020-05-28 09:09:31 UTC | #3

    Ok, thx I've created a Genesys Cloud ticket.


    system | 2020-06-28 09:09:33 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 7898