From 85d4ab37719e01c3c1fadadd292acf648a769bad Mon Sep 17 00:00:00 2001 From: dacharyc Date: Tue, 8 Oct 2024 12:45:27 -0400 Subject: [PATCH] Actually it's more complicated than that --- source/openapi-admin-v3.yaml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/source/openapi-admin-v3.yaml b/source/openapi-admin-v3.yaml index 5e90ba698..1be7c907d 100644 --- a/source/openapi-admin-v3.yaml +++ b/source/openapi-admin-v3.yaml @@ -7875,17 +7875,28 @@ components: The type(s) of MongoDB change event that the trigger listens for. - If you specify a collection name, valid operation types - include `"INSERT"`, `"UPDATE"`, `"REPLACE"`, and `"DELETE"`. + Valid operation types for all triggers include: - If you specify only a database name, valid - operation types include `"CREATE_COLLECTION"`, - `"MODIFY_COLLECTION"`, `"RENAME_COLLECTION"`, - `"DROP_COLLECTION"`, `"SHARD_COLLECTION"`, - `"RESHARD_COLLECTION"`, and `"REFINE_COLLECTION_SHARD_KEY"`. - - If you omit both collection and database name, the only - valid operation type is `"DROP_DATABASE"`. + - `"INSERT"` + - `"UPDATE"` + - `"REPLACE"` + - `"DELETE"` + + Additional valid operation types for database and + deployment triggers include: + + - `"CREATE_COLLECTION"` + - `"MODIFY_COLLECTION"` + - `"RENAME_COLLECTION"` + - `"DROP_COLLECTION"` + - `"SHARD_COLLECTION"` + - `"RESHARD_COLLECTION"` + - `"REFINE_COLLECTION_SHARD_KEY"` + + Additional valid operation types for deployment triggers + include: + + - `"DROP_DATABASE"` For more information, refer to [Trigger Configuration](https://www.mongodb.com/docs/atlas/app-services/triggers/database-triggers/#configuration).