Completed the un/share api method