<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSetMessageAttributeIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSetMessageAttributeIntentResponse"
  },
  "title" : "INSetMessageAttributeIntentResponse"
}
-->

# INSetMessageAttributeIntentResponse

Your app’s response to a set message attribute intent.

```
class INSetMessageAttributeIntentResponse
```

## Overview

An [`INSetMessageAttributeIntentResponse`](/documentation/Intents/INSetMessageAttributeIntentResponse) object contains the status of modifying the specified messages. You create instances of this class when confirming or handling a set message attribute intent.

You create an [`INSetMessageAttributeIntentResponse`](/documentation/Intents/INSetMessageAttributeIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INSetMessageAttributeIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INSetMessageAttributeIntentHandling/handle(intent:completion:)) methods of your set message attribute handler object. For more information about implementing your handler object, see [`INSetMessageAttributeIntentHandling`](/documentation/Intents/INSetMessageAttributeIntentHandling).

## Topics

### Initializing the Response Object

[`init(code:userActivity:)`](/documentation/Intents/INSetMessageAttributeIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity object.

### Getting the Response Code

[`code`](/documentation/Intents/INSetMessageAttributeIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`INSetMessageAttributeIntentResponseCode`](/documentation/Intents/INSetMessageAttributeIntentResponseCode)

Constants that indicate the response state.



---

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)