Get a trigger
Get the configuration for an existing trigger in your application.
Response
Successfully retrieved trigger.
Example response
{
"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"
}
}
}
}Changes
Changed in 6 of the 50 revisions of this API.613
- ○
the response property
allOf[TriggerConstructor]/oneOf[AuthenticationTrigger]/allOf[BaseTrigger]/event_processorsbecame required for the status200response-property-became-required
- ○
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[BaseTrigger]/event_processorsbecame required for the status200response-property-became-required
- ○
the response property
allOf[TriggerConstructor]/oneOf[ScheduledTrigger]/allOf[BaseTrigger]/event_processorsbecame required for the status200response-property-became-required
- ○
- ▲
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/collectionbecame optional for the status200response-property-became-optional
- ▲
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/databasebecame optional for the status200response-property-became-optional
- ▲
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/full_documentbecame optional for the status200response-property-became-optional
- ▲
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/full_document_before_changebecame optional for the status200response-property-became-optional
- ▲
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/matchbecame optional for the status200response-property-became-optional
- ▲
the response property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/unorderedbecame optional for the status200response-property-became-optional
- ○
the
unorderedresponse's property default valuefalsewas added for the status200response-property-default-value-added
- ○
removed the
DELETEenum value from theallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/response property for the response status200response-property-enum-value-removed
- ○
removed the
INSERTenum value from theallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/response property for the response status200response-property-enum-value-removed
- ○
removed the
REPLACEenum value from theallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/response property for the response status200response-property-enum-value-removed
- ○
removed the
UPDATEenum value from theallOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/response property for the response status200response-property-enum-value-removed
- ▲
- ○
added the optional property
allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/error_handlerto the response with the200statusresponse-optional-property-added
- ○
- ○
added
TriggerConstructorsubschema #1to the response bodyallOflist for the response status200response-body-all-of-added
- ○
removed
DatabaseTriggerAuthenticationTriggerScheduledTriggerfrom the response bodyoneOflist for the response status200response-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 optional property
oneOf[DatabaseTrigger]/allOf[subschema #2]/config/maximum_throughputto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
oneOf[DatabaseTrigger]/allOf[subschema #2]/config/projectto the response with the200statusresponse-optional-property-added
- ○