CK WebServices getting 500 Internal Error

Hello,

If I want to modify records in my public database, this works fine. However, if I change from public to private in the requesturl, I get the response: "500 - Internal Error".

According to the CK WebService Reference, it is possible to access the private database.

Could someone explain to me if it is really an internal error and if it could be fixed by Apple, since I would like to access my own private database with the server-to-server key.

Thanks in advance.

Answered by DTS Engineer in 867139022

A server-to-server key is for a server script to authenticate with CloudKit and make API calls to a public database with the inherited privileges of the creator of the key.

To access a private database with CloudKit web service, consider using an API token, as described here.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

A server-to-server key is for a server script to authenticate with CloudKit and make API calls to a public database with the inherited privileges of the creator of the key.

To access a private database with CloudKit web service, consider using an API token, as described here.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

CK WebServices getting 500 Internal Error
 
 
Q