made changes as per api documentation.

modified some apis