diff --git a/src/Auth0.ManagementApi/Clients/IKeysClient.cs b/src/Auth0.ManagementApi/Clients/IKeysClient.cs
index 961b718a..59834d4b 100644
--- a/src/Auth0.ManagementApi/Clients/IKeysClient.cs
+++ b/src/Auth0.ManagementApi/Clients/IKeysClient.cs
@@ -82,5 +82,11 @@ public interface IKeysClient
///
/// The cancellation token to cancel operation.
Task CreatePublicWrappingKeyAsync(WrappingKeyCreateRequest request, CancellationToken cancellationToken = default);
+
+ ///
+ /// Perform rekeying operation on the key hierarchy.
+ ///
+ /// The cancellation token to cancel operation.
+ Task RekeyAsync(CancellationToken cancellationToken = default);
}
}
diff --git a/src/Auth0.ManagementApi/Clients/KeysClient.cs b/src/Auth0.ManagementApi/Clients/KeysClient.cs
index 455c1216..ab53a9cd 100644
--- a/src/Auth0.ManagementApi/Clients/KeysClient.cs
+++ b/src/Auth0.ManagementApi/Clients/KeysClient.cs
@@ -160,7 +160,7 @@ public Task CreatePublicWrappingKeyAsync(
if (string.IsNullOrEmpty(request.Kid))
throw new ArgumentNullException(nameof(request.Kid));
-
+
return Connection.SendAsync(
HttpMethod.Post,
BuildUri($"keys/encryption/{EncodePath(request.Kid)}/wrapping-key"),
@@ -168,5 +168,16 @@ public Task CreatePublicWrappingKeyAsync(
headers: DefaultHeaders,
cancellationToken: cancellationToken);
}
+
+ ///
+ public Task RekeyAsync(CancellationToken cancellationToken = default)
+ {
+ return Connection.SendAsync