POST api/Hosting/{hosting_handle}/Application

Create a new application on the given hosting

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hosting_handle

Hosting object handle

string

Required

Body Parameters

Body - the application to create

Application
NameDescriptionTypeAdditional information
Id

Application id

decimal number

None.

HostingHandle

Hosting handle

string

None.

AppName

Application name

string

Required

FullPath

Full path of application directory (site directory + freindly path)

string

None.

FriendlyPath

Directory path relative to site directory

string

Required

DateCre

Date created

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1.0,
  "HostingHandle": "sample string 2",
  "AppName": "sample string 3",
  "FullPath": "sample string 4",
  "FriendlyPath": "sample string 5",
  "DateCre": "2025-04-04T00:25:04.5258062+02:00"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The application object on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
401 - unauthorized
404 - not found
500 - internal server error
525 - object already registered
803 - Invalid os for this operation

Application
NameDescriptionTypeAdditional information
Id

Application id

decimal number

None.

HostingHandle

Hosting handle

string

None.

AppName

Application name

string

Required

FullPath

Full path of application directory (site directory + freindly path)

string

None.

FriendlyPath

Directory path relative to site directory

string

Required

DateCre

Date created

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1.0,
  "HostingHandle": "sample string 2",
  "AppName": "sample string 3",
  "FullPath": "sample string 4",
  "FriendlyPath": "sample string 5",
  "DateCre": "2025-04-04T00:25:04.5258062+02:00"
}

application/xml, text/xml

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