---
title: "save(_:)"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/ckdatabase/save(_:)-1j6fq"
---

# save(_:)

Saves a specific record.

## Declaration

```swift
func save(_ record: CKRecord) async throws -> CKRecord
```

## Parameters

- `record`: The record to save.

## Return Value

Return Value The saved record (as it appears on the server)

## Discussion

Discussion The save succeeds only when the specified record is new, or is a more recent version than the one on the server. For information on a more convenient way to save records, see modifyRecords(saving:deleting:savePolicy:atomically:).
