POST api/sctnhomnganhhang/SctTaoNhomNganhHang

Tạo mới ngành hàng

Request Information

URI Parameters

None.

Body Parameters

SctNhomNganhHangModel
NameDescriptionTypeAdditional information
IdNhomNH

integer

None.

TenNhomNH

string

None.

TenParent

string

None.

Loai

integer

None.

IdParent

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IdNhomNH": 1,
  "TenNhomNH": "sample string 2",
  "TenParent": "sample string 3",
  "Loai": 4,
  "IdParent": 5
}

application/xml, text/xml

Sample:
<SctNhomNganhHangModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models.SCT">
  <IdNhomNH>1</IdNhomNH>
  <IdParent>5</IdParent>
  <Loai>4</Loai>
  <TenNhomNH>sample string 2</TenNhomNH>
  <TenParent>sample string 3</TenParent>
</SctNhomNganhHangModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseModelOfObject
NameDescriptionTypeAdditional information
status

integer

None.

data

Object

None.

page

Object

None.

error

ErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "data": {},
  "page": {},
  "error": {
    "message": "sample string 1",
    "code": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <data />
  <error>
    <code>sample string 2</code>
    <message>sample string 1</message>
  </error>
  <page />
  <status>1</status>
</BaseModelOfanyType>