updateName(_:completionHandler:)
Updates the name of the zone.
Declaration
func updateName(_ name: String, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func updateName(_ name: String) async throwsParameters
- name:
The new name. Must not be
nil; must be unique within the home. - completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.