Primary Domain, Add-on Domain, or Subdomain
The set operation of the site
operator enables you to update the information about the ICP permit status and the ID of the assigned ICP permit for one or more primary domains, add-on domains, or subdomains.
Request Packet Structure
A request XML packet updating information about the ICP permit status and the ICP permit ID of one or more domains or subdomains must include the set, values, and prefs operation nodes:
<packet>
<site>
<set>
...
<values>
<prefs>...</prefs>
</values>
</set>
</site>
</packet>
For more information about the set node, including its graphical representation and the descriptions and properties of dependent nodes, click here.
Response Packet Structure
The structure of the set node of the response packet is described here.
Samples
The following packet grants the "ICP permit approved" status and assign the ICP permit "123456789" to the domain example.com:
<packet>
<site>
<set>
<filter>
<name>example.com</name>
</filter>
<values>
<prefs>
<icp-status>true</icp-status>
<icp-permit>123456789</icp-permit>
</prefs>
</values>
</set>
</site>
</packet>
Response:
<packet>
<site>
<set>
<result>
<status>ok</status>
<filter-id>example.com</filter-id>
<id>5</id>
</result>
</set>
</site>
</packet>