PUT api/Contact/Pack?user={user}
Update the pack of a reseller
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
Pack details
ResellerPack| Name | Description | Type | Additional information |
|---|---|---|---|
| Autorenew |
New products are set to autorenew by default |
boolean |
None. |
| Protected |
New domains are set to status protected where possible |
boolean |
None. |
Request Formats
application/json, text/json
{
"Autorenew": true,
"Protected": true
}
application/xml, text/xml
<ResellerPack xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Contact"> <Autorenew>true</Autorenew> <Protected>true</Protected> </ResellerPack>
application/x-www-form-urlencoded
Response Information
Resource Description
Pack object on success
Collection of errors on failure
Return codes
200 - ok
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
| Name | Description | Type | Additional information |
|---|---|---|---|
| Autorenew |
New products are set to autorenew by default |
boolean |
None. |
| Protected |
New domains are set to status protected where possible |
boolean |
None. |
Response Formats
application/json, text/json
{
"Autorenew": true,
"Protected": true
}
application/xml, text/xml
<ResellerPack xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Contact"> <Autorenew>true</Autorenew> <Protected>true</Protected> </ResellerPack>