Legacy Dev Forum Posts

 View Only

Sign Up

Error | POST API to update phone

  • 1.  Error | POST API to update phone

    Posted 06-05-2025 18:24

    ItsMedeveloper | 2023-01-30 06:13:14 UTC | #1

    Hi Genesys Team,

    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": "Example1WebRTC", "description": "Example1WebRTC", "site": { "id": " site ID goes here " }, "phoneBaseSettings": { "id": " phone base settings ID goes here " }, "lines": [ { "name": "Line" } ], "webRtcUser": { "id": " user ID goes here ", "name": "Example1" } }

    If I remove the WebRtcUser object, I receive a message that there needs to be a webRtcUser.. I have validated there are no duplicate webRTC users . Only way I can make this API to work is to manually delete existing WebRTC user and then make POST call to update.

    can you explain why this the case ?


    John_Carnell | 2023-02-10 14:16:37 UTC | #2

    Hi,

    I would start first by reviewing the user provisioning guide's chapter on provisioning phones with Javascript here. It would help if you would list the sequence of endpoints you called (or SDK calls). That might help me see if you are doing anything unusual. Make sure you include the HTTP verb of the call too.

    Thanks, John Carnell Director, Developer Engagement


    system | 2023-03-13 14:16:58 UTC | #3

    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: 18181