Update a trigger
Modify an existing trigger in your application.
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
Changed in 6 of the 50 revisions of this API.910
- ▲
the request property
allOf[TriggerConstructor]/oneOf[AuthenticationTrigger]/allOf[BaseTrigger]/event_processorsbecame requiredrequest-property-became-required
- ▲
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[BaseTrigger]/event_processorsbecame requiredrequest-property-became-required
- ▲
the request property
allOf[TriggerConstructor]/oneOf[ScheduledTrigger]/allOf[BaseTrigger]/event_processorsbecame requiredrequest-property-became-required
- ▲
- ▲
removed the enum value
DELETEof the request propertyallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/request-property-enum-value-removed
- ▲
removed the enum value
INSERTof the request propertyallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/request-property-enum-value-removed
- ▲
removed the enum value
REPLACEof the request propertyallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/request-property-enum-value-removed
- ▲
removed the enum value
UPDATEof the request propertyallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/request-property-enum-value-removed
- ○
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/collectionbecame optionalrequest-property-became-optional
- ○
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/databasebecame optionalrequest-property-became-optional
- ○
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/full_documentbecame optionalrequest-property-became-optional
- ○
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/full_document_before_changebecame optionalrequest-property-became-optional
- ○
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/matchbecame optionalrequest-property-became-optional
- ○
the request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/unorderedbecame optionalrequest-property-became-optional
- ○
the
unorderedrequest property default valuefalsewas addedrequest-property-default-value-added
- ▲
- ○
added the new optional request property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/error_handlernew-optional-request-property
- ○
- ▲
added
TriggerConstructorsubschema #1to the request bodyallOflistrequest-body-all-of-added
- ▲
removed
DatabaseTriggerAuthenticationTriggerScheduledTriggerfrom the request bodyoneOflistrequest-body-one-of-removed
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
oneOf[DatabaseTrigger]/allOf[subschema #2]/config/maximum_throughputnew-optional-request-property
- ○
- ○
added the new optional request property
oneOf[DatabaseTrigger]/allOf[subschema #2]/config/projectnew-optional-request-property
- ○