About CloudKit Web Services
You use the CloudKit native framework to take your app’s existing data and store it in the cloud so that the user can access it on multiple devices. Then you can use CloudKit web services or CloudKit JS to provide a web interface for users to access the same data as your app. To use CloudKit web services, you must have the schema for your databases already created. CloudKit web services provides an HTTP interface to fetch, create, update, and delete records, zones, and subscriptions. You also have access to discoverable users and contacts.
To access the web services using JavaScript, read CloudKit JavaScript Reference.

What’s New in CloudKit Web Services
Added new endpoints:
records/resolve: Fetches information about records using GUIDs, described in Fetching Record Information (records/resolve).
records/accept: Accepts a share on behalf of the current user, described in Accepting Share Records (records/accept).
changes/database: Fetches changed zones in a database, described in Fetching Database Changes (changes/database).
changes/zone: Fetches changed records in the specified zones, described in Fetching Record Zone Changes (changes/zone).
users/caller: Fetches information about the current user, described in Fetching Current User (users/current).
GET users/discover: Fetches all user identities in the current user’s address book, described in Discovering All User Identities (GET users/discover).
POST users/discover: Fetches all users in the specified array, described in Discovering User Identities (POST users/discover).
Updated endpoints to support sharing records:
records/changes: Added
sharedas database value, described in Fetching Record Changes (records/changes).records/modify: Added
sharedas database value, described in Modifying Records (records/modify).records/lookup: Added
sharedas database value, described in Fetching Records by Record Name (records/lookup).records/query: Added
sharedas database value, described in Fetching Records Using a Query (records/query).
Deprecated endpoints:
zones/changes: Use Fetching Record Zone Changes (changes/zone) instead.
users/current: Use Fetching Current User Identity (users/caller) instead.
users/lookup/contacts: Use Discovering All User Identities (GET users/discover) instead.
users/lookup/id: Use Discovering User Identities (users/discover) instead.
users/lookup/email: Use Discovering User Identities (users/discover) instead.
At a Glance
To compose the URLs and learn about about parameters, read:
To fetch, create, and update records, read:
To upload and reuse assets, read:
To fetch and modify zones, read:
To fetch users and contacts, read:
To fetch and modify subscriptions, read:
To create and register tokens, read:
See Also
This reference assumes that you are already familiar with CloudKit and CloudKit Dashboard. The following resources provide more information about CloudKit:
CloudKit Quick Start and CloudKit Framework Reference teach you how to create a CloudKit app and use CloudKit Dashboard.
CloudKit JavaScript Reference describes an alternative JavaScript API for accessing your app’s CloudKit databases from a web app.
CloudKit Catalog: An Introduction to CloudKit (Cocoa and JavaScript) sample code demonstrates CloudKit web services and CloudKit JS. For the interactive hosted version of this sample, go to CloudKit Catalog.
iCloud Design Guide provides an overview of all the iCloud services available to apps submitted to the store.
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-06-13