Adjust tilset location code for REST API

Hello! Is somewhere code for “Adjust tileset location” like in Cesium Stories
who I can use in own REST API ?