PUT api/Domain/{handle}/Contact?user={user}

Update one or more of the domain contacts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
handle

Domain handle

string

Required

user

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

string

None.

Body Parameters

New list of contacts - Handle and Type required.

Collection of UpdateContactToDomain
NameDescriptionTypeAdditional information
Handle

Contact handle

string

Required

Type

Contact type:
A - Admin
B - Billing
T - Technical
O - Registrant

string

Required

Matching regular expression pattern: A|B|T|O

Request Formats

application/json, text/json

Sample:
[
  {
    "Handle": "sample string 1",
    "Type": "sample string 2"
  },
  {
    "Handle": "sample string 1",
    "Type": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateContactToDomain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Domain">
  <UpdateContactToDomain>
    <Handle>sample string 1</Handle>
    <Type>sample string 2</Type>
  </UpdateContactToDomain>
  <UpdateContactToDomain>
    <Handle>sample string 1</Handle>
    <Type>sample string 2</Type>
  </UpdateContactToDomain>
</ArrayOfUpdateContactToDomain>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Return codes
200 - ok
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
572 - operation not allowed for this TLD

Collection of DomainContactError
NameDescriptionTypeAdditional information
Code

Error code

integer

None.

Detail

Error description

string

None.

Data

Additional information

Object

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Code": 404,
    "Detail": "Contact AA0001 does not exist or you do not have permission",
    "Data": {
      "Handle": "AA0001",
      "Type": "A"
    }
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.