El_Mavericko
El_Mavericko
NNovu
Created by El_Mavericko on 9/2/2024 in #💬│support
I can't remove a users phone number. Setting it to null, undefined or empty string is just ignored.
Hello, Is there a recommended way to remove a user's phone number? I wan't to do this if a user choose's to opt-out of all SMS notifications. Using Postman and the Novu API Update Subscriber route https://docs.novu.co/api-reference/subscribers/update-subscriber I have tried sending null, undefined and empty string in the phone field. Getting the subscriber details after this it appears these values are all ignored. It looks like this same issue has been fixed previously for email address', but not for phone numbers https://github.com/novuhq/novu/issues/3022. I have a hack workaround of setting the phone number to "-1", which causes the SMS provider to reject the request, but this is a pretty bad solution. Is there a recommended way to remove a users phone number, or is this not supported by Novu at this stage?
3 replies