update API getSharing and JSON