POST api/StaticContent/UpsertStaticContent

Request Information

URI Parameters

None.

Body Parameters

StaticContentDto
NameDescriptionTypeAdditional information
AccountId

globally unique identifier

None.

DataType

string

None.

DataText

string

None.

DataTextFr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": "0ef67216-4a01-4c4e-a868-735eeec89be8",
  "DataType": "sample string 2",
  "DataText": "sample string 3",
  "DataTextFr": "sample string 4"
}

application/xml, text/xml

Sample:
<StaticContentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.StaticContentModule.Model">
  <AccountId>0ef67216-4a01-4c4e-a868-735eeec89be8</AccountId>
  <DataText>sample string 3</DataText>
  <DataTextFr>sample string 4</DataTextFr>
  <DataType>sample string 2</DataType>
</StaticContentDto>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>