---
title: FSItem.SetAttributesRequest
framework: fskit
role: symbol
role_heading: Class
path: fskit/fsitem/setattributesrequest
---

# FSItem.SetAttributesRequest

A request to set attributes on an item.

## Declaration

```swift
class SetAttributesRequest
```

## Overview

Overview Methods that take attributes use this type to receive attribute values and to indicate which attributes they support. The various members of the parent type, FSItem.Attributes, contain the values of the attributes to set. Modify the consumedAttributes property to indicate which attributes your file system successfully used. FSKit calls the wasAttributeConsumed(_:) method to determine whether the file system successfully used a given attribute. Only set the attributes that your file system supports.

## Topics

### Inspecting used attributes

- [consumedAttributes](fskit/fsitem/setattributesrequest/consumedattributes.md)
- [wasAttributeConsumed(_:)](fskit/fsitem/setattributesrequest/wasattributeconsumed(_:).md)
- [FSItem.Attribute](fskit/fsitem/attribute.md)

## Relationships

### Inherits From

- [FSItem.Attributes](fskit/fsitem/attributes.md)

### Conforms To

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

## See Also

### Working with attributes

- [FSItem.Attributes](fskit/fsitem/attributes.md)
- [FSItem.GetAttributesRequest](fskit/fsitem/getattributesrequest.md)
