Set autorenew flag to a domain name.
| Inputs | Description | Type | Regular expression | Mandatory |
| name | Domain name | String | [A-Za-z0-9-\.]{5,68} | Yes |
| autorenew | Automatic renew | Boolean | True if the domain is in autorenew and False otherwise | Yes |
| Outputs | Description | Possible values |
| name | Domain name | |
| autorenew | Automatic renew | True / False |
| msg | ‘Success’ if the operation succeeded, ‘failed’ otherwise |
Command
| <api> […] <command> <domain_setautorenew> <name>NAMEBAYTEST.CN</name> <autorenew>false</autorenew> </domain_setautorenew> </command> </api> |
Response
| <?xml version="1.0" encoding="utf-8"?> <api> <response> <trID>NBAY-API-9b45fc206032017080019</trID> <result code="200"> <msg>command completed successfully</msg> </result> </response> <resData> <domain_setARData> <name>NAMEBAYTEST.CN</name> <auto_renew>False</auto_renew> <msg>success</msg> </domain_setARData> </resData> </api> |