PUT api/srs/domain/status

Updates a domain's status to a specific registry.

Request Information

URI Parameters

None.

Body Parameters

SrsDomainUpdateStatusParams
NameDescriptionTypeAdditional information
DomainName

string

Required

RegistryId

string

Required

Status

string

Required

SrsOnly

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "DomainName": "sample string 1",
  "RegistryId": "sample string 2",
  "Status": "sample string 3",
  "SrsOnly": true
}

application/xml, text/xml

Sample:
<SrsDomainUpdateStatusParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.SrsParams">
  <DomainName>sample string 1</DomainName>
  <RegistryId>sample string 2</RegistryId>
  <SrsOnly>true</SrsOnly>
  <Status>sample string 3</Status>
</SrsDomainUpdateStatusParams>

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 'SrsDomainUpdateStatusParams'.

Response Information

Resource Description

SrsRestResponse
NameDescriptionTypeAdditional information
XmlStatusCode

The legacy status codes as found in Interface.cs

integer

None.

Values

Additional values

Collection of string

None.

ResponseData

The response data of a successful SRS call

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "XmlStatusCode": 1,
  "Values": [
    "sample string 1",
    "sample string 2"
  ],
  "ResponseData": null
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.