novuhq / novu-java

Java SDK for Novu - The open-source notification infrastructure for engineers. 🚀
MIT License
26 stars 22 forks source link

Getting exception while updating subscriber preferences using java sdk #36

Closed prashanth-fbt closed 11 months ago

prashanth-fbt commented 11 months ago

Exception : org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: "{"message":"Cannot PUT /v1/subscribers/{{subscriber_id}}/preferences/{{template_id}}","error":"Not Found","statusCode":404}"

what I observed is method SDK uses is PUT but in API documentation it uses patch and it is working fine so how to change this to patch in SDK?

Are any changes coming from new releases or any alternate way to implement this?

Basfar commented 11 months ago

@prashanth-fbt Are you interested in picking this up?

prashanth-fbt commented 11 months ago

@prashanth-fbt Are you interested in picking this up?

Yes Am interested.

Basfar commented 11 months ago

Alright. Please go ahead. Go to the main branch, fetch the latest, and submit a fresh PR against the main branch.