Adding instances element to the array keys list in the rest api