Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 622
Ashish Modi Avatar asked Apr 15 '26 21:04

Ashish Modi


1 Answers

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

like image 163
haley Avatar answered Apr 18 '26 13:04

haley