v50

latestOpenAPI 3.1.0raw.githubusercontent.com2025-06-09181183330.0 KB
triggers

Update a trigger

Modify an existing trigger in your application.

put/groups/{groupId}/apps/{appId}/triggers/{triggerId}

Request body

OR
OR

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.