POST api/BENews/CreateNews
Request Information
URI Parameters
None.
Body Parameters
NewsData| Name | Description | Type | Additional information |
|---|---|---|---|
| IsTop | boolean |
None. |
|
| Title | string |
None. |
|
| Content | string |
None. |
|
| PostFrom | date |
None. |
|
| PostTo | date |
None. |
|
| UP_UserId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IsTop": true,
"Title": "sample string 2",
"Content": "sample string 3",
"PostFrom": "2026-04-21 17:41:01",
"PostTo": "2026-04-21 17:41:01",
"UP_UserId": "sample string 6"
}
application/xml, text/xml
Sample:
<NewsModel.NewsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRMS.Models"> <Content>sample string 3</Content> <IsTop>true</IsTop> <PostFrom>2026-04-21T17:41:01.0060668+08:00</PostFrom> <PostTo>2026-04-21T17:41:01.0060668+08:00</PostTo> <Title>sample string 2</Title> <UP_UserId>sample string 6</UP_UserId> </NewsModel.NewsData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResultOfObject| Name | Description | Type | Additional information |
|---|---|---|---|
| body | Object |
None. |
|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| code | string |
None. |
|
| response | Enum |
None. |
|
| exception | string |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<BaseModels.BaseResultOfanyTypeRvdAXEcW xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRMS.Models"> <body /> <exception>sample string 3</exception> <isSuccess>true</isSuccess> <response i:nil="true" /> </BaseModels.BaseResultOfanyTypeRvdAXEcW>