Toggle ID Protect Print

  • 1

domaintoggleidprotect

Purpose

This command is used to toggle the ID Protection status of a domain, if it's supported.

Note: This operation generating invoice!

Attributes

  • domainid - ID of the domain in WHMCS
  • dprotect - true/false

Example Command

$postfields = array();
$postfields["responsetype"] = "json";

$postfields["action"] = "domaintoggleidprotect";
$postfields["domainid"] = "1";
$postfields["idprotect"] = true;

$result = mikrovps_SendCommand( $postfields );

Successful Response

 

Error Response

result = error
message = Domain Not Found

Domain ID not found

result = error
Registrar Error Message
error = xxx

Generic error


Was this answer helpful?

« Back