---
title: "setBasketAppData"
slug: "api/basket/operations/setbasketappdata"
sidebar:
  order: 460
---

<a id="ref-46d71dfbf603"></a>
<a id="ref-68f757ec6a45"></a>
<a id="ref-2fdab255a695"></a>

## Synopsis

```text
void setBasketAppData(SessionId sessionId, string appKey, string[] data)
throws BasketServiceFault;
```

See also: [SessionId](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [BasketServiceFault](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

The `setBasketAppData` operation is used to attach application-specific (or client-specific) data to the basket. This data can be accessed using the `getBasketAppData` (§[getBasketAppData](/pCon/configuratorOnline/specs/api/basket/operations/getbasketappdata#ref-b31c8f9d7a4a)) operation and is part of the project file saved and loaded by the `saveSession` (§[saveSession](/pCon/configuratorOnline/specs/api/session/operations/savesession#ref-cc7e4d5d8203)) and `loadSession` (§[loadSession](/pCon/configuratorOnline/specs/api/session/operations/loadsession#ref-dcf6596732bf)) operations. For more information, see §[Application-Specific Data](/pCon/configuratorOnline/specs/guide/web-service-interfaces/application-specific-data#ref-bbab408e669b).

A [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault) is returned if one of the following conditions occurs:

- The `sessionId` parameter is not a valid string representation of an UUID or does not represent an open session.

- One of the elements of `data` contains an invalid location path, or the location path is not followed by an equals sign (`=`).
