<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CloudKitJS",
  "identifier" : "/documentation/CloudKitJS/CloudKit.RecordZonesResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CloudKit JS"
    ],
    "preciseIdentifier" : "cl/CloudKit.RecordZonesResponse"
  },
  "title" : "CloudKit.RecordZonesResponse"
}
-->

# CloudKit.RecordZonesResponse

A [`CloudKit.RecordZonesResponse`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse) object encapsulates the results of database operations on a record zone.

```
interface CloudKit.RecordZonesResponse
```

## Overview

The methods in the [`CloudKit.Database`](/documentation/CloudKitJS/CloudKit.Database) class that operate on record zones return a `Promise` object that resolves to a [`CloudKit.RecordZonesResponse`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse) object if the operation is successful. You should not create instances of this class directly.

Errors can occur for individual operations although the overall method may succeed. If an individual operation is successful, a corresponding zone dictionary appears in the [`zones`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse/zones) array. If an individual operation is unsuccessful, a corresponding [`CKError`](/documentation/CloudKitJS/CloudKit/CKError) appears in the errors array.

## Topics

### Accessing Properties

[`readonly attribute CloudKit.RecordZone[] zones;`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse/zones)

The zones for the successful database operations.

### Identifying the Class

[`readonly attribute Boolean isRecordZonesResponse;`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse/isRecordZonesResponse)

A Boolean value indicating whether this object is an instance of the [`CloudKit.RecordZonesResponse`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse) class.

### Logging

[`String toString();`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse/toString)

Returns a string representation of this [`CloudKit.RecordZonesResponse`](/documentation/CloudKitJS/CloudKit.RecordZonesResponse) object.

## Relationships

### Inherited By

[`CloudKit.Response`](/documentation/CloudKitJS/CloudKit.Response)

---

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)