---
title: setFilename
slug: campaign/dev-docs/setfilename
createdAt: 2026-08-06T15:53:39.860Z
---

**Type**: void

**Parameters**

| Name         | Type   | Value                                   |
| ------------ | ------ | --------------------------------------- |
| sessionId    | String | ID of the session                       |
| attachmentId | long   | ID of the attachment                    |
| filename     | String | File name to be used for the attachment |

**Return values**

- **Code structure**

```javascript
void setFilename(String sessionId, long attachmentId, String filename)
```
