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": "b4240663-d7ed-48af-84a3-9e5c87fc2a4c",
"TieuDe": "sample string 1",
"MoTa": "sample string 2",
"AnhBiaId": "c7024d00-da82-46f8-a7c1-1e1c778f55d0",
"DanhMucChuDeTinTucId": 1.0,
"NoiDung": "sample string 3",
"TrangThai": true,
"MucDoUuTien": 0,
"PublishedTime": "2026-11-17T15:50:39.5100299+07:00",
"IsBanner": true,
"AnhBanner": "8aaaa186-5dd1-4fb7-bf06-8afe645045b4",
"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>8aaaa186-5dd1-4fb7-bf06-8afe645045b4</AnhBanner> <AnhBiaId>c7024d00-da82-46f8-a7c1-1e1c778f55d0</AnhBiaId> <DanhMucChuDeTinTucId>1</DanhMucChuDeTinTucId> <HienThiTextBanner>true</HienThiTextBanner> <Id>b4240663-d7ed-48af-84a3-9e5c87fc2a4c</Id> <IsBanner>true</IsBanner> <MoTa>sample string 2</MoTa> <MucDoUuTien>RAT_CAO</MucDoUuTien> <NoiDung>sample string 3</NoiDung> <PublishedTime>2026-11-17T15:50:39.5100299+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": "9b5bf76e-f5cc-4582-9d05-6e190c4cfb02",
"TieuDe": "sample string 1",
"TenChuDe": "sample string 2",
"MoTa": "sample string 3",
"DanhMucChuDeTinTucId": 1.0,
"AnhBiaId": "68ca2f5c-a6e4-4db4-9559-b07a5255d809",
"NoiDung": "sample string 4",
"TrangThai": true,
"PublishedTime": "2026-11-17T15:50:39.5441208+07:00",
"MucDoUuTien": 1,
"IsBanner": true,
"UrlImage": "sample string 6",
"AnhBanner": "b2e928ab-a550-45d1-b3e9-71ffba3723df",
"PositionId": 7,
"TenMucDoUuTien": "Cao",
"PublishedTimeStr": "17/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>b2e928ab-a550-45d1-b3e9-71ffba3723df</AnhBanner> <AnhBiaId>68ca2f5c-a6e4-4db4-9559-b07a5255d809</AnhBiaId> <BackgroundColorBanner>sample string 9</BackgroundColorBanner> <DanhMucChuDeTinTucId>1</DanhMucChuDeTinTucId> <HienThiTextBanner>true</HienThiTextBanner> <Id>9b5bf76e-f5cc-4582-9d05-6e190c4cfb02</Id> <IsBanner>true</IsBanner> <MoTa>sample string 3</MoTa> <MucDoUuTien>1</MucDoUuTien> <NoiDung>sample string 4</NoiDung> <PositionId>7</PositionId> <PublishedTime>2026-11-17T15:50:39.5441208+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>