api mutation takes entire array