<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSetMessageAttributeIntentHandling/confirm(intent:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INSetMessageAttributeIntentHandling(im)confirmSetMessageAttribute:completion:"
  },
  "title" : "confirm(intent:completion:)"
}
-->

# confirm(intent:completion:)

Confirms that you can modify the attributes.

```
optional func confirm(intent: INSetMessageAttributeIntent, completion: @escaping @Sendable (INSetMessageAttributeIntentResponse) -> Void)
```

## Parameters

`intent`

The intent object that containing details about the user’s request. The information in this object has already been resolved by your handler object.

`completion`

The handler block to execute with your response. You must execute this handler whle implementing this method. This handler has no return value and takes the following parameter:

- response: The [`INSetMessageAttributeIntentResponse`](/documentation/Intents/INSetMessageAttributeIntentResponse) object that contains the details to confirm with the user. This parameter must not be `nil`.

## Discussion

This method validates that your messaging service is available and that modifying the specified messages is possible. At some point in your implementation, execute the provided completion block with an appropriate response object.

---

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)