event-subscriptions

Get an Event Subscription

Return information about an event subscription.

get/groups/{groupId}/apps/{appId}/event_subscriptions/{eventSubscriptionId}

Response

Success.

OR

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.712

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[AuthenticationTrigger]/allOf[BaseTrigger]/event_processors became required for the status 200

      response-property-became-required

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[BaseTrigger]/event_processors became required for the status 200

      response-property-became-required

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[ScheduledTrigger]/allOf[BaseTrigger]/event_processors became required for the status 200

      response-property-became-required

  • v351a885fea9ae65See the full diff
    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/collection became optional for the status 200

      response-property-became-optional

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/database became optional for the status 200

      response-property-became-optional

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/full_document became optional for the status 200

      response-property-became-optional

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/full_document_before_change became optional for the status 200

      response-property-became-optional

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/match became optional for the status 200

      response-property-became-optional

    • the response property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/unordered became optional for the status 200

      response-property-became-optional

    • the unordered response's property default value false was added for the status 200

      response-property-default-value-added

    • removed the DELETE enum value from the oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/ response property for the response status 200

      response-property-enum-value-removed

    • removed the INSERT enum value from the oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/ response property for the response status 200

      response-property-enum-value-removed

    • removed the REPLACE enum value from the oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/ response property for the response status 200

      response-property-enum-value-removed

    • removed the UPDATE enum value from the oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/operation_types/items/ response property for the response status 200

      response-property-enum-value-removed

    • added the optional property oneOf[Trigger]/allOf[TriggerConstructor]/oneOf[DatabaseTrigger]/allOf[subschema #2]/error_handler to the response with the 200 status

      response-optional-property-added

  • v3e2240dd053bd11See the full diff
    • added Trigger to the response body oneOf list for the response status 200

      response-body-one-of-added

    • removed AnyTrigger from the response body oneOf list for the response status 200

      response-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[AnyTrigger]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/maximum_throughput to the response with the 200 status

      response-optional-property-added

    • added the optional property oneOf[AnyTrigger]/oneOf[DatabaseTrigger]/allOf[subschema #2]/config/project to the response with the 200 status

      response-optional-property-added