POST api/createpost
Request Information
URI Parameters
None.
Body Parameters
CMPostModel| Name | Description | Type | Additional information |
|---|---|---|---|
| NewsId | integer |
None. |
|
| ApplicationId | integer |
None. |
|
| Description | string |
Required |
|
| Title | string |
Required |
|
| Identifier | string |
None. |
|
| CreatedBy | integer |
None. |
|
| PostType | integer |
None. |
|
| PortfolioId | integer |
None. |
|
| Name | string |
None. |
|
| CategoryId | integer |
None. |
|
| Amount | decimal number |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| Radius | integer |
None. |
|
| Zip | string |
None. |
|
| Country | string |
None. |
|
| State | string |
None. |
|
| City | string |
None. |
|
| Location | string |
None. |
|
| string |
None. |
||
| PhoneNumber | string |
None. |
|
| Password | string |
None. |
|
| ConfirmPassword | string |
None. |
|
| Country_code | string |
None. |
|
| CategoryIds | string |
None. |
|
| ShowInSite | boolean |
None. |
|
| FileName | string |
None. |
|
| ImageFile | string |
Required |
|
| RelativePageUrl | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"NewsId": 1,
"ApplicationId": 1,
"Description": "sample string 1",
"Title": "sample string 2",
"Identifier": "sample string 3",
"CreatedBy": 1,
"PostType": 1,
"PortfolioId": 4,
"Name": "sample string 5",
"CategoryId": 6,
"Amount": 1.1,
"Latitude": 1.0,
"Longitude": 1.0,
"Radius": 7,
"Zip": "sample string 8",
"Country": "sample string 9",
"State": "sample string 10",
"City": "sample string 11",
"Location": "sample string 12",
"Email": "sample string 13",
"PhoneNumber": "sample string 14",
"Password": "sample string 15",
"ConfirmPassword": "sample string 16",
"Country_code": "sample string 17",
"CategoryIds": "sample string 18",
"ShowInSite": true,
"FileName": "sample string 19",
"ImageFile": "sample string 20",
"RelativePageUrl": "sample string 21"
}
application/xml, text/xml
Sample:
<CMPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GM.ApplicanProgramInterface.Models"> <Amount>1.1</Amount> <ApplicationId>1</ApplicationId> <CategoryId>6</CategoryId> <CategoryIds>sample string 18</CategoryIds> <City>sample string 11</City> <ConfirmPassword>sample string 16</ConfirmPassword> <Country>sample string 9</Country> <Country_code>sample string 17</Country_code> <CreatedBy>1</CreatedBy> <Description>sample string 1</Description> <Email>sample string 13</Email> <FileName>sample string 19</FileName> <Identifier>sample string 3</Identifier> <ImageFile>sample string 20</ImageFile> <Latitude>1</Latitude> <Location>sample string 12</Location> <Longitude>1</Longitude> <Name>sample string 5</Name> <NewsId>1</NewsId> <Password>sample string 15</Password> <PhoneNumber>sample string 14</PhoneNumber> <PortfolioId>4</PortfolioId> <PostType>1</PostType> <Radius>7</Radius> <RelativePageUrl>sample string 21</RelativePageUrl> <ShowInSite>true</ShowInSite> <State>sample string 10</State> <Title>sample string 2</Title> <Zip>sample string 8</Zip> </CMPostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.