Legacy Dev Forum Posts

 View Only

Sign Up

Moving Phone Sites - issue

  • 1.  Moving Phone Sites - issue

    Posted 06-05-2025 18:30

    Brains66 | 2024-05-13 03:06:20 UTC | #1

    Hi I'm using PUT /api/v2/telephony/providers/edges/phones/{phoneId} to move a "Remote" phone between sites ( Not WebRTC phone)

    I have to include a Lines Name (and associated properties) to make this work

    If I use the existing Lines name I get an error saying the Lines Name already exists (even though this is the line I want to change)

    { "message": "StationV2 with name 'BADesk1' already exists.", "code": "general.bad.request", "status": 400, "messageWithParams": "{entityName} with {fieldName} '{value}' already exists.", "messageParams": { "entityName": "StationV2", "fieldName": "name", "value": "BADesk1" }, "contextId": "c0731103-0f4b-4cf2-acb0-d4d03902f57c", "details": [ { "errorCode": "DUPLICATELINENAME", "fieldName": "lines[0].name" } ], "errors": [] }

    If I change the Lines name, and associated Lines properties, this is successful, but this means the agent will need to reselect the Phone to make calls. The UI doesnt require this to change Sites

    Any ideas? I would have thought the Update would do just that?

    Cheers Brian


    Brains66 | 2024-05-21 00:57:54 UTC | #2

    Be nice to have someone from Genesys advise here?


    tim.smith | 2024-05-21 15:34:20 UTC | #3

    Brains66, post:1, topic:26225
    The UI doesnt require this to change Sites

    Have you inspected the API requests made in the browser's network console when you do this? If the UI is doing the behavior you want to replicate, looking at those requests should hint at what's different from what you're doing.


    Brains66 | 2024-05-21 20:12:56 UTC | #4

    Thanks Tim, It pointed me in the right direction and I have this working now :slight_smile:


    TheRonaldGray | 2024-06-05 19:22:50 UTC | #5

    You need to send the following information for a "Remote Phone" device in the data portion of the PUT request

    Name of Device Site Id phone base setting Id lines (AS A LIST) name line base setting id

    I use python and send it as follows:

    parameters = f'{{"name": "{phoneName}","site": {{"id": "{siteId}"}},"phoneBaseSettings": {{"id": "{pBsID}"}},"lines":[{{"id" : "{lineId}","name" : "{lineName}","lineBaseSettings": {{"id": "{lBsId}"}}}}]}}'


    system | 2024-07-05 19:23:35 UTC | #6

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


    This post was migrated from the old Developer Forum.

    ref: 26225