> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom data

## Add custom data

In many situations you may want to attach custom data to feedback items in order to better understand the context. You can add custom data incrementally or all at once. Any simple dictionary can be attached.

```java theme={null}
Gleap.getInstance().setCustomData("hello@bugbattle.io", "email");
```

## Append custom data

If you want to attach custom data incrementally, you can do so with the `attachUserAttribute` method.

```java theme={null}
JSONObject jsonObject = new JSONObject();
Gleap.getInstance().attachCustomData(jsonObject);
```

## Remove custom data

Remove custom data key value pairs by calling the following method.

```java theme={null}
 Gleap.getInstance().removeCustomDataForKey("email");
```

## Clear all custom data

It's possible to clear all attached custom data by calling the following method.

```java theme={null}
BugBattle.getInstance().clearCustomData();
```
