POST api/khen-thuong-ky-luat/them-moi

Request Information

URI Parameters

None.

Body Parameters

KhenThuongKyLuat
NameDescriptionTypeAdditional information
ID

integer

None.

IDSoYeuLyLich

integer

None.

IDHinhThuc

integer

None.

IDCapKhenThuong

integer

None.

IDDonViKhenThuong

integer

None.

Loai

integer

None.

LyDo

string

None.

NgayThucHien

date

None.

SoQuyetDinh

string

None.

NgayQuyetDinh

date

None.

GhiChu

string

None.

IDDonVi

integer

None.

InUsed

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

EditedBy

integer

None.

EditedOn

date

None.

IDPhatTu

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "idSoYeuLyLich": 2,
  "idHinhThuc": 1,
  "idCapKhenThuong": 1,
  "idDonViKhenThuong": 1,
  "loai": 3,
  "lyDo": "sample string 4",
  "ngayThucHien": "2025-12-11T19:59:31.9328392+07:00",
  "soQuyetDinh": "sample string 5",
  "ngayQuyetDinh": "2025-12-11T19:59:31.9328392+07:00",
  "ghiChu": "sample string 6",
  "idDonVi": 7,
  "inUsed": true,
  "createdBy": 9,
  "createdOn": "2025-12-11T19:59:31.9333329+07:00",
  "editedBy": 1,
  "editedOn": "2025-12-11T19:59:31.9333329+07:00",
  "idPhatTu": 11
}

application/xml, text/xml

Sample:
<KhenThuongKyLuat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreatedBy>9</CreatedBy>
  <CreatedOn>2025-12-11T19:59:31.9333329+07:00</CreatedOn>
  <EditedBy>1</EditedBy>
  <EditedOn>2025-12-11T19:59:31.9333329+07:00</EditedOn>
  <GhiChu>sample string 6</GhiChu>
  <ID>1</ID>
  <IDCapKhenThuong>1</IDCapKhenThuong>
  <IDDonVi>7</IDDonVi>
  <IDDonViKhenThuong>1</IDDonViKhenThuong>
  <IDHinhThuc>1</IDHinhThuc>
  <IDPhatTu>11</IDPhatTu>
  <IDSoYeuLyLich>2</IDSoYeuLyLich>
  <InUsed>true</InUsed>
  <Loai>3</Loai>
  <LyDo>sample string 4</LyDo>
  <NgayQuyetDinh>2025-12-11T19:59:31.9328392+07:00</NgayQuyetDinh>
  <NgayThucHien>2025-12-11T19:59:31.9328392+07:00</NgayThucHien>
  <SoQuyetDinh>sample string 5</SoQuyetDinh>
</KhenThuongKyLuat>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseObjectOfInt32
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": 3
}

application/xml, text/xml

Sample:
<ResponseObjectOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuanLyPhatTu_API.Models">
  <Data>3</Data>
  <Message>sample string 2</Message>
  <Status>true</Status>
</ResponseObjectOfint>