PUT api/Domain/{handle}/Contact?user={user}
Update one or more of the domain contacts
Request Information
URI Parameters
| Name | Description | Type | Additional 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| Name | Description | Type | Additional information |
|---|---|---|---|
| Handle |
Contact handle |
string |
Required |
| Type |
Contact type: |
string |
Required Matching regular expression pattern: A|B|T|O |
Request Formats
application/json, text/json
[
{
"Handle": "sample string 1",
"Type": "sample string 2"
},
{
"Handle": "sample string 1",
"Type": "sample string 2"
}
]
application/xml, text/xml
<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
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
| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Error code |
integer |
None. |
| Detail |
Error description |
string |
None. |
| Data |
Additional information |
Object |
None. |
Response Formats
application/json, text/json
[
{
"Code": 404,
"Detail": "Contact AA0001 does not exist or you do not have permission",
"Data": {
"Handle": "AA0001",
"Type": "A"
}
}
]