I want to store some domain specific information to subscriber model?
usually we store some information related to domain, but unfortunately I did not find any information on it?
Update subscriber preference
Endpoint
PATCH
/v1/subscribers/:subscriberId/preferences/:templateId
The above API is not allowing to save my own info?
10 Replies
hey @madhu! 👋
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 @paweltymczuk
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
@madhu, you just advanced to level 2!
@madhu 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 @paweltymczuk
@madhu feel free to create the ticket on the Github, describing your needs and the use case 😉 we will look into
@omerbenami
Sure Pawel
Hi @madhu
Did you get chance to raise a bug/feature-request on github for this?