<!--
{
  "availability" : [
    "iOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioAccessoryKit",
  "identifier" : "/documentation/AudioAccessoryKit/AccessoryControlDevice/update(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AudioAccessoryKit"
    ],
    "preciseIdentifier" : "s:17AudioAccessoryKit0B13ControlDeviceC6updateyyAC13ConfigurationVYaKF"
  },
  "title" : "update(_:)"
}
-->

# update(_:)

Updates the accessory’s configuration.

```
final nonisolated(nonsending) func update(_ configuration: AccessoryControlDevice.Configuration) async throws
```

## Parameters

`configuration`

The new configuration to apply.

## Discussion> Important: Call this method only from your app extension.

For example, the following code updates device placement:

```swift
// Get the current state.
let accessoryDevice = try AccessoryControlDevice.current(for: myAccessory)

// Modify the configuration with new values.
var configuration = accessoryDevice.configuration
configuration.devicePlacement = .onHead

// Apply the updated configuration.
try await accessoryDevice.update(configuration)
print("Successfully updated device configuration")
```

Always register a capability before trying to update it.
For example,
the code above is valid only if you included the
[`placement`](/documentation/AudioAccessoryKit/AccessoryControlDevice/Capabilities/placement) capability
when registering the accessory.

This method throws an error if the update fails.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)