<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:8CloudKit12CKSyncEngineC21RecordZoneChangeBatchV"
  },
  "title" : "CKSyncEngine.RecordZoneChangeBatch"
}
-->

# CKSyncEngine.RecordZoneChangeBatch

A type that contains the record changes for a single send operation.

```
struct RecordZoneChangeBatch
```

## Topics

### Creating a batch

[`init?(pendingChanges: [CKSyncEngine.PendingRecordZoneChange], recordProvider: (CKRecord.ID) async -> CKRecord?) async`](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/init(pendingChanges:recordProvider:))

Creates a batch of records to modify using the provided record zone changes.

[`enum PendingRecordZoneChange`](/documentation/CloudKit/CKSyncEngine-5sie5/PendingRecordZoneChange)

Describes an unsent record modification.

[`init(recordsToSave: [CKRecord], recordIDsToDelete: [CKRecord.ID], atomicByZone: Bool)`](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/init(recordsToSave:recordIDsToDelete:atomicByZone:))

Creates a batch of records to modify.

### Managing atomicity

[`var atomicByZone: Bool`](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/atomicByZone)

A Boolean value that determines whether CloudKit modifies records atomically by record zone.

### Managing the records

[`var recordIDsToDelete: [CKRecord.ID]`](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/recordIDsToDelete)

The record identifiers of the records to delete.

[`var recordsToSave: [CKRecord]`](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/recordsToSave)

The records to save.

### Debugging the batch

[`var description: String`](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/description)

The textual description of the batch that’s suitable for logging.

### Default Implementations

[CustomStringConvertible Implementations](/documentation/CloudKit/CKSyncEngine-5sie5/RecordZoneChangeBatch/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)