P_updateDeclaredStock

Updates multiple auctions' declared stock values.

Supported arguments

The following arguments are supported by P_updateDeclaredStock mutation:

FieldTypeDescription
inputP_API_UpdateDeclaredStockInput!

Return type

The mutation returns the P_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
    }
  }
}
Copyright 2025 Eneba. All Rights Reserved. JSC “Helis play”, Gyneju St. 4-333, Vilnius, the Republic of Lithuania