POST api/product-storage/UpdateProductStorage?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

ProductStorageDTO
NameDescriptionTypeAdditional information
id

integer

None.

qrdata

string

None.

unitid

integer

None.

slotx

integer

None.

sloty

integer

None.

slotz

integer

None.

productid

integer

None.

coordx

integer

None.

coordy

integer

None.

coordz

integer

None.

count

integer

None.

refilldate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "qrdata": "sample string 2",
  "unitid": 3,
  "slotx": 4,
  "sloty": 5,
  "slotz": 6,
  "productid": 7,
  "coordx": 1,
  "coordy": 1,
  "coordz": 1,
  "count": 8,
  "refilldate": "2025-12-17T10:17:34.1742425+03:00"
}

application/xml, text/xml

Sample:
<ProductStorageDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs">
  <CoordX>1</CoordX>
  <CoordY>1</CoordY>
  <CoordZ>1</CoordZ>
  <Count>8</Count>
  <ID>1</ID>
  <ProductID>7</ProductID>
  <QrData>sample string 2</QrData>
  <RefillDate>2025-12-17T10:17:34.1742425+03:00</RefillDate>
  <SlotX>4</SlotX>
  <SlotY>5</SlotY>
  <SlotZ>6</SlotZ>
  <UnitID>3</UnitID>
</ProductStorageDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModelOfProductStorageDTO
NameDescriptionTypeAdditional information
data

ProductStorageDTO

None.

success

boolean

None.

statusCode

integer

None.

message

string

None.

errorMessage

string

None.

metadata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "id": 1,
    "qrdata": "sample string 2",
    "unitid": 3,
    "slotx": 4,
    "sloty": 5,
    "slotz": 6,
    "productid": 7,
    "coordx": 1,
    "coordy": 1,
    "coordz": 1,
    "count": 8,
    "refilldate": "2025-12-17T10:17:34.1752492+03:00"
  },
  "success": true,
  "statusCode": 2,
  "message": "sample string 3",
  "errorMessage": "sample string 4",
  "metadata": {}
}

application/xml, text/xml

Sample:
<ResponseModelOfProductStorageDTOqOm1f5oC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.Response">
  <ErrorMessage>sample string 4</ErrorMessage>
  <Message>sample string 3</Message>
  <Metadata />
  <StatusCode>2</StatusCode>
  <Success>true</Success>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs">
    <d2p1:CoordX>1</d2p1:CoordX>
    <d2p1:CoordY>1</d2p1:CoordY>
    <d2p1:CoordZ>1</d2p1:CoordZ>
    <d2p1:Count>8</d2p1:Count>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:ProductID>7</d2p1:ProductID>
    <d2p1:QrData>sample string 2</d2p1:QrData>
    <d2p1:RefillDate>2025-12-17T10:17:34.1752492+03:00</d2p1:RefillDate>
    <d2p1:SlotX>4</d2p1:SlotX>
    <d2p1:SlotY>5</d2p1:SlotY>
    <d2p1:SlotZ>6</d2p1:SlotZ>
    <d2p1:UnitID>3</d2p1:UnitID>
  </Data>
</ResponseModelOfProductStorageDTOqOm1f5oC>