Skip to content

Commit

Permalink
add rename doc group feature
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNDRmac committed Dec 12, 2024
1 parent e77f366 commit 8d6b8ed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SignNow.Net/Interfaces/IDocumentGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,14 @@ public interface IDocumentGroup
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
/// <returns></returns>
Task<DocumentGroupsResponse> GetDocumentGroupsAsync(IQueryToString options, CancellationToken cancellationToken = default);

/// <summary>
/// Renames document group
/// </summary>
/// <param name="newName">New name for the document group.</param>
/// <param name="documentGroupId">ID of the Document Group.</param>
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
/// <returns></returns>
Task RenameDocumentGroupAsync(string newName, string documentGroupId, CancellationToken cancellationToken = default);
}
}
11 changes: 11 additions & 0 deletions SignNow.Net/_Internal/Requests/RenameDocumentGroupRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Newtonsoft.Json;
using SignNow.Net.Model.Requests;

namespace SignNow.Net.Internal.Requests
{
internal class RenameDocumentGroupRequest : JsonHttpContent
{
[JsonProperty("group_name")]
public string GroupName { get; set; }
}
}

0 comments on commit 8d6b8ed

Please sign in to comment.