Update a trigger
Changed onModify an existing trigger in your application.
Request
- Base URLhttps://services.cloud.mongodb.com/api/admin/v3.0
- URLhttps://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/triggers/{triggerId}
- AuthHTTP bearer
Request body
Example request
{
"name": "onNewEmployee",
"type": "DATABASE",
"function_id": "5eea9ca4ca0e356e2c2a148a",
"config": {
"operation_types": [
"INSERT"
],
"database": "HR",
"collection": "employees",
"service_id": "5adeb649b8b998486770ae7c",
"match": {},
"project": {},
"full_document": true
},
"event_processors": {
"FUNCTION": {
"config": {
"function_id": "6841b8d3e71dc81bed89dbba",
"function_name": "Atlas_Triggers_DatabaseInsert_1749137618"
}
}
}
}Response
Successfully updated the trigger.
Changes
- breaking
the request property
////////////became required - breaking
the request property
////////////became required - breaking
the request property
////////////became required
- breaking
- breaking
removed the enum value
DELETEof the request property/////////// - breaking
removed the enum value
INSERTof the request property/////////// - breaking
removed the enum value
REPLACEof the request property/////////// - breaking
removed the enum value
UPDATEof the request property/////////// - info
the request property
//////////became optional - info
the request property
//////////became optional - info
the request property
//////////became optional - info
the request property
//////////became optional - info
the request property
//////////became optional - info
the request property
//////////became optional - info
the
request property default valuefalsewas added
- breaking