add instances endpoint