---
title: setRecipientListIds
slug: campaign/docs/setrecipientlistids
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**Type**: void

**Parameters**

| Name             | Type     | Value                      |
| ---------------- | -------- | -------------------------- |
| sessionId        | String   | ID of the session          |
| mailingId        | long     | ID of the mailing          |
| recipientListIds | long\[ ] | IDs of the recipient lists |

**Return values**

- **Code structure**

```javascript
void setRecipientListIds(String sessionId, long mailingId, long[] recipientListIds)
```
