POST api/tang-ni-theo-ban/them-moi

Request Information

URI Parameters

None.

Body Parameters

TangNiTheoBan
NameDescriptionTypeAdditional information
ID

integer

None.

IDTangNi

integer

None.

IDBan

integer

None.

TuNgay

date

None.

DenNgay

date

None.

IsTruongBan

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

EditedBy

integer

None.

EditedOn

date

None.

InUsed

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "idTangNi": 2,
  "idBan": 3,
  "tuNgay": "2025-12-11T20:07:30.1861469+07:00",
  "denNgay": "2025-12-11T20:07:30.1861469+07:00",
  "isTruongBan": true,
  "createdBy": 6,
  "createdOn": "2025-12-11T20:07:30.1861469+07:00",
  "editedBy": 8,
  "editedOn": "2025-12-11T20:07:30.1861469+07:00",
  "inUsed": true
}

application/xml, text/xml

Sample:
<TangNiTheoBan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO.Model_API">
  <CreatedBy>6</CreatedBy>
  <CreatedOn>2025-12-11T20:07:30.1861469+07:00</CreatedOn>
  <DenNgay>2025-12-11T20:07:30.1861469+07:00</DenNgay>
  <EditedBy>8</EditedBy>
  <EditedOn>2025-12-11T20:07:30.1861469+07:00</EditedOn>
  <ID>1</ID>
  <IDBan>3</IDBan>
  <IDTangNi>2</IDTangNi>
  <InUsed>true</InUsed>
  <IsTruongBan>true</IsTruongBan>
  <TuNgay>2025-12-11T20:07:30.1861469+07:00</TuNgay>
</TangNiTheoBan>

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>