Legacy Dev Forum Posts

 View Only

Sign Up

'Bad' error message for Update Phone by ID

  • 1.  'Bad' error message for Update Phone by ID

    Posted 06-05-2025 18:31

    Gordon_Allan | 2024-06-20 12:25:24 UTC | #1

    Just wanted to report what I think is a bug when using the API Explorer Standalone for PUT - Update Phone by ID

    /api/v2/telephony/providers/edges/phones/{phoneId}

    If I submit a request with the request body below (all the fields are populated) I receive 'The request failed with response code: 400. Message: Field 'templateId' is required and cannot be empty.' You can see in the request body that template ID is provided under the lines property.

    { "name": "Test_WebRTC", "site": { "id": "", "name": "", "selfUri": "" }, "phoneBaseSettings": { "id": "", "name": "", "selfUri": "" }, "lines": [ { "id": "", "name": "", "state": "", "template": { "id": "" }, "selfUri": "" } ], "webRtcUser": { "id": "", "name": "", "selfUri": "" } }

    When you add the fields below; the request will complete successfully, note that template Id is not one of the fields: "site": { "id": "", "name": "", "selfUri": "" }, "lineBaseSettings": { "id": "", "name": "", "selfUri": "" },


    Zino_Onokpise | 2024-06-20 20:59:24 UTC | #2

    Hi Gordon_Allan,

    It appears you're reporting a possible API defect. Kindly open a CARE support ticket


    system | 2024-07-20 20:59:56 UTC | #3

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