update index template to follow last api spec