POST api/ProductAdmin/AddSKuData

“AddSKuData”的文档。

Request Information

Parameters

NameDescriptionAdditional information
sku
“sku”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "Name": "sample string 2",
  "Desc": "sample string 3",
  "Price": 4.0,
  "CostPrice": 5.0,
  "OldPrice": 6.0,
  "Stock": 7,
  "ImgSrc": "sample string 8",
  "Id": 9,
  "PlatformId": 10
}

application/xml, text/xml

Sample:
<SKuModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TyretoolMail.Models.Admin">
  <CostPrice>5</CostPrice>
  <Desc>sample string 3</Desc>
  <Id>9</Id>
  <ImgSrc>sample string 8</ImgSrc>
  <Name>sample string 2</Name>
  <OldPrice>6</OldPrice>
  <PlatformId>10</PlatformId>
  <Price>4</Price>
  <ProductId>1</ProductId>
  <Stock>7</Stock>
</SKuModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": 1,
  "Message": "sample string 2",
  "DataId": "sample string 3",
  "Uid": "sample string 4",
  "UserId": 5,
  "Data": "sample string 6"
}

application/xml, text/xml

Sample:
<ReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TyretoolMail.Models.Admin">
  <Data>sample string 6</Data>
  <DataId>sample string 3</DataId>
  <Message>sample string 2</Message>
  <Success>1</Success>
  <Uid>sample string 4</Uid>
  <UserId>5</UserId>
</ReturnModel>