Legacy Dev Forum Posts

 View Only

Sign Up

Validation errors updating Phonebase

  • 1.  Validation errors updating Phonebase

    Posted 06-05-2025 18:17

    Austen | 2020-07-02 08:06:46 UTC | #1

    We call the PUT endpoint /api/v2/telephony/providers/edges/phonebasesettings/{phonebaseid} to update a PhoneBase object. We receive an error message indicating a number of validation errors:

    {"message":"Validation error on field 'stationautoDialtimeout'","code":"general.bad.request","status":400,"messageWithP arams":"Validation error on field '{fieldName}'","messageParams": {"fieldName":"stationautoDialtimeout"},"contextId":"6cf58690-9f90-402a-a8d4- 0d63d28946a8","details": [{"errorCode":"VALIDATIONERROR","fieldName":"stationautoDialtimeout"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationlineKeyPosition"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationnumCallAppearances"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationpersistenttimeout"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationsiplistenPort"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationsipmaxBindings"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationsipproxyKeepAliveTimer"}, {"errorCode":"VALIDATIONERROR","fieldName":"stationsipregistrationInterval"}],"e rrors":[]}

    We are unsure what specifically is causing these validation errors - can you qualify what the rules are please?


    anon11147534 | 2020-07-02 11:14:40 UTC | #2

    Hi Austen,

    Without seeing your code I can't fully tell what request body you've generated. Check out the JSON schema for /api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId} to see what body it expects. If you feel that you've set all fields correctly and are still getting the error please open a case with PureCloud Care to investigate as the documentation isn't correct if that's not working.


    system | 2020-08-02 11:14:42 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: 8168