From e9ebb6b4cfeb76258c2012da3beab3040139b79a Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 00:09:26 +0000 Subject: [PATCH] Update Src/VTEX/VTEXWrapper.cs --- Src/VTEX/VTEXWrapper.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Src/VTEX/VTEXWrapper.cs b/Src/VTEX/VTEXWrapper.cs index bbf857171..a0e9d756d 100644 --- a/Src/VTEX/VTEXWrapper.cs +++ b/Src/VTEX/VTEXWrapper.cs @@ -383,6 +383,16 @@ public async Task GetCollectionsAsync(CancellationToken token) return await ServiceInvokerAsync(HttpRequestMethod.GET, "collections", token); } + /// + /// Updates an existing collection. + /// + /// The identifier of the collection to be updated. + /// The data representing the updated collection. + /// A cancellation token to observe while waiting for the task to complete. + /// A task that represents the asynchronous operation, containing the response as a string. + public async Task UpdateCollectionAsync(int id, string data, CancellationToken token) + { + /// /// Creates a new collection. ///