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

**Type**: void

**Parameters**

| Name         | Type   | Value                           |
| ------------ | ------ | ------------------------------- |
| sessionId    | String | ID of the session               |
| attachmentId | long   | ID of the attachment            |
| Name         | String | Internal name of the attachment |

**Return values**

- **Code structure**

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