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.