From 84d35de7c8e8cb5d502ea1b746796cdb1e01e707 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:20 +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 6a8884df7..bbf857171 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); } + /// + /// Creates a new collection. + /// + /// The data representing the new collection to be created. + /// 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 CreateCollectionAsync(string data, CancellationToken token) + { + return await ServiceInvokerAsync(HttpRequestMethod.POST, "collections", token, data: data); + /// /// Sets the rest credentials. ///