#I want to store some domain specific information to subscriber model?
1 messages · Page 1 of 1 (latest)
hey @uncut frigate! 👋
the PATCH /v1/subscribers/:subscriberId/preferences/:templateId endpoint is used for something different, it allows you to update the subscriber preferences, for ex., if that subscriber should receive email from the particular workflow...
what you are looking for is PUT /v1/subscribers/:subscriberId, but unfortunately we only support these fields as far as I know: firstName, lastName, email, phone, avatar
could you please elaborate more about your usecase, and what you want to do with that information at the end?
Hi @past plover
We want to store user preferences on notifications which is custom to our business logic. Was trying to check whether we could use any existing feature of novu to store the same without using additional data models at our end
@uncut frigate, you just advanced to level 2!
@uncut frigate so you wanted to decide like for ex., whether the notification should be send to the subscriber based on your business logic and for each of the workflow steps individually?
I will save the info which helps to decide the "notification should be send to the subscriber based on business logic"
currently we do only allow for setting the preferences only on the channel type, like whether the subscriber should receive all notifications, or all emails...
ok @past plover
@uncut frigate feel free to create the ticket on the Github, describing your needs and the use case 😉 we will look into
@next sun
Sure Pawel