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

# save(_:)

Saves a specific subscription.

## Declaration

```swift
func save(_ subscription: CKSubscription) async throws -> CKSubscription
```

## Parameters

- `subscription`: The subscription to save.

## Return Value

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

## Discussion

Discussion This method throws an error if the request fails, such as when the network is unavailable or the device doesn’t have an active iCloud account. For information on a more convenient way to save subscriptions, see modifySubscriptions(saving:deleting:).
