POST api/PortalAdmin/News/Insert

Request Information

URI Parameters

None.

Body Parameters

News_InsertBinddingModel
NameDescriptionTypeAdditional information
NewsBasic

NewsInformationBasicModel

None.

CustomerIdList

Collection of CustomerIdModel

None.

Request Formats

application/json, text/json

Sample:
{
  "newsBasic": {
    "portalId": 1,
    "id": 2,
    "title": "sample string 3",
    "shortDescription": "sample string 4",
    "isImportant": true,
    "isDraff": true,
    "isCustomer": true,
    "imageURL": "sample string 8",
    "fileURL": "sample string 9",
    "link": "sample string 10",
    "typeId": 11,
    "description": "sample string 12"
  },
  "customerIdList": [
    {
      "customerId": 1
    },
    {
      "customerId": 1
    }
  ]
}

application/xml, text/xml

Sample:
<News_InsertBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Portal">
  <CustomerIdList>
    <CustomerIdModel>
      <CustomerId>1</CustomerId>
    </CustomerIdModel>
    <CustomerIdModel>
      <CustomerId>1</CustomerId>
    </CustomerIdModel>
  </CustomerIdList>
  <NewsBasic>
    <Description>sample string 12</Description>
    <FileURL>sample string 9</FileURL>
    <Id>2</Id>
    <ImageURL>sample string 8</ImageURL>
    <IsCustomer>true</IsCustomer>
    <IsDraff>true</IsDraff>
    <IsImportant>true</IsImportant>
    <Link>sample string 10</Link>
    <PortalId>1</PortalId>
    <ShortDescription>sample string 4</ShortDescription>
    <Title>sample string 3</Title>
    <TypeId>11</TypeId>
  </NewsBasic>
</News_InsertBinddingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.