POST api/hoat-dong-thu-chi/them-moi

Request Information

URI Parameters

None.

Body Parameters

DM_HoatDongThuChi
NameDescriptionTypeAdditional information
ID

integer

None.

Ma

string

None.

Ten

string

None.

GhiChu

string

None.

InUsed

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

EditedBy

integer

None.

EditedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "ma": "sample string 2",
  "ten": "sample string 3",
  "ghiChu": "sample string 4",
  "inUsed": true,
  "createdBy": 6,
  "createdOn": "2025-12-11T20:08:46.7547506+07:00",
  "editedBy": 1,
  "editedOn": "2025-12-11T20:08:46.7547506+07:00"
}

application/xml, text/xml

Sample:
<DM_HoatDongThuChi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreatedBy>6</CreatedBy>
  <CreatedOn>2025-12-11T20:08:46.7547506+07:00</CreatedOn>
  <EditedBy>1</EditedBy>
  <EditedOn>2025-12-11T20:08:46.7547506+07:00</EditedOn>
  <GhiChu>sample string 4</GhiChu>
  <ID>1</ID>
  <InUsed>true</InUsed>
  <Ma>sample string 2</Ma>
  <Ten>sample string 3</Ten>
</DM_HoatDongThuChi>

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>