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.
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:
sharedas database value, described in Fetching Record Changes (records/changes).
sharedas database value, described in Modifying Records (records/modify).
sharedas database value, described in Fetching Records by Record Name (records/lookup).
sharedas database value, described in Fetching Records Using a Query (records/query).
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:
This reference assumes that you are already familiar with CloudKit and CloudKit Dashboard. The following resources provide more information about CloudKit:
iCloud Design Guide provides an overview of all the iCloud services available to apps submitted to the store.