POST api/Brand/SaveBrandCategory

创建品牌分类

Request Information

URI Parameters

None.

Body Parameters

SaveBrandCategoryRequest
NameDescriptionTypeAdditional information
Id

主键

integer

None.

brand_id

品牌Id

integer

None.

categoryList

品牌分类明细

Collection of BrandCategoryEntry

None.

user_id

当前登录者Id

string

None.

token

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "brand_id": 1,
  "categoryList": [
    {
      "category_idList": "sample string 1",
      "purchase_empId": 1,
      "product_manager_empId": 1,
      "resource_support_empId": 1,
      "CategoryId": "sample string 2"
    },
    {
      "category_idList": "sample string 1",
      "purchase_empId": 1,
      "product_manager_empId": 1,
      "resource_support_empId": 1,
      "CategoryId": "sample string 2"
    }
  ],
  "user_id": "sample string 1",
  "token": "sample string 2"
}

application/xml, text/xml

Sample:
<SaveBrandCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BBS.Model">
  <token>sample string 2</token>
  <user_id>sample string 1</user_id>
  <Id>1</Id>
  <brand_id>1</brand_id>
  <categoryList>
    <BrandCategoryEntry>
      <CategoryId>sample string 2</CategoryId>
      <category_idList>sample string 1</category_idList>
      <product_manager_empId>1</product_manager_empId>
      <purchase_empId>1</purchase_empId>
      <resource_support_empId>1</resource_support_empId>
    </BrandCategoryEntry>
    <BrandCategoryEntry>
      <CategoryId>sample string 2</CategoryId>
      <category_idList>sample string 1</category_idList>
      <product_manager_empId>1</product_manager_empId>
      <purchase_empId>1</purchase_empId>
      <resource_support_empId>1</resource_support_empId>
    </BrandCategoryEntry>
  </categoryList>
</SaveBrandCategoryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveBrandCategoryRequest'.

Response Information

Resource Description

创建品牌分类

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.