POST api/cong-van-linh-vuc/sua-doi

Request Information

URI Parameters

None.

Body Parameters

CongVan_LinhVuc
NameDescriptionTypeAdditional information
ID

integer

None.

IDLinhVuc

integer

None.

IDCongVan

integer

None.

LoaiCongVan

string

None.

CreatedOn

date

None.

CreatedBy

integer

None.

EditedOn

date

None.

EditedBy

integer

None.

InUsed

boolean

None.

LstLinhVuc

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "idLinhVuc": 2,
  "idCongVan": 3,
  "loaiCongVan": "sample string 4",
  "createdOn": "2025-12-11T19:58:49.937814+07:00",
  "createdBy": 6,
  "editedOn": "2025-12-11T19:58:49.937814+07:00",
  "editedBy": 7,
  "inUsed": true,
  "lstLinhVuc": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<CongVan_LinhVuc 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-11T19:58:49.937814+07:00</CreatedOn>
  <EditedBy>7</EditedBy>
  <EditedOn>2025-12-11T19:58:49.937814+07:00</EditedOn>
  <ID>1</ID>
  <IDCongVan>3</IDCongVan>
  <IDLinhVuc>2</IDLinhVuc>
  <InUsed>true</InUsed>
  <LoaiCongVan>sample string 4</LoaiCongVan>
  <LstLinhVuc xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LstLinhVuc>
</CongVan_LinhVuc>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseObjectOfString
NameDescriptionTypeAdditional 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>