---
title: create
slug: campaign-dev-docs/create-recipientfilterws
createdAt: 2026-07-02T19:01:47.121Z
---

The target group is still  valid after the end of the session.

**Type**: long

**Parameters**

| Name                | Type       | Value                                                                                                            |
| ------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------- |
| sessionId           | String     | ID of the session                                                                                                |
| filterName          | String     | Internal name of the target group                                                                                |
| negateCondition     | boolean    | See [Type conversion and formatting rules](https://docs.optimizely.com/campaign-dev-docs/soap-1-1-compatibility) |
| attributeName       | String     | See [Type conversion and formatting rules](https://docs.optimizely.com/campaign-dev-docs/soap-1-1-compatibility) |
| operation           | String     | See [Available operators](https://docs.optimizely.com/campaign-dev-docs/soap-1-1-compatibility)                  |
| operationParameters | String\[ ] | See [Attribute values](https://docs.optimizely.com/campaign-dev-docs/soap-1-1-compatibility)                     |

**Return values**

ID of the target group

**Code structure**

```javascript
long create(String sessionId, String filterName, boolean negateCondition, String attributeName, String operation, String[] operationParameters)
```
