Validation errors updating Phonebase

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
'station_autoDial_timeout'","code":"general.bad.request","status":400,"messageWithP
arams":"Validation error on field '{fieldName}'","messageParams":
{"fieldName":"station_autoDial_timeout"},"contextId":"6cf58690-9f90-402a-a8d4-
0d63d28946a8","details":
[{"errorCode":"VALIDATION_ERROR","fieldName":"station_autoDial_timeout"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_lineKeyPosition"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_numCallAppearances"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_persistent_timeout"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_sip_listenPort"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_sip_maxBindings"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_sip_proxyKeepAliveTimer"},
{"errorCode":"VALIDATION_ERROR","fieldName":"station_sip_registrationInterval"}],"e
rrors":[]}

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

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.

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