Skip to content

Commit 8d6b8ed

Browse files
committed
add rename doc group feature
1 parent e77f366 commit 8d6b8ed

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: SignNow.Net/Interfaces/IDocumentGroup.cs

+9
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,14 @@ public interface IDocumentGroup
3737
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
3838
/// <returns></returns>
3939
Task<DocumentGroupsResponse> GetDocumentGroupsAsync(IQueryToString options, CancellationToken cancellationToken = default);
40+
41+
/// <summary>
42+
/// Renames document group
43+
/// </summary>
44+
/// <param name="newName">New name for the document group.</param>
45+
/// <param name="documentGroupId">ID of the Document Group.</param>
46+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
47+
/// <returns></returns>
48+
Task RenameDocumentGroupAsync(string newName, string documentGroupId, CancellationToken cancellationToken = default);
4049
}
4150
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Newtonsoft.Json;
2+
using SignNow.Net.Model.Requests;
3+
4+
namespace SignNow.Net.Internal.Requests
5+
{
6+
internal class RenameDocumentGroupRequest : JsonHttpContent
7+
{
8+
[JsonProperty("group_name")]
9+
public string GroupName { get; set; }
10+
}
11+
}

0 commit comments

Comments
 (0)