Skip to content

Commit

Permalink
Documentation: Adds Upsert documentation to include status codes for …
Browse files Browse the repository at this point in the history
…Created vs Replaced (#4186)

* Upset status codes clarification

* Upgrade Resiliency: Adds Code to Enable Advanced Replica Selection Feature for Preview (#4180)

* Code changes to enable replica validation for preview.

* Code changes to enable replica validation for preview and GA.

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
  • Loading branch information
kirankumarkolli and kundadebdatta committed Nov 16, 2023
1 parent f471418 commit e205d41
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Microsoft.Azure.Cosmos/src/Resource/Container/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,13 @@ public abstract class Container
/// Check the HTTP status code on the response to check if the operation failed.
/// </remarks>
/// <exception>https://aka.ms/cosmosdb-dot-net-exceptions#stream-api</exception>
/// <remarks>
/// <para>
/// Upsert result i.e. creation or replace can be identified by the status code:
/// 201 - item created
/// 200 - item replaced
/// </para>
/// </remarks>
/// <example>
/// Upsert a Stream containing the item to Cosmos
/// <code language="c#">
Expand Down Expand Up @@ -506,6 +513,13 @@ public abstract class Container
/// <param name="cancellationToken">(Optional) <see cref="CancellationToken"/> representing request cancellation.</param>
/// <returns>The <see cref="ItemResponse{T}"/> that was upserted contained within a <see cref="System.Threading.Tasks.Task"/> object representing the service response for the asynchronous operation.</returns>
/// <exception>https://aka.ms/cosmosdb-dot-net-exceptions#typed-api</exception>
/// <remarks>
/// <para>
/// Upsert result i.e. creation or replace can be identified by the status code:
/// 201 - item created
/// 200 - item replaced
/// </para>
/// </remarks>
/// <example>
/// <code language="c#">
/// <![CDATA[
Expand Down

0 comments on commit e205d41

Please sign in to comment.