POST api/bo/productattributes/brandandmodel/brandandmodels/create

ยี่ห้อและรุ่น สร้างข้อมูล

Request Information

URI Parameters

None.

Body Parameters

m_product_attributes_brandandmodel_create
NameDescriptionTypeAdditional information
CategoryCarId

integer

None.

BrandName

string

String length: inclusive between 0 and 100

IsActive

boolean

None.

Models

Collection of m_product_attributes_brandandmodel_model_create

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryCarId": 1,
  "BrandName": "sample string 2",
  "IsActive": true,
  "Models": [
    {
      "ModelName": "sample string 1",
      "Status": "sample string 2"
    },
    {
      "ModelName": "sample string 1",
      "Status": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<m_product_attributes_brandandmodel_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Modules.Models.Backoffice">
  <BrandName>sample string 2</BrandName>
  <CategoryCarId>1</CategoryCarId>
  <IsActive>true</IsActive>
  <Models>
    <m_product_attributes_brandandmodel_model_create>
      <ModelName>sample string 1</ModelName>
      <Status>sample string 2</Status>
    </m_product_attributes_brandandmodel_model_create>
    <m_product_attributes_brandandmodel_model_create>
      <ModelName>sample string 1</ModelName>
      <Status>sample string 2</Status>
    </m_product_attributes_brandandmodel_model_create>
  </Models>
</m_product_attributes_brandandmodel_create>

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 'm_product_attributes_brandandmodel_create'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.