POST api/ProductVariant/Update
Request Information
URI Parameters
None.
Body Parameters
ProductVariantModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
ProductImage | string |
None. |
|
ProductID | integer |
Required |
|
Product | string |
None. |
|
SizeID | integer |
Required |
|
Size | string |
None. |
|
ColorID | integer |
Required |
|
Color | string |
None. |
|
Price | decimal number |
None. |
|
PurchasePrice | decimal number |
None. |
|
SalePrice | decimal number |
None. |
|
PriceString | string |
None. |
|
RemainingStock | integer |
None. |
|
HoldStock | integer |
None. |
|
CreatedAt | date |
None. |
|
UpdatedAt | date |
None. |
|
CreatedByUserID | integer |
None. |
|
IsActive | boolean |
None. |
|
IsAddedToShop | boolean |
None. |
|
IsTrackable | boolean |
None. |
|
Barcode | string |
None. |
|
BLabel | string |
None. |
|
ArticalNo | string |
None. |
|
MeasuringUnit | string |
None. |
|
Keenland | string |
None. |
|
ShopSalePrice | decimal number |
None. |
|
ManufacturerCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "ProductImage": "sample string 2", "ProductID": 1, "Product": "sample string 3", "SizeID": 1, "Size": "sample string 4", "ColorID": 1, "Color": "sample string 5", "Price": 1.0, "PurchasePrice": 1.0, "SalePrice": 1.0, "PriceString": "sample string 6", "RemainingStock": 7, "HoldStock": 1, "CreatedAt": "2025-01-22T20:56:26.8368632-06:00", "UpdatedAt": "2025-01-22T20:56:26.8368632-06:00", "CreatedByUserID": 1, "IsActive": true, "IsAddedToShop": true, "IsTrackable": true, "Barcode": "sample string 8", "BLabel": "sample string 9", "ArticalNo": "sample string 10", "MeasuringUnit": "sample string 11", "Keenland": "sample string 12", "ShopSalePrice": 1.0, "ManufacturerCode": "sample string 13" }
application/xml, text/xml
Sample:
<ProductVariantModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <ArticalNo>sample string 10</ArticalNo> <BLabel>sample string 9</BLabel> <Barcode>sample string 8</Barcode> <Color>sample string 5</Color> <ColorID>1</ColorID> <CreatedAt>2025-01-22T20:56:26.8368632-06:00</CreatedAt> <CreatedByUserID>1</CreatedByUserID> <HoldStock>1</HoldStock> <ID>1</ID> <IsActive>true</IsActive> <IsAddedToShop>true</IsAddedToShop> <IsTrackable>true</IsTrackable> <Keenland>sample string 12</Keenland> <ManufacturerCode>sample string 13</ManufacturerCode> <MeasuringUnit>sample string 11</MeasuringUnit> <Price>1</Price> <PriceString>sample string 6</PriceString> <Product>sample string 3</Product> <ProductID>1</ProductID> <ProductImage>sample string 2</ProductImage> <PurchasePrice>1</PurchasePrice> <RemainingStock>7</RemainingStock> <SalePrice>1</SalePrice> <ShopSalePrice>1</ShopSalePrice> <Size>sample string 4</Size> <SizeID>1</SizeID> <UpdatedAt>2025-01-22T20:56:26.8368632-06:00</UpdatedAt> </ProductVariantModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ProductVariantResponseName | Description | Type | Additional information |
---|---|---|---|
ProductVariantModel | ProductVariantModel |
None. |
|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ProductVariantModel": { "ID": 1, "ProductImage": "sample string 2", "ProductID": 1, "Product": "sample string 3", "SizeID": 1, "Size": "sample string 4", "ColorID": 1, "Color": "sample string 5", "Price": 1.0, "PurchasePrice": 1.0, "SalePrice": 1.0, "PriceString": "sample string 6", "RemainingStock": 7, "HoldStock": 1, "CreatedAt": "2025-01-22T20:56:26.8368632-06:00", "UpdatedAt": "2025-01-22T20:56:26.8368632-06:00", "CreatedByUserID": 1, "IsActive": true, "IsAddedToShop": true, "IsTrackable": true, "Barcode": "sample string 8", "BLabel": "sample string 9", "ArticalNo": "sample string 10", "MeasuringUnit": "sample string 11", "Keenland": "sample string 12", "ShopSalePrice": 1.0, "ManufacturerCode": "sample string 13" }, "ResponseCode": 1, "ResponseText": "sample string 2" }
application/xml, text/xml
Sample:
<ProductVariantResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode> <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText> <ProductVariantModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <d2p1:ArticalNo>sample string 10</d2p1:ArticalNo> <d2p1:BLabel>sample string 9</d2p1:BLabel> <d2p1:Barcode>sample string 8</d2p1:Barcode> <d2p1:Color>sample string 5</d2p1:Color> <d2p1:ColorID>1</d2p1:ColorID> <d2p1:CreatedAt>2025-01-22T20:56:26.8368632-06:00</d2p1:CreatedAt> <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID> <d2p1:HoldStock>1</d2p1:HoldStock> <d2p1:ID>1</d2p1:ID> <d2p1:IsActive>true</d2p1:IsActive> <d2p1:IsAddedToShop>true</d2p1:IsAddedToShop> <d2p1:IsTrackable>true</d2p1:IsTrackable> <d2p1:Keenland>sample string 12</d2p1:Keenland> <d2p1:ManufacturerCode>sample string 13</d2p1:ManufacturerCode> <d2p1:MeasuringUnit>sample string 11</d2p1:MeasuringUnit> <d2p1:Price>1</d2p1:Price> <d2p1:PriceString>sample string 6</d2p1:PriceString> <d2p1:Product>sample string 3</d2p1:Product> <d2p1:ProductID>1</d2p1:ProductID> <d2p1:ProductImage>sample string 2</d2p1:ProductImage> <d2p1:PurchasePrice>1</d2p1:PurchasePrice> <d2p1:RemainingStock>7</d2p1:RemainingStock> <d2p1:SalePrice>1</d2p1:SalePrice> <d2p1:ShopSalePrice>1</d2p1:ShopSalePrice> <d2p1:Size>sample string 4</d2p1:Size> <d2p1:SizeID>1</d2p1:SizeID> <d2p1:UpdatedAt>2025-01-22T20:56:26.8368632-06:00</d2p1:UpdatedAt> </ProductVariantModel> </ProductVariantResponse>