title: How to Disable AutoSSL feature for cpanel user from WHM using WHM API?
body: <p>I have tried to disable auto SSL feature for particular cpanel from WHM using whm api
  through CURL.
  Source COde:</p>
  <p>$query = &quot;https://&quot;.$serverModel-&gt;root_domain.&quot;:2087/json-api/add_autossl_user_excluded_domains?api.version=1&amp;username=&quot; . $cpanel_username . &quot;&amp;domain=&quot; . $cpanel_domain . &quot;&quot;;</p>
  <pre><code>                $curl = curl_init();
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  
                  $header[0] = 'Authorization: WHM ' . $serverModel-&gt;whm_username . ':' . preg_replace(&quot;'(\r|\n)'&quot;, &quot;&quot;, $serverModel-&gt;accesshash);
  
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
                  curl_setopt($curl, CURLOPT_URL, $query);
  
                  $result = curl_exec($curl);
                  curl_close($curl);
  </code></pre>
  <p>// firstly I have added the cpanel user domain as autossl excluded domain list and it's done successfully using below api link:
  <a href="https://api.docs.cpanel.net/openapi/whm/operation/add_autossl_user_excluded_domains/" rel="nofollow noreferrer">https://api.docs.cpanel.net/openapi/whm/operation/add_autossl_user_excluded_domains/</a></p>
  <p>and again tried to remove autoSSL using api link:
  <a href="https://api.docs.cpanel.net/openapi/whm/operation/remove_autossl_user_excluded_domains/" rel="nofollow noreferrer">https://api.docs.cpanel.net/openapi/whm/operation/remove_autossl_user_excluded_domains/</a></p>
  <p>after running it successfully i was unable to disable AusoSSL check from whm.<a href="https://i.stack.imgur.com/XBXjC.png" rel="nofollow noreferrer">enter image description here</a>
  Can anyone Help please?</p>