POST api/Stocks/UpdateStock
Request Information
URI Parameters
None.
Body Parameters
UpdateStockRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| RequestID | integer |
None. |
|
| LanguageId | integer |
None. |
|
| GroupID | integer |
None. |
|
| MarketID | integer |
None. |
|
| Quantity | integer |
None. |
|
| Price | decimal number |
None. |
|
| PurchaseDate | date |
None. |
|
| Action | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"RequestID": 1,
"LanguageId": 2,
"GroupID": 3,
"MarketID": 4,
"Quantity": 5,
"Price": 6.0,
"PurchaseDate": "2026-01-13T18:28:14.4574803+03:00",
"Action": 1
}
application/xml, text/xml
Sample:
<StocksModel.UpdateStockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models"> <Action>1</Action> <GroupID>3</GroupID> <LanguageId>2</LanguageId> <MarketID>4</MarketID> <Price>6</Price> <PurchaseDate>2026-01-13T18:28:14.4574803+03:00</PurchaseDate> <Quantity>5</Quantity> <RequestID>1</RequestID> </StocksModel.UpdateStockRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ActionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| code | string |
None. |
|
| message | string |
None. |
|
| errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"code": "sample string 2",
"message": "sample string 3",
"errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models">
<code>sample string 2</code>
<errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</errors>
<message>sample string 3</message>
<success>true</success>
</ActionResponse>