P_updateDeclaredStock
Updates multiple auctions' declared stock values.
Supported arguments
The following arguments are supported by P_updateDeclaredStock mutation:
Field | Type | Description |
---|---|---|
input | P_API_UpdateDeclaredStockInput! |
Return type
The mutation returns theP_API_UpdateDeclaredStockResponse
type.
Example usage
Mutation
Here we are updating multiple auctions' declared stock values.
This mutation allows for maximum 50 updates.
Preorder auctions are ignored for this mutation
(Updates for preorder auctions have no effect)
mutation {
P_updateDeclaredStock(
input: {
statuses: [ # Max 50 updates per mutation
{
auctionId: "92c73bdc-80d4-1041-a4de-c12cc3d288c0",
declaredStock: 100 # We set declared stock as 100 for this auction
},
{
auctionId: "92c73bdc-80d4-1041-a4de-c12cc3d288c1",
declaredStock: null # We disable declared stock for this auction
},
]
}
) {
success
}
}
Result
{
"data": {
"P_updateDeclaredStock": {
"success": true
}
}
}