POST api/appmessage/insert

Request Information

URI Parameters

None.

Body Parameters

AppMessage
NameDescriptionTypeAdditional information
Id

integer

Required

RowGuid

globally unique identifier

Required

MessageKey

string

None.

Message

string

None.

LanguageId

integer

Required

Description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RowGuid": "9728198e-a733-4981-815c-92531f7b9be4",
  "MessageKey": "sample string 3",
  "Message": "sample string 4",
  "LanguageId": 5,
  "Description": "sample string 6"
}

application/xml, text/xml

Sample:
<AppMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <Description>sample string 6</Description>
  <Id>1</Id>
  <LanguageId>5</LanguageId>
  <Message>sample string 4</Message>
  <MessageKey>sample string 3</MessageKey>
  <RowGuid>9728198e-a733-4981-815c-92531f7b9be4</RowGuid>
</AppMessage>

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

Response Information

Resource Description

AppMessageDisplay
NameDescriptionTypeAdditional information
LanguageIdDisplay

string

None.

Id

integer

Required

RowGuid

globally unique identifier

Required

MessageKey

string

None.

Message

string

None.

LanguageId

integer

Required

Description

string

None.

Response Formats

application/json, text/json

Sample:
{
  "LanguageIdDisplay": "sample string 1",
  "Id": 2,
  "RowGuid": "699139d3-fd18-4824-8699-657925a989ad",
  "MessageKey": "sample string 4",
  "Message": "sample string 5",
  "LanguageId": 6,
  "Description": "sample string 7"
}

application/xml, text/xml

Sample:
<AppMessageDisplay xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <Description>sample string 7</Description>
  <Id>2</Id>
  <LanguageId>6</LanguageId>
  <Message>sample string 5</Message>
  <MessageKey>sample string 4</MessageKey>
  <RowGuid>699139d3-fd18-4824-8699-657925a989ad</RowGuid>
  <LanguageIdDisplay>sample string 1</LanguageIdDisplay>
</AppMessageDisplay>