node.jsmongodbmongodb-atlasmongodb-stitch

Create Mongodb Atlas Triggers Programmatically | Nodejs


I am planning to create few triggers in mongodb atlas using nodejs. I found mongodb-stitch-server-sdk library which kind of helps me to connect to stitch application but I couldn't find anything which can help me create a trigger.

Can anyone point me to write documentation or example to do so? I am open to use API as well if it exists.


Solution

  • You can do a POST to /groups/{groupid}/apps/{appid}/triggers. Triggers API docs: https://docs.mongodb.com/stitch/admin/api/admin-v3/#event-trigger-apis