Trying to modify the Phone Number of a user using UserConsolidatedModifyRequest
with the code
$request = (new UserConsolidatedModifyRequest())
->setUserId($userId)
->setphoneNumber($data['phoneNumber']);
but getting :
Field userId is required on CWM\BroadWorksConnector\Ocip\Models\AuthenticationRequest.
here is the request
any ideas.
thanks
Trying to modify the Phone Number of a user using UserConsolidatedModifyRequest with the code $request = (new UserConsolidatedModifyRequest()) ->setUserId($userId) ->setphoneNumber($data['phoneNumber']); but getting : Field userId is required on CWM\BroadWorksConnector\Ocip\Models\AuthenticationRequest. here is the request any ideas. thanks
object(CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest)#10 (44) { ["userId":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> string(23) "XXXXXXXXX" ["deleteExistingDevices":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["unassignPhoneNumbers":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["addPhoneNumberToGroup":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["newUserId":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["lastName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["firstName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["callingLineIdLastName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["callingLineIdFirstName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["nameDialingName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["hiraganaLastName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["hiraganaFirstName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["phoneNumber":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> string(13) "+XXXXXXXXXX" ["alternateUserIdList":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["extension":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["callingLineIdPhoneNumber":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["oldPassword":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["newPassword":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["department":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["language":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["timeZone":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["sipAliasList":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["endpoint":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["sharedCallAppearanceAccessDeviceEndpointList":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["title":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["pagerPhoneNumber":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["mobilePhoneNumber":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["emailAddress":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["yahooId":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["addressLocation":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["address":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["networkClassOfService":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["userServiceList":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["servicePackList":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["thirdPartyVoiceMailServerSelection":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["thirdPartyVoiceMailServerUserServer":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["thirdPartyVoiceMailServerMailboxIdType":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["thirdPartyVoiceMailMailboxURL":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["sipAuthenticationUserName":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["newSipAuthenticationPassword":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["OldSipAuthenticationPassword":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["newPasscode":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["oldPasscode":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL ["impPassword":"CWM\BroadWorksConnector\Ocip\Models\UserConsolidatedModifyRequest":private]=> NULL }
Field userId is required on CWM\BroadWorksConnector\Ocip\Models\AuthenticationRequest.