---
title: setRecipientListIds
slug: campaign/dev-docs/setrecipientlistids
createdAt: 2026-08-06T15:53:47.341Z
---

**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)
```
