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

# update(_:)

Updates an existing contact in the contact store.

## Declaration

```swift
func update(_ contact: CNMutableContact)
```

## Parameters

- `contact`: The contact to update.

## Discussion

Discussion The contact to be updated must already exist in the contact store. If it does not, the update request fails, the CNErrorCodeRecordDoesNotExist error occurs, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain the object. Note that the contact may be modified when the save request is executing.

## See Also

### Saving contact changes

- [add(_:toContainerWithIdentifier:)](contacts/cnsaverequest/add(_:tocontainerwithidentifier:)-7eut4.md)
- [delete(_:)](contacts/cnsaverequest/delete(_:)-8m1tc.md)
