POST jxc_api/Product/BatchUpdate

Request Information

URI Parameters

None.

Body Parameters

ProductBatchUpdateModule
NameDescriptionTypeAdditional information
UpdateProject

UpdateProductModel

None.

InventoryWarehouses

Collection of InventoryWarehouse

None.

Id

Collection of integer

None.

No

Collection of string

None.

Name

Collection of string

None.

UpdateRange

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UpdateProject": {
    "UpdateKind": 0,
    "Id": 1,
    "UpdateContext": "sample string 2"
  },
  "InventoryWarehouses": [
    {
      "ProId": 1,
      "WhId": 2,
      "APId": 3,
      "InventoryWarehouseMax": 4.0,
      "InventoryWarehouseMin": 5.0
    },
    {
      "ProId": 1,
      "WhId": 2,
      "APId": 3,
      "InventoryWarehouseMax": 4.0,
      "InventoryWarehouseMin": 5.0
    }
  ],
  "Id": [
    1,
    2
  ],
  "No": [
    "sample string 1",
    "sample string 2"
  ],
  "Name": [
    "sample string 1",
    "sample string 2"
  ],
  "UpdateRange": true
}

application/xml, text/xml

Sample:
<ProductBatchUpdateModule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models">
  <Id xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Id>
  <Name xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Name>
  <No xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </No>
  <UpdateRange>true</UpdateRange>
  <InventoryWarehouses>
    <InventoryWarehouse>
      <APId>3</APId>
      <InventoryWarehouseMax>4</InventoryWarehouseMax>
      <InventoryWarehouseMin>5</InventoryWarehouseMin>
      <ProId>1</ProId>
      <WhId>2</WhId>
    </InventoryWarehouse>
    <InventoryWarehouse>
      <APId>3</APId>
      <InventoryWarehouseMax>4</InventoryWarehouseMax>
      <InventoryWarehouseMin>5</InventoryWarehouseMin>
      <ProId>1</ProId>
      <WhId>2</WhId>
    </InventoryWarehouse>
  </InventoryWarehouses>
  <UpdateProject>
    <Id>1</Id>
    <UpdateContext>sample string 2</UpdateContext>
    <UpdateKind>ProductType</UpdateKind>
  </UpdateProject>
</ProductBatchUpdateModule>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>