# Setting the location of the assets via REST API

**URL:** <https://community.cesium.com/t/setting-the-location-of-the-assets-via-rest-api/16693>\
**Category:** Cesium ion\
**Created:** [December 29, 2021, 7:10am UTC](https://community.cesium.com/t/setting-the-location-of-the-assets-via-rest-api/16693 "2021-12-29T07:10:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickshek](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/nickshek/32/7652_2.png) [@nickshek](https://community.cesium.com/u/nickshek)\
**Post date:** [December 29, 2021, 7:10am UTC](https://community.cesium.com/t/setting-the-location-of-the-assets-via-rest-api/16693/1 "2021-12-29T07:10:41Z")

</div>

Hello, I am now working on uploading thousands of obj files to cesium ion. However, I found that I have to set the tileset location via “[Cesium ion](https://cesium.com/ion/tilesetlocationeditor/%24%7BassetsId%7D)”. Are there any methods to do this via rest API / programmatically?

Is it safe for me to use the /v1/assets/{assetId}/transform api that is not mentioned on [Ion REST API documentation – Cesium](https://cesium.com/learn/ion/rest-api/)?

Thank you so much.

---

<div class="post-metadata">

**Author:** ![Steve\_Kompolt](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/steve_kompolt/32/7385_2.png) [@Steve\_Kompolt](https://community.cesium.com/u/Steve_Kompolt)\
**Post date:** [December 29, 2021, 5:27pm UTC](https://community.cesium.com/t/setting-the-location-of-the-assets-via-rest-api/16693/2 "2021-12-29T17:27:20Z")

</div>

Hi Nick, Good question. The assests can be positioned via the API with Cesium JS like in the Sandcastle. I jhave yet to find a way to set it in Cesium ION.

If you find how to update ION asset location please share.

---

<div class="post-metadata">

**Author:** ![nickshek](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/nickshek/32/7652_2.png) [@nickshek](https://community.cesium.com/u/nickshek)\
**Post date:** [December 30, 2021, 2:34pm UTC](https://community.cesium.com/t/setting-the-location-of-the-assets-via-rest-api/16693/3 "2021-12-30T14:34:35Z")

</div>

Thank you, Steve. I have stopped trying cesium ion and developing an alternative solution to show the 3d models effectively. I will still give it a try after office hours if I have enough time.

---

<div class="post-metadata">

**Author:** ![Brent\_M](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/brent_m/32/14637_2.png) [@Brent\_M](https://community.cesium.com/u/Brent_M)\
**Post date:** [September 12, 2023, 8:41pm UTC](https://community.cesium.com/t/setting-the-location-of-the-assets-via-rest-api/16693/4 "2023-09-12T20:41:01Z")

</div>

It looks like some data types support setting the lat/lon/height at upload time using the REST API: [https://cesium.com/learn/ion/rest-api/#operation/postAssets](https://cesium.com/learn/ion/rest-api/#operation/postAssets)

Note that it’s a bit hidden – you first have to select a data type. If you select [3D\_CAPTURE] from the dropdown, you will finally see additional input fields including `position`.
