'Bad' error message for Update Phone by ID

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": ""
},

Hi Gordon_Allan,

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

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