POST api/to-cong-van/them-moi
Request Information
URI Parameters
None.
Body Parameters
ToVanBan| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| IDNguoiKy | integer |
None. |
|
| IDLoaiVanBan | integer |
None. |
|
| SoVanBan | string |
None. |
|
| NgayVanBan | date |
None. |
|
| TrichYeu | string |
None. |
|
| SoTrang | integer |
None. |
|
| CapDo | string |
None. |
|
| LoaiCongVan | string |
None. |
|
| GhiChu | string |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedOn | date |
None. |
|
| EditedOn | date |
None. |
|
| EditedBy | integer |
None. |
|
| InUsed | boolean |
None. |
|
| TenNguoiKy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"idNguoiKy": 2,
"idLoaiVanBan": 3,
"soVanBan": "sample string 4",
"ngayVanBan": "2025-12-11T20:00:29.9805011+07:00",
"trichYeu": "sample string 6",
"soTrang": 7,
"capDo": "sample string 8",
"loaiCongVan": "sample string 9",
"ghiChu": "sample string 10",
"createdBy": 11,
"createdOn": "2025-12-11T20:00:29.9805011+07:00",
"editedOn": "2025-12-11T20:00:29.9805011+07:00",
"editedBy": 13,
"inUsed": true,
"tenNguoiKy": "sample string 15"
}
application/xml, text/xml
Sample:
<ToVanBan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO.Model_API"> <CapDo>sample string 8</CapDo> <CreatedBy>11</CreatedBy> <CreatedOn>2025-12-11T20:00:29.9805011+07:00</CreatedOn> <EditedBy>13</EditedBy> <EditedOn>2025-12-11T20:00:29.9805011+07:00</EditedOn> <GhiChu>sample string 10</GhiChu> <ID>1</ID> <IDLoaiVanBan>3</IDLoaiVanBan> <IDNguoiKy>2</IDNguoiKy> <InUsed>true</InUsed> <LoaiCongVan>sample string 9</LoaiCongVan> <NgayVanBan>2025-12-11T20:00:29.9805011+07:00</NgayVanBan> <SoTrang>7</SoTrang> <SoVanBan>sample string 4</SoVanBan> <TenNguoiKy>sample string 15</TenNguoiKy> <TrichYeu>sample string 6</TrichYeu> </ToVanBan>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseObjectOfToVanBan| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| Message | string |
None. |
|
| Data | ToVanBan |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"data": {
"id": 1,
"idNguoiKy": 2,
"idLoaiVanBan": 3,
"soVanBan": "sample string 4",
"ngayVanBan": "2025-12-11T20:00:29.9885084+07:00",
"trichYeu": "sample string 6",
"soTrang": 7,
"capDo": "sample string 8",
"loaiCongVan": "sample string 9",
"ghiChu": "sample string 10",
"createdBy": 11,
"createdOn": "2025-12-11T20:00:29.9885084+07:00",
"editedOn": "2025-12-11T20:00:29.9885084+07:00",
"editedBy": 13,
"inUsed": true,
"tenNguoiKy": "sample string 15"
}
}
application/xml, text/xml
Sample:
<ResponseObjectOfToVanBanL4QI0Vm7 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuanLyPhatTu_API.Models">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DTO.Model_API">
<d2p1:CapDo>sample string 8</d2p1:CapDo>
<d2p1:CreatedBy>11</d2p1:CreatedBy>
<d2p1:CreatedOn>2025-12-11T20:00:29.9885084+07:00</d2p1:CreatedOn>
<d2p1:EditedBy>13</d2p1:EditedBy>
<d2p1:EditedOn>2025-12-11T20:00:29.9885084+07:00</d2p1:EditedOn>
<d2p1:GhiChu>sample string 10</d2p1:GhiChu>
<d2p1:ID>1</d2p1:ID>
<d2p1:IDLoaiVanBan>3</d2p1:IDLoaiVanBan>
<d2p1:IDNguoiKy>2</d2p1:IDNguoiKy>
<d2p1:InUsed>true</d2p1:InUsed>
<d2p1:LoaiCongVan>sample string 9</d2p1:LoaiCongVan>
<d2p1:NgayVanBan>2025-12-11T20:00:29.9885084+07:00</d2p1:NgayVanBan>
<d2p1:SoTrang>7</d2p1:SoTrang>
<d2p1:SoVanBan>sample string 4</d2p1:SoVanBan>
<d2p1:TenNguoiKy>sample string 15</d2p1:TenNguoiKy>
<d2p1:TrichYeu>sample string 6</d2p1:TrichYeu>
</Data>
<Message>sample string 2</Message>
<Status>true</Status>
</ResponseObjectOfToVanBanL4QI0Vm7>