POST api/Hosting/{hosting_handle}/Alias

Create a new alias on the given hosting and belonging to the currently logged in user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hosting_handle

Hosting object handle

string

Required

Body Parameters

The alias object to create

Alias
NameDescriptionTypeAdditional information
Id

Alias id

decimal number

None.

HostingHandle

Hosting handle

string

None.

Host

Host name

string

None.

Domaine

Domain name

string

None.

Etat

Status

integer

None.

DateModif

Last modified date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 0.0,
  "HostingHandle": "myhost1",
  "Host": "www",
  "Domaine": "mydomain.com",
  "Etat": 0,
  "DateModif": "0001-01-01T00:00:00"
}

application/xml, text/xml

Sample:
<Alias xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting">
  <DateModif>0001-01-01T00:00:00</DateModif>
  <Domaine>mydomain.com</Domaine>
  <Etat>0</Etat>
  <Host>www</Host>
  <HostingHandle>myhost1</HostingHandle>
  <Id>0</Id>
</Alias>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The alias object on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
401 - unauthorized
404 - not found
500 - internal server error
513 - quota exceeded
525 - object already registered
530 - invalid attribute value

Alias
NameDescriptionTypeAdditional information
Id

Alias id

decimal number

None.

HostingHandle

Hosting handle

string

None.

Host

Host name

string

None.

Domaine

Domain name

string

None.

Etat

Status

integer

None.

DateModif

Last modified date

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 0.0,
  "HostingHandle": "myhost1",
  "Host": "www",
  "Domaine": "mydomain.com",
  "Etat": 0,
  "DateModif": "0001-01-01T00:00:00"
}

application/xml, text/xml

Sample:
<Alias xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting">
  <DateModif>0001-01-01T00:00:00</DateModif>
  <Domaine>mydomain.com</Domaine>
  <Etat>0</Etat>
  <Host>www</Host>
  <HostingHandle>myhost1</HostingHandle>
  <Id>0</Id>
</Alias>