Help with update contact list

Hi all, I'm trying to add a new contact on contact list, but i receive an error and couldn't find the problem with request

{"message":"The contact columns do not match what is required in the list","code":"invalid.contact.columns","status":400,"messageWithParams":"The contact columns do not match what is required in the list","messageParams":{"columnName":"[phoneNumber]"},"contextId":"d8621944-b167-44d1-ad8a-30aeb0e09ca9","details":[],"errors":[]}

here a example from WritableDialerContact object sented in request

    var phoneNumberStatus = new PhoneNumberStatus();
    phoneNumberStatus.setCallable(true);
    var contact = new WritableDialerContact();
    contact.setContactListId(context.getContactList().getId());
    contact.setCallable(true);
    contact.setData(Map.of("phoneNumber", context.getPhoneNumber()));
    contact.setPhoneNumberStatus(Map.of("phoneNumber", phoneNumberStatus));

Hi @marcoflps
I created a contact list using this config and added a contact using the API. I got a successful response with this request config. Are you sure the phone number is getting set? The column being null could cause that error code

1 Like

Hi @jacobshaw

I made a lot of tests including requests on developer tools and all tests are failed
But i decided delete old contact list and created a new
On the new contact list i get success on tests

Thanks for you help

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