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?
2 Replies
Pawan Jain
Pawan Jain2mo ago
@El_Mavericko Sharing the bug with team
El_Mavericko
El_Mavericko2mo ago
Awesome, thanks
Want results from more Discord servers?
Add your server