POST CategoryProduct/CreateCategoryProduct
Thêm mới loại sản phẩm
Request Information
URI Parameters
None.
Body Parameters
PCreateCategoryProductReqName | Description | Type | Additional information |
---|---|---|---|
UserName | string |
None. |
|
Token | string |
None. |
|
CategoryProductInfo | PCategoryProductInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserName": "sample string 1", "Token": "sample string 2", "CategoryProductInfo": { "CategoryID": 1, "CategoryProduct": "sample string 2", "ECategoryProduct": "sample string 3", "Img": "sample string 4", "Status": 5 } }
application/xml, text/xml
Sample:
<PCreateCategoryProductReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://cpc1hn.vn/Export/Message/v1"> <UserName>sample string 1</UserName> <Token>sample string 2</Token> <CategoryProductInfo> <CategoryID>1</CategoryID> <CategoryProduct>sample string 2</CategoryProduct> <ECategoryProduct>sample string 3</ECategoryProduct> <Img>sample string 4</Img> <Status>5</Status> </CategoryProductInfo> </PCreateCategoryProductReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PCreateCategoryProductResName | Description | Type | Additional information |
---|---|---|---|
RespCode | integer |
None. |
|
RespText | string |
None. |
|
CategoryID | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "RespCode": 1, "RespText": "sample string 2", "CategoryID": 3 }
application/xml, text/xml
Sample:
<PCreateCategoryProductRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://cpc1hn.vn/Export/Message/v1"> <RespCode>1</RespCode> <RespText>sample string 2</RespText> <CategoryID>3</CategoryID> </PCreateCategoryProductRes>