is credentials is required field to update integration provider?
I want activate and disable already integrated provider , if i use put api credentials field is required otherwise its throwing error.
if I add empty object to credentials it will work but credentials get updated to null.
7 Replies
Hi @prathap_14114
Mind sharing which api you are using?
PUT v1/integrations/{inetrgrationId}
Hi @prathap_14114
I see credentials is optional in this api
https://docs.novu.co/api/update-integration/
you can send active : false to disable the integration
Which sdk you are using?
yes api docs says its optional but we are getting error,
{'statusCode': 400, 'message': ['credentials should not be null or undefined'], 'error': 'Bad Request'}
Yeah, you are correct.
I am able to reproduce
Can you please create a issue(bug report) on github for this?
!bug
Here the reported issue
https://github.com/novuhq/novu/issues/4129
GitHub
🐛 Bug Report: Bad Request incase of integration update api if we mi...
📜 Description PUT v1/integrations/{inetrgrationId} while updating integration provider, so that you want to activate and disable the integration provider already exist. Api docs says credentials fi...