call api for mark as favorite