I have an image service. There are raster function templates attached to it. I specify imageServiceParameters then display the image service with JavaScript API in client app. It looks good because it appears as what I expect with proper rendering (see picture below).
Now I want to save the layer to my AGOL account as item. I saved it successfully with addItem in REST API, but it's different from image above because the raster function template as renderer didn't go with it.
I don't find a parameter that I can use to specify rasterFunction and mosaicRule when I add item. Is there another way to do it? Any answer will be appreciated a lot.