Update API to elastic 1.2