Updating resource API