PUT api/Domain/{handle}/dsData?user={user}
Add/remove dsdata
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
List of dsdata objects to add or remove - action indicates which
Collection of DsDataName | Description | Type | Additional information |
---|---|---|---|
action | string |
Required Matching regular expression pattern: ^(add|rem|remall)$ |
|
keyTag | string |
None. |
|
alg | string |
None. |
|
digestType | string |
None. |
|
digest | string |
None. |
|
action | string |
None. |
Request Formats
application/json, text/json
[ { "keyTag": "sample string 1", "alg": "sample string 2", "digestType": "sample string 3", "digest": "sample string 4", "action": "sample string 5" }, { "keyTag": "sample string 1", "alg": "sample string 2", "digestType": "sample string 3", "digest": "sample string 4", "action": "sample string 5" } ]
application/xml
Sample not available.
text/xml
Sample not available.
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Collection of errors on failure
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": 1, "Detail": "sample string 2", "Data": {} }, { "Code": 1, "Detail": "sample string 2", "Data": {} } ]
application/xml, text/xml
<ArrayOfError xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models"> <Error> <Code>1</Code> <Data /> <Detail>sample string 2</Detail> </Error> <Error> <Code>1</Code> <Data /> <Detail>sample string 2</Detail> </Error> </ArrayOfError>