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

# INSetTaskAttributeIntentResponse

Your response to a request to modify the attributes of an existing task.

```
class INSetTaskAttributeIntentResponse
```

## Overview

Use an [`INSetTaskAttributeIntentResponse`](/documentation/Intents/INSetTaskAttributeIntentResponse) object to return information about your attempt to update an existing task. Siri communicates the information from your response to the user at appropriate times.

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

## Topics

### Initializing the Response Object

[`init(code: INSetTaskAttributeIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INSetTaskAttributeIntentResponse/init(code:userActivity:))

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

### Getting the Response Code

[`var code: INSetTaskAttributeIntentResponseCode`](/documentation/Intents/INSetTaskAttributeIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`enum INSetTaskAttributeIntentResponseCode`](/documentation/Intents/INSetTaskAttributeIntentResponseCode)

Constants indicating the state of the response.

### Providing the Task Details

[`var modifiedTask: INTask?`](/documentation/Intents/INSetTaskAttributeIntentResponse/modifiedTask)

The modified task.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

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

---

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)