PUT api/Hosting/{hosting_handle}/Site/{id}?user={user}

Update a site defined by id on the given hosting

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hosting_handle

Hosting object handle

string

Required

id

Id of the site to update

integer

Required

user

Owner of object

string

None.

Body Parameters

Body - site object with the elements to update

SiteUpdate
NameDescriptionTypeAdditional information
PhpVersion

Php Version

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PhpVersion": "sample string 1"
}

application/xml, text/xml

Sample:
<SiteUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting">
  <PhpVersion>sample string 1</PhpVersion>
</SiteUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A site object on success
Collection of errors on failure
Return codes
200 - ok
300 - Ambiguous
401 - unauthorized
404 - not found
500 - internal server error

Site
NameDescriptionTypeAdditional information
Id

Site id

integer

None.

HostingHandle

Hosting handle

string

None.

PhpVersion

Php Version

string

None.

Domain

Domain name

string

None.

Status

Status

integer

None.

DateModified

Last modified date

date

None.

DateCreated

Created date

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "HostingHandle": "sample string 2",
  "PhpVersion": "sample string 3",
  "Domain": "sample string 4",
  "Status": 5,
  "DateModified": "2025-04-04T00:25:04.5258062+02:00",
  "DateCreated": "2025-04-04T00:25:04.5258062+02:00"
}

application/xml, text/xml

Sample:
<Site xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting">
  <DateCreated>2025-04-04T00:25:04.5258062+02:00</DateCreated>
  <DateModified>2025-04-04T00:25:04.5258062+02:00</DateModified>
  <Domain>sample string 4</Domain>
  <HostingHandle>sample string 2</HostingHandle>
  <Id>1</Id>
  <PhpVersion>sample string 3</PhpVersion>
  <Status>5</Status>
</Site>