POST api/NewsLetter

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
objDat
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "NEWS_ID": 1,
  "NEWS_NAME": "sample string 2",
  "NEWS_FILE": "sample string 3",
  "NEWS_FILE_NAME": "sample string 4",
  "NEWS_MONTH": 1,
  "CREATE_DATE": "2025-01-11T13:00:49.7135946+03:00",
  "TO_ALL": true,
  "NEWS_IMG": "sample string 5",
  "NEWS_YEAR": 1,
  "MONTH": 1,
  "YEAR": 1,
  "objNewsFilter": [
    {
      "SL_ID": 1,
      "NEWS_ID": 1,
      "FILTER_ID": 2,
      "FILTER_TYPE": "sample string 3"
    },
    {
      "SL_ID": 1,
      "NEWS_ID": 1,
      "FILTER_ID": 2,
      "FILTER_TYPE": "sample string 3"
    },
    {
      "SL_ID": 1,
      "NEWS_ID": 1,
      "FILTER_ID": 2,
      "FILTER_TYPE": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<Newsletter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ComsipApi.Models.CompanySetup">
  <CREATE_DATE>2025-01-11T13:00:49.7135946+03:00</CREATE_DATE>
  <MONTH>1</MONTH>
  <NEWS_FILE>sample string 3</NEWS_FILE>
  <NEWS_FILE_NAME>sample string 4</NEWS_FILE_NAME>
  <NEWS_ID>1</NEWS_ID>
  <NEWS_IMG>sample string 5</NEWS_IMG>
  <NEWS_MONTH>1</NEWS_MONTH>
  <NEWS_NAME>sample string 2</NEWS_NAME>
  <NEWS_YEAR>1</NEWS_YEAR>
  <TO_ALL>true</TO_ALL>
  <YEAR>1</YEAR>
  <objNewsFilter xmlns:d2p1="http://schemas.datacontract.org/2004/07/ComsipApi.Models.CompanySetup.MemoClass">
    <d2p1:NewsFilter>
      <d2p1:FILTER_ID>2</d2p1:FILTER_ID>
      <d2p1:FILTER_TYPE>sample string 3</d2p1:FILTER_TYPE>
      <d2p1:NEWS_ID>1</d2p1:NEWS_ID>
      <d2p1:SL_ID>1</d2p1:SL_ID>
    </d2p1:NewsFilter>
    <d2p1:NewsFilter>
      <d2p1:FILTER_ID>2</d2p1:FILTER_ID>
      <d2p1:FILTER_TYPE>sample string 3</d2p1:FILTER_TYPE>
      <d2p1:NEWS_ID>1</d2p1:NEWS_ID>
      <d2p1:SL_ID>1</d2p1:SL_ID>
    </d2p1:NewsFilter>
    <d2p1:NewsFilter>
      <d2p1:FILTER_ID>2</d2p1:FILTER_ID>
      <d2p1:FILTER_TYPE>sample string 3</d2p1:FILTER_TYPE>
      <d2p1:NEWS_ID>1</d2p1:NEWS_ID>
      <d2p1:SL_ID>1</d2p1:SL_ID>
    </d2p1:NewsFilter>
  </objNewsFilter>
</Newsletter>

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