---
title: INSetTaskAttributeIntent
framework: intents
role: symbol
role_heading: Class
path: intents/insettaskattributeintent
---

# INSetTaskAttributeIntent

A request to modify the attributes of a task.

## Declaration

```swift
class INSetTaskAttributeIntent
```

## Overview

Overview Siri creates an INSetTaskAttributeIntent object when the user marks a task as complete or changes the triggers used to generate reminders for the task. The intent object can contain the task information and values for any changed attributes. To handle this intent, the handler object in your Intents extension must adopt the INSetTaskAttributeIntentHandling protocol. Your handler should confirm the request and create an INSetTaskAttributeIntentResponse object with the updated task information. Additional Intent Attributes The following table lists additional attributes of this intent object:  |   |   |  Example Phrases Users can ask Siri to modify task attributes in a variety of ways. The table below provides a few sample phrases in different languages. You can use these phrases during testing to trigger your intents. This list isn’t exhaustive and Siri may recognize many other phrases.  |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |  In table above, <appName> represents the name of the app whose Intents extension handles the request.

## Topics

### Initializing the Intent Object

- [init(targetTask:taskTitle:status:priority:spatialEventTrigger:temporalEventTrigger:)](intents/insettaskattributeintent/init(targettask:tasktitle:status:priority:spatialeventtrigger:temporaleventtrigger:).md)
- [init(targetTask:status:spatialEventTrigger:temporalEventTrigger:)](intents/insettaskattributeintent/init(targettask:status:spatialeventtrigger:temporaleventtrigger:).md)

### Getting the Task Information

- [priority](intents/insettaskattributeintent/priority.md)
- [taskTitle](intents/insettaskattributeintent/tasktitle.md)
- [targetTask](intents/insettaskattributeintent/targettask.md)
- [status](intents/insettaskattributeintent/status.md)
- [INTaskStatus](intents/intaskstatus.md)

### Getting the Triggers

- [temporalEventTrigger](intents/insettaskattributeintent/temporaleventtrigger.md)
- [spatialEventTrigger](intents/insettaskattributeintent/spatialeventtrigger.md)

## Relationships

### Inherits From

- [INIntent](intents/inintent.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [INIntentSetImageKeyPath](intents/inintentsetimagekeypath.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Task Attributes

- [INSetTaskAttributeIntentHandling](intents/insettaskattributeintenthandling.md)
- [INSetTaskAttributeIntentResponse](intents/insettaskattributeintentresponse.md)
