Not able to create stored functions via API