<p>I'm looking for the API used by kubernetes clients to rollback deployments.</p>
<p>I can find that in the older versions of kubernetes API docs
<code>POST /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback</code>(<a href="https://v1-15.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#rollback-deployment-v1beta1-extensions" rel="nofollow noreferrer">reference</a>) is the API being used. However this documentation seems to have been removed in versions later than 1.18 and I can't seem to find any replacement for this API either in the new documentation.</p>
<p>If the API no longer exists how do clients such as kubectl or any of the client libraries rollback deployments in the newer versions of kubernetes?</p>

Rohit Sukumaran
<p>The missing API is an result of the changes made in the newest Kubernetes version 1.19:</p>
<blockquote>
<p><code>apiextensions.k8s.io/v1beta1 </code> is deprecated in favor of
<code>apiextensions.k8s.io/v1</code>
(<a href="https://github.com/kubernetes/kubernetes/pull/90673" rel="nofollow noreferrer">#90673</a>,
<a href="https://github.com/deads2k" rel="nofollow noreferrer">@deads2k</a>) [SIG API Machinery]</p>
</blockquote>
<p>As suggested by community running <code>kubectl</code> with high verbosity level will allow to debug your commands at high level.  You can check <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-output-verbosity-and-debugging" rel="nofollow noreferrer">here</a> more about verbosity and debugging.</p>
