POST api/cong-viec/sua-doi
Request Information
URI Parameters
None.
Body Parameters
CongViec| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| IDLoaiLich | integer |
None. |
|
| IDDiaDiem | integer |
None. |
|
| IDNguoiDuyet | integer |
None. |
|
| Ma | string |
None. |
|
| TieuDe | string |
None. |
|
| TuNgay | date |
None. |
|
| DenNgay | date |
None. |
|
| ViTri | string |
None. |
|
| DiaDiem | string |
None. |
|
| ThoiGian | string |
None. |
|
| MoTa | string |
None. |
|
| IDTrangThai | integer |
None. |
|
| NgayDuyet | date |
None. |
|
| NgayHoanThanhThucTe | date |
None. |
|
| CreatedOn | date |
None. |
|
| CreatedBy | integer |
None. |
|
| EditedOn | date |
None. |
|
| EditedBy | integer |
None. |
|
| InUsed | boolean |
None. |
|
| IDBan | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"idLoaiLich": 2,
"idDiaDiem": 3,
"idNguoiDuyet": 4,
"ma": "sample string 5",
"tieuDe": "sample string 6",
"tuNgay": "2025-12-11T19:58:20.0421629+07:00",
"denNgay": "2025-12-11T19:58:20.0421629+07:00",
"viTri": "sample string 7",
"diaDiem": "sample string 8",
"thoiGian": "sample string 9",
"moTa": "sample string 10",
"idTrangThai": 11,
"ngayDuyet": "2025-12-11T19:58:20.0426636+07:00",
"ngayHoanThanhThucTe": "2025-12-11T19:58:20.0426636+07:00",
"createdOn": "2025-12-11T19:58:20.0426636+07:00",
"createdBy": 13,
"editedOn": "2025-12-11T19:58:20.0426636+07:00",
"editedBy": 14,
"inUsed": true,
"idBan": 16
}
application/xml, text/xml
Sample:
<CongViec xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO.Model_API"> <CreatedBy>13</CreatedBy> <CreatedOn>2025-12-11T19:58:20.0426636+07:00</CreatedOn> <DenNgay>2025-12-11T19:58:20.0421629+07:00</DenNgay> <DiaDiem>sample string 8</DiaDiem> <EditedBy>14</EditedBy> <EditedOn>2025-12-11T19:58:20.0426636+07:00</EditedOn> <ID>1</ID> <IDBan>16</IDBan> <IDDiaDiem>3</IDDiaDiem> <IDLoaiLich>2</IDLoaiLich> <IDNguoiDuyet>4</IDNguoiDuyet> <IDTrangThai>11</IDTrangThai> <InUsed>true</InUsed> <Ma>sample string 5</Ma> <MoTa>sample string 10</MoTa> <NgayDuyet>2025-12-11T19:58:20.0426636+07:00</NgayDuyet> <NgayHoanThanhThucTe>2025-12-11T19:58:20.0426636+07:00</NgayHoanThanhThucTe> <ThoiGian>sample string 9</ThoiGian> <TieuDe>sample string 6</TieuDe> <TuNgay>2025-12-11T19:58:20.0421629+07:00</TuNgay> <ViTri>sample string 7</ViTri> </CongViec>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseObjectOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| Message | string |
None. |
|
| Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"data": "sample string 3"
}
application/xml, text/xml
Sample:
<ResponseObjectOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuanLyPhatTu_API.Models"> <Data>sample string 3</Data> <Message>sample string 2</Message> <Status>true</Status> </ResponseObjectOfstring>