---
title: "resetQuantityRelation"
slug: "api/basket/operations/resetquantityrelation"
sidebar:
  order: 479
---

<a id="ref-c1d832013ab4"></a>
<a id="ref-bb8fbc8f1c0d"></a>
<a id="ref-13e3fa7376df"></a>

## Synopsis

```text
void resetQuantityRelation(SessionId sessionId,
    BItemId[]        itemIds,
    string ppName,
    string condType,
    int counter,
    ItemSelectionOptions options)
throws BasketServiceFault;
```

See also: [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [`BItemId`](/pCon/configuratorOnline/specs/api/basket/types/bitemid#ref-bccb6c926e5b), [`ItemSelectionOptions`](/pCon/configuratorOnline/specs/api/basket/types/itemselectionoptions#ref-96d714d65dbc), [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

Resets the quantity relation of a condition to the initial quantity relation (before edited by [setQuantityRelation](/pCon/configuratorOnline/specs/api/basket/operations/setquantityrelation#ref-9c02f5faaa96)).

The `ppName` argument may be an empty string if only one pricing procedure has been added to the basket. `counter` may be -1 if the calculation contains only one condition of the given type.

The operation fails if called for a folder.
