Skip to content

Commit

Permalink
Update Src/VTEX/VTEXWrapper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Nov 4, 2024
1 parent ffb4fb5 commit 84d35de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Src/VTEX/VTEXWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,16 @@ public async Task<string> GetCollectionsAsync(CancellationToken token)
return await ServiceInvokerAsync(HttpRequestMethod.GET, "collections", token);
}

/// <summary>
/// Creates a new collection.
/// </summary>
/// <param name="data">The data representing the new collection to be created.</param>
/// <param name="token">A cancellation token to observe while waiting for the task to complete.</param>
/// <returns>A task that represents the asynchronous operation, containing the response as a string.</returns>
public async Task<string> CreateCollectionAsync(string data, CancellationToken token)
{
return await ServiceInvokerAsync(HttpRequestMethod.POST, "collections", token, data: data);

/// <summary>
/// Sets the rest credentials.
/// </summary>
Expand Down

0 comments on commit 84d35de

Please sign in to comment.