---
title: "update(_:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cnsaverequest/update(_:)-8h6f6"
---

# update(_:)

Updates an existing group in the contact store.

## Declaration

```swift
func update(_ group: CNMutableGroup)
```

## Parameters

- `group`: The group to update.

## Discussion

Discussion The group to be updated must already exist in the contact store. If it does not, the update request fails, the CNErrorCodeRecordDoesNotExist error is thrown, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain that object.

## See Also

### Saving group changes

- [add(_:toContainerWithIdentifier:)](contacts/cnsaverequest/add(_:tocontainerwithidentifier:)-4ikaa.md)
- [delete(_:)](contacts/cnsaverequest/delete(_:)-29lsm.md)
- [addMember(_:to:)](contacts/cnsaverequest/addmember(_:to:).md)
- [removeMember(_:from:)](contacts/cnsaverequest/removemember(_:from:).md)
