CloudKit : Method Unimplemented tokens/create

Originator:nikhil
Number:rdar://28516084 Date Originated:28/09/2016
Status:Open Resolved:
Product:iCloud Product Version:1
Classification: Reproducible:Yes
 
As per the documentation listed at https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CloutKitWebServicesReference/CreateTokens/CreateTokens.html#//apple_ref/doc/uid/TP40015240-CH19-SW1

it suggests that to create a new token, the POST path should be constructed using: "[path]/database/[version]/[container]/[environment]/tokens/create"

The documentation seems to be incorrect and the actual path is:
"[path]/device/[version]/[container]/[environment]/tokens/create"

Steps to Reproduce:
1. Send a request as noted in the documentation.
2. Server responds with "Method not allowed"
3. Replace "database" in the request URI with "device" and request succeeds. 

Expected Results:
Updated documentation showing correct path. 

Actual Results:


Version:
Apple ID: [redacted]
OS X: 10.11.6

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!