POST api/TinTuc/Update
Request Information
URI Parameters
None.
Body Parameters
UpdateTinTucRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| TieuDe | string |
None. |
|
| MoTa | string |
None. |
|
| AnhBiaId | globally unique identifier |
None. |
|
| DanhMucChuDeTinTucId | decimal number |
None. |
|
| NoiDung | string |
None. |
|
| TrangThai | boolean |
None. |
|
| MucDoUuTien | MucDoUuTienTinTucEnum |
None. |
|
| PublishedTime | date |
None. |
|
| IsBanner | boolean |
None. |
|
| AnhBanner | globally unique identifier |
None. |
|
| HienThiTextBanner | boolean |
None. |
|
| ViTriBanner | integer |
None. |
|
| UrlBanner | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "5279e92c-3555-42a9-adb9-09930a861602",
"tieuDe": "sample string 1",
"moTa": "sample string 2",
"anhBiaId": "2a35cb63-b73c-43df-9697-fc7527414dc7",
"danhMucChuDeTinTucId": 1.0,
"noiDung": "sample string 3",
"trangThai": true,
"mucDoUuTien": 0,
"publishedTime": "2026-11-27T01:43:47.7670516+07:00",
"isBanner": true,
"anhBanner": "082f6537-a399-418f-b25e-74aae0f68309",
"hienThiTextBanner": true,
"viTriBanner": 1,
"urlBanner": "sample string 5"
}
application/xml, text/xml
Sample:
<UpdateTinTucRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.TinTuc"> <AnhBanner>082f6537-a399-418f-b25e-74aae0f68309</AnhBanner> <AnhBiaId>2a35cb63-b73c-43df-9697-fc7527414dc7</AnhBiaId> <DanhMucChuDeTinTucId>1</DanhMucChuDeTinTucId> <HienThiTextBanner>true</HienThiTextBanner> <Id>5279e92c-3555-42a9-adb9-09930a861602</Id> <IsBanner>true</IsBanner> <MoTa>sample string 2</MoTa> <MucDoUuTien>RAT_CAO</MucDoUuTien> <NoiDung>sample string 3</NoiDung> <PublishedTime>2026-11-27T01:43:47.7670516+07:00</PublishedTime> <TieuDe>sample string 1</TieuDe> <TrangThai>true</TrangThai> <UrlBanner>sample string 5</UrlBanner> <ViTriBanner>1</ViTriBanner> </UpdateTinTucRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
TinTucDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| TieuDe | string |
None. |
|
| TenChuDe | string |
None. |
|
| MoTa | string |
None. |
|
| DanhMucChuDeTinTucId | decimal number |
None. |
|
| AnhBiaId | globally unique identifier |
None. |
|
| NoiDung | string |
None. |
|
| TrangThai | boolean |
None. |
|
| PublishedTime | date |
None. |
|
| MucDoUuTien | integer |
None. |
|
| IsBanner | boolean |
None. |
|
| UrlImage | string |
None. |
|
| AnhBanner | globally unique identifier |
None. |
|
| PositionId | integer |
None. |
|
| TenMucDoUuTien | string |
None. |
|
| PublishedTimeStr | string |
None. |
|
| SeName | string |
None. |
|
| HienThiTextBanner | boolean |
None. |
|
| ViTriBanner | integer |
None. |
|
| ViTriBannerStr | string |
None. |
|
| BackgroundColorBanner | string |
None. |
|
| UrlBanner | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "8392d2c3-e6ea-44f9-a8f0-0ea05fade7e7",
"tieuDe": "sample string 1",
"tenChuDe": "sample string 2",
"moTa": "sample string 3",
"danhMucChuDeTinTucId": 1.0,
"anhBiaId": "8899d91a-fa82-4c37-8c59-4c8b51488294",
"noiDung": "sample string 4",
"trangThai": true,
"publishedTime": "2026-11-27T01:43:47.7933935+07:00",
"mucDoUuTien": 1,
"isBanner": true,
"urlImage": "sample string 6",
"anhBanner": "f2a1aa90-f41f-4d6f-945a-463f69561ceb",
"positionId": 7,
"tenMucDoUuTien": "Cao",
"publishedTimeStr": "27/11/2026",
"seName": "sample string 8",
"hienThiTextBanner": true,
"viTriBanner": 1,
"viTriBannerStr": "Banner quảng cáo - Trang chủ - Vị trí trên cùng (header)",
"backgroundColorBanner": "sample string 9",
"urlBanner": "sample string 10"
}
application/xml, text/xml
Sample:
<TinTucDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Dto"> <AnhBanner>f2a1aa90-f41f-4d6f-945a-463f69561ceb</AnhBanner> <AnhBiaId>8899d91a-fa82-4c37-8c59-4c8b51488294</AnhBiaId> <BackgroundColorBanner>sample string 9</BackgroundColorBanner> <DanhMucChuDeTinTucId>1</DanhMucChuDeTinTucId> <HienThiTextBanner>true</HienThiTextBanner> <Id>8392d2c3-e6ea-44f9-a8f0-0ea05fade7e7</Id> <IsBanner>true</IsBanner> <MoTa>sample string 3</MoTa> <MucDoUuTien>1</MucDoUuTien> <NoiDung>sample string 4</NoiDung> <PositionId>7</PositionId> <PublishedTime>2026-11-27T01:43:47.7933935+07:00</PublishedTime> <SeName>sample string 8</SeName> <TenChuDe>sample string 2</TenChuDe> <TieuDe>sample string 1</TieuDe> <TrangThai>true</TrangThai> <UrlBanner>sample string 10</UrlBanner> <UrlImage>sample string 6</UrlImage> <ViTriBanner>1</ViTriBanner> </TinTucDto>