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
Pawan Jain
Pawan Jain14mo ago
Hi @prathap_14114 Mind sharing which api you are using?
Prathap Belli
Prathap Belli14mo ago
PUT v1/integrations/{inetrgrationId}
Pawan Jain
Pawan Jain14mo ago
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?
Prathap Belli
Prathap Belli14mo ago
yes api docs says its optional but we are getting error, {'statusCode': 400, 'message': ['credentials should not be null or undefined'], 'error': 'Bad Request'}
Pawan Jain
Pawan Jain14mo ago
Yeah, you are correct. I am able to reproduce Can you please create a issue(bug report) on github for this? !bug
Prathap Belli
Prathap Belli14mo ago
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...
Want results from more Discord servers?
Add your server