POST api/Sites/PostSiteWithAllSitesPublishedNews

Request Information

URI Parameters

None.

Body Parameters

Sites
NameDescriptionTypeAdditional information
SiteId

integer

None.

CompanyId

integer

None.

Name

string

None.

Localisation

string

None.

AppTemplateId

globally unique identifier

None.

LastChanged

date

None.

Country

string

None.

Town

string

None.

Adress

string

None.

PostalCode

string

None.

Phone

string

None.

Mail

string

None.

Website

string

None.

LanguageId

integer

None.

LastChange_AuthorId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteId": 1,
  "CompanyId": 2,
  "Name": "sample string 3",
  "Localisation": "sample string 4",
  "AppTemplateId": "b12b4158-8967-4aca-a659-0c0c9dc0428b",
  "LastChanged": "2025-08-14T03:21:55.6332108+00:00",
  "Country": "sample string 7",
  "Town": "sample string 8",
  "Adress": "sample string 9",
  "PostalCode": "sample string 10",
  "Phone": "sample string 11",
  "Mail": "sample string 12",
  "Website": "sample string 13",
  "LanguageId": 1,
  "LastChange_AuthorId": 1
}

application/xml, text/xml

Sample:
<Sites xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <Adress>sample string 9</Adress>
  <AppTemplateId>b12b4158-8967-4aca-a659-0c0c9dc0428b</AppTemplateId>
  <CompanyId>2</CompanyId>
  <Country>sample string 7</Country>
  <LanguageId>1</LanguageId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:21:55.6332108+00:00</LastChanged>
  <Localisation>sample string 4</Localisation>
  <Mail>sample string 12</Mail>
  <Name>sample string 3</Name>
  <Phone>sample string 11</Phone>
  <PostalCode>sample string 10</PostalCode>
  <SiteId>1</SiteId>
  <Town>sample string 8</Town>
  <Website>sample string 13</Website>
</Sites>

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

Response Information

Resource Description

Sites
NameDescriptionTypeAdditional information
SiteId

integer

None.

CompanyId

integer

None.

Name

string

None.

Localisation

string

None.

AppTemplateId

globally unique identifier

None.

LastChanged

date

None.

Country

string

None.

Town

string

None.

Adress

string

None.

PostalCode

string

None.

Phone

string

None.

Mail

string

None.

Website

string

None.

LanguageId

integer

None.

LastChange_AuthorId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "SiteId": 1,
  "CompanyId": 2,
  "Name": "sample string 3",
  "Localisation": "sample string 4",
  "AppTemplateId": "1e2bf6c5-54cb-44ae-b022-227ea7bb4fd7",
  "LastChanged": "2025-08-14T03:21:55.6332108+00:00",
  "Country": "sample string 7",
  "Town": "sample string 8",
  "Adress": "sample string 9",
  "PostalCode": "sample string 10",
  "Phone": "sample string 11",
  "Mail": "sample string 12",
  "Website": "sample string 13",
  "LanguageId": 1,
  "LastChange_AuthorId": 1
}

application/xml, text/xml

Sample:
<Sites xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <Adress>sample string 9</Adress>
  <AppTemplateId>1e2bf6c5-54cb-44ae-b022-227ea7bb4fd7</AppTemplateId>
  <CompanyId>2</CompanyId>
  <Country>sample string 7</Country>
  <LanguageId>1</LanguageId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:21:55.6332108+00:00</LastChanged>
  <Localisation>sample string 4</Localisation>
  <Mail>sample string 12</Mail>
  <Name>sample string 3</Name>
  <Phone>sample string 11</Phone>
  <PostalCode>sample string 10</PostalCode>
  <SiteId>1</SiteId>
  <Town>sample string 8</Town>
  <Website>sample string 13</Website>
</Sites>