---
title: "updateName(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmactionset/updatename(_:completionhandler:)"
---

# updateName(_:completionHandler:)

Updates the name of the action set.

## Declaration

```swift
func updateName(_ name: String, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updateName(_ name: String) async throws
```

## Parameters

- `name`: The new name; must not be nil.
- `completion`: The block executed after the request is processed.

## See Also

### Identifiying an action set

- [uniqueIdentifier](homekit/hmactionset/uniqueidentifier.md)
- [name](homekit/hmactionset/name.md)
