PUT api/Contact/Pack?user={user}

Update the pack of a reseller

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user

Optional user handle - if empty logged in user will be used

string

None.

Body Parameters

Pack details

ResellerPack
NameDescriptionTypeAdditional 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

Sample:
{
  "Autorenew": true,
  "Protected": true
}

application/xml, text/xml

Sample:
<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

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ResellerPack'.

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

ResellerPack
NameDescriptionTypeAdditional 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

Sample:
{
  "Autorenew": true,
  "Protected": true
}

application/xml, text/xml

Sample:
<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>