---
title: "updatePrimaryHome(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmhomemanager/updateprimaryhome(_:completionhandler:)"
---

# updatePrimaryHome(_:completionHandler:)

Updates the primary home of this home manager.

## Declaration

```swift
func updatePrimaryHome(_ home: HMHome, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updatePrimaryHome(_ home: HMHome) async throws
```

## Parameters

- `home`: The new primary home. Must be a home managed by this home manager.
- `completion`: The block executed after the request is processed.

## See Also

### Managing the primary home

- [primaryHome](homekit/hmhomemanager/primaryhome.md)
