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

**Type**: void

**Parameters**

| Name           | Type   | Value                      |
| -------------- | ------ | -------------------------- |
| sessionId      | String | ID of the session          |
| optinProcessId | long   | ID of the opt-in process   |
| Name           | String | Name of the opt-in process |

**Return values**

- **Code structure**

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