---
title: setTestRecipientList
slug: campaign/docs/settestrecipientlist
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

**Type**: void

**Parameters**

|   |
| - |

```javascript
  <th>
    Type
  </th>

  <th>
    Value
  </th>
</tr>
```

\| sessionId |

```javascript
  <td>
    String
  </td>

  <td>
    ID of the session
  </td>
</tr>

<tr>
  <td>
    recipientListId
  </td>

  <td>
    long
  </td>

  <td>
    ID of the recipient list
  </td>
</tr>

<tr>
  <td>
    testList
  </td>

  <td>
    Boolean
  </td>

  <td>
    * true – Recipient list is marked as a test recipient list.  
    * false – Recipient list is not marked as a test recipient list.
  </td>
</tr>
```

**Return values**

- **Code structure**

```javascript
void setTestRecipientList(String sessionId, long recipientListId, boolean testList)
```
