---
title: setName
slug: campaign/docs/setname-recipientfilter
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

:::hint{type="info"}
**Note**
You cannot set the name of a temporary target group. To check whether the target group is temporary, use the [isTemporary](docId\:x4T6WcyIBbOu6GNzp4MtQ) operation.
:::

**Type**: void

**Parameters**

| Name      | Type   | Value                             |
| --------- | ------ | --------------------------------- |
| sessionId | String | ID of the session                 |
| filterId  | long   | ID of the target group            |
| Name      | String | Internal name of the target group |

**Return values**

- **Code structure**

```javascript
void setName(String sessionId, long filterId, String name)
```
